/* ================================================================
   RelStock — Main Stylesheet
   Dark gaming aesthetic | Syne + DM Sans
================================================================ */

:root {
  --red:    #ff4d4d;
  --red2:   #e63333;
  --dark:   #080808;
  --dark2:  #0f0f0f;
  --dark3:  #181818;
  --dark4:  #222222;
  --border: #2a2a2a;
  --text:   #e8e8e8;
  --muted:  #888;
  --white:  #ffffff;
  --gold:   #ffd700;
  --green:  #2ecc71;
  --blue:   #3498db;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --trans: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--red); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ── Flash ─────────────────────────────────────────────────── */
.flash {
  position: fixed; top: 1rem; right: 1rem; z-index: 9999;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-body); font-size: .9rem;
  animation: slideIn .3s ease;
  max-width: 380px;
}
.flash-success { background: #1a3d2b; border: 1px solid var(--green); color: var(--green); }
.flash-error   { background: #3d1a1a; border: 1px solid var(--red);   color: var(--red); }
.flash-info    { background: #1a2a3d; border: 1px solid var(--blue);  color: var(--blue); }
.flash button  { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--trans);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
  color: var(--white); text-decoration: none;
}
.logo-icon { font-size: 1.3rem; }
.logo strong { color: var(--red); }
.main-nav {
  display: flex; gap: 1.5rem; margin-left: 1rem;
}
.main-nav a {
  color: var(--muted); font-size: .9rem; font-weight: 500;
  letter-spacing: .02em; transition: color var(--trans);
}
.main-nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: all .3s; }
.mobile-nav { display: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--red); color: #fff; }
.btn-primary:hover  { background: var(--red2); color: #fff; transform: translateY(-1px); }
.btn-ghost    { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover    { border-color: var(--red); color: var(--red); }
.btn-accent   { background: #1a1a1a; color: var(--gold); border: 1px solid var(--gold); }
.btn-accent:hover   { background: var(--gold); color: #000; }
.btn-green    { background: var(--green); color: #fff; }
.btn-green:hover    { background: #27ae60; color:#fff; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 1.5rem 5rem;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255,77,77,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,77,77,.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.3);
  color: var(--red); padding: .3rem .8rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.1rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat-item h3 {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--red);
}
.stat-item p { font-size: .8rem; color: var(--muted); }
.hero-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(255,77,77,.3), transparent, rgba(255,77,77,.1));
  border-radius: var(--radius-lg);
  z-index: -1;
}
.live-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3);
  color: var(--green); padding: .25rem .65rem; border-radius: 100px;
  font-size: .75rem; font-weight: 600; margin-bottom: 1rem;
}
.live-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.delivery-list { display: flex; flex-direction: column; gap: .6rem; }
.delivery-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--dark4); border-radius: 8px; padding: .6rem .8rem;
  font-size: .85rem; animation: deliveryFade 3s ease infinite;
}
.delivery-item:nth-child(2) { animation-delay: 1s; }
.delivery-item:nth-child(3) { animation-delay: 2s; }
@keyframes deliveryFade { 0%,100%{opacity:.7} 50%{opacity:1} }
.delivery-icon { font-size: 1.2rem; }
.delivery-info { flex: 1; }
.delivery-info strong { display: block; color: var(--white); font-size: .85rem; }
.delivery-info span { color: var(--muted); font-size: .75rem; }
.delivery-time { color: var(--green); font-size: .75rem; font-weight: 600; }

/* ── Trust bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--dark3); border-bottom: 1px solid var(--border);
  padding: .8rem 1.5rem;
}
.trust-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.trust-item span:first-child { font-size: 1rem; }

/* ── Section ───────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  color: var(--red); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem;
}
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--white); letter-spacing: -.02em;
}
.section-head p { color: var(--muted); margin-top: .5rem; max-width: 500px; margin-inline: auto; }

/* ── Category pills ────────────────────────────────────────── */
.cat-pills { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.cat-pill {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--dark3);
  color: var(--muted); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all var(--trans); text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--red); color: var(--red); background: rgba(255,77,77,.08);
}

/* ── Product grid ──────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--trans); cursor: pointer;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--red); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,77,77,.15);
}
.card-image {
  position: relative; aspect-ratio: 16/10;
  background: var(--dark4); overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.card-badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .6rem; border-radius: 6px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-featured { background: var(--red); color: #fff; }
.badge-sale      { background: var(--gold); color: #000; }
.badge-new       { background: var(--green); color: #fff; }
.badge-oos       { background: #333; color: var(--muted); }
.card-body { padding: 1rem 1rem .8rem; flex: 1; }
.card-cat  { font-size: .72rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.card-name { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; line-height: 1.3; }
.card-rating { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--gold); margin-bottom: .5rem; }
.card-rating span { color: var(--muted); }
.card-footer { padding: .8rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--white); }
.card-original-price { font-size: .8rem; color: var(--muted); text-decoration: line-through; margin-left: .3rem; }
.card-stock { font-size: .75rem; color: var(--green); font-weight: 600; }
.card-stock.oos { color: var(--muted); }

/* ── Product page ──────────────────────────────────────────── */
.product-page { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; }
.product-gallery { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.product-gallery-placeholder { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.product-breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.product-breadcrumb a { color: var(--muted); }
.product-breadcrumb a:hover { color: var(--red); }
.product-breadcrumb span { color: var(--border); }
.product-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: .75rem; }
.product-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.product-meta .rating-stars { color: var(--gold); font-size: .95rem; }
.product-meta .review-count { color: var(--muted); font-size: .85rem; }
.product-meta .sold-count { color: var(--muted); font-size: .85rem; }
.product-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.5rem; }
.product-price .price-main { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--white); }
.product-price .price-old  { font-size: 1.1rem; color: var(--muted); text-decoration: line-through; }
.product-price .discount-tag { background: rgba(255,77,77,.15); color: var(--red); border: 1px solid rgba(255,77,77,.3); padding: .2rem .6rem; border-radius: 6px; font-size: .8rem; font-weight: 700; }
.product-desc { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.product-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.product-feature { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.product-feature .icon { color: var(--green); width: 18px; }

/* ── Buy box ───────────────────────────────────────────────── */
.buy-box {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  position: sticky; top: 80px;
}
.buy-box-price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.buy-box .stock-indicator { display: flex; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: 1rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stock-dot.oos { background: var(--muted); }
.qty-selector { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.qty-selector label { font-size: .85rem; color: var(--muted); }
.qty-input { display: flex; align-items: center; background: var(--dark4); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-input button { background: none; border: none; color: var(--text); padding: .4rem .7rem; cursor: pointer; font-size: 1rem; transition: background var(--trans); }
.qty-input button:hover { background: var(--border); }
.qty-input input { background: none; border: none; color: var(--white); text-align: center; width: 40px; font-family: var(--font-head); font-size: 1rem; outline: none; }
.payment-logos { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.payment-logo { background: var(--dark4); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .7rem; font-size: .75rem; color: var(--muted); }
.buy-box-notice { margin-top: 1rem; padding: .75rem; background: rgba(46,204,113,.05); border: 1px solid rgba(46,204,113,.15); border-radius: 8px; font-size: .8rem; color: var(--green); text-align: center; }

/* ── Reviews ───────────────────────────────────────────────── */
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 2rem; background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; align-items: center; }
.review-score { text-align: center; }
.review-score .score { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: var(--white); line-height: 1; }
.review-score .stars { color: var(--gold); font-size: 1.2rem; margin: .3rem 0; }
.review-score .count { color: var(--muted); font-size: .85rem; }
.rating-bars { display: flex; flex-direction: column; gap: .5rem; }
.rating-bar-row { display: flex; align-items: center; gap: .75rem; font-size: .82rem; }
.rating-bar-row .label { color: var(--muted); white-space: nowrap; width: 30px; text-align: right; }
.rating-bar { flex: 1; height: 8px; background: var(--dark4); border-radius: 100px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 100px; transition: width .6s ease; }
.rating-bar-row .pct { color: var(--muted); font-size: .78rem; width: 35px; }

.reviews-list { display: flex; flex-direction: column; gap: 1.25rem; }
.review-card { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; gap: 1rem; }
.reviewer { display: flex; align-items: center; gap: .75rem; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--dark4); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--red); flex-shrink: 0; }
.reviewer-name { font-weight: 600; color: var(--white); font-size: .9rem; }
.reviewer-meta { font-size: .75rem; color: var(--muted); display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.verified-badge { color: var(--green); font-size: .72rem; }
.review-stars { color: var(--gold); font-size: .9rem; flex-shrink: 0; }
.review-title { font-weight: 600; color: var(--white); margin-bottom: .4rem; font-size: .9rem; }
.review-body { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .7rem 1rem;
  background: var(--dark4); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color var(--trans);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--red); margin-top: .3rem; }

/* ── Auth pages ────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255,77,77,.06) 0%, transparent 60%);
}
.auth-box {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 440px;
}
.auth-box h1 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: .4rem; }
.auth-box p  { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.auth-divider { text-align: center; color: var(--muted); font-size: .82rem; margin: 1rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content:''; position:absolute; top:50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left:0; }
.auth-divider::after { right:0; }
.auth-link { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.5rem; }
.auth-link a { color: var(--red); font-weight: 600; }

/* ── Account dashboard ─────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.account-sidebar { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; height: fit-content; }
.account-sidebar .user-card { text-align: center; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.user-avatar-lg { width: 70px; height: 70px; background: var(--dark4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; color: var(--red); margin: 0 auto .75rem; border: 2px solid var(--border); }
.account-sidebar h3 { font-family: var(--font-head); color: var(--white); font-weight: 700; }
.account-sidebar .balance { color: var(--gold); font-size: .85rem; margin-top: .2rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 500; transition: all var(--trans); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,77,77,.1); color: var(--red); }
.account-content { min-height: 400px; }
.account-section { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.account-section h2 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }

/* ── Orders table ──────────────────────────────────────────── */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.orders-table td { padding: .85rem .75rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; }
.orders-table tr:last-child td { border-bottom: none; }
.status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 100px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-completed { background: rgba(46,204,113,.15); color: var(--green); }
.status-pending   { background: rgba(241,196,15,.15);  color: #f1c40f; }
.status-refunded  { background: rgba(52,152,219,.15);  color: var(--blue); }
.status-cancelled { background: rgba(100,100,100,.2);  color: var(--muted); }

/* ── Checkout ──────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.checkout-card { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.checkout-card h2 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }
.order-summary-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.order-summary-item:last-of-type { border-bottom: none; }
.item-thumb { width: 44px; height: 44px; background: var(--dark4); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.item-info { flex: 1; }
.item-info strong { display: block; color: var(--white); font-size: .88rem; }
.item-info span { color: var(--muted); font-size: .78rem; }
.item-price { font-family: var(--font-head); font-weight: 700; color: var(--white); }
.summary-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.total-row.grand { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--white); margin-top: .5rem; }
.payment-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.payment-tab { flex: 1; padding: .7rem; border: 1px solid var(--border); background: var(--dark4); border-radius: var(--radius); text-align: center; cursor: pointer; transition: all var(--trans); font-size: .85rem; color: var(--muted); }
.payment-tab.active { border-color: var(--red); color: var(--red); background: rgba(255,77,77,.08); }
.coupon-row { display: flex; gap: .5rem; }
.coupon-row .form-input { flex: 1; }

/* ── Admin ─────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--dark3); border-right: 1px solid var(--border); padding: 1.5rem 0; }
.admin-sidebar .brand { padding: 0 1.25rem 1.25rem; margin-bottom: .75rem; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--white); }
.admin-sidebar .brand span { color: var(--red); }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: .6rem 1.25rem; color: var(--muted); font-size: .88rem; transition: all var(--trans); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,77,77,.1); color: var(--red); }
.admin-main { padding: 2rem; overflow-x: auto; }
.admin-main h1 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-card .icon { font-size: 1.5rem; margin-bottom: .5rem; }
.stat-card .val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--white); }
.stat-card .lbl { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: .6rem .75rem; font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: .8rem .75rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.action-link { color: var(--red); font-size: .82rem; font-weight: 600; }
.action-link:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--dark3); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo { margin-bottom: .75rem; }
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { background: var(--dark4); border: 1px solid var(--border); border-radius: 100px; padding: .25rem .65rem; font-size: .75rem; color: var(--muted); }
.footer-links h4 { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: .88rem; margin-bottom: .75rem; }
.footer-links a { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .4rem; transition: color var(--trans); }
.footer-links a:hover { color: var(--red); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .82rem; color: var(--muted); }
.payment-icons { display: flex; gap: .5rem; font-size: .78rem; color: var(--muted); }

/* ── Delivery modal ────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal { background: var(--dark3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 100%; }
.modal h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: .5rem; }
.modal p  { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.delivery-key { background: var(--dark4); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; font-family: monospace; font-size: .95rem; color: var(--green); word-break: break-all; margin-bottom: 1rem; }
.copy-btn { width: 100%; }

/* ── Misc utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { padding: .5rem .85rem; border-radius: 8px; border: 1px solid var(--border); background: var(--dark3); color: var(--muted); font-size: .85rem; text-decoration: none; transition: all var(--trans); }
.page-btn:hover, .page-btn.active { border-color: var(--red); color: var(--red); background: rgba(255,77,77,.08); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .hero-card         { display: none; }
  .product-layout    { grid-template-columns: 1fr; }
  .checkout-layout   { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .account-layout    { grid-template-columns: 1fr; }
  .admin-layout      { grid-template-columns: 1fr; }
  .admin-sidebar     { display: none; }
}
@media (max-width: 640px) {
  .main-nav          { display: none; }
  .hamburger         { display: block; }
  .mobile-nav        { display: flex; flex-direction: column; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--dark2); }
  .mobile-nav.open   { display: flex; }
  .mobile-nav a      { padding: .6rem 0; color: var(--muted); font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .header-actions .btn:not(.btn-primary) { display: none; }
  .footer-inner      { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .trust-bar-inner   { gap: 1rem; }
}
