/* ============================================================
   ELITE RETAIL — Black & Gold Flat-File Storefront
   assets/css/style.css
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #101010;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --surface-3: #232323;
  --border: #2a2a2a;
  --border-gold: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-light: #f0d675;
  --gold-dark: #9c7c22;
  --gold-grad: linear-gradient(135deg, #f0d675 0%, #d4af37 45%, #a8842a 100%);
  --text: #f4f1e8;
  --muted: #a09b8d;
  --muted-2: #6f6c63;
  --danger: #e05b5b;
  --danger-bg: rgba(224, 91, 91, 0.12);
  --success: #55c07f;
  --success-bg: rgba(85, 192, 127, 0.12);
  --info: #6fb3d6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 34px rgba(212, 175, 55, 0.16);
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
main.content { flex: 1 0 auto; width: 100%; }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; }

::selection { background: var(--gold); color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; border: 2px solid var(--black-2); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* ============ TOP BAR ============ */
.topbar {
  background: var(--gold-grad);
  color: #141005;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-align: center;
  padding: 7px 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar .dot { opacity: .55; margin: 0 8px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.45), transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-grad);
  display: grid; place-items: center;
  color: #141005;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2.5px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; margin-top: -2px; white-space: nowrap; }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 9px;
  transition: all .2s;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(212,175,55,.08); }
.main-nav a.active { color: var(--gold); background: rgba(212,175,55,.1); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--border-gold); color: var(--gold); background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--gold-grad);
  color: #141005;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 2px solid var(--black);
}
.cart-count.hidden { display: none; }

.search-wrap { position: relative; flex: 0 1 260px; }
.search-wrap input {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0 14px 0 42px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.search-wrap .search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }

.menu-btn { display: none; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.66);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--black-2);
  border-right: 1px solid var(--border-gold);
  padding: 24px;
  transform: translateX(-12px);
  transition: transform .25s;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a {
  color: var(--text); font-family: var(--font-head);
  letter-spacing: 1.2px; text-transform: uppercase; font-size: 14px;
  padding: 13px 14px; border-radius: 10px; border: 1px solid transparent;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a.active { color: var(--gold); background: rgba(212,175,55,.08); border-color: var(--border-gold); }
.mobile-nav-close { align-self: flex-end; margin-bottom: 6px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .6px;
  padding: 12px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .22s;
  text-align: center;
  line-height: 1.3;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-gold {
  background: var(--gold-grad);
  color: #141005;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); color: #141005; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold);
}
.btn-outline:hover:not(:disabled) { background: rgba(212,175,55,.09); border-color: var(--gold-dark); color: var(--gold-light); }

.btn-dark {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-dark:hover:not(:disabled) { border-color: var(--border-gold); color: var(--gold-light); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(224,91,91,.3); }
.btn-danger:hover:not(:disabled) { background: rgba(224,91,91,.2); }

.btn-sm { padding: 8px 15px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-wa { background: #1fae53; color: #fff; }
.btn-wa:hover:not(:disabled) { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(10,10,10,.62) 0%, rgba(10,10,10,.88) 62%, var(--black) 100%),
    url("../img/hero-tech.png") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero[data-hero-image] {
  background:
    linear-gradient(rgba(10,10,10,.66) 0%, rgba(10,10,10,.9) 62%, var(--black) 100%),
    var(--hero-img) center 30% / cover no-repeat;
}
.hide-section { display: none !important; }
.hero-inner {
  padding: 96px 0 92px;
  max-width: 640px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  background: rgba(212,175,55,.07);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 .gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding-bottom: 58px;
}
.usp {
  display: flex; align-items: center; gap: 13px;
  background: rgba(21,21,21,.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
}
.usp svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.usp b { display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; }
.usp span { font-size: 12.5px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.3px; }
.section-head h2 em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.section-link { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.section-link svg { width: 15px; height: 15px; transition: transform .2s; }
.section-link:hover svg { transform: translateX(3px); }

/* ============ CATEGORY CARDS ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.cat-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
  transition: all .25s;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform .45s, opacity .3s; }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.88) 100%);
}
.cat-card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.07); opacity: .5; }
.cat-card h3 { position: relative; z-index: 2; font-size: 17px; font-weight: 600; }
.cat-card .count { position: relative; z-index: 2; font-size: 12.5px; color: var(--gold); letter-spacing: .6px; }

/* ============ PRODUCT CARDS ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; }

.p-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow); }

.p-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--black-2); overflow: hidden; cursor: pointer; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .p-card-media img { transform: scale(1.06); }
.p-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,.55) 100%);
}

.p-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  width: fit-content;
}
.badge-sale { background: var(--gold-grad); color: #141005; }
.badge-out { background: #2a2a2a; color: var(--muted); border: 1px solid var(--border); }
.badge-low { background: rgba(224,91,91,.14); color: var(--danger); border: 1px solid rgba(224,91,91,.35); }

.p-card-body { padding: 17px 18px 19px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-cat { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.p-name { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.p-name a { color: var(--text); }
.p-name a:hover { color: var(--gold-light); }
.p-short { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.p-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--gold); letter-spacing: -.3px; white-space: nowrap; }
.price s { color: var(--muted-2); font-size: 13px; font-weight: 500; margin-right: 7px; }

.add-btn {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--gold-grad);
  border: none;
  color: #141005;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.add-btn:hover:not(:disabled) { transform: scale(1.08); }
.add-btn:disabled { background: var(--surface-3); color: var(--muted-2); box-shadow: none; cursor: not-allowed; }
.add-btn svg { width: 19px; height: 19px; }

/* ============ FILTER BAR (shop) ============ */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.shop-side {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.shop-side h3 { font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }

.cat-filter { display: flex; flex-direction: column; gap: 5px; }
.cat-filter button {
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: 1px solid transparent;
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer; text-align: left;
  transition: all .18s;
}
.cat-filter button:hover { background: var(--surface-2); }
.cat-filter button.active { background: rgba(212,175,55,.1); border-color: var(--border-gold); color: var(--gold); font-weight: 600; }
.cat-filter .n { font-size: 12px; color: var(--muted-2); }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.shop-toolbar .search-wrap { flex: 1 1 220px; }
.shop-toolbar select {
  height: 44px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 11px; padding: 0 14px;
  font-family: var(--font-body); font-size: 14px; outline: none; cursor: pointer;
}
.results-count { font-size: 13px; color: var(--muted); }

.empty-state {
  text-align: center; padding: 70px 20px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted);
}
.empty-state svg { width: 44px; height: 44px; color: var(--muted-2); margin: 0 auto 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ============ PRODUCT DETAIL ============ */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 18px); }
.pd-main {
  aspect-ratio: 1/1; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: var(--black-2);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img {
  width: 74px; height: 74px; object-fit: cover;
  border-radius: 10px; border: 2px solid var(--border);
  cursor: pointer; transition: border-color .2s;
}
.pd-thumbs img:hover, .pd-thumbs img.active { border-color: var(--gold); }

.pd-info h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin: 8px 0 12px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.pd-price .price { font-size: 32px; }
.pd-price s { color: var(--muted-2); font-size: 18px; }
.pd-save { font-size: 12.5px; color: var(--success); font-weight: 600; }

.pd-short { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 22px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; }
.stock-in .stock-dot { background: var(--success); box-shadow: 0 0 8px rgba(85,192,127,.6); }
.stock-low .stock-dot { background: #e0b052; box-shadow: 0 0 8px rgba(224,176,82,.6); }
.stock-out .stock-dot { background: var(--danger); }
.stock-in { color: var(--success); } .stock-low { color: #e0b052; } .stock-out { color: var(--danger); }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.qty-input {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); overflow: hidden;
}
.qty-input button {
  width: 44px; height: 46px; background: transparent; border: none;
  color: var(--gold); font-size: 19px; cursor: pointer; transition: background .15s;
}
.qty-input button:hover { background: var(--surface-2); }
.qty-input input {
  width: 56px; height: 46px; text-align: center;
  background: transparent; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 16px; outline: none;
}
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.pd-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.pd-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; cursor: pointer; user-select: none;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; letter-spacing: .4px;
}
.pd-panel-head svg { width: 18px; height: 18px; color: var(--gold); transition: transform .25s; }
.pd-panel.open .pd-panel-head svg.chev { transform: rotate(180deg); }
.pd-panel-body { display: none; padding: 0 20px 20px; color: var(--muted); font-size: 14.5px; }
.pd-panel.open .pd-panel-body { display: block; }
.spec-list { list-style: none; display: grid; gap: 9px; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; }
.spec-list li::before { content: "◆"; color: var(--gold); font-size: 10px; margin-top: 5px; }

/* ============ CART ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px;
  transition: border-color .2s;
}
.cart-item:hover { border-color: var(--border-gold); }
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cart-item-info h4 { font-size: 15px; font-weight: 600; }
.cart-item-info h4 a { color: var(--text); } .cart-item-info h4 a:hover { color: var(--gold-light); }
.cart-item-info .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item-info .line-price { font-family: var(--font-head); color: var(--gold); font-weight: 700; margin-top: 8px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.remove-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted-2);
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; transition: all .18s;
}
.remove-btn:hover { color: var(--danger); background: var(--danger-bg); border-color: rgba(224,91,91,.3); }
.remove-btn svg { width: 17px; height: 17px; }

.summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 18px);
}
.summary-card h3 { font-size: 17px; letter-spacing: .5px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.summary-card h3 svg { width: 20px; height: 20px; color: var(--gold); }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0; color: var(--muted); }
.sum-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px; padding-top: 16px;
  color: var(--text); font-family: var(--font-head);
  font-weight: 700; font-size: 19px;
}
.sum-row.total .val { color: var(--gold); }
.sum-row .free { color: var(--success); font-weight: 600; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
}
.form-card h3 { font-size: 16.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.form-card h3 svg { width: 20px; height: 20px; color: var(--gold); }
.form-card .hint { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-family: var(--font-head); font-size: 12px;
  font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field .err-msg { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; }
.field.invalid .err-msg { display: block; }

/* Courier options */
.courier-list { display: grid; gap: 11px; }
.courier-opt {
  display: flex; align-items: center; gap: 15px;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; cursor: pointer;
  background: var(--black-2);
  transition: all .2s;
}
.courier-opt:hover { border-color: var(--border-gold); }
.courier-opt input { accent-color: var(--gold); width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.courier-opt.selected { border-color: var(--gold-dark); background: rgba(212,175,55,.06); box-shadow: 0 0 0 3px rgba(212,175,55,.08); }
.courier-opt .c-info { flex: 1; }
.courier-opt .c-name { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.courier-opt .c-desc { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.courier-opt .c-price { font-family: var(--font-head); font-weight: 700; color: var(--gold); white-space: nowrap; }
.courier-opt .c-price small { display: block; font-size: 10.5px; color: var(--success); font-weight: 600; text-align: right; }

.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; cursor: pointer; background: var(--black-2); transition: all .2s; }
.pay-opt:hover { border-color: var(--border-gold); }
.pay-opt.selected { border-color: var(--gold-dark); background: rgba(212,175,55,.06); }
.pay-opt input { accent-color: var(--gold); width: 17px; height: 17px; }
.pay-opt b { font-family: var(--font-head); font-size: 14px; font-weight: 600; }

/* Success screen */
.success-hero { text-align: center; max-width: 620px; margin: 0 auto; padding: 60px 0 30px; }
.success-hero .ok-ring {
  width: 92px; height: 92px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid rgba(85,192,127,.4);
  display: grid; place-items: center;
  animation: pop-in .5s cubic-bezier(.2,1.6,.4,1);
}
.success-hero .ok-ring svg { width: 42px; height: 42px; color: var(--success); }
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.order-ref {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  letter-spacing: 2px; font-size: 18px; color: var(--gold);
  border: 1px dashed var(--border-gold); border-radius: 10px;
  padding: 10px 22px; margin: 14px 0 22px; background: rgba(212,175,55,.05);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: auto;
  background: var(--black-2);
  border-top: 1px solid var(--border);
  position: relative;
  padding: 54px 0 0;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.4), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 42px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-col h4 {
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col ul a { color: var(--muted); font-size: 13.5px; transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: var(--gold-light); padding-left: 3px; }

.wa-numbers { display: grid; gap: 10px; }
.wa-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 15px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--text); transition: all .2s; width: fit-content;
}
.wa-chip svg { width: 18px; height: 18px; color: #1fae53; }
.wa-chip:hover { border-color: rgba(31,174,83,.45); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: var(--muted-2); }
.footer-bottom .admin-link { font-size: 12.5px; color: var(--muted-2); }
.footer-bottom .admin-link:hover { color: var(--gold); }

/* ============ TOASTS ============ */
.toast-stack {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 400; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  animation: toast-in .3s cubic-bezier(.2,1.2,.4,1);
  font-size: 14px;
}
.toast svg { width: 19px; height: 19px; flex-shrink: 0; }
.toast.success { border-color: rgba(85,192,127,.35); } .toast.success svg { color: var(--success); }
.toast.error { border-color: rgba(224,91,91,.4); } .toast.error svg { color: var(--danger); }
.toast.info svg { color: var(--gold); }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(560px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(.98);
  transition: transform .22s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 2; border-radius: 16px 16px 0 0;
}
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 11px; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 16px 16px; }

/* ============ MISC ============ */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
.page-head .crumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head .crumbs a { color: var(--muted); } .page-head .crumbs a:hover { color: var(--gold); }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.tag-pending { background: rgba(224,176,82,.13); color: #e0b052; }
.tag-confirmed { background: rgba(111,179,214,.13); color: var(--info); }
.tag-shipped { background: rgba(212,175,55,.13); color: var(--gold); }
.tag-delivered { background: var(--success-bg); color: var(--success); }
.tag-cancelled { background: var(--danger-bg); color: var(--danger); }
.tag-active { background: var(--success-bg); color: var(--success); }
.tag-inactive { background: #2a2a2a; color: var(--muted); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1fae53; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(31,174,83,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.09); color: #fff; }
.wa-float svg { width: 27px; height: 27px; }

/* ============ ADMIN ============ */
.admin-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--black-2);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { padding: 0 10px 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.admin-side .admin-badge {
  font-size: 10px; letter-spacing: 2px; color: var(--gold);
  border: 1px solid var(--border-gold); border-radius: 999px;
  padding: 3px 10px; width: fit-content; margin-top: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--muted); font-family: var(--font-head);
  font-size: 13.5px; font-weight: 500; letter-spacing: .4px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .18s; background: transparent;
  width: 100%; text-align: left; font-family: var(--font-head);
}
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { color: var(--gold); background: rgba(212,175,55,.09); border-color: var(--border-gold); }
.nav-item .pill {
  margin-left: auto; background: var(--gold-grad); color: #141005;
  font-size: 10.5px; font-weight: 700; border-radius: 999px;
  padding: 2px 8px; min-width: 20px; text-align: center;
}
.admin-side .side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-main h1 { font-size: 25px; margin-bottom: 4px; }
.admin-main .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 21px;
  display: flex; align-items: flex-start; gap: 15px;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(212,175,55,.1); border: 1px solid var(--border-gold); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.stat-ico svg { width: 22px; height: 22px; }
.stat-card .v { font-family: var(--font-head); font-size: 25px; font-weight: 700; line-height: 1.15; }
.stat-card .l { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }

.admin-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.admin-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 19px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.admin-panel-head h2 { font-size: 16.5px; }
.admin-panel-body { padding: 22px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th {
  text-align: left; font-family: var(--font-head); font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--surface-2); }

.prod-mini { display: flex; align-items: center; gap: 12px; }
.prod-mini img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.prod-mini .pn { font-weight: 600; font-size: 13.5px; }
.prod-mini .pc { font-size: 11.5px; color: var(--muted); }

.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.mini-btn {
  width: 33px; height: 33px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: all .18s;
}
.mini-btn svg { width: 15.5px; height: 15.5px; }
.mini-btn:hover { color: var(--gold); border-color: var(--border-gold); }
.mini-btn.danger:hover { color: var(--danger); border-color: rgba(224,91,91,.4); background: var(--danger-bg); }

.img-pick { display: flex; gap: 10px; align-items: center; }
.img-pick .preview {
  width: 84px; height: 84px; border-radius: 11px; object-fit: cover;
  border: 1px dashed var(--border-gold); background: var(--black-2);
  display: grid; place-items: center; color: var(--muted-2); flex-shrink: 0; overflow: hidden;
}
.img-pick .preview img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .preview svg { width: 22px; height: 22px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border);
  cursor: pointer; transition: all .22s;
}
.switch .track::before {
  content: ""; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; border-radius: 50%;
  background: var(--muted); transition: all .22s;
}
.switch input:checked + .track { background: rgba(212,175,55,.25); border-color: var(--gold-dark); }
.switch input:checked + .track::before { transform: translateX(20px); background: var(--gold); }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212,175,55,.09), transparent),
    var(--black);
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 18px; padding: 38px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .brand-mark { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; }
.login-card .brand-mark svg { width: 36px; height: 36px; }
.login-card h1 { font-size: 21px; letter-spacing: 1px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin: 6px 0 26px; }
.login-card .field { text-align: left; margin-bottom: 16px; }
.login-err { display: none; color: var(--danger); font-size: 13px; background: var(--danger-bg); border: 1px solid rgba(224,91,91,.3); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; }
.login-err.show { display: block; }

.order-items-mini { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.order-items-mini li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.order-items-mini li b { color: var(--text); font-weight: 600; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .checkout-layout, .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { display: block; }
  .search-wrap.header-search { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; border-right: none; border-bottom: 1px solid var(--border);
  }
  .admin-side .brand { border-bottom: none; padding-bottom: 6px; margin-bottom: 0; }
  .admin-side .admin-badge { display: none; }
  .nav-item { width: auto; padding: 9px 12px; }
  .nav-item span.txt { display: none; }
  .nav-item .pill { margin-left: 0; }
  .admin-side .side-foot { margin-top: 0; border-top: none; padding-top: 0; margin-left: auto; }
  .admin-main { padding: 22px 18px 50px; }
}

@media (max-width: 620px) {
  .header-actions .search-wrap { display: none; }
  .hero-inner { padding: 64px 0 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 13px; }
  .p-card-body { padding: 13px 13px 15px; }
  .price { font-size: 16.5px; }
  .add-btn { width: 38px; height: 38px; }
  .brand-tag { display: none; }
  .wa-float { right: 16px; bottom: 16px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
