/* ==========================================================================
   EVZAP MARKETPLACE — LIGHT & DARK THEME SYSTEM
   ========================================================================== */

/* No universal transition — applied per-component for performance */

/* Clean typography and smooth scrolling */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2563EB #F8FAFC;
    background-color: #FFFFFF;
}

/* ===================== SAFE AREA (iOS home indicator) ===================== */
.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-bottom: constant(safe-area-inset-bottom, 0px);
}

/* ===================== LIGHT MODE SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* ===================== DARK MODE SCROLLBAR ===================== */
html.dark {
    scrollbar-color: #2563EB #1E293B;
}
html.dark ::-webkit-scrollbar-track {
    background: #1E293B;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

/* GPU acceleration for animations */
* {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===================== LIGHT MODE CSS VARIABLES ===================== */
:root {
    --primary-blue: #2563EB;
    --hover-blue: #1D4ED8;
    --bg-page: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --border-subtle: #F1F5F9;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg-input: #F1F5F9;
    --shadow: rgba(0,0,0,0.06);
}

/* ===================== DARK MODE CSS VARIABLES ===================== */
html.dark {
    --bg-page: #0F172A;
    --bg-surface: #111827;
    --bg-card: #1E293B;
    --border: #334155;
    --border-subtle: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --bg-input: #1E293B;
    --shadow: rgba(0,0,0,0.4);
    background-color: #0F172A;
    scrollbar-color: #2563EB #1E293B;
}

/* ===================== DARK MODE — GLOBAL OVERRIDES (ONLY USER PAGES) ===================== */
/* Faqat user & auth sahifalari. Admin paneli har doim oq qoladi. */

/* html va body to'liq qora fon */
html.dark {
    background-color: #0F172A !important;
}

/* Animated Background */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-bg {
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #cbd5e1);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}
html.dark .animated-bg {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #111827);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

/* Base Styles */
html.dark body {
    background-color: #0F172A !important;
    color: #F8FAFC !important;
}

/* main content area */
html.dark body main {
    background-color: #0F172A !important;
}

/* bg-slate-bg (Tailwind custom: #F8FAFC) → qora fon */
html.dark body .bg-slate-bg,
html.dark body [class*="bg-slate-bg"] {
    background-color: #0F172A !important;
}

/* min-h-screen va min-h-[80vh] konteynerlar */
html.dark body .min-h-screen,
html.dark body [class*="min-h-"] {
    background-color: #0F172A !important;
}

/* White backgrounds → dark surface */
html.dark body .bg-white {
    background-color: #1E293B !important;
}
html.dark body .bg-slate-50,
html.dark body .bg-slate-100 {
    background-color: #111827 !important;
}
html.dark body .bg-gray-50 {
    background-color: #111827 !important;
}

/* Text colors */
html.dark body .text-gray-900,
html.dark body .text-gray-800 {
    color: #F8FAFC !important;
}
html.dark body .text-gray-700 {
    color: #E2E8F0 !important;
}
html.dark body .text-gray-600,
html.dark body .text-gray-500 {
    color: #94A3B8 !important;
}
html.dark body .text-gray-400 {
    color: #64748B !important;
}

/* Borders */
html.dark body .border-slate-200,
html.dark body .border-slate-100,
html.dark body .border-gray-100,
html.dark body .border-gray-200 {
    border-color: #334155 !important;
}

/* Cards */
html.dark body .saas-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Navbar */
html.dark body nav.sticky {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-color: #334155 !important;
}

/* Search bar input */
html.dark body input[type="text"],
html.dark body input[type="email"],
html.dark body input[type="password"],
html.dark body input[type="search"],
html.dark body textarea,
html.dark body select {
    background-color: #1E293B !important;
    color: #F8FAFC !important;
    border-color: #334155 !important;
}
html.dark body input::placeholder,
html.dark body textarea::placeholder {
    color: #64748B !important;
}

/* Search bar container */
html.dark body .bg-slate-100.border.border-slate-200 {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Dropdowns & Mega menu */
html.dark body [x-show],
html.dark body .absolute.bg-white {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Footer */
html.dark body footer {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
}
html.dark body footer h3 {
    color: #F8FAFC !important;
}

/* Bottom mobile nav */
html.dark body #bottom-nav {
    background-color: rgba(15, 23, 42, 0.97) !important;
    border-color: #334155 !important;
}

/* Flash notifications */
html.dark body .bg-white.shadow-lg {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Loader */
html.dark body #loader {
    background-color: #0F172A !important;
}

/* Category horizontal bar */
html.dark body .bg-white.border-b.border-slate-100 {
    background-color: #111827 !important;
    border-color: #1E293B !important;
}

/* Top info bar */
html.dark body .bg-slate-50.border-b.border-slate-200 {
    background-color: #0F172A !important;
    border-color: #1E293B !important;
}

/* Hover states in dark */
html.dark body .hover\:bg-slate-50:hover {
    background-color: #1E293B !important;
}
html.dark body .hover\:border-gray-900:hover {
    border-color: #F8FAFC !important;
}

/* Product cards dark */
html.dark body .border.border-slate-200.bg-white {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Rounded & shadow cards */
html.dark body .rounded-xl.border,
html.dark body .rounded-2xl.border,
html.dark body .rounded-lg.border {
    border-color: #334155 !important;
}

/* Profile page dark mode */
html.dark #profile-page .hover\:bg-slate-50:hover {
    background-color: #111827 !important;
}
html.dark #profile-page .bg-slate-50 {
    background-color: #111827 !important;
}
html.dark #profile-page .bg-slate-50.border-b,
html.dark #profile-page .bg-slate-50\/50 {
    background-color: #111827 !important;
}

/* Mega menu catalog */
html.dark body .border-slate-100.hover\:bg-slate-50 {
    border-color: #334155 !important;
}
html.dark body a:hover .border-slate-100 {
    border-color: #334155 !important;
}

/* Suggestion dropdown */
html.dark body .rounded-xl.border.border-slate-200.bg-white.shadow-xl {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Language dropdown */
html.dark body .border.border-slate-100.bg-white.p-1.shadow-md {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Floating buttons tooltip */
html.dark body .group-hover\:bg-white {
    background-color: #1E293B !important;
}

/* Slider overlay */
html.dark body .bg-slate-900\/40 {
    background-color: rgba(15, 23, 42, 0.65) !important;
}

/* Dark mode — table rows */
html.dark body table tbody tr:hover {
    background-color: #1E293B !important;
}
html.dark body th {
    color: #94A3B8 !important;
}
html.dark body td {
    color: #CBD5E1 !important;
    border-color: #1E293B !important;
}

/* Forms */
html.dark body .bg-white.rounded-xl,
html.dark body .bg-white.rounded-2xl,
html.dark body .bg-white.rounded-lg {
    background-color: #1E293B !important;
}



/* ==========================================================================
   DARK MODE TOGGLE BUTTON STYLES
   ========================================================================== */
#theme-toggle {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}
#theme-toggle .icon-sun,
#theme-toggle .icon-moon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
html:not(.dark) #theme-toggle .icon-moon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    position: absolute;
}
html.dark #theme-toggle .icon-sun {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
    position: absolute;
}
html.dark #theme-toggle .icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ==========================================================================
   SAAS SOFT MOTION ANIMATIONS
   ========================================================================== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle particle animation for Hero background */
@keyframes subtleParticleMove {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.05), 0 4px 12px -5px rgba(0, 0, 0, 0.02);
}

/* Stripe-style Glow Background */
.saas-gradient-bg {
    position: relative;
    overflow: hidden;
}
.saas-gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle floating particle simulator classes */
.saas-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    pointer-events: none;
    animation: subtleParticleMove 8s ease-in-out infinite;
}

/* Clean Input Fields Focus */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Parabolic Fly to Cart Animation with Green Accent */
@keyframes flyToCart {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
        filter: drop-shadow(0 0 6px #2563EB);
    }
    50% {
        transform: scale(0.6) translate(var(--fly-x-mid), var(--fly-y-mid));
        opacity: 0.9;
        filter: drop-shadow(0 0 12px #2563EB);
    }
    100% {
        transform: scale(0.05) translate(var(--fly-x-dest), var(--fly-y-dest));
        opacity: 0;
    }
}

.flying-product-img {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    pointer-events: none;
    border: 2px solid #2563EB;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Scroll Reveal classes */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.reveal-active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   PROFILE PAGE MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* Profile page — prevent any horizontal overflow */
#profile-page {
    overflow-x: hidden;
    max-width: 100vw;
}

#profile-page * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Order boxes — force 100% width on mobile */
#profile-page .rounded-xl.border.border-slate-200.shadow-sm {
    width: 100%;
    min-width: 0;
}

/* Order info bar — stack on mobile */
#profile-page .bg-slate-50.border-b .grid.grid-cols-2 {
    gap: 0.25rem;
}

/* Tab navigation — horizontal scroll only on very small screens, no overflow */
#profile-page .side-tab-btn {
    min-width: 0;
    word-break: normal;
    overflow-wrap: normal;
}

/* User panel buttons on mobile — ensure they stack properly */
#profile-page .flex-col.sm\:flex-row.gap-2 a {
    min-width: 0;
}

/* Ensure product names truncate properly */
#profile-page .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fix for order items on very small screens */
@media (max-width: 374px) {
    #profile-page .rounded-xl.border .flex.items-center.justify-between.gap-3 {
        flex-wrap: wrap;
    }
    #profile-page .rounded-xl.border .text-right.text-xs {
        width: 100%;
        text-align: left !important;
        padding-left: 2.5rem;
    }
}

/* Clean card styling */
.saas-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.saas-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   PREMIUM MICRO-ANIMATIONS & MARKETPLACE UPGRADE
   ========================================================================== */

/* --- Global overflow prevention --- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- GPU acceleration for all animations --- */
.gpu-layer,
.product-card,
.category-card,
.side-tab-btn,
.magnetic-btn,
#profile-page *,
[class*="animate-"],
[class*="transition-"] {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
}

/* ========================
   BUTTON RIPPLE EFFECT
   ======================== */
.ripple-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.ripple-btn .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ========================
   SKELETON LOADING
   ======================== */
.skeleton {
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 8px;
}
html.dark .skeleton {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Skeleton card */
.skeleton-card {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    overflow: hidden;
}
html.dark .skeleton-card {
    border-color: #334155;
    background: #1E293B;
}
.skeleton-card .skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}
html.dark .skeleton-card .skeleton-img {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
}

/* ========================
   PRODUCT CARD PREMIUM
   ======================== */
.product-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.08), 0 4px 12px -4px rgba(0,0,0,0.04);
}
.product-card:hover .product-card-img {
    transform: scale(1.05);
}
.product-card .product-card-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Price highlight on hover */
.product-card:hover .product-price-highlight {
    color: #059669;
}
html.dark .product-card:hover .product-price-highlight {
    color: #34D399;
}

/* Add to cart button animation */
.product-card .cart-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .cart-btn {
    transform: scale(1.04);
}

/* Discount badge premium */
.discount-badge {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 2px 8px -2px rgba(239,68,68,0.3);
}

/* Stock badge */
.stock-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
}
.stock-badge.in-stock {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}
.stock-badge.low-stock {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FDE68A;
}
.stock-badge.out-of-stock {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
html.dark .stock-badge.in-stock {
    background: rgba(16,185,129,0.12);
    color: #34D399;
    border-color: rgba(16,185,129,0.25);
}
html.dark .stock-badge.low-stock {
    background: rgba(245,158,11,0.12);
    color: #FBBF24;
    border-color: rgba(245,158,11,0.25);
}
html.dark .stock-badge.out-of-stock {
    background: rgba(220,38,38,0.12);
    color: #F87171;
    border-color: rgba(220,38,38,0.25);
}

/* Star rating */
.star-rating {
    display: inline-flex;
    gap: 1px;
}
.star-rating .star {
    width: 12px;
    height: 12px;
    color: #F59E0B;
    fill: currentColor;
}
.star-rating .star.empty {
    color: #D1D5DB;
    fill: none;
}
html.dark .star-rating .star.empty {
    color: #475569;
}

/* ========================
   CATEGORY CARD PREMIUM
   ======================== */
.category-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.08);
}
.category-card:hover .category-card-img {
    transform: scale(1.08);
}
.category-card .category-card-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ========================
   HEADER PREMIUM EFFECTS
   ======================== */
/* Logo glow on hover */
.logo-glow {
    transition: filter 0.4s ease;
}
.logo-glow:hover {
    filter: drop-shadow(0 0 8px rgba(37,99,235,0.25));
}

/* Nav icon hover */
.nav-icon-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-icon-btn:hover {
    transform: translateY(-1px);
}
.nav-icon-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37,99,235,0.06);
    transform: scale(0);
    transition: transform 0.3s ease;
}
.nav-icon-btn:hover::after {
    transform: scale(1);
}

/* ========================
   HERO SECTION
   ======================== */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-parallax-bg {
    position: absolute;
    inset: -20px;
    z-index: 0;
    transform: translateY(var(--parallax-offset, 0px));
    transition: transform 0.1s linear;
}

/* ========================
   SCROLL REVEAL — Premium
   ======================== */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.reveal-active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.1s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.2s; }
.reveal-delay-5 { transition-delay: 0.25s; }
.reveal-delay-6 { transition-delay: 0.3s; }

/* ========================
   COUNT-UP ANIMATION
   ======================== */
.count-up-number {
    display: inline-block;
    transition: all 0.01s linear;
}

/* ========================
   TOAST NOTIFICATION
   ======================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast-container .toast {
    pointer-events: all;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 380px;
}
.toast-container .toast.toast-out {
    animation: toastOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ========================
   TRUST BADGES STRIP
   ======================== */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    transition: all 0.3s ease;
}
.trust-item:hover {
    transform: translateY(-1px);
}
html.dark .trust-item {
    color: #E2E8F0;
}

/* ========================
   ZOOM ON PRODUCT PAGE
   ======================== */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}
.zoom-container .zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(37,99,235,0.3);
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
    display: none;
    transform: translate(-50%, -50%);
}
.zoom-container:hover .zoom-lens {
    display: block;
}
.zoom-container .zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 380px;
    height: 380px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background-repeat: no-repeat;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 50;
    display: none;
    background-color: #FFFFFF;
}
html.dark .zoom-container .zoom-result {
    border-color: #334155;
    background-color: #1E293B;
}
.zoom-container:hover .zoom-result {
    display: block;
}

/* ========================
   GALLERY THUMBNAIL ACTIVE
   ======================== */
.gallery-thumb {
    transition: all 0.2s ease;
    cursor: pointer;
}
.gallery-thumb.active {
    border-color: #059669 !important;
    box-shadow: 0 0 0 2px rgba(5,150,105,0.2);
}

/* ========================
   RESPONSIVE FIXES
   ======================== */
@media (max-width: 640px) {
    .trust-strip {
        gap: 0.5rem;
    }
    .trust-item {
        padding: 6px 10px;
        font-size: 10px;
    }
    .zoom-container .zoom-result {
        display: none !important;
    }
}

/* ========================
   MAP CONTAINER (Contact Page)
   ======================== */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.map-container:hover {
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15),
                0 8px 24px -6px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 20px;
}
html.dark .map-container {
    border: 1px solid #334155;
}
html.dark .map-container iframe {
    filter: invert(0.88) hue-rotate(180deg) saturate(0.5);
}

/* Fix for Tailwind's max-width on containers */
.max-w-full {
    max-width: 100%;
}

/* Ensure no horizontal scroll on any page */
body {
    overflow-x: hidden;
}

/* Fix autocomplete/search dropdown on mobile */
@media (max-width: 640px) {
    #search-results {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 60vh !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
}

/* ==========================================================================
   PREMIUM "WOW" ANIMATIONS
   ========================================================================== */

/* Heartbeat pulse animation for favorite icon */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}
.animate-heartbeat {
    animation: heartbeat 0.8s ease-in-out;
}

/* Shimmer shine effect for CTA buttons */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    bottom: 0;
    left: -100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0% { transform: translateX(0); }
    15% { transform: translateX(250%); }
    100% { transform: translateX(250%); }
}

/* Smooth Category hover spin */
.category-card:hover .category-card-img {
    transform: scale(1.1) rotate(2deg);
}


/* Custom Admin Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
