/* ═══════════════════════════════════════════
   BALATON-TECH WEBSHOP — 2026 design
═══════════════════════════════════════════ */

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

:root {
  --bg:        #0a0a0f;
  --bg-2:      #12121a;
  --bg-3:      #1a1a25;
  --surface:   #14141c;
  --surface-2: #1c1c28;
  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.14);
  --accent:    #ff4d00;
  --accent-2:  #ff7a3d;
  --accent-glow: rgba(255,77,0,.35);
  --text:      #ffffff;
  --text-dim:  rgba(255,255,255,.75);
  --muted:     #9ca3af;
  --muted-2:   #6b7280;
  --success:   #10b981;
  --warn:      #f59e0b;
  --danger:    #ef4444;
  --info:      #3b82f6;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --nav-h:     72px;
  --ease:      cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
  --shadow:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

::selection { background: var(--accent); color: #fff; }

.container { width: min(1280px, 100% - 3rem); margin-inline: auto; }

/* ─── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 6px 28px var(--accent-glow); }
.btn-outline {
  border: 1.5px solid var(--border-2); color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ─── Navigation ────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  color: #fff;
  flex-shrink: 0;
}
.nav__logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
/* régi komponensek vissza-kompatibilisen */
.nav__logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: .8rem;
  font-family: var(--font-head);
}
.nav__logo-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.nav__logo-text span { color: var(--accent); }
.nav__links {
  display: flex; align-items: center; gap: 2rem;
  flex: 1;
}
.nav__links a {
  color: var(--text-dim);
  font-size: .9rem; font-weight: 500;
  position: relative;
  transition: color .2s;
}
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__search {
  position: relative;
  width: 260px;
}
.nav__search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem 1rem .55rem 2.4rem;
  font-size: .88rem;
  color: var(--text);
  transition: all .2s;
}
.nav__search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.nav__search svg {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.nav__search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 420px; overflow: auto;
  display: none;
}
.nav__search-results.open { display: block; }
.nav__search-result {
  display: flex; gap: .75rem; align-items: center;
  padding: .75rem; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.nav__search-result:hover { background: var(--surface-2); }
.nav__search-result img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.nav__search-result strong { font-size: .88rem; color: var(--text); }
.nav__search-result small { color: var(--accent); font-weight: 600; }

.nav__icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all .2s;
}
.nav__icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav__icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
}

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.nav__hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s; }

/* ─── Sections / Layout ─────────────────── */
.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 5rem 0; }

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.page-header p { color: var(--muted); margin-top: .5rem; }

.breadcrumb { display: flex; gap: .5rem; color: var(--muted); font-size: .85rem; margin-bottom: .75rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .75rem;
}
.section-label::before {
  content: ''; width: 20px; height: 2px; background: var(--accent);
}

/* ─── Catalog / Product cards ───────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.filters__title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem;
}
.filters__group { margin-bottom: 1.5rem; }
.filters__group h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .6rem;
}
.filters__item {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem 0;
  font-size: .88rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .15s;
}
.filters__item:hover { color: var(--text); }
.filters__item input[type="checkbox"], .filters__item input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}
.filters__range { display: flex; gap: .5rem; margin-top: .5rem; }
.filters__range input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem;
  font-size: .85rem;
  color: var(--text);
}
.filters__apply { width: 100%; margin-top: .5rem; }

.catalog-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.catalog-header__count { color: var(--muted); font-size: .9rem; }
.catalog-header select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem;
  color: var(--text);
  font-size: .88rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.product-card__image {
  aspect-ratio: 4 / 3;
  background: var(--bg-2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 16l5-5 4 4 3-3 6 6"/></svg>') center/60px no-repeat;
  overflow: hidden;
  position: relative;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge-sale { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge-new { background: var(--success); color: #fff; border-color: var(--success); }
.badge-used { background: var(--warn); color: #fff; border-color: var(--warn); }
.badge-refurbished { background: var(--info); color: #fff; border-color: var(--info); }
.badge-featured { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; }
.badge-out { background: var(--danger); color: #fff; }

.product-card__body {
  padding: 1rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.product-card__cat {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .35rem;
}
.product-card__name {
  font-weight: 600; font-size: .95rem; line-height: 1.35;
  color: var(--text);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  margin-top: auto;
  display: flex; align-items: baseline; gap: .5rem;
  flex-wrap: wrap;
}
.product-card__price-now {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.25rem;
  color: var(--accent);
}
.product-card__price-was {
  font-size: .88rem; color: var(--muted);
  text-decoration: line-through;
}
.product-card__actions {
  padding: 0 1rem 1rem;
  display: flex; gap: .5rem;
}
.product-card__actions .btn { flex: 1; }

/* ─── Product detail ────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.gallery__main {
  aspect-ratio: 1/1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs {
  display: flex; gap: .5rem;
  margin-top: .75rem;
  overflow-x: auto;
}
.gallery__thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  cursor: pointer;
}
.gallery__thumb.active { border-color: var(--accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.product-info__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.product-info__short { color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; }
.product-info__price {
  display: flex; align-items: baseline; gap: .75rem;
  margin-bottom: 1.5rem;
}
.product-info__price-now {
  font-family: var(--font-head);
  font-weight: 700; font-size: 2.2rem;
  color: var(--accent);
}
.product-info__price-was {
  font-size: 1.1rem; color: var(--muted);
  text-decoration: line-through;
}
.product-info__stock { font-size: .9rem; margin-bottom: 1.25rem; }
.product-info__stock--in { color: var(--success); }
.product-info__stock--out { color: var(--danger); }

.qty-picker {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden;
}
.qty-picker button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--text);
  transition: background .15s;
}
.qty-picker button:hover { background: var(--bg-3); }
.qty-picker input {
  width: 50px; text-align: center;
  background: transparent; border: none;
  color: var(--text); font-weight: 600;
}

.product-info__buy { display: flex; gap: .75rem; margin-bottom: 2rem; align-items: center; flex-wrap: wrap; }

.specs-table {
  width: 100%; border-collapse: collapse;
  margin-top: 1rem;
}
.specs-table th, .specs-table td {
  padding: .7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.specs-table th { color: var(--muted); font-weight: 500; width: 38%; }
.specs-table td { color: var(--text); }

.product-desc {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-desc h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.product-desc p { color: var(--text-dim); line-height: 1.7; }

/* ─── Cart ──────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.cart-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 90px; height: 90px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-2);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info strong { display: block; margin-bottom: .25rem; }
.cart-item__info small { color: var(--muted); }
.cart-item__price { color: var(--accent); font-weight: 600; }
.cart-item__remove { color: var(--muted); transition: color .15s; }
.cart-item__remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.cart-summary__row {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  color: var(--text-dim);
}
.cart-summary__total {
  display: flex; justify-content: space-between;
  padding: 1rem 0 .5rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.cart-summary__total span:last-child { color: var(--accent); }

.cart-empty {
  text-align: center; padding: 4rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-empty svg { color: var(--muted); margin-bottom: 1rem; }
.cart-empty h3 { font-family: var(--font-head); margin-bottom: .5rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }

/* ─── Forms ─────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 460px;
  margin: 3rem auto;
}
.form-card h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--text-dim);
  margin-bottom: .35rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .92rem;
  color: var(--text);
  transition: all .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { min-height: 90px; resize: vertical; }
.field small { color: var(--muted); font-size: .78rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.checkbox {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer;
  font-size: .9rem;
  padding: .5rem 0;
}
.checkbox input { accent-color: var(--accent); width: 18px; height: 18px; }

.flash {
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .9rem;
  border: 1px solid;
}
.flash--success { background: rgba(16,185,129,.1); border-color: var(--success); color: #6ee7b7; }
.flash--error { background: rgba(239,68,68,.1); border-color: var(--danger); color: #fca5a5; }
.flash--info { background: rgba(59,130,246,.1); border-color: var(--info); color: #93c5fd; }
.flash--warn { background: rgba(245,158,11,.1); border-color: var(--warn); color: #fcd34d; }

/* ─── Checkout ─────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}
.checkout-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.checkout-section h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.radio-card {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: .5rem;
  transition: all .2s;
}
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255,77,0,.06);
}
.radio-card input { accent-color: var(--accent); margin-top: .2rem; }
.radio-card__title { font-weight: 600; margin-bottom: .15rem; }
.radio-card__desc { font-size: .82rem; color: var(--muted); }

/* ─── Empty states ───────────────────────── */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* ─── Pagination ───────────────────────── */
.pagination {
  display: flex; gap: .35rem; justify-content: center;
  margin-top: 2.5rem;
}
.pagination__item {
  min-width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 .75rem;
  font-size: .9rem;
  color: var(--text-dim);
  transition: all .2s;
}
.pagination__item:hover { border-color: var(--accent); color: var(--accent); }
.pagination__item--active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Footer ────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__about p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: .5rem; }
.footer__col h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  color: var(--muted); font-size: .88rem;
  padding: .25rem 0;
  transition: color .15s;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── Reveal animations ─────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── Hero (catalog top) ─────────────────── */
.shop-hero {
  background: radial-gradient(circle at 20% 20%, rgba(255,77,0,.12), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,77,0,.08), transparent 50%),
              var(--bg-2);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.shop-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.shop-hero h1 span { color: var(--accent); }
.shop-hero p { color: var(--muted); max-width: 600px; font-size: 1.05rem; }

.category-chips {
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin-top: 1.75rem;
}
.category-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-dim);
  transition: all .2s;
}
.category-chip:hover, .category-chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__search { display: none; }
  .nav__hamburger { display: flex; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
  .cart-item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item__img { width: 70px; height: 70px; grid-row: 1 / 3; }
  .cart-item__qty, .cart-item__price, .cart-item__remove { grid-column: 2; justify-self: start; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ─── Mobile nav drawer ─────────────────── */
.mobile-drawer {
  position: fixed; top: 0; right: 0;
  width: min(320px, 85vw); height: 100%;
  background: var(--bg-2);
  z-index: 1001;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  border-left: 1px solid var(--border);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  padding: .8rem 0;
  font-size: 1.1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer a:hover { color: var(--accent); }
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface); border-radius: 50%;
  color: var(--text-dim);
}
