/* ============================================================
   CISHOPP — Feuille de style principale
   Identité : carnet de schémas techniques (blueprint) appliqué
   à une boutique gadgets / high-tech.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #F0F4EE;
  --bg-alt: #E5EBE1;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-soft: #4A4F46;
  --ink-faint: #7A8177;
  --accent: #7ED33B;
  --accent-ink: #111111;
  --accent-2: #5AA82E;
  --trace: #7ED33B;
  --line: #CCD5C6;
  --line-strong: #ABB6A3;
  --radius: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shadow-card: 0 1px 2px rgba(16, 26, 43, 0.06), 0 8px 24px rgba(16, 26, 43, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(126, 211, 59, 0.18);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em 0;
  letter-spacing: -0.01em;
}

.section {
  padding: 64px 0;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
  padding-bottom: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(126, 211, 59, 0.32);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(126, 211, 59, 0.38); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--add {
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
}
.btn--add:hover { background: var(--accent-2); }
.btn--add.btn--added { background: var(--trace); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 210;
  background: rgba(237, 242, 246, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  flex-shrink: 0;
}
.logo__mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo__mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search {
  flex: 1 1 auto;
  max-width: 420px;
}
.search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.search__field svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}
.search__field input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--ink);
}
.search__field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(90, 168, 46, 0.14);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}
.cart-link svg { width: 19px; height: 19px; color: var(--ink); }
.cart-link .badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-close { display: none; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 18, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 190;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 48px 0 28px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-grid a, .footer-grid p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  display: block;
}
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-link {
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
}
.admin-link:hover { color: var(--accent-2); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 40px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div { font-family: var(--font-mono); }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}
.hero-stats span { font-size: 0.78rem; color: var(--ink-faint); }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.hero-panel__top .badge { position: static; }
.hero-panel .card__icon {
  width: 100%;
  height: 200px;
  color: var(--ink);
  padding: 12px 0;
}
.hero-panel__name { font-size: 1.3rem; margin-bottom: 4px; }
.hero-panel__desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.hero-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- Feature strip ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature svg { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 12px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ---------------- Product grid & cards ---------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.rail .card { scroll-snap-align: start; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.card__frame {
  position: relative;
  background: var(--bg-alt);
  padding: 26px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__frame::before, .card__frame::after,
.card__frame > .badge { z-index: 1; }
.card__frame::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--line-strong);
  border-left: 2px solid var(--line-strong);
}
.card__frame::after {
  content: "";
  position: absolute;
  bottom: 10px; right: 10px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
}
.card__icon { width: 96px; height: 96px; color: var(--ink); }
.card__photo { width: 100%; height: 168px; object-fit: cover; border-radius: 10px; }
.hero-panel .card__photo { height: 200px; }
.card__quickadd {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease;
}
.card__quickadd svg { width: 15px; height: 15px; color: var(--accent); }
.card__quickadd:hover { transform: scale(1.08); }
.card__quickadd.btn--added { background: var(--accent); }
.card__quickadd.btn--added svg { color: var(--ink); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge--promo { background: var(--accent); color: #fff; }
.badge--best { background: var(--trace); color: #fff; }

.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 0;
}
.card__name { font-size: 1.05rem; margin: 0; }
.card__desc {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 8px;
  flex: 1;
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.price--old { text-decoration: line-through; color: var(--ink-faint); font-size: 0.8rem; margin-right: 6px; }
.price--new { color: var(--accent); }

/* ---------------- Boutique filters ---------------- */
.shop-head {
  padding-top: 44px;
  padding-bottom: 20px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 36px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.category-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 40px 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="%23111111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 14px center;
  background-size: 14px;
  color: var(--ink);
  cursor: pointer;
  min-width: 220px;
  max-width: 100%;
}
.category-select:hover { border-color: var(--ink-soft); }
.category-select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(90, 168, 46, 0.14); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}
.pagination__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pagination__arrow svg { width: 14px; height: 14px; color: var(--ink); }
.pagination__arrow:hover:not(:disabled) { border-color: var(--ink); }
.pagination__arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination__info { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); min-width: 90px; text-align: center; }

/* ---------------- About page ---------------- */
.about-hero {
  padding: 56px 0 24px;
}
.about-hero p.lede { max-width: 60ch; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.timeline__item {
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}
.timeline__item .eyebrow { margin-bottom: 8px; }
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------------- Cart page ---------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}
.cart-row td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-row__product { display: flex; align-items: center; gap: 14px; }
.cart-row__icon {
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.cart-row__photo {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-row__name { font-family: var(--font-display); font-weight: 600; margin: 0 0 2px; }
.cart-row__cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); margin: 0; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: var(--surface);
  width: 30px; height: 30px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
}
.qty-stepper button:hover { background: var(--bg-alt); }
.qty-stepper span {
  width: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.remove-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
}
.remove-link:hover { color: var(--accent); border-color: var(--accent); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.summary-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 8px 0;
}
.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.summary-line.total span:last-child { color: var(--accent); }

/* ---------------- Checkout page ---------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}
.recap-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.recap-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.recap-item .qty-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.field input, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(90, 168, 46, 0.14);
}
.field textarea { resize: vertical; min-height: 90px; }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field__error { font-size: 0.76rem; color: var(--accent); display: none; }
.field.has-error .field__error { display: block; }

.form-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 22px 0 14px;
}
.form-section-title:first-child { margin-top: 0; }

.confirm-banner {
  display: none;
  background: rgba(34, 164, 110, 0.1);
  border: 1px solid var(--trace);
  color: #1a7d54;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.confirm-banner.is-visible { display: block; }
.confirm-banner.is-error {
  background: rgba(226, 62, 62, 0.08);
  border-color: #E23E3E;
  color: #b8302f;
}

/* ---------------- Page hero (secondary pages) ---------------- */
.page-hero {
  padding: 44px 0 8px;
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: var(--ink-soft); max-width: 60ch; }

/* ---------------- Fiche produit (modale) ---------------- */
.card { cursor: pointer; }
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 43, 0.55);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal-overlay.is-open { display: flex; }
.product-modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
}
.product-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.product-modal__close svg { width: 16px; height: 16px; color: var(--ink); }
.product-modal__close:hover { border-color: var(--ink); }
.product-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.product-modal__media {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.product-modal__img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; }
.product-modal__icon { width: 180px; height: 180px; color: var(--ink); }
.product-modal__gallery { position: relative; width: 100%; height: 100%; min-height: 340px; }
.product-modal__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-modal__track::-webkit-scrollbar { display: none; }
.product-modal__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.product-modal__slide--icon { padding: 40px; }
.product-modal__slide .product-modal__img { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.product-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.product-modal__arrow svg { width: 14px; height: 14px; color: var(--ink); }
.product-modal__arrow--prev { left: 12px; }
.product-modal__arrow--next { right: 12px; }
.product-modal__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.product-modal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(17, 17, 17, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.product-modal__dot.is-active { width: 18px; border-radius: 4px; background: var(--accent); }
.product-modal__body { padding: 36px; }
.product-modal__body h2 { font-size: 1.4rem; margin: 4px 0 14px; }
.product-modal__desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 20px; line-height: 1.6; }
.product-modal__body .card__price { margin-bottom: 20px; font-size: 1.05rem; }

@media (max-width: 720px) {
  .product-modal__grid { grid-template-columns: 1fr; }
  .product-modal__media { border-radius: 20px 20px 0 0; padding: 0; }
  .product-modal__body { padding: 24px; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .search { order: 3; max-width: 100%; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 340px);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 84px 22px 28px;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 200;
    box-shadow: -10px 0 32px rgba(0, 0, 0, 0.18);
    order: 4;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    width: 100%;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: none;
  }
  .nav-close svg { width: 16px; height: 16px; color: var(--ink); }

  .nav-quick {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--ink);
    border-radius: 12px;
    padding: 4px 14px;
    margin-bottom: 6px;
  }
  .nav-quick__item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding: 14px 0 !important;
  }
  .nav-quick__item:last-child { border-bottom: none !important; }
  .nav-quick__item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
  .nav-quick__badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: none;
  }

  .nav-label {
    width: 100%;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin: 16px 0 2px;
    font-weight: 600;
  }

  .nav-cat {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .nav-cat svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }
  .nav-cat--all { font-weight: 700; }

  .nav-toggle { display: flex; margin-left: auto; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-select { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .card__frame { padding: 14px; min-height: 130px; }
  .card__icon { width: 60px; height: 60px; }
  .card__photo { height: 110px; }
  .card__body { padding: 10px 10px 12px; gap: 3px; }
  .card__cat { font-size: 0.62rem; }
  .card__name {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
  }
  .card__desc { display: none; }
  .card__footer { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card__footer .btn--add { display: none; }
  .price { font-size: 0.82rem; }
  .price--old { font-size: 0.68rem; }
  .badge { font-size: 0.6rem; padding: 4px 8px; top: 8px; left: 8px; }
  .card__quickadd { width: 28px; height: 28px; bottom: 8px; right: 8px; }
  .card__quickadd svg { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
