/* Maryam Chikan - Luxury Chikankari Theme Styles (60-30-10 Rule)
 * 60% Dominant: Crisp Luxury White / Soft Light Neutral (#FFFFFF, #F8FAFC)
 * 30% Secondary: Royal Awadhi Navy Blue (#0B2545, #06182E)
 * 10% Bright Accent: Radiant Sunset Orange (#FF6B00) & Bright Golden Yellow (#FFC700)
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* 60% Dominant Colors (Canvas & Surfaces) */
    --mc-white: #ffffff;
    --mc-bg-light: #f8fafc;
    --mc-bg-pearl: #fdfbf7;
    --mc-border-light: #e2e8f0;
    --mc-text-dark: #0f172a;
    --mc-text-muted: #64748b;

    /* 30% Secondary Colors (Royal Navy Structure) */
    --mc-navy: #0b2545;
    --mc-navy-dark: #06182e;
    --mc-navy-surface: #0f2d54;
    --mc-navy-light: #163d6b;
    --mc-navy-border: #1e3a8a;

    /* 10% Bright Accent Colors (High-Converting Pops) */
    --mc-orange: #ff6b00;
    --mc-orange-hover: #ea580c;
    --mc-orange-light: #fff7ed;
    --mc-yellow: #ffc700;
    --mc-yellow-dark: #d97706;
    --mc-gold: #d4af37;
    --mc-gold-light: #fef08a;
}

/* Strict Mobile Overflow Prevention & Scrollbar Conflict Fix */
html {
    overflow-x: clip;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mc-text-dark);
    background-color: var(--mc-white);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: clip;
    overflow-y: visible !important;
    /* Prevents body from creating a secondary nested vertical scrollbar */
    min-height: 100vh;
    width: 100%;
}

/* When mobile menu drawer is open, lock page scroll cleanly */
body.mobile-menu-active {
    overflow: hidden !important;
    touch-action: none;
}

/* Mobile Menu Drawer & Overlay Positioning */
#mobile-menu-drawer {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    z-index: 70;
}

#mobile-menu-drawer.open {
    transform: translateX(0) !important;
}

#mobile-menu-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 65;
}

#mobile-menu-backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
.font-serif,
.heading-royal {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.015em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

h4 {
    font-size: 1.25rem;
}

/* Whitespace Nowrap Enforcement for interactive elements */
.btn-accent,
.btn-orange,
.btn-gold,
.btn-navy,
.btn-royal-dark,
.btn-outline-navy,
.btn-outline-gold,
.badge-chikan,
.badge-navy,
.badge-orange,
.badge-yellow,
.nav-pill {
    white-space: nowrap !important;
}

/* Alternating Section Themes (60-30 Rule) */
.section-light {
    background-color: var(--mc-white);
    color: var(--mc-text-dark);
    border-top: 1px solid var(--mc-border-light);
    border-bottom: 1px solid var(--mc-border-light);
    position: relative;
    overflow: hidden;
}

.section-light-alt {
    background-color: var(--mc-bg-light);
    color: var(--mc-text-dark);
    border-top: 1px solid var(--mc-border-light);
    border-bottom: 1px solid var(--mc-border-light);
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--mc-navy-dark);
    background-image: radial-gradient(circle at 50% 20%, #0d325e 0%, #06182e 80%);
    color: #f8fafc;
    border-top: 1px solid #13335a;
    border-bottom: 1px solid #13335a;
    position: relative;
    overflow: hidden;
}

/* Background Fabric Watermark Overlays */
.fabric-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.fabric-overlay-light {
    background-image: url('../images/backgrounds/bg-fabric-light.jpg');
    opacity: 0.04;
}

.fabric-overlay-dark {
    background-image: url('../images/backgrounds/bg-fabric-dark.jpg');
    opacity: 0.08;
}

/* Mega Menu Dropdown - Seamlessly Merged with Navigation Header */
.mega-menu-wrapper {
    position: static;
}

.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 96vw);
    background: #ffffff;
    border-top: 3px solid #FFC700;
    border-bottom: 2px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 25px 50px -12px rgba(11, 37, 69, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    margin-top: 0;
}

.mega-menu-wrapper:hover .mega-menu-dropdown,
.mega-menu-wrapper:focus-within .mega-menu-dropdown,
.mega-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    .mega-menu-dropdown {
        display: none !important;
    }
}

/* Category Card in Mega Menu */
.mega-cat-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
}

.mega-cat-card:hover {
    border-color: #ff6b00;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(255, 107, 0, 0.2);
}

.mega-cat-card img {
    transition: transform 0.5s ease;
}

.mega-cat-card:hover img {
    transform: scale(1.08);
}

/* Product Card Styling */
.product-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(11, 37, 69, 0.15);
    border-color: #ff6b00;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

/* 10% Bright Accent Buttons & Badges (From onlineelectric.in inspiration) */
.btn-accent,
.btn-orange,
.btn-gold {
    background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.btn-accent:hover,
.btn-orange:hover,
.btn-gold:hover {
    background: linear-gradient(135deg, #ff8533 0%, #c2410c 100%);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Secondary Royal Navy Buttons */
.btn-navy,
.btn-royal-dark {
    background: #0b2545;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
}

.btn-navy:hover,
.btn-royal-dark:hover {
    background: #163d6b;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(11, 37, 69, 0.35);
    transform: translateY(-2px);
}

.btn-outline-navy {
    background: transparent;
    border: 2px solid #0b2545;
    color: #0b2545;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-navy:hover {
    background: #0b2545;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(11, 37, 69, 0.2);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid #ffc700;
    color: #ffc700;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-gold:hover {
    background: #ffc700;
    color: #0b2545;
    box-shadow: 0 6px 18px rgba(255, 199, 0, 0.35);
}

/* Category Pill Badges (Like reference screenshot) */
.pill-category-badge {
    background-color: #0b2545;
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(11, 37, 69, 0.2);
}

/* Badges */
.badge-chikan,
.badge-orange {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 9999px;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 9999px;
}

.badge-navy {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 9999px;
}

/* Toast Notification */
#mc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 380px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar - Restricted to Desktop / Pointer Fine to prevent mobile scrollbar conflicts */
@media (min-width: 769px) and (pointer: fine) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    ::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #0b2545;
    }
}

/* Touch-friendly horizontal scroll utility without forced scrollbar bars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* AOS Mobile Containment: prevent horizontal stretch during fade animations */
[data-aos] {
    pointer-events: auto !important;
}

html.aos-animate,
body[data-aos-easing] {
    overflow-x: clip !important;
}