/* ============================================
   Ghareeb Nawaz Electric Appliances - Stylesheet
   ============================================ */

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
    --bg-primary: #080c10;
    --bg-secondary: #0d1318;
    --bg-card: #111820;
    --bg-card-hover: #161f28;
    --accent: #00d4aa;
    --accent-dim: #00a882;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-glow-strong: rgba(0, 212, 170, 0.3);
    --text-primary: #f0f6ff;
    --text-secondary: #8a9bb0;
    --text-muted: #4a5a6a;
    --border: rgba(0, 212, 170, 0.12);
    --border-hover: rgba(0, 212, 170, 0.4);
    --gold: #f0b429;
    --whatsapp: #25d366;
}

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

/* ── Base Body ── */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── BACKGROUND MESH ── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0,212,170,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,100,200,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    background: rgba(8, 12, 16, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: #080c10;
    box-shadow: 0 0 18px var(--accent-glow-strong);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.nav-brand-sub {
    font-size: 10px;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-links .nav-badge {
    background: linear-gradient(135deg, #ff4d4d, #ff7043);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    position: absolute;
    top: 2px;
    right: 2px;
    letter-spacing: 0.5px;
}
.nav-links li a.active {
    background: var(--accent-glow);
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
}
.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim)) !important;
    color: #080c10 !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
}

.nav-cta:hover {
    box-shadow: 0 0 20px var(--accent-glow-strong) !important;
    background: var(--accent-glow) !important;
    color: var(--accent) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 40px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeDown 0.8s ease both;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 8vw, 100px);
    line-height: 0.95;
    letter-spacing: 2px;
    color: var(--text-primary);
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow-strong);
}

.hero-sub {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    animation: fadeUp 0.8s 0.4s ease both;
}

.hero-btns {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.8s 0.6s ease both;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    animation: fadeUp 0.8s 0.8s ease both;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: auto 0;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #080c10;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 8px 25px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-cart {
    flex: 1;
    background: var(--accent-glow);
    border: 1px solid var(--border-hover);
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.btn-cart:hover {
    background: var(--accent);
    color: #080c10;
    box-shadow: 0 0 20px var(--accent-glow-strong);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--whatsapp);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* ══════════════════════════════════════
   SECTION LAYOUT
══════════════════════════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: 1px;
    color: var(--text-primary);
    line-height: 1;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    max-width: 1400px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

@media (max-width: 480px) {
    .search-bar {
        padding: 10px 14px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    .search-bar input {
        font-size: 13px;
    }
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   FILTER TABS
══════════════════════════════════════ */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* ══════════════════════════════════════
   PRODUCTS GRID
══════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: cardIn 0.6s ease both;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
    background: var(--bg-card-hover);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ff4d4d, #ff7043);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #080c10;
}

.product-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1a22, #0a1520);
}

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

.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-info {
    padding: 18px;
}

.product-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
}

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

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    color: var(--accent);
    letter-spacing: 1px;
}

.product-price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 2px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* ══════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* ── Mobile: Horizontal scrollable strip ── */
@media (max-width: 768px) {
    .categories-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding-bottom: 8px;
        /* Hide scrollbar cross-browser */
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* IE/Edge */
    }
    .categories-grid::-webkit-scrollbar {
        display: none;                /* Chrome/Safari/Opera */
    }
    .cat-card {
        flex: 0 0 130px;
        min-width: 130px;
        padding: 20px 12px;
        border-radius: 14px;
    }
    .cat-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .cat-name {
        font-size: 12px;
    }
    .cat-count {
        font-size: 10px;
    }
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cat-card:hover {
    border-color: var(--border-hover);
    background: var(--accent-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.cat-icon {
    font-size: 38px;
    margin-bottom: 12px;
    display: block;
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cat-count {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   CART SIDEBAR & OVERLAY
══════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 95vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Cart checkbox styling */
.cart-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    margin-right: 8px;
}

/* Select all bar */
.select-all-bar {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-all-bar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cart-sidebar.open {
    right: 0;
}

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

.cart-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.cart-close:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
    display: block;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
    padding: 4px;
}

.cart-item-remove:hover {
    color: #ff4d4d;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   FLOATING CART BUTTON
══════════════════════════════════════ */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border: none;
    color: #080c10;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.3s;
    z-index: 998;
}

@media (max-width: 480px) {
    .floating-cart {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 18px;
        border-radius: 14px;
    }
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4d4d;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* ══════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    max-width: calc(100vw - 40px);
}

@media (max-width: 480px) {
    .toast {
        bottom: 80px;
        right: 16px;
        left: 16px;
        font-size: 13px;
        padding: 12px 16px;
    }
}

.toast.show {
    transform: translateX(0);
}
/* ══════════════════════════════════════
   PAYMENT OPTIONS & ORDER TRACKING
══════════════════════════════════════ */
.payment-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* Order Timeline */
.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: 0 auto 4px;
    transition: all 0.3s;
}

.timeline-dot.completed {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow-strong);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Order Card Enhancements */
.order-card {
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
}

.tracking-badge {
    background: var(--accent-glow);
    border: 1px solid var(--border-hover);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-Confirmed { background: rgba(37,211,102,0.15); color: #25d366; }
.status-Pending { background: rgba(240,180,41,0.15); color: #f0b429; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-brand-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact-item span:first-child {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-copy span {
    color: var(--accent);
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE - MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(8,12,16,0.97);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .hero { padding: 100px 20px 50px; }
    .hero-stats { gap: 24px; }
    .section { padding: 40px 16px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    footer { padding: 40px 20px 20px; }
    .stats-row { grid-template-columns: repeat(4, 1fr); }
    .stat-card { padding: 10px 5px; }
    .stat-card-num { font-size: 22px; }
    .stat-card-label { font-size: 9px; }
    /* Products: 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-img-wrap { height: 170px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 14px; }
    .product-price { font-size: 16px; }
    .btn-cart { font-size: 12px; padding: 8px 10px; }
    /* Section header tighten */
    .section-header { margin-bottom: 20px; }
    .section-title { font-size: 26px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .hero-divider { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    /* Products: 2 small columns on phone */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-img-wrap { height: 140px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .product-desc { display: none; }
    .product-stars { font-size: 11px; }
    .product-price { font-size: 15px; }
    .product-actions { gap: 6px; }
    .btn-cart { font-size: 11px; padding: 7px 8px; }
    .btn-whatsapp { padding: 7px 10px; }
    .section { padding: 32px 14px; }
}
/* ══════════════════════════════════════
   THEME SYSTEM — Light / Dark / System
══════════════════════════════════════ */

/* Light theme overrides */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f7fafc;
    --text-primary: #0d1117;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: rgba(0, 180, 140, 0.18);
    --border-hover: rgba(0, 180, 140, 0.5);
    --accent: #00a882;
    --accent-dim: #007a60;
    --accent-glow: rgba(0, 168, 130, 0.12);
    --accent-glow-strong: rgba(0, 168, 130, 0.28);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0,180,140,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,100,200,0.05) 0%, transparent 60%);
}

[data-theme="light"] nav {
    background: rgba(240,244,248,0.92);
    border-bottom: 1px solid rgba(0,168,130,0.15);
}

[data-theme="light"] .cart-sidebar,
[data-theme="light"] .cart-item:hover {
    background: #f0f4f8;
}

[data-theme="light"] .product-card,
[data-theme="light"] .cat-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Theme switcher panel */
.theme-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 997;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.theme-fab:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .theme-fab {
        bottom: 80px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.theme-panel {
    position: fixed;
    bottom: 155px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    padding: 14px;
    z-index: 996;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
    animation: slideInRight 0.2s ease;
}

.theme-panel.open { display: flex; }

@media (max-width: 480px) {
    .theme-panel {
        bottom: 130px;
        right: 16px;
    }
}

.theme-panel-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    background: none;
    width: 100%;
    transition: all 0.2s;
    text-align: left;
}

.theme-option:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--border-hover);
}

.theme-option.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.theme-option-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
