/* Shop page styles */

/* Product card animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-container {
    overflow: hidden;
}

.product-image {
    transition: transform 0.5s ease;
}

.add-to-cart-btn:not(:disabled):hover {
    background-color: #f43f5e;
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(90deg, #f5f5f4 25%, #e7e5e4 50%, #f5f5f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Image skeleton wrapper */
.img-skeleton-wrapper {
    display: inline-block;
}

.img-skeleton-wrapper .img-skeleton {
    z-index: 1;
    pointer-events: none;
}

.img-skeleton-wrapper img {
    position: relative;
    z-index: 2;
}

/* Inherit border-radius from parent */
.rounded-inherit {
    border-radius: inherit;
}

/* Toast positioning - dynamic based on cart state */
#toast-container {
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    bottom: 96px; /* Default: above floating cart icon */
}

.toast {
    animation: slideInRight 0.3s ease forwards;
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
