/* ==========================================================================
   1. FONTS & ROOT VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-color: #ea580c; 
    --dark-bg: #09090b;       
    --brand-font: 'Bodoni Moda', serif;
    --body-font: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
        scroll-behavior: smooth;
}

/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    border-radius: 10%;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
body { 
    font-family: var(--body-font); 
    background-color: #fff; 
    color: #1a1a1a; 
    overflow-x: hidden;
}

.brand-font { 
    font-family: var(--brand-font); 
}

/* Hide Scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   3. SIDEBAR & MENU (Farfetch Style)
   ========================================================================== */
#sideMenu { 
    transition: var(--transition-smooth); 
    z-index: 210;
}

#menuOverlay { 
    transition: opacity 0.4s ease; 
    pointer-events: none; 
    z-index: 200;
}

#menuOverlay.active { 
    opacity: 1; 
    pointer-events: auto; 
    background-color: rgba(0, 0, 0, 0.6);
}

#dynamic-menu-content {
    transition: opacity 0.3s ease-in-out;
}

.menu-tab {
    transition: all 0.3s ease;
    min-width: 120px;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
}

/* Mobile: reduce menu tab spacing for easier access */
@media (max-width: 640px) {
    .menu-tab {
        min-width: 92px;
        padding: 12px 14px !important;
        font-size: 10px !important;
        letter-spacing: 0.18em !important;
    }
}

/* Global loader logo: SF inside spinning circle */
img[src^="https://i.ibb.co/9FDtN71/IMG-20260306-213826-removebg-preview.png"] {
    width: 80px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 9999px;
    border: 3px solid rgba(234, 88, 12, 0.35);
    border-top-color: #ea580c;
    padding: 10px;
    background-color: #fdf7f0;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.15);
    animation: sf-loader-spin 1s linear infinite;
}

@keyframes sf-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   4. HERO SLIDER (Swiper Customization)
   ========================================================================== */

/* Premium Zoom Effect */
.slide-zoom {
    transition: transform 10s linear !important;
    transform: scale(1);
}

.swiper-slide-active .slide-zoom {
    transform: scale(1.15);
}

/* Branded Pagination (Horizontal Lines) */
.swiper-pagination-bullet {
    width: 40px !important;
    height: 2px !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Branded Navigation Arrows */
.swiper-button-next, 
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    transition: var(--transition-smooth);
    color: white !important;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 18px !important;
}

/* Text Animations for Slides */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.swiper-slide-active .animate-text { 
    animation: fadeInUp 1s ease forwards 0.5s; 
    opacity: 0; 
}

.swiper-slide-active .animate-text-delayed { 
    animation: fadeInUp 1s ease forwards 0.8s; 
    opacity: 0; 
}

.swiper-slide-active .animate-text-button { 
    animation: fadeInUp 1s ease forwards 1.1s; 
    opacity: 0; 
}

/* ==========================================================================
   5. PRODUCT CARDS & GRID
   ========================================================================== */
.product-card {
    transition: var(--transition-smooth);
    will-change: transform;
}

.product-card img {
    border-radius: inherit; 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   6. REVEAL ON SCROLL & SCROLL TOP
   ========================================================================== */
.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform, opacity;
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Scroll Top Button Logic */
#scrollTop {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 500;
}

/* ==========================================================================
   7. CUSTOM BUTTONS & RESPONSIVENESS
   ========================================================================== */
.btn-premium {
    background-color: white;
    color: black;
    padding: 12px 40px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-premium:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 768px) {
    .swiper-slide img {
        height: 80vh; 
    }
    
    .menu-tab {
        min-width: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-premium {
        padding: 10px 25px;
        font-size: 9px;
    }
}

/* for checkout page */
.premium-input {
        width: 100%;
        background-color: #ffffff;
        border: 1px solid #e5e7eb; /* border-gray-200 */
        border-radius: 0.75rem;    /* rounded-xl */
        padding: 1rem;             /* px-4 py-4 */
        font-size: 0.875rem;       /* text-sm */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
    }

    .premium-input:focus {
        border-color: #ea580c;     /* border-orange-600 */
        /* Soft Orange Glow (focus:ring) */
        box-shadow: 0 0 0 4px rgba(254, 242, 242, 0.5); 
    }

    /* Summary Card Glassmorphism */
    .summary-card {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.9);
    }

    /* Custom Scrollbar for summary */
    .custom-scrollbar::-webkit-scrollbar {
        width: 4px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 10px;
    }

    /* jb product pe click kryn tu move wala fucntion */

    /* Swiper Zoom Container Settings */
.swiper-zoom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.swiper-zoom-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}