/* ---------- shop page ---------- */
.shop-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.6rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.chip {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.result-count { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.thumb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.thumb[aria-pressed="true"] { border-color: var(--brass); box-shadow: var(--shadow-1); }
.thumb .img-frame { aspect-ratio: 1 / 1; border-radius: 0; }
.spec-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; }
.spec-list li { display: flex; gap: 0.8rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.spec-list .k {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--brass-2);
  min-width: 120px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-1);
  margin-bottom: 1.5rem;
}
.panel h2, .panel h3 { margin-top: 0; }
.summary {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-2);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.summary .totals div { color: rgba(244, 236, 216, 0.85); }
.summary .totals .grand { color: var(--cream); border-top-color: var(--line-dark); }
.summary .line-item { border-bottom-color: var(--line-dark); }
.summary .line-item .img-frame { width: 52px; height: 52px; }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.dark .accordion-trigger { color: var(--cream); }
.accordion-trigger:hover { color: var(--brass-2); }
.accordion-trigger .plus {
  font-family: var(--font-label);
  color: var(--brass);
  font-size: 1.2rem;
  transition: transform 0.25s var(--ease);
}
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); }
.accordion-panel { padding: 0 0 1.2rem; max-width: 70ch; }
.accordion-panel[hidden] { display: none; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-1);
}
.person .img-frame { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 0.9rem; }
.person h3 { margin: 0 0 0.3rem; }

/* ---------- receipt ---------- */
.receipt {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-2);
}
.receipt table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.receipt th, .receipt td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.receipt th {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--brass-2);
}
.receipt td.num, .receipt th.num { text-align: right; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.notfound .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--brass);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product-layout, .checkout-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-controls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .hamburger { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-header.nav-open .nav-list {
    display: grid;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h-shrunk);
    background: var(--navy-2);
    padding: 1rem var(--gutter);
    gap: 0.9rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .shop-controls { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem var(--gutter); }
  .line-item { grid-template-columns: 56px 1fr; }
  .line-item .line-price { grid-column: 2; }
}

@media (max-width: 390px) {
  body { font-size: 0.95rem; }
  .brand-tag { display: none; }
  .brand-name { white-space: nowrap; font-size: 1.05rem; }
  .nav-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { gap: 0.55rem; min-width: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .receipt th, .receipt td { font-size: 0.85rem; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .drawer, .drawer-scrim, .marquee, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .receipt, .panel { box-shadow: none; border-color: #999; }
  .summary { background: #fff; color: #000; }
  .summary .totals div, .summary .totals .grand { color: #000; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .hero::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .product-card:hover { transform: none; }
}

/* Phone header: keep the brand on one line and clear of the menu and cart buttons */
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand { gap: 0.55rem; min-width: 0; }
  .brand-name { white-space: nowrap; font-size: 1.05rem; }
  .nav-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .brand-mark { display: none; }
  .brand-name { font-size: 0.95rem; }
}
