/**
 * AN-NASR TRAVEL & TOUR - CENTRAL DESIGN SYSTEM
 * Consolidating consistency, luxury aesthetic and accessibility.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Luxury Navy & Gold */
    --primary: #0B1533;      /* Deep Navy */
    --primary-light: #1A284D;
    --brand: #1E5EFF;        /* Vibrant Blue for CTAs */
    --brand-dark: #0f3fd6;
    --accent: #F4B400;       /* Gold */
    --accent-soft: #FEF3C7;
    --success: #10B981;
    --danger: #EF4444;

    /* Neutral Scale */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --ink: #0F172A;
    --muted: #64748B;
    --line: #E2E8F0;

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Layout */
    --header-height: 64px;
    --radius: 12px;
    --radius-lg: 24px;
}

/* ── RESET & BASE ────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Fluid typography base */
    font-size: clamp(14px, 0.95rem + 0.25vw, 18px);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.home-page { padding-top: 0; }

a { color: inherit; text-decoration: none; transition: 0.2s; min-height: 44px; display: inline-flex; align-items: center; }
/* Reset inline-flex for non-nav links */
p a, span a, .btn, .nav-links-modern a { display: inline-flex; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Responsive Media Utilities */
video, iframe, embed, object { max-width: 100%; border: 0; }

/* ── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 5vw, 2rem); }

.text-primary { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.text-ink { color: var(--ink); }
.bg-light-soft { background: #f8fafc !important; }
.text-white { color: #fff !important; }
.border-white { border-color: #fff !important; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── LAYOUT ──────────────────────────────── */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.section-padding { padding: clamp(60px, 10vw, 120px) 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .container { max-width: 950px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .flex-mobile-col { flex-direction: column !important; }
    .hide-mobile { display: none !important; }
    .text-center-mobile { text-align: center !important; }
    .container { padding: 0 20px; }
}

@media (max-width: 576px) {
    .container { padding: 0 16px; }
    .gap-6 { gap: 1rem; }
    .gap-8 { gap: 1.25rem; }
    .section-padding { padding: 40px 0; }
}

/* ── LUXURY NOTIFICATION POPUP ── */
.lux-toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.lux-toast {
    background: #fff;
    border-radius: 20px;
    padding: 16px 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 320px;
    max-width: 420px;
    pointer-events: auto;
    cursor: pointer;
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: 0.3s;
}

.lux-toast:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

.lux-toast.hide { animation: toastOut 0.4s ease forwards; }

.lux-toast-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.lux-toast-icon.primary { background: #eff6ff; color: #1e5eff; }
.lux-toast-icon.success { background: #ecfdf5; color: #10b981; }
.lux-toast-icon.warning { background: #fffbeb; color: #f59e0b; }

.lux-toast-content { flex: 1; min-width: 0; }
.lux-toast-title { font-weight: 800; font-size: 0.95rem; color: var(--ink); margin-bottom: 2px; }
.lux-toast-msg { font-size: 0.82rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(50px) scale(0.9); }
}

@media (max-width: 600px) {
    .lux-toast-container { right: 10px; left: 10px; top: 20px; }
    .lux-toast { min-width: 0; width: 100%; }
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 10px;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(30, 94, 255, 0.3);
}
.btn-brand:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(30, 94, 255, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}
.btn-accent:hover {
    background: #e0a500;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--line);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f1f5f9;
    color: var(--muted);
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-brand { background: #dbeafe; color: #1e40af; }

/* ── FORM ELEMENTS ───────────────────────── */
input, select, textarea {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 20px;
    width: 100%;
    font-family: inherit;
    transition: 0.2s;
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.1);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

/* ── HELPERS ─────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.shadow-luxury {
    box-shadow: 0 10px 30px -5px rgba(11, 21, 51, 0.1), 0 20px 25px -5px rgba(11, 21, 51, 0.04);
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.d-none { display: none !important; }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* Luxury Typography */
.ls-wide { letter-spacing: 0.1em; }
.text-gold { color: var(--accent); }
.font-serif { font-family: 'Playfair Display', serif; }

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .hidden:not(.show) {
        visibility: hidden;
        height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .show {
        visibility: visible !important;
        height: auto !important;
    }
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(to right, rgba(11, 21, 51, 0.9), rgba(11, 21, 51, 0.7)), url('../images/dubai.jpg') center/cover;
    padding: 180px 0 120px;
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .page-banner { padding: 140px 20px 80px; }
    .page-banner h1 { font-size: 2.2rem; }
    .page-banner p.lead { font-size: 0.95rem; }
}
.page-banner h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.page-banner .eyebrow {
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
}

/* Utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-pill { border-radius: 999px !important; }
.overflow-hidden { overflow: hidden; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.flex-1 { flex: 1 1 0%; }
.ms-auto { margin-left: auto; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mt-8 { margin-top: 2.5rem; }
.mt-12 { margin-top: 4rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.p-4 { padding: 1.5rem; }
.bg-white { background-color: #fff; }
.bg-navy { background-color: var(--primary); }
.border-none { border: none !important; }
.border-bottom { border-bottom: 1px solid var(--line); }
.uppercase { text-transform: uppercase; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.text-brand { color: var(--brand); }
.fs-4 { font-size: 1.5rem; }
.fs-5 { font-size: 1.25rem; }
.h5 { font-size: 1.25rem; line-height: 1.35; }
.lead { font-size: 1.125rem; line-height: 1.75; }
.display-3 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.05; }
.display-5 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.btn-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.btn-link:hover { color: var(--brand-dark); }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (min-width: 992px) {
    .ps-lg-5 { padding-left: 3rem; }
}

/* Luxury Divider */
.hr-gold {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 20px 0;
    border: none;
}
.hr-gold.mx-auto { margin-left: auto; margin-right: auto; }

/* ── PAGE COMPONENTS ──────────────────────── */

/* Stats Bar */
.stats {
    background: var(--primary);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    margin: -40px auto 40px;
    width: 100%;
    max-width: 1180px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    position: relative;
}

.stat-box {
    padding: 40px 30px;
    color: #fff;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.stat-box:last-child { border-right: none; }

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.8;
}

.stat-info { text-align: left; }
.stat-box strong { display: block; font-size: 1.8rem; line-height: 1; font-weight: 800; }
.stat-box span { font-size: 0.85rem; opacity: 0.7; font-weight: 500; }

@media (max-width: 992px) {
    .stats { grid-template-columns: repeat(2, 1fr); margin: 20px; }
    .stat-box { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-box:nth-child(even) { border-right: none; }
    .hide-tablet { display: none !important; }
}

@media (max-width: 576px) {
    .stats {
        grid-template-columns: 1fr;
        margin: 10px;
        border-radius: 20px;
        padding: 5px 0;
    }
    .stat-box {
        padding: 18px 24px;
        gap: 18px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        justify-content: flex-start;
        text-align: left;
    }
    .stat-box:last-child { border-bottom: none; }
    .stat-icon { font-size: 1.4rem; width: 36px; text-align: center; }
    .stat-box strong { font-size: 1.4rem; }
    .stat-box span { font-size: 0.75rem; }
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
    align-items: center;
    width: 100%;
}

.split-copy h2 { font-size: 2.8rem; margin-bottom: 24px; color: var(--primary); }
.split-copy h2 span { color: var(--brand); position: relative; }
.split-copy h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0;
    width: 100%; height: 8px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.icon-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.split-copy p { margin-bottom: 20px; color: var(--muted); font-size: 1.05rem; }

.benefits { display: grid; gap: 15px; margin-top: 30px; }
.benefits div { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); }
.benefits i { color: var(--success); font-size: 1.1rem; }

.feature-panel {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.feature-panel h3 { margin-bottom: 24px; font-size: 1.6rem; color: var(--primary); }
.feature-panel ul { display: grid; gap: 14px; }
.feature-panel li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.feature-panel li i { color: var(--accent); margin-top: 5px; }

@media (max-width: 850px) {
    .split-section { grid-template-columns: 1fr; gap: 40px; }
}

/* Service Cards */
.section-block { padding: 80px 0; }
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-size: 2.8rem; margin-bottom: 15px; color: var(--primary); }
.section-heading p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.bg-light { background: #f8fafc; }

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: 0.3s;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--brand); box-shadow: var(--shadow-lg); }

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}
.service-card h3 { margin-bottom: 15px; font-size: 1.3rem; color: var(--primary); }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.services {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.services .service-card {
    min-height: 290px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.services .service-card > i {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eef4ff;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--brand);
}

@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }
}

/* Process Grid */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.process-step { padding: 40px; background: var(--bg); border-radius: var(--radius-lg); position: relative; }
.process-step span {
    position: absolute; top: 20px; right: 30px;
    font-size: 4rem; font-weight: 900; color: var(--primary); opacity: 0.05;
}
.process-step h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.4rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* Testimonials */
.testimonials { background: #f1f5f9; padding: 100px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial { background: #fff; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.testimonial p { font-style: italic; color: var(--primary); margin-bottom: 20px; font-size: 1rem; }
.testimonial h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.testimonial span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; cursor: pointer; }
.faq-list summary { font-weight: 700; font-size: 1.1rem; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::after { content: '\f0fe'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--brand); transition: 0.3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding-top: 15px; color: var(--muted); line-height: 1.8; }

.newsletter {
    background: var(--primary); padding: 60px; border-radius: var(--radius-lg); color: #fff;
    display: flex; flex-direction: column; justify-content: center;
}
.newsletter h3 { font-size: 2.2rem; margin-bottom: 15px; color: #fff; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

/* ── RIPPLE EFFECT ────────────────────────── */
.ripple { position: relative; overflow: hidden; }
.ripple-effect-span {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: ripple-animation 0.6s linear;
}
@keyframes ripple-animation {
    to {
        transform: translate(-50%, -50%) scale(25);
        opacity: 0;
    }
}

/* ── NAVIGATION ──────────────────────────── */
.site-header {
    height: 64px; /* Reduced from 80px */
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 60px;
}

.navbar-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 2px solid #fff;
    background: #fff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-circle:hover { transform: scale(1.05); }

/* Desktop Navigation Links */
.nav-links-modern {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links-modern li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    transition: 0.2s ease;
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: auto;
}

.nav-links-modern li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: 0.3s;
}

.nav-links-modern li a:hover::after,
.nav-links-modern li a.active::after {
    width: 100%;
}

.nav-links-modern li a.active { color: var(--brand); }

/* Header Actions */
.header-actions-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Action Buttons Base */
.action-btn, .login-btn-modern, .hamburger-modern, .compact-pref-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.action-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ink);
    position: relative;
    border: 1px solid var(--line);
    font-size: 1.1rem;
}

.action-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff;
    transform: translateY(-2px);
}

.cart-badge-modern {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-btn-modern {
    height: 48px;
    background: var(--primary);
    color: #fff !important;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.login-btn-modern:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 21, 51, 0.2);
}

.hamburger-modern {
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: 12px;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.hamburger-modern span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger-modern.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-modern.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger-modern.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Preferences Dropdown */
.pref-dropdown-container { position: relative; }
.compact-pref-btn {
    height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
    padding: 0 16px; font-weight: 700; font-size: 0.85rem; color: var(--ink);
    display: flex; align-items: center; cursor: pointer; transition: 0.3s;
}
.compact-pref-btn:hover { border-color: var(--brand); background: #f8fafc; }

.pref-menu-modern {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 260px; background: #fff; border-radius: 20px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: 24px; z-index: 1000; display: none;
}
.pref-menu-modern.open { display: block; animation: slideUp 0.3s ease; }

.pref-group label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.modern-select { background: #f8fafc; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.btn-save-pref { width: 100%; margin-top: 20px; background: var(--brand); color: #fff; border: none; border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE OVERRIDES ── */

/* Desktop Specifics (>= 992px) */
@media (min-width: 992px) {
    .hamburger-modern { display: none !important; }
    .desktop-nav { display: flex !important; }
    .hide-tablet { display: flex !important; }
}

/* Tablet & Smaller Navigation */
@media (max-width: 991px) {
    .site-header { height: 64px; }
    .site-header.scrolled { height: 64px; }
    .logo-circle { width: 42px; height: 42px; }
    .desktop-nav { display: none !important; }
    .hamburger-modern { display: flex !important; }
    .pref-dropdown-container { display: none !important; }
    .hide-tablet { display: none !important; }

    .navbar-modern { padding: 0 16px; }
    .header-actions-modern { gap: 10px; }

    .action-btn, .hamburger-modern { width: 44px; height: 44px; border-radius: 12px; }
    .login-btn-modern { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 0.9rem; }
}

/* Mobile Specifics */
@media (max-width: 767px) {
    .header-actions-modern { gap: 8px; }
    .action-btn, .hamburger-modern { width: 40px; height: 40px; border-radius: 10px; }
    .login-btn-modern { height: 40px; padding: 0 12px; border-radius: 10px; font-size: 0.8rem; }

    .cart-badge-modern { width: 16px; height: 16px; font-size: 0.6rem; top: -3px; right: -3px; }
}

/* Small Phone Adjustments */
@media (max-width: 480px) {
    .login-btn-modern span { display: none; }
    .login-btn-modern { width: 40px; padding: 0; }
    .login-btn-modern i { margin-right: 0 !important; font-size: 1.2rem; }
}

.user-header-initial {
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-avatar-small {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
}
.user-info-text .label { display: block; font-size: 0.7rem; opacity: 0.7; }
.user-info-text .name { display: block; font-size: 0.9rem; font-weight: 700; }

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 85%; max-width: 320px; height: 100vh;
    background: #ffffff; z-index: 2000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.nav-drawer.open { right: 0; }

.drawer-header {
    padding: 30px 24px;
    border-bottom: 1px solid var(--line);
    position: relative;
    text-align: center;
}

.drawer-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}
.drawer-close:hover { background: var(--danger); color: #fff; }

.drawer-logo {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.drawer-brand-name {
    font-size: 1.1rem; font-weight: 900; color: var(--primary);
    margin-bottom: 4px; letter-spacing: -0.02em;
}
.drawer-brand-tagline { font-size: 0.75rem; color: var(--muted); margin-bottom: 0; }

.drawer-content { flex: 1; overflow-y: auto; padding: 24px; }

/* User Promo & Profile in Drawer */
.drawer-promo-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid var(--line);
}
.drawer-promo-card p { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 15px; }
.drawer-auth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.drawer-user-profile {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary); color: #fff;
    padding: 16px; border-radius: 16px; margin-bottom: 24px;
}

/* Drawer Navigation List */
.nav-section-group { margin-bottom: 30px; }
.section-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    color: var(--muted); letter-spacing: 0.1em; margin-bottom: 12px; padding-left: 10px;
}

.refined-drawer-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.refined-drawer-list li a {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; color: #475569;
    transition: 0.2s;
    min-height: auto;
}
.refined-drawer-list li a i {
    width: 32px; height: 32px; border-radius: 8px;
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--brand); transition: 0.2s;
}
.refined-drawer-list li a:hover,
.refined-drawer-list li a.active {
    background: #eef4ff; color: var(--brand);
}
.refined-drawer-list li a.active i,
.refined-drawer-list li a:hover i {
    background: var(--brand); color: #fff;
}

/* Drawer Footer */
.drawer-footer {
    padding: 24px; border-top: 1px solid var(--line);
    text-align: center; background: #fff;
}
.social-links-drawer { display: flex; justify-content: center; gap: 12px; margin-bottom: 15px; }
.social-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: #f1f5f9; color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; transition: 0.3s;
}
.social-btn:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.copyright-small { font-size: 0.7rem; color: var(--muted); margin: 0; }

/* ── WISHLIST BUTTON ── */
.wishlist-btn-v5 {
    position: absolute; top: 15px; right: 15px;
    width: 36px; height: 36px; background: rgba(255, 255, 255, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 15; cursor: pointer; color: var(--muted); transition: 0.3s; border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.wishlist-btn-v5:hover { color: #ef4444; background: #fff; transform: scale(1.1); }
.wishlist-btn-v5 i.fas { color: #ef4444; }

/* Global Responsive Base */
@media (max-width: 1200px) {
    .grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .container { max-width: 100%; padding: 0 2rem; }
    .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
    .section-padding { padding: 4rem 0; }
    h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    h2 { font-size: clamp(1.65rem, 6vw, 2rem); }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    button, .btn, a, input, select, textarea { min-height: 44px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    .section-padding { padding: 3rem 0; }
}
