/* ---------------------------------------------------
   Bloke Apparel & Supply — tokens
--------------------------------------------------- */
:root {
  --canvas: #EDE4D2;
  --paper: #FBF7EC;
  --ink: #211C15;
  --ink-soft: #5B5142;
  --denim: #33495E;
  --denim-deep: #22323F;
  --brass: #A9823D;
  --rust: #9C4326;
  --line: rgba(33, 28, 21, 0.16);
  --line-soft: rgba(33, 28, 21, 0.09);

  --font-display: 'Bevan', 'Georgia', serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --radius-tag: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 999;
  font-family: var(--font-mono);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--denim);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--denim);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--brass); }

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--denim);
  color: var(--paper);
}
.btn-primary:hover { background: var(--denim-deep); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-paper {
  background: var(--paper);
  color: var(--denim-deep);
}
.btn-paper:hover { background: var(--ink); color: var(--paper); }

.tag-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px dashed var(--ink);
  padding: 8px 14px;
  border-radius: 3px;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark-logo {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.icon-btn span {
  width: 22px; height: 2px; background: var(--ink); display: block;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 190px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(33, 28, 21, 0.28);
}
.hero-inner {
  max-width: 700px;
  background: rgba(237, 228, 210, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-tag);
  padding: 32px 36px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(42px, 6.4vw, 84px);
  display: flex;
  flex-direction: column;
  margin: 6px 0 26px;
}

.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------
   Stock tag component (signature element)
--------------------------------------------------- */
.stock-tag {
  display: block;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  padding: 18px 18px 20px;
  box-shadow: 3px 5px 0 rgba(33,28,21,0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stock-tag-hole {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1.5px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}

.stock-tag-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin: 0 0 10px;
  padding-left: 26px;
}

.stock-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-tag-list li {
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.stock-tag-list li:last-child { border-bottom: none; padding-bottom: 0; }

.hero-tag {
  position: absolute;
  right: 8%;
  bottom: 60px;
  width: 220px;
  transform: rotate(4deg);
}
@media (max-width: 900px) {
  .hero-tag { display: none; }
}

/* tag grid (departments) */
.tag-grid {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tag-grid { grid-template-columns: 1fr; }
}

.tag-grid .stock-tag:hover {
  transform: rotate(-1.4deg) translateY(-4px);
  box-shadow: 5px 9px 0 rgba(33,28,21,0.1);
}
.tag-grid li:nth-child(even) .stock-tag:hover {
  transform: rotate(1.4deg) translateY(-4px);
}

.stock-tag-photo {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 14px;
}
.stock-tag-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.stock-tag:hover .stock-tag-photo img { transform: scale(1.05); }

.stock-tag-no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

/* ---------------------------------------------------
   Kiwi mascot — cut from the wordmark, used at the
   small in-between moments (empty states, confirmation,
   the footer signature)
--------------------------------------------------- */
.mascot {
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  user-select: none;
}
.mascot-tiny { height: 18px; width: auto; }
.mascot-sm { height: 32px; width: auto; margin-bottom: 12px; }
.mascot-md { height: 44px; width: auto; margin-bottom: 14px; }
.mascot-lg { height: 64px; width: auto; margin-bottom: 18px; }
.mascot-flip { transform: scaleX(-1); }

/* Kiwi easter egg — mostly tucked behind the period, shrinks into it on
   hover and grows back out once the mouse moves away */
.kiwi-perch {
  position: relative;
  z-index: 0;
  display: inline-block;
  pointer-events: none;
}
.kiwi-perch-bird {
  position: absolute;
  z-index: -1;
  bottom: -4px;
  right: 4px;
  height: 22px;
  width: auto;
  transform-origin: 82% 12%;
  transform: rotate(-10deg) scale(1);
  transition: transform 0.32s cubic-bezier(.5, 0, .3, 1.4) 0.5s;
  pointer-events: auto;
  cursor: default;
}
.kiwi-perch-bird:hover {
  transform: rotate(-10deg) scale(0.05);
  transition: transform 0.2s ease;
}
@media (max-width: 560px) {
  .kiwi-perch-bird { display: none; }
}

.tag-grid h3 {
  font-size: 22px;
}

/* ---------------------------------------------------
   Ticker
--------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: var(--canvas);
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: ticker-scroll 34s linear infinite;
}
.ticker-track span:nth-child(odd) { color: var(--brass); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ---------------------------------------------------
   Departments
--------------------------------------------------- */
.departments { padding: 96px 0 100px; }

.section-head { max-width: 640px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }

/* ---------------------------------------------------
   The Edit
--------------------------------------------------- */
.edit {
  background: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 860px) {
  .edit-inner { grid-template-columns: 1fr; gap: 46px; }
}

.edit-media { position: relative; }
.edit-media img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.edit-media-tag {
  position: absolute;
  bottom: -22px;
  left: -22px;
  width: 200px;
  transform: rotate(-4deg);
  padding: 14px 16px 16px;
}
@media (max-width: 560px) {
  .edit-media-tag { display: none; }
}

.edit-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 20px; }
.edit-copy p { color: var(--ink-soft); font-size: 16.5px; }

.fact-row {
  list-style: none;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fact-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--ink);
}
.fact-row span { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .fact-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   Beyond the closet
--------------------------------------------------- */
.beyond { padding: 100px 0; }

.beyond-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) {
  .beyond-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .beyond-grid { grid-template-columns: 1fr; }
}

.beyond-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.beyond-media { aspect-ratio: 16/10; overflow: hidden; }
.beyond-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.beyond-card:hover .beyond-media img { transform: scale(1.04); }
.beyond-copy { padding: 26px 28px 30px; }
.beyond-copy h3 { font-size: 26px; margin-bottom: 10px; }
.beyond-copy p { color: var(--ink-soft); }

/* ---------------------------------------------------
   From the shop floor (photo grid)
--------------------------------------------------- */
.shopfloor {
  background: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.photo-grid li {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--canvas);
}
.photo-grid li:nth-child(6n+1),
.photo-grid li:nth-child(6n+4) {
  grid-row: span 2;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-grid li:hover img { transform: scale(1.06); }

/* Kiwi easter egg — tucked behind a photo, peeking out at the corner */
.photo-grid li.shopfloor-peek { overflow: visible; }
.photo-grid .shopfloor-peek img:not(.kiwi-peek) { position: relative; }
.photo-grid .kiwi-peek {
  position: absolute;
  bottom: -10px;
  right: -12px;
  height: 34px;
  width: auto;
  transform: scaleX(-1) rotate(8deg);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .photo-grid li:nth-child(6n+1), .photo-grid li:nth-child(6n+4) { grid-row: span 1; }
  .photo-grid li:nth-child(4n+1) { grid-row: span 2; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .photo-grid li:nth-child(4n+1) { grid-row: span 1; }
  .photo-grid .kiwi-peek { height: 26px; bottom: -7px; right: -8px; }
}

/* ---------------------------------------------------
   On the gram (Elfsight Instagram feed)
--------------------------------------------------- */
.instagram { padding: 100px 0; border-bottom: 1px solid var(--line); }

.instagram-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: none;
  margin-bottom: 44px;
}
.instagram-handle {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
}
.instagram-handle:hover { color: var(--ink); border-color: var(--ink); }
.instagram-follow { flex-shrink: 0; }

/* ---------------------------------------------------
   Gift card banner
--------------------------------------------------- */
.giftcard {
  background: var(--denim);
  color: var(--paper);
  padding: 68px 0;
}
.giftcard-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.giftcard h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  max-width: 22ch;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--canvas);
  padding-top: 72px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(237,228,210,0.16);
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-wordmark {
  height: 46px;
  width: auto;
  margin: 0 0 16px;
  filter: invert(1) brightness(1.6);
}
.footer-note {
  color: rgba(237,228,210,0.7);
  font-size: 14px;
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li {
  font-size: 14px;
  color: rgba(237,228,210,0.82);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--paper); text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-size: 12.5px;
  color: rgba(237,228,210,0.55);
  font-family: var(--font-mono);
}
.footer-kiwi {
  opacity: 0.5;
  margin: 0;
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------------------------------------------------
   Scroll reveal
--------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* stagger inside hero */
.hero-title .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-title .reveal:nth-child(2) { transition-delay: 0.14s; }
.hero-sub.reveal { transition-delay: 0.22s; }
.hero-ctas.reveal { transition-delay: 0.3s; }
.hero-tag.reveal { transition-delay: 0.4s; }

/* ---------------------------------------------------
   Responsive nav
--------------------------------------------------- */
@media (max-width: 560px) {
  .wordmark { font-size: 16px; }
  .tag-link { display: none; }
  .header-row { gap: 12px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 22px;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav.is-open a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .icon-btn { display: flex; }
}

/* ---------------------------------------------------
   Cart button + badge
--------------------------------------------------- */
.search-btn, .cart-btn {
  position: relative;
  display: flex !important;
  color: var(--ink);
}
.cart-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cart-badge.is-visible { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------
   Cart drawer
--------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 28, 21, 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -6px 0 24px rgba(33, 28, 21, 0.18);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 22px;
}
.cart-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 36px;
}
.cart-empty p { margin: 0; }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.cart-line-name {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 4px;
}
.cart-line-size {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}
.cart-line-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
}
.cart-line-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 4px;
}
.cart-line-remove:hover { color: var(--rust); }

.cart-drawer-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 6px;
}
.cart-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.cart-checkout-btn {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ---------------------------------------------------
   Search field (shop page inline + overlay panel)
--------------------------------------------------- */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 11px 18px;
  margin-top: 26px;
  max-width: 420px;
  color: var(--ink-soft);
  transition: border-color 0.18s ease;
}
.search-field:focus-within { border-color: var(--denim); color: var(--ink); }
.search-field svg { flex-shrink: 0; }
.search-field input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-soft); }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 28, 21, 0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }

.search-panel {
  position: fixed;
  top: 90px;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  transform: translate(-50%, -14px);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(33, 28, 21, 0.28);
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-panel.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.search-panel-head svg { flex-shrink: 0; color: var(--ink-soft); }
.search-panel-head input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 17px;
  padding: 12px 0;
  color: var(--ink);
}
.search-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 10px;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}
.search-result:hover, .search-result:focus-visible { background: var(--canvas); }
.search-result img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}
.search-result-price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.search-empty, .search-hint {
  padding: 26px 20px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.search-empty .mascot { margin-bottom: 10px; }

.shop-card.is-highlighted {
  outline: 2.5px solid var(--brass);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   Shop page
--------------------------------------------------- */
.shop-hero {
  padding: 64px 0 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.shop-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 4px 0 14px;
}
.shop-hero-sub {
  color: var(--ink-soft);
  max-width: 50ch;
  font-size: 16.5px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 26px 0;
}
.filter-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter-pill:hover { border-color: var(--denim); }
.filter-pill.is-active {
  background: var(--denim);
  border-color: var(--denim);
  color: var(--paper);
}

.shop-grid-section { padding-bottom: 100px; }
.shop-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}

.shop-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--canvas); }
.shop-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.shop-card:hover .shop-card-photo img { transform: scale(1.05); }
.shop-card-body { padding: 16px 16px 18px; }
.shop-card-body h3 {
  font-size: 17px;
  line-height: 1.2;
  margin: 2px 0 10px;
  min-height: 2.4em;
}
.shop-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.shop-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.btn-small {
  padding: 9px 14px;
  font-size: 11.5px;
}

/* ---------------------------------------------------
   Product modal (gallery)
--------------------------------------------------- */
.shop-card-photo { cursor: pointer; }

.product-overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 28, 21, 0.6);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.product-overlay.is-open { opacity: 1; pointer-events: auto; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100% - 32px));
  max-height: min(88vh, 860px);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(33, 28, 21, 0.32);
  z-index: 96;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%);
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
}
.product-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
@media (max-width: 760px) {
  .product-modal {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.product-modal-gallery {
  background: var(--canvas);
  display: flex;
  flex-direction: column;
}
.product-modal-stage {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.product-modal-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(251, 247, 236, 0.85);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.product-modal-nav:hover { background: var(--paper); }
.product-modal-prev { left: 10px; }
.product-modal-next { right: 10px; }
.product-modal-nav[hidden] { display: none; }

.product-modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
}
.product-modal-thumbs button {
  flex-shrink: 0;
  width: 36px;
  height: 45px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  background: none;
}
.product-modal-thumbs button.is-active { border-color: var(--denim); opacity: 1; }
.product-modal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-modal-body { padding: 28px 28px 30px; overflow-y: auto; }
.product-modal-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 4px 0 14px;
  line-height: 1.2;
}
.product-modal-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 22px;
}

.product-modal-size-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.product-modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.size-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.is-selected {
  border-color: var(--denim);
  background: var(--denim);
  color: var(--paper);
}
.size-chip.is-sold-out {
  color: var(--ink-soft);
  border-color: var(--line-soft);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.55;
}
.size-chip.is-sold-out:hover { border-color: var(--line-soft); }

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------
   Checkout page
--------------------------------------------------- */
.checkout-flag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 760px) { .checkout-flag { display: none; } }

.checkout-section { padding: 56px 0 100px; }

.checkout-inner { max-width: 1080px; }

.checkout-empty {
  text-align: center;
  padding: 80px 0;
}
.checkout-empty h1 { font-size: 34px; margin: 8px 0 14px; }
.checkout-empty p { color: var(--ink-soft); margin-bottom: 26px; }

.checkout-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-form { grid-template-columns: 1fr; }
}

.checkout-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 34px;
}
.checkout-fieldset legend {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--denim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-tag {
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0;
  color: var(--brass);
  font-size: 11.5px;
}

.field {
  display: block;
  margin-bottom: 14px;
}
.field span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus {
  outline: 2px solid var(--denim);
  outline-offset: 1px;
  border-color: var(--denim);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row-3 { grid-template-columns: 1.4fr 0.8fr 1fr; }
@media (max-width: 480px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

.checkout-submit { width: 100%; justify-content: center; }
.checkout-disclaimer {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

.checkout-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 90px;
}
.checkout-summary-title {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 16px;
}
.checkout-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.checkout-line img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.checkout-line-name { font-size: 13.5px; font-weight: 600; margin: 0; }
.checkout-line-size { font-size: 12px; color: var(--ink-soft); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.checkout-line-qty { font-size: 12px; color: var(--ink-soft); margin: 0; }
.checkout-line-price { font-family: var(--font-mono); font-size: 13px; }

.checkout-totals { margin-top: 16px; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
}
.checkout-total-grand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

.checkout-confirmation {
  text-align: center;
  padding: 60px 0;
  max-width: 480px;
  margin: 0 auto;
}
.confirmation-tag {
  display: inline-block;
  position: relative;
  width: 200px;
  margin: 0 auto 30px;
  transform: rotate(-3deg);
  overflow: visible;
}
.confirmation-stamp {
  position: absolute;
  top: -16px;
  right: -18px;
  height: 46px;
  width: auto;
  transform: rotate(14deg);
  filter: drop-shadow(2px 3px 0 rgba(33,28,21,0.12));
}
.checkout-confirmation h1 { font-size: 34px; margin: 6px 0 14px; }
.checkout-confirmation p { color: var(--ink-soft); margin-bottom: 26px; }
