/* ============================================================
   XENOVA TECHNOLOGIES — Global Design System
   Brand: Futuristic · Premium · Minimalist · Intelligent
   Primary: Electric Cyan #00B8FF | Deep Black #0A0A0A
   Fonts: Montserrat ExtraBold + Poppins Regular
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Brand */
  --cyan:        #00B8FF;
  --cyan-dark:   #009DFF;
  --cyan-deeper: #0077CC;
  --cyan-dim:    rgba(0, 184, 255, 0.10);
  --cyan-glow:   0 4px 24px rgba(0, 184, 255, 0.35);
  --cyan-border: rgba(0, 184, 255, 0.25);

  /* Surfaces */
  --black:       #0A0A0A;
  --nav-bg:      #080e18;
  --dark-card:   #0f1826;
  --white:       #ffffff;
  --bg:          #f5f8fc;
  --bg-alt:      #eef2f8;

  /* Silver Scale */
  --silver-1:    #BFC5CF;
  --silver-2:    #D9DEE5;
  --silver-3:    #8D96A3;

  /* Text */
  --text:        #0d1421;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --text-on-dark:#e2e8f0;

  /* Borders */
  --border:      #e2e8f0;
  --border-dark: rgba(255,255,255,0.07);

  /* Status */
  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --info:        #3b82f6;

  /* Layout */
  --nav-h:       68px;
  --container:   1280px;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 2px 8px rgba(13,20,33,0.06);
  --shadow:      0 4px 20px rgba(13,20,33,0.10);
  --shadow-lg:   0 12px 48px rgba(13,20,33,0.14);
  --transition:  all 0.22s ease;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; max-width: 100%; }

/* ── SCROLLBAR ────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--silver-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── CONTAINER ────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── TYPOGRAPHY ───────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.2; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text);
  margin-bottom: 6px;
}
.section-title span { color: var(--cyan); }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.view-all { font-size: 13px; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.view-all:hover { gap: 10px; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: #fff;
  box-shadow: var(--cyan-glow);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,184,255,0.45); }
.btn-cyan:active { transform: translateY(0); }

.btn-outline-cyan {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline-cyan:hover { background: var(--cyan); color: #fff; }

.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { background: #1a1a2e; }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-full { width: 100%; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-sm); }
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; margin-left: 6px; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAV ──────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(12px);
  height: var(--nav-h);
  width: 100%;
}
.nav-inner {
  display: flex; align-items: center; gap: 12px;
  height: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 16px;
  overflow: hidden;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 17px; color: #fff; letter-spacing: -1px;
  box-shadow: var(--cyan-glow); flex-shrink: 0;
}
.nav-logo-img { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; }
.nav-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; color: #fff; letter-spacing: 1px; }
.nav-logo-text span { color: var(--cyan); }

.nav-search {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border-dark);
  border-radius: 40px;
  padding: 0 6px 0 18px;
  transition: border-color .2s;
}
.nav-search:focus-within { border-color: var(--cyan); background: rgba(0,184,255,0.06); }
.nav-search input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13.5px; color: #fff; padding: 10px 0;
  min-width: 0;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.35); }
.nav-search-btn {
  width: 34px; height: 34px; background: var(--cyan); border: none;
  border-radius: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 13px; transition: var(--transition);
  flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--cyan-dark); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.07); }

.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 15px; cursor: pointer;
  transition: var(--transition); position: relative; text-decoration: none;
  flex-shrink: 0;
}
.nav-icon-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.nav-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--cyan); color: #fff;
  border-radius: 20px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--nav-bg);
}

.nav-mobile-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: transparent; border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm); color: #fff; font-size: 16px; cursor: pointer;
  flex-shrink: 0;
}

/* ── MOBILE NAV ──────────────────────────── */
.mobile-search-bar { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-logo-text { font-size: 17px; }

  /* Mobile search bar — full width below nav */
  .mobile-search-bar {
    display: block;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-dark);
    padding: 8px 16px;
  }
  .mobile-search-bar .nav-search {
    display: flex; max-width: 100%; margin: 0;
  }
}
@media (min-width: 769px) {
  .mobile-search-bar { display: none !important; }
}

/* ── ANNOUNCEMENT BAR ────────────────────── */
.announce-bar {
  background: linear-gradient(90deg, var(--cyan-deeper), var(--cyan), var(--cyan-dark));
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-align: center; padding: 8px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announce-bar a { color: #fff; text-decoration: underline; }

/* ── BREADCRUMB ────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted);
  padding: 16px 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ── PRODUCT CARD ─────────────────────────── */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cyan-border); }

.product-card-img {
  position: relative; background: #f8fafc;
  aspect-ratio: 1; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 20px; transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; }
.product-badge {
  padding: 3px 9px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-sale { background: #ef4444; color: #fff; }
.badge-new  { background: var(--cyan); color: #fff; }
.badge-hot  { background: #f59e0b; color: #fff; }
.badge-out  { background: #94a3b8; color: #fff; }

.product-card-wish {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; background: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 13px;
  transition: var(--transition); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.product-card-wish:hover, .product-card-wish.active { color: #ef4444; border-color: #ef4444; }

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card-brand { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); }
.product-card-name {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 14px; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-stars { display: flex; align-items: center; gap: 4px; }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.star-count { font-size: 11.5px; color: var(--text-muted); }

.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-current { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--text); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 11.5px; font-weight: 700; color: #ef4444; background: rgba(239,68,68,0.08); padding: 2px 6px; border-radius: 4px; }

.product-card-footer { padding: 0 16px 16px; }
.add-cart-btn {
  width: 100%; padding: 9px 8px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff; font-weight: 600; font-size: 12.5px;
  border: none; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(0,184,255,0.25);
  white-space: nowrap; overflow: hidden;
}
.add-cart-btn:hover { box-shadow: 0 6px 20px rgba(0,184,255,0.4); transform: translateY(-1px); }
.add-cart-btn:disabled { opacity: 0.5; pointer-events: none; }
.add-cart-btn .btn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── PRODUCT GRID ─────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-grid-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .product-grid-5 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .product-grid-4, .product-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .product-grid, .product-grid-4, .product-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 360px) { .product-grid, .product-grid-4, .product-grid-5 { grid-template-columns: 1fr; } }

/* ── SECTION SPACING ─────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }
.section-dark { background: var(--nav-bg); }
.section-alt  { background: var(--bg-alt); }

/* ── CATEGORY PILLS ─────────────────────── */
.category-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0; padding: 14px 20px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition);
  min-width: 88px; text-align: center;
}
.cat-pill:hover, .cat-pill.active { border-color: var(--cyan); background: var(--cyan-dim); }
.cat-pill-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: var(--transition); }
.cat-pill:hover .cat-pill-icon, .cat-pill.active .cat-pill-icon { background: var(--cyan-dim); }
.cat-pill-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.cat-pill:hover .cat-pill-name, .cat-pill.active .cat-pill-name { color: var(--cyan); }

/* ── FLASH SALE BAR ─────────────────────── */
.flash-bar {
  background: linear-gradient(135deg, #0a1628, #061020);
  border: 1px solid rgba(0,184,255,0.15);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  position: relative; overflow: hidden;
}
.flash-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,184,255,0.08) 0%, transparent 70%);
}
.flash-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.flash-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 22px; color: #fff;
}
.flash-label i { color: var(--cyan); }
.flash-timer { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.timer-block {
  background: rgba(0,184,255,0.12); border: 1px solid rgba(0,184,255,0.25);
  border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 48px;
}
.timer-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: var(--cyan); line-height: 1; display: block; }
.timer-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.45); display: block; margin-top: 2px; }
.timer-sep { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--cyan); }

/* ── TRUST BAR ───────────────────────────── */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; background: var(--white);
}
.trust-icon { font-size: 24px; color: var(--cyan); flex-shrink: 0; }
.trust-title { font-weight: 700; font-size: 14px; color: var(--text); }
.trust-sub { font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-bar { grid-template-columns: 1fr; } }

/* ── FORMS ───────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-family: 'Poppins', sans-serif; font-size: 14px;
  color: var(--text); outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,184,255,0.1); }
.form-input::placeholder { color: var(--text-light); }
.form-input.error { border-color: var(--danger); }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.form-hint.error { color: var(--danger); }

.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; pointer-events: none; }
.input-icon-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); font-size: 14px; transition: color .2s; }
.input-icon-right:hover { color: var(--cyan); }

/* ── BADGES ──────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.tag-cyan    { background: var(--cyan-dim); color: var(--cyan); }
.tag-success { background: rgba(16,185,129,0.1); color: var(--success); }
.tag-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.tag-danger  { background: rgba(239,68,68,0.1); color: var(--danger); }
.tag-gray    { background: var(--bg-alt); color: var(--text-muted); }

/* ── MODAL ───────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,14,24,0.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-xl); width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 32px 96px rgba(8,14,24,0.3);
  animation: fadeUp .25s ease;
}
.modal-sm { max-width: 420px; }
.modal-md { max-width: 560px; }
.modal-lg { max-width: 800px; }
@keyframes fadeUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; }
.modal-close { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { border-color: var(--danger); color: var(--danger); }
.modal-body { padding: 28px; }

/* ── TOAST ───────────────────────────────── */
#xnv-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--nav-bg); color: #fff;
  padding: 14px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px; min-width: 240px;
  border-left: 3px solid var(--cyan);
}
#xnv-toast.show { transform: translateY(0); opacity: 1; }
#xnv-toast.success { border-left-color: var(--success); }
#xnv-toast.error   { border-left-color: var(--danger); }
#xnv-toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 17px; flex-shrink: 0; }
.toast-icon.success { color: var(--success); }
.toast-icon.error   { color: var(--danger); }
.toast-icon.warning { color: var(--warning); }
.toast-icon.info    { color: var(--cyan); }

/* ── SKELETON ────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f4f8 25%, #e4ecf4 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── FOOTER ──────────────────────────────── */
.footer { background: #060d18; color: var(--text-on-dark); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 16px; color: #fff; }
.footer-logo-text { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 18px; color: #fff; }
.footer-logo-text span { color: var(--cyan); }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); font-size: 15px; transition: var(--transition); }
.social-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.footer-col-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-link { display: block; font-size: 13.5px; color: rgba(255,255,255,0.45); margin-bottom: 10px; transition: color .2s; }
.footer-link:hover { color: var(--cyan); }
.footer-contact { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.footer-contact i { color: var(--cyan); width: 16px; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.3); }
.footer-copy span { color: var(--cyan); }
.footer-pay { display: flex; align-items: center; gap: 8px; }
.pay-chip { padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ── MOBILE NAV DRAWER ───────────────────── */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
  background: var(--nav-bg); z-index: 1100;
  transform: translateX(-100%); transition: transform .3s ease;
  overflow-y: auto; padding: 24px 0;
  border-right: 1px solid var(--border-dark);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1099; display: none; }
.drawer-overlay.open { display: block; }
.drawer-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border-dark); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.drawer-close { width: 32px; height: 32px; background: rgba(255,255,255,0.07); border: none; border-radius: 6px; color: rgba(255,255,255,0.6); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.drawer-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 500; transition: var(--transition); border-radius: 0; }
.drawer-nav-item:hover { background: rgba(0,184,255,0.08); color: var(--cyan); }
.drawer-nav-item i { width: 20px; font-size: 15px; }

/* ── UTILITIES ───────────────────────────── */
.text-cyan    { color: var(--cyan) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-800       { font-weight: 800; }
.mt-4         { margin-top: 16px; }
.mt-6         { margin-top: 24px; }
.mt-8         { margin-top: 32px; }
.mb-4         { margin-bottom: 16px; }
.mb-6         { margin-bottom: 24px; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.gap-4        { gap: 16px; }
.hidden       { display: none !important; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider      { height: 1px; background: var(--border); margin: 24px 0; }
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.card-p { padding: 24px; }

/* ============================================================
   MOBILE RESPONSIVENESS — Global fixes
   ============================================================ */

/* ── SECTIONS ──────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 40px 0; }
  .section-lg { padding: 56px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 22px; }

  /* ANNOUNCE BAR */
  .announce-bar { font-size: 11px; padding: 7px 12px; }

  /* TRUST BAR */
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 14px 12px; gap: 10px; }
  .trust-icon { font-size: 20px; }
  .trust-title { font-size: 12.5px; }
  .trust-sub { font-size: 11px; }

  /* PRODUCT GRID */
  .product-grid,
  .product-grid-4,
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* PRODUCT CARD */
  .product-card-body { padding: 10px 10px 6px; }
  .product-card-footer { padding: 0 10px 10px; }
  .product-card-name { font-size: 12.5px; }
  .price-current { font-size: 15px; }
  .price-old { font-size: 11px; }
  .add-cart-btn { font-size: 11.5px; padding: 8px 6px; gap: 4px; }

  /* SECTION HEADER */
  .section-header { margin-bottom: 16px; }
  .view-all { font-size: 12px; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-pay { flex-wrap: wrap; gap: 6px; }
  .pay-chip { font-size: 10px; padding: 3px 8px; }

  /* BREADCRUMB */
  .breadcrumb { font-size: 11.5px; }

  /* MODAL */
  .modal { border-radius: 12px; }
  .modal-header { padding: 16px 18px; }
  .modal-body { padding: 18px; }
}

@media (max-width: 480px) {
  .trust-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-grid,
  .product-grid-4,
  .product-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ── HOMEPAGE MOBILE ─────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 40px 0; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); letter-spacing: -0.5px; }
  .hero-desc { font-size: 14px; margin: 0 auto 28px; }
  .hero-actions { justify-content: center; gap: 10px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 13.5px; }
  .hero-tag { margin: 0 auto 16px; }
  .hero-stats { justify-content: center; gap: 20px; padding-top: 20px; margin-top: 28px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-lbl { font-size: 11px; }

  /* Category grid */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; gap: 6px; }
  .cat-card-icon { font-size: 22px; width: 44px; height: 44px; border-radius: 10px; }
  .cat-card-name { font-size: 11px; }

  /* Promo banners */
  .promo-grid { grid-template-columns: 1fr; gap: 14px; }
  .promo-banner { padding: 24px 20px; min-height: 160px; }
  .promo-title { font-size: 20px; }
  .promo-decoration { font-size: 60px; }

  /* Why Xenova */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 22px 18px; }

  /* Newsletter */
  .newsletter { padding: 36px 20px; }
  .newsletter-form { flex-direction: column; gap: 10px; background: transparent; border: none; padding: 0; }
  .newsletter-form input {
    background: rgba(255,255,255,0.08); border: 1.5px solid rgba(0,184,255,0.2);
    border-radius: 40px; padding: 12px 20px; color: #fff; width: 100%;
    font-family: 'Poppins', sans-serif; font-size: 14px; outline: none;
  }
  .newsletter-form button { width: 100%; padding: 12px; border-radius: 40px; font-size: 14px; }

  /* Flash sale */
  .flash-bar { padding: 20px 16px; }
  .flash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .flash-timer { width: 100%; }
  .timer-num { font-size: 18px; }

  /* Brands */
  .brands-scroll { gap: 24px; padding: 0 4px; }
  .brand-logo { font-size: 12.5px; }
}

/* ── SHOP PAGE MOBILE ────────────────────── */
@media (max-width: 768px) {
  .shop-hero { padding: 24px 0; }
  .shop-hero-title { font-size: 24px; }
  .filter-toprow { gap: 8px; flex-wrap: wrap; }
  .sort-select { font-size: 12px; padding: 8px 10px; }
  .cat-scroll-row { gap: 6px; }
  .filter-chip { font-size: 12px; padding: 5px 10px; }
  .filter-panel { gap: 16px; }
  .filter-group { min-width: 100%; }
  .price-input { width: 80px; }
}

/* ── PRODUCT DETAIL MOBILE ────────────────── */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-name { font-size: 20px; }
  .product-price { font-size: 26px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { min-width: unset; width: 100%; }
  .tabs-nav { overflow-x: auto; }
  .tab-btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
}

/* ── CART MOBILE ─────────────────────────── */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cart-row { flex-wrap: wrap; gap: 10px; }
  .cart-info { min-width: 0; flex: 1; }
}

/* ── CHECKOUT MOBILE ─────────────────────── */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .checkout-steps { gap: 0; }
  .step-line { flex: 1; margin: 0 4px; }
  .step { font-size: 11px; gap: 5px; }
  .step-num { width: 24px; height: 24px; font-size: 11px; }
}

/* ── LOGIN MOBILE ────────────────────────── */
@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 32px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}

/* ── ACCOUNT MOBILE ──────────────────────── */
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}

/* ── ABOUT / CONTENT PAGES MOBILE ────────── */
@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 48px 0; }
  .about-hero h1 { font-size: 32px; }
}

/* ── CONTACT MOBILE ──────────────────────── */
@media (max-width: 768px) {
  .contact-grid,
  [style*="grid-template-columns: 1fr 1fr"] { 
    display: block !important;
  }
  [style*="grid-template-columns: 1fr 1fr"] > * {
    margin-bottom: 16px;
  }
}

/* ── GLOBAL MOBILE FIXES ─────────────────── */
@media (max-width: 768px) {
  /* Prevent any element causing horizontal scroll */
  .hero-device-wrap,
  .hero-ring,
  .hero-ring-1,
  .hero-ring-2,
  .hero-glow { display: none !important; }

  /* Ensure images don't overflow */
  img { max-width: 100%; height: auto; }

  /* Stack form rows on mobile */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Buttons full width on very small screens */
  .btn-lg { padding: 12px 20px; font-size: 14px; }
}

/* ── BUTTON OVERFLOW FIXES ─────────────────── */
/* Prevent action buttons from overflowing containers */
.qty-ctrl { overflow: hidden; }
.qty-btn { flex-shrink: 0; }
.nav-badge { box-sizing: content-box; }

/* Form input + button combos */
.promo-box, .input-with-icon, .pw-input-wrap { overflow: visible; }
.input-icon-right { z-index: 2; }

/* Fix btn-icon overflow */
.btn-icon { overflow: hidden; flex-shrink: 0; }

/* Fix add-cart-btn text wrapping */
.product-card-footer { overflow: hidden; }
.add-cart-btn { overflow: hidden; }
.btn-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 20px); }

/* Nav actions — prevent badge overflow clipping */
.nav-actions { overflow: visible !important; }
.nav-icon-btn { overflow: visible !important; }