:root {
    --navy: #0b132b;
    --ink: #111827;
    --blue: #2563eb;
    --cyan: #00d4ff;
    --yellow: #facc15;
    --soft: #f5f7fa;
    --line: #e5e7eb;
}

* { box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--soft);
    color: #222;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.top-strip {
    background: #071022;
    color: #dce9ff;
    font-size: 13px;
    padding: 8px 0;
}
.top-strip a { color: var(--cyan); }
.main-navbar {
    background: rgba(11, 19, 43, .97);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.navbar-toggler { background: #fff; }
.logo {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}
.logo i { color: var(--cyan); }
.main-navbar .nav-link {
    color: #f8fbff;
    font-weight: 500;
    padding: 18px 12px;
}
.main-navbar .nav-link:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(0,212,255,.8); }
.mega-menu {
    min-width: 520px;
    background: #111b36;
    border: 1px solid rgba(0,212,255,.25);
}
.mega-link {
    color: #fff;
    display: block;
    padding: 8px;
    border-radius: 6px;
}
.mega-link:hover { background: rgba(0,212,255,.12); color: var(--cyan); }
.search-box {
    position: relative;
    display: flex;
    width: min(280px, 100%);
    background: #fff;
    border-radius: 8px;
    overflow: visible;
}
.search-box input {
    border: 0;
    outline: 0;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}
.search-box button {
    border: 0;
    background: var(--cyan);
    color: var(--navy);
    width: 44px;
    border-radius: 0 8px 8px 0;
}
.live-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    z-index: 50;
    overflow: hidden;
}
.live-search-results a {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}
.live-search-results img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}
.live-search-results small { display: block; color: var(--blue); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-actions a {
    color: #fff;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    position: relative;
}
#cartCount {
    position: absolute;
    right: -7px;
    top: -7px;
    background: var(--yellow);
    color: #111;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}
.hero {
    background: radial-gradient(circle at top left, rgba(0,212,255,.22), transparent 34%), linear-gradient(135deg, #081022, #1c2541);
    color: #fff;
}
.hero-grid {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-block: 44px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.02;
}
.hero p { color: #dce9ff; font-size: 18px; max-width: 560px; }
.hero img {
    height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.eyebrow {
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0;
}
.btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 18px;
}
.btn-neon {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #061026;
    border: 0;
    box-shadow: 0 0 22px rgba(0,212,255,.35);
}
.btn-neon:hover { color: #061026; transform: translateY(-1px); }
.btn-dark-blue { background: var(--navy); color: #fff; }
.section, .page { padding: 64px 0; }
.section-soft { background: #fff; }
.section-title { margin-bottom: 28px; }
.section-title span { color: var(--blue); font-weight: 700; }
.section-title h2, .page-head h1 { font-weight: 800; color: var(--ink); }
.page-head { margin-bottom: 32px; }
.page-head p { color: #64748b; }
.category-card {
    min-height: 210px;
    display: grid;
    align-content: end;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    transition: .35s;
}
.category-card strong {
    position: relative;
    color: #fff;
    padding: 18px;
    font-size: 18px;
}
.category-card:hover img { transform: scale(1.08); opacity: .9; }
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(15,23,42,.08);
    transition: .25s;
    height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(37,99,235,.15); }
.product-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef3fb;
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}
.product-card:hover img { transform: scale(1.06); }
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--yellow);
    color: #111;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 6px;
}
.discount-badge.static { position: static; display: inline-flex; }
.quick-view {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
}
.product-body { padding: 16px; }
.brand { color: var(--blue); font-weight: 700; font-size: 13px; }
.product-body h3 { font-size: 17px; min-height: 44px; margin: 6px 0; font-weight: 700; }
.product-body p { color: #64748b; min-height: 44px; margin-bottom: 8px; font-size: 14px; }
.rating { color: #f59e0b; font-size: 14px; }
.rating span { color: #64748b; }
.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.price-row strong { color: var(--ink); font-size: 20px; }
.price-row del { color: #94a3b8; }
.product-actions { display: flex; gap: 8px; align-items: center; }
.product-actions .btn-neon { flex: 1; }
.btn-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
}
.deal-band {
    background: linear-gradient(135deg, #0b132b, #172554);
    color: #fff;
    padding: 56px 0;
}
.deal-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}
.countdown { display: flex; gap: 12px; margin-top: 18px; }
.countdown span {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    padding: 12px 16px;
    border-radius: 8px;
}
.countdown b { display: block; font-size: 24px; }
.promo-panel, .form-panel, .summary-panel, .tabs-panel, .gallery-panel, .detail-panel, .filter-panel, .cart-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.promo-panel {
    background: linear-gradient(135deg, #0b132b, #1d4ed8);
    color: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.why-grid div {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    font-weight: 700;
}
.why-grid i { color: var(--blue); margin-right: 8px; }
.brand-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}
.brand-strip a {
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    font-weight: 800;
    filter: grayscale(1);
}
.brand-strip a:hover { filter: grayscale(0); color: var(--blue); }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.gallery-panel > img { width: 100%; height: 460px; object-fit: cover; border-radius: 8px; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb-row img { width: 86px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.detail-panel h1 { font-weight: 800; }
.detail-price strong { font-size: 30px; }
.in-stock { color: #16a34a; font-weight: 700; }
.low-stock { color: #dc2626; font-weight: 700; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.qty-row input, .cart-qty { width: 90px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.delivery-box { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-grid div { background: #f8fafc; padding: 14px; border-radius: 8px; }
.spec-grid span { display: block; color: #64748b; font-size: 13px; }
.cart-product { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.cart-product img { width: 70px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}
.coupon-box { display: flex; gap: 10px; }
.coupon-box input, .footer-form input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}
.cart-summary strong { font-size: 24px; margin: 0 18px; }
.auth-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 56px 16px;
}
.auth-card {
    width: min(420px, 100%);
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15,23,42,.12);
    display: grid;
    gap: 14px;
}
.auth-card.wide { width: min(620px, 100%); }
.auth-card h1 { font-weight: 800; }
.form-panel { display: grid; gap: 14px; max-width: 760px; }
.summary-line, .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.summary-total { font-size: 22px; font-weight: 800; border-bottom: 0; }
.empty-state {
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    width: 100%;
}
.site-table { background: #fff; border-radius: 8px; overflow: hidden; }
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 16px;
}
.account-grid a, .status-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    font-weight: 800;
}
.track-form { display: flex; gap: 12px; max-width: 620px; }
.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.timeline span {
    padding: 10px 14px;
    background: #e2e8f0;
    border-radius: 8px;
}
.timeline span.active { background: var(--blue); color: #fff; }
.quick-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quick-modal-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }
.cart-drawer {
    position: fixed;
    right: -360px;
    top: 0;
    height: 100vh;
    width: 340px;
    background: #0b132b;
    color: #fff;
    z-index: 2000;
    padding: 28px;
    transition: .3s;
    box-shadow: -20px 0 50px rgba(0,0,0,.25);
}
.cart-drawer.open { right: 0; }
.drawer-close {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 30px;
    float: right;
}
.site-footer {
    background: #071022;
    color: #cbd5e1;
    padding: 52px 0 20px;
}
.site-footer h4, .site-footer h6 { color: #fff; font-weight: 800; }
.site-footer a { display: block; color: #cbd5e1; margin: 8px 0; }
.footer-form { display: flex; gap: 8px; }
.footer-form button {
    border: 0;
    background: var(--cyan);
    color: var(--navy);
    border-radius: 8px;
    width: 44px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 32px;
    padding-top: 18px;
    text-align: center;
}
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--blue);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
