        [x-cloak] { display: none !important; }
        
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-top: 3px solid #f59e0b;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            z-index: 50;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .border-t-3 {
            border-top-width: 3px;
        }
        
        .mega-menu .container {
            max-width: 1200px;
        }
        
        .mega-menu::-webkit-scrollbar {
            width: 6px;
        }
        
        .mega-menu::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        .mega-menu::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }
        
        .mega-menu::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }
        
        @media (max-width: 768px) {
            .mega-menu {
                position: static;
                box-shadow: none;
                border-top: none;
                max-height: none;
            }
        }
        
        
        .product-card {
            transition: all 0.2s ease;
        }
        
        .product-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-primary:hover {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }
        
        .category-card {
            transition: all 0.2s ease;
        }
        
        .category-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        
        .swiper-button-next,
        .swiper-button-prev {
            color: #f59e0b !important;
        }
        
        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 20px !important;
        }
        
        /* Custom scrollbar for filters */
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-track {
            background: #f3f4f6;
            border-radius: 3px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 3px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #f59e0b;
        }

        /* Quick View Modal Animations */
        @keyframes fade-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slide-up {
            from { 
                opacity: 0;
                transform: translateY(20px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes scale-in {
            from { 
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }
            to { 
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes bounce-in {
            0% { 
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            70% { 
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .animate-fade-in {
            animation: fade-in 0.5s ease-out forwards;
        }

        .animate-slide-up {
            animation: slide-up 0.6s ease-out forwards;
            opacity: 0;
        }

        .animate-scale-in {
            animation: scale-in 0.4s ease-out forwards;
        }

        .animate-bounce-in {
            animation: bounce-in 0.6s ease-out forwards;
        }

        /* Cart Drawer Animations */
        #cartDrawerPanel {
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        #cartDrawerOverlay {
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            /* Keep the page context visible while the cart is open. */
            background: rgba(31, 41, 55, 0.18);
            backdrop-filter: none;
        }

        /* Keep the primary cart action visible if custom Tailwind colors are absent
           from the production build. */
        #cartDrawerViewCart {
            background-color: #fff;
            color: #651c35;
            border: 1px solid #651c35;
        }

        #cartDrawerViewCart:hover {
            background-color: #f8eef0;
        }

        #cartDrawerDiscountRow:not(.hidden),
        #cartDrawerTotalRow:not(.hidden) { display: flex; justify-content: space-between; }
        #cartDrawerDiscountRow { color: #15803d; }
        #cartDrawerTotalRow { border-top: 1px dashed #e5e7eb; padding-top: .5rem; font-size: 1rem; font-weight: 700; }

        .kh-drawer-coupon { border: 1px dashed #d6c3b6; border-radius: .75rem; background: #fdf8f3; padding: .6rem; }
        .kh-drawer-coupon__form { display: flex; gap: .4rem; }
        .kh-drawer-coupon__input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 .75rem; border: 1px solid #d9cfc9; border-radius: .5rem; background: #fff; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
        .kh-drawer-coupon__input::placeholder { text-transform: none; letter-spacing: 0; color: #9ca3af; }
        .kh-drawer-coupon__input:focus { outline: none; border-color: #651c35; box-shadow: 0 0 0 3px rgba(101, 28, 53, .12); }
        .kh-drawer-coupon__btn { flex: 0 0 auto; height: 40px; padding: 0 1rem; border-radius: .5rem; background: #651c35; color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .03em; }
        .kh-drawer-coupon__btn:hover { background: #4e1528; }
        .kh-drawer-coupon__btn:disabled { opacity: .6; cursor: wait; }
        .kh-drawer-coupon__suggest { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: .5rem; padding: .45rem .6rem; border-radius: .5rem; background: #fff7e6; border: 1px solid #f3d9a4; font-size: .75rem; color: #78350f; text-align: left; }
        .kh-drawer-coupon__suggest:hover { background: #ffefcc; }
        .kh-drawer-coupon__applied { display: flex; align-items: center; gap: .6rem; padding: .2rem .1rem; font-size: .875rem; color: #14532d; }
        .kh-drawer-coupon__applied.hidden { display: none; }
        .kh-drawer-coupon__icon { font-size: 1.35rem; line-height: 1; }
        .kh-drawer-coupon.is-applied { border-style: solid; border-color: #86efac; background: #f0fdf4; }
        .kh-drawer-coupon.is-applied .kh-drawer-coupon__form,
        .kh-drawer-coupon.is-applied .kh-drawer-coupon__suggest { display: none; }
        .kh-drawer-coupon.just-applied { animation: kh-coupon-pop .6s ease-out; }
        @keyframes kh-coupon-pop { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

        .kh-drawer-checkout { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; padding: .7rem 1rem; border-radius: .6rem; background: linear-gradient(135deg, #651c35, #b96b35); color: #fff !important; font-size: 1rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(101, 28, 53, .25); transition: transform .15s, box-shadow .15s; }
        .kh-drawer-checkout:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(101, 28, 53, .32); }
        .kh-drawer-checkout__total:not(:empty)::before { content: "·"; margin-right: .5rem; opacity: .7; }
        .kh-drawer-coupon__list:empty { display: none; }
        .kh-drawer-qty { display: inline-flex; align-items: center; border: 1px solid #e5d9d0; border-radius: 999px; background: #fff; overflow: hidden; }
        .kh-drawer-qty button { width: 28px; height: 28px; display: grid; place-items: center; color: #651c35; font-weight: 700; }
        .kh-drawer-qty button:disabled { color: #d1d5db; cursor: not-allowed; }
        .kh-drawer-qty span { min-width: 26px; text-align: center; font-size: .8125rem; font-weight: 600; }
        .kh-drawer-stock-note { font-size: .6875rem; color: #b45309; }
        
        .cart-item-animation {
            transition: all 0.2s ease-in-out;
        }
        
        .cart-item-animation:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        /* Add to Cart Button States */
        .add-to-cart-btn {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
            line-height: 1.2;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: auto;
        }
        
        .add-to-cart-btn i {
            font-size: 11px;
        }
        
        @media (min-width: 640px) {
            .add-to-cart-btn {
                padding: 12px 24px;
                font-size: 16px;
                border-radius: 8px;
                line-height: 1.5;
            }
            
            .add-to-cart-btn i {
                font-size: 14px;
            }
        }

        /* One compact, consistent product action size across every mobile page. */
        @media (max-width: 639px) {
            .add-to-cart-btn {
                min-height: 36px;
                padding: 8px 10px !important;
                font-size: 11px;
                line-height: 1.2;
                border-radius: 6px;
            }

            .add-to-cart-btn i {
                font-size: 10px;
            }
        }
        
        .add-to-cart-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
        }
        
        .add-to-cart-btn.loading {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            cursor: wait;
        }
        
        .add-to-cart-btn.success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
            animation: pulse-success 0.6s ease-in-out;
        }
        
        .add-to-cart-btn.error {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        }
        
        @keyframes pulse-success {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        /* Cart Count Badge Animation */
        #cart-count {
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        /* Flying Cart Animation */
        .flying-product {
            position: fixed;
            z-index: 9999;
            pointer-events: none;
            animation: flyToCart 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .flying-product img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            background: white;
            padding: 4px;
        }
        
        /* Mobile: smaller flying product */
        @media (max-width: 640px) {
            .flying-product img {
                width: 40px;
                height: 40px;
            }
        }
        
        @keyframes flyToCart {
            0% {
                opacity: 1;
                transform: scale(1) rotate(0deg);
            }
            50% {
                opacity: 0.8;
                transform: scale(0.7) rotate(15deg);
            }
            100% {
                opacity: 0;
                transform: scale(0.3) rotate(30deg);
            }
        }
        
        /* Cart Icon Pulse on Add */
        @keyframes cartPulse {
            0%, 100% { transform: scale(1); }
            25% { transform: scale(1.2); }
            50% { transform: scale(0.95); }
            75% { transform: scale(1.1); }
        }
        
        .cart-pulse {
            animation: cartPulse 0.5s ease;
        }
        
        /* Cart Count Bounce */
        @keyframes countBounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }
        
        .count-bounce {
            animation: countBounce 0.4s ease;
        }
        
        /* Cart Drawer Slide Animation */
        @keyframes slideInRight {
            0% {
                transform: translateX(100%);
            }
            100% {
                transform: translateX(0);
            }
        }
        }

        /* Thumbnail hover effects */
        .thumbnail-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .thumbnail-hover:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }

        /* Glassmorphism effect */
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        /* Shimmer loading effect */
        @keyframes shimmer {
            0% { background-position: -468px 0; }
            100% { background-position: 468px 0; }
        }

        .shimmer {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 400% 100%;
            animation: shimmer 1.5s infinite;
        }

        /* Enhanced button animations */
        .btn-enhanced {
            position: relative;
            overflow: hidden;
        }

        .btn-enhanced::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-enhanced:hover::before {
            left: 100%;
        }
        
        /* Hero Section Enhancements */
        .hero-section {
            position: relative;
            overflow: hidden;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(37, 99, 235, 0.08) 0%, rgba(245, 158, 11, 0.06) 50%, rgba(37, 99, 235, 0.04) 100%);
            pointer-events: none;
        }
        
        /* Text gradient effect */
        .text-gradient-hero {
            background: linear-gradient(135deg, #ffffff 0%, #fef3c7 25%, #DBEAFE 50%, #fde68a 75%, #EFF6FF 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 200% 200%;
            animation: gradient-shift 3s ease infinite;
        }
        
        @keyframes gradient-shift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* Floating animation for background elements */
        @keyframes float-slow {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            33% { transform: translateY(-10px) rotate(1deg); }
            66% { transform: translateY(5px) rotate(-1deg); }
        }
        
        @keyframes float-medium {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(2deg); }
        }
        
        @keyframes float-fast {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            25% { transform: translateY(-8px) rotate(-1deg); }
            75% { transform: translateY(8px) rotate(1deg); }
        }
    
