/* ===== 69SHOP ELITE SHOPPING EXPERIENCE ===== */
/* Premium CSS enhancements for an elite customer experience */

/* ===== ENHANCED CSS VARIABLES ===== */
:root {
    /* Premium Gradients */
    --gradient-elite: linear-gradient(135deg, #0066ff 0%, #00c6ff 50%, #7c3aed 100%);
    --gradient-gold: linear-gradient(135deg, #f7931a 0%, #ffcc00 100%);
    --gradient-dark-premium: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    
    /* Enhanced Shadows */
    --shadow-elite: 0 20px 60px rgba(0, 102, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 102, 255, 0.1);
    --shadow-glow-blue: 0 0 40px rgba(0, 102, 255, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(255, 204, 0, 0.3);
    --shadow-inner-light: inset 0 1px 0 rgba(255,255,255,0.1);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    
    /* Animation Curves */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Timing */
    --duration-instant: 0.1s;
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.5s;
    --duration-slower: 0.8s;
}

/* ===== PREMIUM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-grey);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue-primary), var(--accent-blue));
    border-radius: 10px;
    border: 2px solid var(--light-grey);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

/* ===== ENHANCED SHOP HERO WITH SCROLL ANIMATION ===== */
.shop-hero {
    position: relative;
    background: var(--gradient-dark-premium);
    padding: 80px 0 100px;
    overflow: hidden;
    min-height: 320px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Collapsed State - After Welcome Animation */
.shop-hero.collapsed {
    min-height: 0;
    padding: 0;
    height: 0;
}

.shop-hero.collapsed .shop-hero-content {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    pointer-events: none;
}

.shop-hero.collapsed .hero-floating-products {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.shop-hero.collapsed::before,
.shop-hero.collapsed::after {
    opacity: 0;
}

/* Scroll/Parchment Roll-Up Animation */
.shop-hero.rolling-up {
    animation: parchmentRollUp 1.2s cubic-bezier(0.68, -0.15, 0.265, 1.15) forwards;
}

@keyframes parchmentRollUp {
    0% {
        min-height: 320px;
        padding: 80px 0 100px;
        opacity: 1;
    }
    30% {
        min-height: 200px;
        padding: 40px 0 60px;
    }
    60% {
        min-height: 80px;
        padding: 20px 0;
    }
    100% {
        min-height: 0;
        padding: 0;
        height: 0;
        opacity: 0;
    }
}

.shop-hero.rolling-up .shop-hero-content {
    animation: contentRollUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentRollUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
    40% {
        opacity: 0.6;
        transform: translateY(-20px) scale(0.95) rotateX(-10deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.6) rotateX(-30deg);
    }
}

.shop-hero.rolling-up .hero-floating-products {
    animation: floatsFadeOut 0.6s ease-out forwards;
}

@keyframes floatsFadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.3);
    }
}

/* Welcome Reveal Animation */
.shop-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.shop-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    background: var(--gradient-elite);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: welcomeReveal 1s var(--ease-smooth) both;
}

.shop-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    animation: welcomeReveal 1s var(--ease-smooth) 0.15s both;
}

/* Welcome Reveal Keyframes */
@keyframes welcomeReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }
    50% {
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Floating wave animation behind text */
.shop-hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 198, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: wavePulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes wavePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Mini hero bar - HIDDEN now since hero fully collapses */
.hero-mini-bar {
    display: none;
}

/* Category nav gets more top space when hero is hidden */
.shop-hero.collapsed + .container,
.shop-hero.rolling-up + .container {
    padding-top: 24px;
}

.hero-mini-bar .expand-hero-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hero-mini-bar .expand-hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.15) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.shop-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    background: var(--gradient-elite);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.shop-hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.1s both;
}

/* Floating Product Showcase */
.hero-floating-products {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-product {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-elite);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.floating-product:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.floating-product:nth-child(2) { top: 25%; right: 10%; animation-delay: 1s; }
.floating-product:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 2s; }
.floating-product:nth-child(4) { bottom: 25%; right: 8%; animation-delay: 1.5s; }

.floating-product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(3deg); }
    50% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

/* ===== ELITE CATEGORY NAVIGATION ===== */
.category-nav-elite {
    display: flex;
    gap: 12px;
    padding: 24px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-nav-elite::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid var(--light-grey);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    scroll-snap-align: start;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-elite);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.category-pill:hover {
    border-color: var(--blue-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-elite);
}

.category-pill:hover::before {
    opacity: 0.05;
}

.category-pill.active {
    background: var(--gradient-elite);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
}

.category-pill i {
    font-size: 1.1rem;
    transition: transform var(--duration-normal) var(--ease-bounce);
}

.category-pill:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.category-pill.active i {
    animation: iconPop 0.4s var(--ease-elastic);
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4) rotate(10deg); }
    100% { transform: scale(1.2); }
}

/* Category Count Badge */
.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.category-pill.active .category-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== CASCADING PRODUCT GRID ===== */
.products-grid-elite {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

/* Masonry Effect using CSS columns for cascading */
.products-masonry {
    column-count: 4;
    column-gap: 24px;
    padding: 24px 0;
}

@media (max-width: 1200px) {
    .products-masonry { column-count: 3; }
}

@media (max-width: 900px) {
    .products-masonry { column-count: 2; }
}

@media (max-width: 600px) {
    .products-masonry { column-count: 1; }
}

/* ===== ELITE PRODUCT CARD ===== */
.product-card-elite {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--duration-normal) var(--ease-smooth);
    break-inside: avoid;
    margin-bottom: 24px;
    transform: translateY(0);
    opacity: 1;
    animation: cardFadeIn 0.6s var(--ease-smooth) both;
}

.product-card-elite:nth-child(1) { animation-delay: 0.05s; }
.product-card-elite:nth-child(2) { animation-delay: 0.1s; }
.product-card-elite:nth-child(3) { animation-delay: 0.15s; }
.product-card-elite:nth-child(4) { animation-delay: 0.2s; }
.product-card-elite:nth-child(5) { animation-delay: 0.25s; }
.product-card-elite:nth-child(6) { animation-delay: 0.3s; }
.product-card-elite:nth-child(7) { animation-delay: 0.35s; }
.product-card-elite:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card-elite:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Product Image Container */
.product-image-elite {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
}

.product-image-elite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.product-card-elite:hover .product-image-elite img {
    transform: scale(1.08);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-new {
    background: var(--gradient-elite);
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-sale {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
}

.badge-bestseller {
    background: var(--gradient-gold);
    color: #333;
}

.badge-limited {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 102, 255, 0); }
}

/* Quick Actions Overlay */
.product-actions-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.product-card-elite:hover .product-actions-overlay {
    opacity: 1;
}

.quick-actions {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.product-card-elite:hover .quick-actions {
    transform: translateY(0);
}

.quick-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--duration-fast) var(--ease-bounce);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover {
    transform: scale(1.15);
    background: var(--blue-primary);
    color: white;
}

.quick-action-btn.wishlist-btn:hover {
    background: #ff4757;
}

.quick-action-btn.wishlist-btn.active {
    background: #ff4757;
    color: white;
    animation: heartBeat 0.8s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Product Content */
.product-content-elite {
    padding: 20px;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-primary);
    margin-bottom: 6px;
}

.product-name-elite {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating-elite {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 0.75rem;
    color: #ddd;
}

.rating-stars i.active {
    color: #FFD700;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Price Display */
.product-price-elite {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-tag {
    background: linear-gradient(135deg, #00c853, #64dd17);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Add to Cart Button */
.add-to-cart-elite {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-black);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.add-to-cart-elite::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-elite);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.add-to-cart-elite:hover::before {
    width: 400px;
    height: 400px;
}

.add-to-cart-elite span,
.add-to-cart-elite i {
    position: relative;
    z-index: 1;
}

.add-to-cart-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

/* Cart Success State */
.add-to-cart-elite.added {
    background: #00c853;
    pointer-events: none;
}

.add-to-cart-elite.added::before {
    display: none;
}

/* Stock Indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.stock-indicator.low-stock {
    color: #ff4757;
}

.stock-indicator.in-stock {
    color: #00c853;
}

.stock-bar {
    flex: 1;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    background: var(--gradient-elite);
    transition: width 0.5s var(--ease-smooth);
}

.stock-bar-fill.low {
    background: linear-gradient(90deg, #ff4757, #ff6b81);
}

/* ===== QUICK VIEW MODAL ===== */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.quick-view-content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-elite);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1) translateY(0);
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-smooth);
    z-index: 10;
}

.quick-view-close:hover {
    background: var(--primary-black);
    color: white;
    transform: rotate(90deg);
}

/* Image Gallery */
.quick-view-gallery {
    position: relative;
    background: var(--light-grey);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 16px;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 3px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--blue-primary);
    transform: scale(1.1);
}

/* Quick View Details */
.quick-view-details {
    padding: 40px;
    overflow-y: auto;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: skeletonWave 1.5s ease-in-out infinite;
}

@keyframes skeletonWave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card-skeleton {
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
    margin-bottom: 24px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4/5;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-text {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 12px;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 100%; }

.skeleton-button {
    height: 48px;
    border-radius: 12px;
    margin-top: 16px;
}

/* ===== PERSONALIZATION SECTION ===== */
.personalized-section {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.personalized-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.personalized-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.personalized-title i {
    color: var(--blue-primary);
    font-size: 1.5rem;
}

.view-all-link {
    color: var(--blue-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--duration-fast) var(--ease-smooth);
}

.view-all-link:hover {
    gap: 10px;
}

/* Recently Viewed Carousel */
.recently-viewed-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.recently-viewed-carousel::-webkit-scrollbar {
    display: none;
}

.recently-viewed-item {
    flex-shrink: 0;
    width: 180px;
    scroll-snap-align: start;
}

.recently-viewed-item .product-card-elite {
    margin-bottom: 0;
}

/* ===== FLOATING CART PREVIEW ===== */
.floating-cart-preview {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-elite);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    transform: translateY(150%);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.floating-cart-preview.show {
    transform: translateY(0);
}

.cart-preview-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-elite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
}

.cart-preview-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #ff4757;
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-preview-info {
    display: flex;
    flex-direction: column;
}

.cart-preview-count {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-preview-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-primary);
}

.cart-preview-btn {
    padding: 12px 24px;
    background: var(--primary-black);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.cart-preview-btn:hover {
    background: var(--gradient-elite);
}

/* ===== ADD TO CART ANIMATION ===== */
.cart-fly-animation {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    transition: all 0.8s var(--ease-smooth);
}

.cart-fly-animation img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===== INTEREST PREFERENCES MODAL ===== */
.interests-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.interests-modal.active {
    opacity: 1;
    visibility: visible;
}

.interests-content {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--duration-normal) var(--ease-spring);
}

.interests-modal.active .interests-content {
    transform: scale(1);
}

.interests-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.interests-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

.interest-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.interest-option {
    padding: 16px;
    border: 2px solid var(--light-grey);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.interest-option:hover {
    border-color: var(--blue-primary);
    background: rgba(0, 102, 255, 0.05);
}

.interest-option.selected {
    border-color: var(--blue-primary);
    background: var(--blue-light);
}

.interest-option i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--blue-primary);
}

.interest-option span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.interests-save-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-elite);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.interests-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .shop-hero-content h1 {
        font-size: 2rem;
    }
    
    .products-masonry {
        column-count: 2;
        gap: 16px;
    }
    
    .product-card-elite {
        margin-bottom: 16px;
    }
    
    .quick-view-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    
    .category-nav-elite {
        justify-content: flex-start;
        padding: 16px 0;
    }
    
    .floating-cart-preview {
        bottom: 80px;
        right: 16px;
        left: 16px;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .products-masonry {
        column-count: 1;
    }
    
    .category-pill {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .product-content-elite {
        padding: 16px;
    }
    
    .floating-product {
        display: none;
    }
}

/* ===== ANIMATIONS UTILITIES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp { animation: fadeInUp 0.6s var(--ease-smooth) both; }
.animate-fadeInDown { animation: fadeInDown 0.6s var(--ease-smooth) both; }
.animate-scaleIn { animation: scaleIn 0.5s var(--ease-spring) both; }
.animate-slideInRight { animation: slideInRight 0.5s var(--ease-smooth) both; }

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===== PREMIUM TOOLTIP ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--primary-black);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-fast) var(--ease-smooth);
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}
/* ===== PAGE TRANSITION EFFECTS ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--gradient-elite);
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

.page-transition-overlay.entering {
    animation: pageEnter 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.page-transition-overlay.leaving {
    animation: pageLeave 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

@keyframes pageEnter {
    0% { transform: scaleY(0); transform-origin: top; }
    100% { transform: scaleY(1); transform-origin: top; }
}

@keyframes pageLeave {
    0% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Smooth page content fade-in */
.page-loaded main,
.page-loaded .shop-hero,
.page-loaded .products-grid {
    animation: contentReveal 0.6s var(--ease-smooth) 0.2s both;
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENHANCED SKELETON LOADING ===== */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.skeleton-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.skeleton-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    overflow: hidden;
}

.skeleton-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmerMove 1.5s ease-in-out infinite;
}

@keyframes shimmerMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-info {
    padding: 20px;
}

.skeleton-line {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: shimmerMove 1.5s ease-in-out infinite;
}

.skeleton-line.title { width: 80%; height: 16px; }
.skeleton-line.subtitle { width: 50%; }
.skeleton-line.price { width: 40%; height: 20px; }
.skeleton-btn {
    height: 48px;
    background: #f0f0f0;
    border-radius: 12px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.skeleton-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: shimmerMove 1.5s ease-in-out infinite;
}

/* ===== PARALLAX HERO EFFECTS ===== */
.shop-hero.parallax-enabled {
    background-attachment: fixed;
    background-size: cover;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.parallax-layer.bg {
    background: radial-gradient(ellipse at 30% 40%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    transform: translateZ(-2px) scale(1.4);
}

.parallax-layer.mid {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    transform: translateZ(-1px) scale(1.2);
}

/* ===== MASONRY GRID IMPROVEMENTS ===== */
.products-grid-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 10px;
    gap: 24px;
    padding: 24px 0;
}

@media (max-width: 1200px) {
    .products-grid-masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .products-grid-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .products-grid-masonry { grid-template-columns: 1fr; }
}

.masonry-item {
    grid-row-end: span var(--row-span, 30);
}

/* ===== GLASSMORPHISM FILTER BAR ===== */
.filter-bar-glass {
    position: sticky;
    top: 80px;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.filter-bar-glass.scrolled {
    padding: 12px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-grey);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.filter-chip.active {
    background: var(--blue-primary);
    color: white;
}

.filter-chip .remove {
    display: none;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 0.7rem;
}

.filter-chip.active .remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PRODUCT CARD MICRO-INTERACTIONS ===== */
.product-card-elite .product-image-elite::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 102, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-card-elite:hover .product-image-elite::before {
    opacity: 1;
}

/* Add to cart pulse effect */
.add-to-cart-elite.pulse {
    animation: buttonPulse 0.4s ease;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    25% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    75% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Wishlist heart burst */
.wishlist-btn.burst::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 3px solid #ff4757;
    border-radius: 50%;
    animation: heartBurst 0.5s ease forwards;
}

@keyframes heartBurst {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS VISIBLE STYLES ===== */
:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: 2px;
}

.product-card-elite:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-elite);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}