/* ==========================================================================
   Shop MediaOfficers Modern E-Commerce Stylesheet
   ========================================================================== */

:root {
    --primary: #2D2A6E;
    --primary-hover: #1f1c52;
    --primary-light: #f4f3ff;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
    background-color: var(--secondary);
    color: #94a3b8;
    font-size: 12.5px;
    padding: 6px 0;
    line-height: 1.4;
    overflow: hidden;
    width: 100%;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 28px;
    width: 100%;
    max-width: 1240px;
}

.top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.top-coupon-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.coupon-badge {
    background: #f59e0b;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.coupon-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f1f5f9;
}

.coupon-code-pill {
    background: rgba(255,255,255,0.18);
    border: 1px dashed rgba(255,255,255,0.4);
    padding: 1px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 800;
    color: #fef08a;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.coupon-code-pill:hover {
    background: rgba(255,255,255,0.28);
}

.coupon-countdown {
    color: #fca5a5;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 12px;
}

.top-bar a:hover {
    color: #ffffff;
}

.currency-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.22);
}

.currency-switcher-pill .currency-label {
    opacity: 0.8;
    margin-right: 2px;
}

.currency-switcher-pill .currency-link {
    color: #cbd5e1;
    opacity: 0.85;
    padding: 1px 6px;
    border-radius: 10px;
    text-decoration: none;
}

.currency-switcher-pill .currency-link.active {
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.26);
    opacity: 1;
}

.currency-switcher-pill .currency-divider {
    opacity: 0.35;
}

.top-account-link {
    font-weight: 700;
    color: #fff !important;
    background: rgba(255,255,255,0.14);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11.5px !important;
}

.top-logout-link {
    color: #fca5a5 !important;
    font-size: 11px !important;
}

.top-announcement-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo span {
    color: var(--primary);
}

.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    padding-right: 45px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    background: #f1f5f9;
}

.nav-pill:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.cart-btn {
    position: relative;
    background: var(--primary);
    color: #ffffff !important;
}

.cart-btn:hover {
    background: var(--primary-hover);
}

.cart-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    padding: 2px 7px;
    margin-left: 4px;
}

.nav-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Hero Section & Banners (High-Converting Split Layout)
   ========================================================================== */

.hero-banner {
    background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0f172a 70%);
    color: #ffffff;
    padding: 50px 0;
    border-radius: 20px;
    margin: 20px 0 35px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.5);
}

.hero-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-title .text-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff !important;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(45, 42, 110, 0.35);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 42, 110, 0.45);
}

.btn-hero-deal {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}

.btn-hero-deal:hover {
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.55);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.hero-stars {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Spotlight Card (Deal of the Day) */
.spotlight-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #3b82f6);
}

.spotlight-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.spotlight-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.spotlight-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
}

.spotlight-title a {
    color: #ffffff;
}

.spotlight-title a:hover {
    color: #60a5fa;
}

.spotlight-features {
    list-style: none;
    margin: 12px 0 16px;
    padding: 0;
}

.spotlight-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.spotlight-features li .check-icon {
    color: #10b981;
    font-weight: 800;
}

.spotlight-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-price {
    font-size: 26px;
    font-weight: 800;
    color: #34d399;
}

.spotlight-old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.spotlight-discount-badge {
    background: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: auto;
}

.btn-spotlight-buy {
    width: 100%;
    background: #059669;
    color: #ffffff !important;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-spotlight-buy:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

/* ==========================================================================
   Digital Trust Highlights (Replaces Physical Couriers)
   ========================================================================== */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 45px;
}

.trust-item {
    background: var(--surface);
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.trust-icon-blue   { background: #eff6ff; color: #2563eb; }
.trust-icon-green  { background: #ecfdf5; color: #059669; }
.trust-icon-purple { background: #faf5ff; color: #9333ea; }
.trust-icon-amber  { background: #fffbeb; color: #d97706; }

.trust-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 3px;
}

.trust-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   Product Grid & Cards
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--primary);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.regular-price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.badge-digital-instant {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #38bdf8;
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    z-index: 2;
}

.card-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #d97706;
    margin-bottom: 6px;
}

.card-rating-stars {
    letter-spacing: 1px;
}

.card-rating-count {
    color: var(--text-muted);
    font-size: 11.5px;
}

.card-actions {
    margin-top: 14px;
}

.card-btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-buy-now {
    flex: 1.35;
    background: #059669;
    color: #ffffff !important;
    border: none;
    padding: 9px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-buy-now:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45);
}

.btn-add-cart-outline {
    flex: 1;
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 9px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.btn-add-cart-outline:hover {
    background: #eff6ff;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.gallery-main {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.product-meta-row {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.merchant-verified-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
}

.detail-old-price {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-short-desc {
    font-size: 15px;
    color: #475569;
    margin-bottom: 25px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qty-input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-buy-now {
    flex: 1;
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.btn-buy-now:hover {
    background: #15803d;
}

/* ==========================================================================
   Shopping Cart & Checkout
   ========================================================================== */

.cart-table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: #f8fafc;
    padding: 14px 20px;
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.cart-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.checkout-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

/* Payment Gateway Options in Checkout */
.gateway-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}

.gateway-card:hover {
    border-color: #93c5fd;
}

.gateway-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.gateway-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
}

.gateway-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 26px;
}

/* ==========================================================================
   Thank You / Order Confirmation Page
   ========================================================================== */

.thank-you-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 850px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
}

.thank-you-header {
    text-align: center;
    margin-bottom: 35px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.thank-you-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.thank-you-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Delivery Timeline Tracker */
.delivery-timeline {
    display: flex;
    justify-content: space-between;
    margin: 35px 0;
    position: relative;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 8px;
    transition: all 0.2s;
}

.timeline-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.timeline-step.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: #ffffff;
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}

.step-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-accent { background: #ffedd5; color: #9a3412; }

/* ==========================================================================
   Admin Layout
   ========================================================================== */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #0f172a;
}

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
    z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #0f172a;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.admin-brand {
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}

.admin-nav {
    padding: 10px 10px 30px;
    flex: 1;
    list-style: none;
    margin: 0;
}

.admin-nav li {
    margin-bottom: 3px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #1e293b;
    color: #ffffff;
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: #f1f5f9;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-content-body {
    flex: 1;
}

.admin-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 6px;
}

/* ==========================================================================
   Footer - MediaOfficers Dark Indigo Theme (#2D2A6E)
   ========================================================================== */

.main-footer {
    background: #2D2A6E;
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: auto;
}

.mo-footer-grid {
    display: grid;
    grid-template-columns: 2.3fr 0.85fr 1.05fr 1.6fr;
    gap: 36px;
    align-items: start;
}

.mo-footer-brand p {
    font-size: 12.5px;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.mo-footer-brand p strong {
    color: #ffffff;
    font-weight: 700;
}

.mo-footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.mo-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.mo-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mo-social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.mo-social-facebook {
    background: #1877F2;
}

.mo-social-youtube {
    background: #FF0000;
}

.mo-social-linkedin {
    background: #0A66C2;
}

.mo-social-x {
    background: #0f1419;
}

.mo-footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.mo-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mo-footer-col ul li {
    margin-bottom: 10px;
}

.mo-footer-col a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.mo-footer-col a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Contact White Card */
.mo-contact-card {
    background: #ffffff;
    border-radius: 16px 45px 16px 20px;
    padding: 26px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #1e293b;
}

.mo-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.5;
}

.mo-contact-item:last-child {
    margin-bottom: 0;
}

.mo-contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #2D2A6E;
    stroke: currentColor;
}

.mo-contact-link {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mo-contact-link:hover {
    color: #2D2A6E;
    text-decoration: underline;
}

.mo-contact-text {
    color: #334155;
    font-size: 13px;
}

/* Bottom Bar */
.mo-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #cbd5e1;
    flex-wrap: wrap;
    gap: 16px;
}

.mo-payment-badges {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mo-payment-badge {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .mo-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .mo-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .mo-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .mo-payment-badges {
        justify-content: center;
    }
}

/* Flash alerts */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* Category Showcase Modern */
.cat-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cat-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cat-card-modern:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.12);
}

.cat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.cat-card-modern:hover .cat-icon-wrap {
    transform: scale(1.1);
}

.cat-card-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.cat-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Why Choose Us Section */
.why-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 45px 35px;
    margin: 50px 0;
    box-shadow: var(--shadow-sm);
}

.why-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 35px;
}

.why-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.why-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.why-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.why-card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.why-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.why-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.why-card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.why-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Verified Customer Testimonials */
.testimonials-section {
    margin: 50px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.author-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.author-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #059669;
    font-weight: 600;
    font-size: 11px;
}

/* Objection-Killing Buyer FAQ */
.faq-section {
    margin: 50px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.faq-q {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-q-icon {
    color: #2563eb;
    font-weight: 800;
    font-size: 16px;
}

.faq-a {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    padding-left: 24px;
}

/* Bottom Urgency CTA Banner */
.bottom-cta-banner {
    background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 48px 30px;
    text-align: center;
    color: #ffffff;
    margin: 50px 0 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
}

.bottom-cta-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.bottom-cta-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 25px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .product-detail-layout, .checkout-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-banner {
        padding: 35px 15px;
        margin: 15px 0 25px;
    }
    .hero-title {
        font-size: 26px !important;
        line-height: 1.25;
    }
    .hero-desc {
        font-size: 14.5px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions a, .hero-actions button {
        width: 100%;
        text-align: center;
    }
    .card-btn-group {
        flex-direction: column;
    }
    .btn-buy-now, .btn-add-cart-outline {
        width: 100%;
    }
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .thank-you-card {
        padding: 20px;
    }
    .why-section {
        padding: 30px 18px;
    }
    .bottom-cta-banner {
        padding: 35px 18px;
    }
    .bottom-cta-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Single Floating WhatsApp Button & Product CTA Styling
   ========================================================================== */
.mo-floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #ffffff !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.25s ease;
}

.mo-floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    body.has-sticky-bar .mo-floating-whatsapp {
        bottom: 85px !important;
    }
}

@media print {
    .mo-floating-whatsapp, .sticky-mobile-cta {
        display: none !important;
    }
}

/* Product CTAs: Strict contrast guarantees */
.mo-btn-buy-now {
    flex: 1.2;
    background: #059669 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 22px;
    font-weight: 800;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mo-btn-buy-now:hover {
    background: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
    color: #ffffff !important;
}

.mo-btn-add-cart {
    flex: 0.8;
    background: #ffffff !important;
    color: #2563eb !important;
    border: 2px solid #2563eb !important;
    padding: 14px 20px;
    font-weight: 700;
    border-radius: 8px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mo-btn-add-cart:hover {
    background: #f4f4fa !important;
    color: #1f1c52 !important;
    border-color: #1f1c52 !important;
}

/* Service-Specific CTA Accent */
.mo-btn-consultation {
    background: #2D2A6E !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(45, 42, 110, 0.4) !important;
}
.mo-btn-consultation:hover {
    background: #1f1c52 !important;
    box-shadow: 0 6px 20px rgba(45, 42, 110, 0.5) !important;
}

/* Dynamic Homepage Merchandising Product Rows */
.mo-product-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .mo-product-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding-bottom: 14px;
        margin-bottom: 30px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .mo-product-row::-webkit-scrollbar {
        height: 5px;
    }
    .mo-product-row::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 9999px;
    }
    .mo-product-row > .mo-product-card {
        flex: 0 0 78%;
        max-width: 290px;
        scroll-snap-align: start;
    }
}

/* Hide floating reCAPTCHA v3 badge so it does not appear as a popup */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Ensure no modal or popup overlays display */
#addedToCartModal,
#exitIntentModal {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Responsive Header, Top Bar & Mobile Drawer Navigation
   ========================================================================== */

.admin-top-ribbon {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12px;
    padding: 6px 20px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1001;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.admin-top-ribbon a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.admin-top-ribbon a:hover {
    color: #38bdf8;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.mobile-nav-toggle:hover {
    background: #f1f5f9;
}

/* Mobile Drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 2001;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.mobile-drawer-body {
    padding: 20px;
    flex: 1;
}

.mobile-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.mobile-drawer-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-menu a {
    display: block;
    padding: 12px 6px;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.mobile-drawer-menu a:hover {
    color: var(--primary);
    background: #f8fafc;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-bar {
        display: none; /* Handled inside mobile drawer */
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 6px 14px;
    }

    .top-bar-left {
        justify-content: center;
        width: 100%;
        white-space: normal;
    }

    .top-announcement-text {
        white-space: normal;
        text-align: center;
        font-size: 11.5px;
    }

    .top-coupon-banner {
        justify-content: center;
        gap: 6px;
    }

    .top-bar-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .search-box {
        display: none; /* Placed in mobile drawer */
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 5px 0;
    }
    .top-coupon-banner .coupon-text {
        display: none; /* Hide verbose text on mobile so badge + code + countdown remain clean on 1 row */
    }
    .main-header {
        padding: 10px 0;
    }
    .header-content {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .header-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .brand-logo img {
        max-height: 32px !important;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .header-actions .support-nav-pill {
        display: none !important; /* Kept in drawer and topbar to prevent header clutter */
    }
    .nav-pill {
        padding: 6px 10px;
        font-size: 12.5px;
        white-space: nowrap;
    }
    .top-support-link {
        display: none; /* Kept in drawer and footer */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .brand-logo img {
        max-height: 28px !important;
    }
    .header-left {
        gap: 6px;
    }
    .mobile-nav-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .header-actions {
        gap: 5px;
    }
    .nav-pill {
        padding: 5px 8px;
        font-size: 12px;
    }
    .header-actions .nav-pill-text {
        display: none; /* Icon-only (👤) on narrow mobile screens to guarantee single-line header */
    }
    .cart-btn .nav-pill-text {
        display: inline; /* Keep 'Cart' text or badge */
    }
    .top-bar-right {
        gap: 6px;
    }
    .currency-switcher-pill {
        font-size: 10px;
        padding: 2px 5px;
    }
    .top-account-link {
        font-size: 10.5px !important;
        padding: 2px 6px;
    }
}



