/* ==========================================================================
   Die Auslage - Accessoires-Shop
   Art direction: boutique vitrine on a woven kilim ground.
   Warm madder red, saffron gold and ivory, framed in Kurdish geometric
   ornament. Layout only: products, prices and copy are unchanged.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Woven ground */
  --espresso:   #17100b;
  --espresso-2: #241a12;

  /* Silk and ivory */
  --ivory:      #F7F1E3;
  --ivory-2:    #EFE6D2;
  --ivory-3:    #E4D8BE;

  /* Metals and dyes */
  --gold:       #C8A24A;
  --gold-lt:    #E0C179;
  --madder:     #7C2230;   /* Kurdish madder red */
  --madder-2:   #5C1622;
  --teal:       #1F5E54;   /* Kurdish green */
  --ink:        #241A12;
  --muted:      #7C6A54;

  --cream-text: rgba(247, 241, 227, .82);
  --cream-dim:  rgba(247, 241, 227, .58);

  --shadow-soft: 0 2px 8px rgba(0, 0, 0, .22);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .42);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, .30), 0 1px 0 rgba(255, 255, 255, .55) inset;

  --radius: 4px;
  --gap: 30px;
  --maxw: 1320px;

  --serif: Georgia, 'Times New Roman', 'Noto Serif', 'Songti SC', serif;

  /* --- Kurdish ornament tiles, drawn as SVG data URIs --------------------- */

  /* Lozenge chain, horizontal: madder diamond, saffron core, green seam dot */
  --band-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 8 L4 8 M28 8 L32 8' stroke='%23C8A24A' stroke-width='1.1'/%3E%3Cpath d='M16 2 L27 8 L16 14 L5 8 Z' fill='%237C2230' stroke='%23C8A24A' stroke-width='1.1'/%3E%3Cpath d='M16 5 L22 8 L16 11 L10 8 Z' fill='%23C8A24A'/%3E%3Ccircle cx='0' cy='8' r='1.7' fill='%231F5E54'/%3E%3Ccircle cx='32' cy='8' r='1.7' fill='%231F5E54'/%3E%3C/svg%3E");

  /* Lozenge chain, vertical */
  --band-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cpath d='M8 0 L8 4 M8 28 L8 32' stroke='%23C8A24A' stroke-width='1.1'/%3E%3Cpath d='M8 2 L13 16 L8 30 L3 16 Z' fill='%237C2230' stroke='%23C8A24A' stroke-width='1.1'/%3E%3Cpath d='M8 6 L11 16 L8 26 L5 16 Z' fill='%23C8A24A'/%3E%3Ccircle cx='8' cy='0' r='1.7' fill='%231F5E54'/%3E%3Ccircle cx='8' cy='32' r='1.7' fill='%231F5E54'/%3E%3C/svg%3E");

  /* Short band used on card tops, panels and the header/footer edge */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M14 1 L24 5 L14 9 L4 5 Z' fill='%237C2230' stroke='%23C8A24A' stroke-width='1'/%3E%3Cpath d='M14 3.5 L19 5 L14 6.5 L9 5 Z' fill='%23C8A24A'/%3E%3Ccircle cx='0' cy='5' r='1.3' fill='%231F5E54'/%3E%3Ccircle cx='28' cy='5' r='1.3' fill='%231F5E54'/%3E%3C/svg%3E");

  /* Delicate diamond-dotted hairline, for the card inner frame */
  --hair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='8' viewBox='0 0 26 8'%3E%3Cpath d='M0 4 H8 M18 4 H26' stroke='%23C8A24A' stroke-width='1'/%3E%3Cpath d='M13 1 L17 4 L13 7 L9 4 Z' fill='none' stroke='%23C8A24A' stroke-width='1'/%3E%3Ccircle cx='13' cy='4' r='.9' fill='%237C2230'/%3E%3C/svg%3E");
  --hair-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='26' viewBox='0 0 8 26'%3E%3Cpath d='M4 0 V8 M4 18 V26' stroke='%23C8A24A' stroke-width='1'/%3E%3Cpath d='M1 13 L4 9 L7 13 L4 17 Z' fill='none' stroke='%23C8A24A' stroke-width='1'/%3E%3Ccircle cx='4' cy='13' r='.9' fill='%237C2230'/%3E%3C/svg%3E");

  /* Big tonal lattice with eight-point stars, for the page ground */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C8A24A' stroke-width='1' opacity='.1'%3E%3Cpath d='M60 10 L110 60 L60 110 L10 60 Z'/%3E%3Cpath d='M60 28 L92 60 L60 92 L28 60 Z'/%3E%3C/g%3E%3Cpath d='M60 42 L78 60 L60 78 L42 60 Z' fill='%23C8A24A' fill-opacity='.05'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%237C2230' fill-opacity='.16'/%3E%3Cg fill='%231F5E54' fill-opacity='.16'%3E%3Ccircle cx='0' cy='0' r='3.4'/%3E%3Ccircle cx='120' cy='0' r='3.4'/%3E%3Ccircle cx='0' cy='120' r='3.4'/%3E%3Ccircle cx='120' cy='120' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--espresso);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(200, 162, 74, .14), transparent 62%),
    var(--lattice),
    linear-gradient(180deg, var(--espresso-2), var(--espresso) 60%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: auto, 120px 120px, auto;
  color: var(--ivory);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, figure { margin: 0; }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a { color: inherit; }

::selection { background: rgba(200, 162, 74, .42); color: var(--ink); }

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

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(23, 16, 11, .93);
  background-image: linear-gradient(to bottom, rgba(200, 162, 74, .10), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(200, 162, 74, .55);
  backdrop-filter: blur(6px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 10px;
  background: var(--band) repeat-x center / 28px 10px;
  opacity: .55;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.wordmark { min-width: 0; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 4.6vw, 31px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  line-height: 1;
}

.wordmark__mark {
  color: var(--gold);
  font-size: .62em;
  letter-spacing: .24em;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: var(--ink);
  border-radius: var(--radius);
  font-stretch: 78%;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transition: transform .16s ease-out, box-shadow .16s ease-out, filter .16s ease-out;
}
.cart-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); filter: brightness(1.03); }
@media (max-width: 520px) {
  .wordmark__mark { display: none; }
  .cart-button { padding: 9px 13px; gap: 7px; font-size: 12px; }
  .site-header__inner { gap: 10px; }
}
@media (max-width: 400px) {
  .shell { padding: 0 16px; }
  .site-header__inner { gap: 8px; }
  .wordmark { font-size: 16px; letter-spacing: .07em; }
  .cart-button { padding: 8px 10px; gap: 6px; font-size: 11px; letter-spacing: .08em; }
  .cart-button__badge { min-width: 20px; height: 20px; font-size: 11px; }
}
.cart-button__dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--madder);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.cart-button__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--madder);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: transform .2s ease-out;
}
.cart-button__badge.is-bump { animation: bump .32s ease-out; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

/* -------------------------------------------------------------------- Hero */

.intro {
  padding-block: 54px 12px;
  text-align: center;
}
.intro__frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 38px 38px;
  background: var(--espresso-2);
  border: 1px solid rgba(200, 162, 74, .6);
  border-radius: 4px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(200, 162, 74, .12);
}
/* The kilim ring that frames the hero, tiled lozenges on all four sides */
.intro__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--band-h), var(--band-h), var(--band-v), var(--band-v);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position: top left, bottom left, top left, top right;
  background-size: 30px 15px, 30px 15px, 15px 30px, 15px 30px;
  opacity: .95;
}
/* Inner panel laid over the middle of the ring, leaving the band as a border */
.intro__frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(200, 162, 74, .45);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(200, 162, 74, .07), rgba(0, 0, 0, .26));
}
.intro__frame > * { position: relative; z-index: 2; }

.intro__eyebrow {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.intro__line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--ivory);
  margin-top: 12px;
}
.ornament {
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
}
.ornament svg { width: 100%; max-width: 260px; height: auto; display: block; }
.intro__sub {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--cream-text);
  font-size: 15px;
  line-height: 1.6;
}

/* Full-width section divider: a running kilim chain */
.rule-kilim {
  height: 20px;
  margin: 4px 0 0;
  background: var(--band-h) repeat-x center / 32px 16px;
  border-top: 1px solid rgba(200, 162, 74, .28);
  border-bottom: 1px solid rgba(200, 162, 74, .28);
  opacity: .9;
}

/* ------------------------------------------------------------------- Tray */

.tray {
  padding-block: 40px 64px;
}
.tray__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

@media (max-width: 1120px) {
  .tray__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tray__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 460px) {
  .tray__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ------------------------------------------------------- The framed plaque */

.tag {
  position: relative;
  display: flex;
  transform: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tag > .tag__card { flex: 1; }

.tag__string { display: none; }
.tag__hole { display: none; }

.tag__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 22px 16px 16px;
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
  color: var(--ink);
  border: 1px solid rgba(200, 162, 74, .65);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease-out, transform .2s ease-out, border-color .2s ease-out;
  overflow: hidden;
}
/* Kilim band across the top of every plaque */
.tag__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 9px;
  background: var(--band) repeat-x center / 26px 9px;
  opacity: .9;
  border-bottom: 1px solid rgba(200, 162, 74, .35);
}
/* Delicate diamond-dotted inner frame, so the warm framing carries through */
.tag__card::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  background-image: var(--hair), var(--hair), var(--hair-v), var(--hair-v);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position: top left, bottom left, top left, top right;
  background-size: 26px 8px, 26px 8px, 8px 26px, 8px 26px;
  opacity: .55;
}

.tag__open {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  background: none;
  border-radius: 2px;
}

.tag__num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-stretch: 84%;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--madder);
  font-variant-numeric: tabular-nums;
}
.tag__num span:last-child { color: var(--muted); font-weight: 600; }

/* Fixed-ratio media box: one product, contain, clipped by the arched top */
.tag__figure {
  position: relative;
  margin-top: 13px;
  aspect-ratio: 4 / 5;
  padding: 8px;
  background: var(--ivory-2);
  border: 1px solid rgba(200, 162, 74, .75);
  border-radius: 48% 48% 4px 4px / 24% 24% 4px 4px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(36, 26, 18, .12) inset;
}
.tag__figure svg { width: 46%; height: 46%; }
.tag__figure-img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tag__flag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 9px;
  padding: 2px 7px;
  border: 1px solid rgba(124, 34, 48, .7);
  border-radius: 2px;
  font-stretch: 84%;
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--madder);
  background: rgba(124, 34, 48, .05);
}

.tag__name {
  margin-top: 15px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.14;
  letter-spacing: .005em;
}
.tag__desc {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag__foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(200, 162, 74, .5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.tag__foot .add-btn { margin-left: auto; }
@media (max-width: 860px) {
  .add-btn { font-size: 10px; padding: 7px 9px; letter-spacing: .06em; }
}
.tag__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--ink);
  transition: color .16s ease-out;
  white-space: nowrap;
}

.tag:hover .tag__card {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lift), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.tag:hover .tag__price { color: var(--madder); }

/* A deliberate ring and lift on keyboard focus, never the browser blue */
.tag:focus-within .tag__card {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, .55), var(--shadow-lift);
}
.tag:focus-within .tag__price { color: var(--madder); }
.tag__open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ----------------------------------------------------- Compact add button */

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--madder);
  border: 1px solid var(--madder);
  border-radius: var(--radius);
  font-stretch: 78%;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .16s ease-out, color .16s ease-out, transform .16s ease-out;
}
.add-btn:hover { background: var(--madder); color: var(--ivory); transform: translateY(-1px); }
.add-btn.is-added { background: var(--teal); border-color: var(--teal); color: var(--ivory); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-stretch: 78%;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .16s ease-out, background .16s ease-out, border-color .16s ease-out, color .16s ease-out, filter .16s ease-out;
}
.btn--primary {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn--primary[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--secondary {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, .8);
}
.btn--secondary:hover { background: rgba(200, 162, 74, .14); }
.btn--ghost {
  background: transparent;
  color: var(--madder);
  box-shadow: inset 0 0 0 1px var(--madder);
}
.btn--ghost:hover { background: rgba(124, 34, 48, .08); }
.btn--wide { width: 100%; }

/* ---------------------------------------------------------------- Footer  */

.site-footer {
  position: relative;
  border-top: 1px solid rgba(200, 162, 74, .5);
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .28));
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -11px;
  height: 10px;
  background: var(--band) repeat-x center / 28px 10px;
  opacity: .5;
  pointer-events: none;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 34px 24px 46px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
}
.site-footer__links a {
  color: var(--cream-text);
  text-decoration: none;
  letter-spacing: .05em;
}
.site-footer__links a:hover { color: var(--gold); text-decoration: underline; }
.site-footer__note {
  font-size: 11.5px;
  color: var(--cream-dim);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- Drawer */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 7, 5, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  height: 100%;
  width: min(440px, 94vw);
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .22s ease-out;
  box-shadow: -24px 0 55px rgba(0, 0, 0, .45);
  border-left: 1px solid var(--gold);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(200, 162, 74, .6);
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
}
.drawer__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .04em;
}
.drawer__close {
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: var(--muted);
}
.drawer__close:hover { color: var(--ink); background: rgba(36, 26, 18, .08); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 16px;
}

.drawer__foot {
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(200, 162, 74, .6);
  background: var(--ivory-2);
}

.line-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200, 162, 74, .35);
}
.line-item__swatch {
  position: relative;
  width: 54px;
  height: 68px;
  border-radius: 3px;
  border: 1px solid rgba(200, 162, 74, .55);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ivory-2);
}
.line-item__swatch svg { width: 55%; height: 55%; }
.line-item__swatch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.line-item__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.line-item__meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.line-item__total {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(36, 26, 18, .4);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
}
.stepper button {
  width: 28px;
  height: 28px;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.stepper button:hover { background: rgba(36, 26, 18, .08); }
.stepper__val {
  min-width: 34px;
  text-align: center;
  font-stretch: 84%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

.cart-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}
.cart-total__amount { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.empty-cart {
  padding: 52px 10px;
  text-align: center;
  color: var(--muted);
}
.empty-cart__glyph {
  width: 48px; height: 48px; margin: 0 auto 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
}
.empty-cart__glyph svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------- Detail overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.detail {
  position: relative;
  width: min(940px, 100%);
  max-height: min(92vh, 840px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: var(--band) repeat-x center / 26px 10px;
  opacity: .9;
  border-bottom: 1px solid rgba(200, 162, 74, .35);
  z-index: 3;
}
.detail__hole { display: none; }
.detail__media {
  position: relative;
  min-height: 340px;
  margin: 20px 0 20px 20px;
  padding: 10px;
  border: 1px solid rgba(200, 162, 74, .75);
  border-radius: 48% 48% 4px 4px / 22% 22% 4px 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ivory-2);
}
.detail__media svg { width: 42%; height: 42%; }
.detail__media-img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail__body {
  padding: 44px 34px 38px;
}
.detail__num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-stretch: 84%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--madder);
  font-variant-numeric: tabular-nums;
}
.detail__flag {
  padding: 2px 7px;
  border: 1px solid rgba(124, 34, 48, .7);
  border-radius: 2px;
  font-size: 8.5px;
  letter-spacing: .16em;
  color: var(--madder);
}
.detail__name {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.02;
  letter-spacing: .005em;
}
.detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.detail__price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.detail__tax { font-size: 13px; color: var(--muted); }
.detail__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 22px 0;
}
.detail__desc { font-size: 15px; color: #3a2f22; line-height: 1.6; }
.detail__actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.detail__qty-label {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
}
.overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--ink);
  background: rgba(247, 241, 227, .9);
  border: 1px solid rgba(200, 162, 74, .6);
}
.overlay__close:hover { background: var(--ivory-3); }

@media (max-width: 720px) {
  .detail { grid-template-columns: 1fr; }
  .detail__media { margin: 16px 16px 0; min-height: 250px; }
  .detail__body { padding: 26px 22px 30px; }
}

/* ---------------------------------------------------------------- Checkout */

.view { display: none; }
.view.is-active { display: block; }

.checkout { padding-block: 44px 88px; }
.checkout__head { margin-bottom: 28px; }
.checkout__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .01em;
  color: var(--ivory);
}
.checkout__crumb {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.checkout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .checkout__grid { grid-template-columns: 1fr; }
}

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
  color: var(--ink);
  border: 1px solid rgba(200, 162, 74, .6);
  border-radius: 6px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 9px;
  background: var(--band) repeat-x center / 26px 9px;
  opacity: .85;
  border-bottom: 1px solid rgba(200, 162, 74, .3);
}
.panel + .panel { margin-top: 20px; }
.panel__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .01em;
  margin-bottom: 16px;
  padding-top: 4px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-stretch: 84%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 11px 12px;
  background: #FCF8EE;
  border: 1px solid rgba(36, 26, 18, .28);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
}
.field input:focus { border-color: var(--madder); outline: none; box-shadow: 0 0 0 2px rgba(124, 34, 48, .18); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field--row { grid-template-columns: 1fr; } }

.config-notice {
  border: 1px solid var(--madder);
  background: rgba(124, 34, 48, .06);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.config-notice__title {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--madder);
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-notice__title::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--madder);
  transform: rotate(45deg);
}
.config-notice p { font-size: 13px; margin-top: 8px; color: #4a3b30; }
.config-notice code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 12px;
  background: rgba(36, 26, 18, .08);
  padding: 1px 5px;
  border-radius: 3px;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.pay-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(36, 26, 18, .5);
  border-radius: 3px;
  font-stretch: 78%;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.pay-mark svg { display: block; }
.pay-mark--muted { opacity: .45; }

.receipt { font-variant-numeric: tabular-nums; }
.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 4px 0;
  color: #3a2f22;
}
.receipt__row span:last-child { white-space: nowrap; }
.receipt__item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(200, 162, 74, .35); font-size: 13.5px; }
.receipt__item small { display: block; color: var(--muted); font-size: 12px; }
.receipt__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.receipt__legal { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ----------------------------------------------------------- Confirmation */

.confirm {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 54px 20px 96px;
}
.receipt-tag {
  position: relative;
  width: min(540px, 100%);
  padding-top: 34px;
  transform-origin: 50% -6px;
}
.receipt-tag.is-swinging { animation: swing .6s cubic-bezier(.32, .72, .28, 1) both; }
@keyframes swing {
  0%   { transform: rotate(-7deg); }
  28%  { transform: rotate(3.6deg); }
  52%  { transform: rotate(-1.8deg); }
  72%  { transform: rotate(.8deg); }
  88%  { transform: rotate(-.3deg); }
  100% { transform: rotate(0deg); }
}
.receipt-tag__string {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 34px;
  background: var(--gold);
}
.receipt-tag__string::before {
  content: ""; position: absolute; left: -4px; top: -5px;
  width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%;
}
.receipt-tag__card {
  position: relative;
  background: linear-gradient(180deg, var(--ivory), var(--ivory-2));
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 38px 28px 30px;
  box-shadow: var(--shadow-lift);
  text-align: center;
  overflow: hidden;
}
.receipt-tag__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 10px;
  background: var(--band) repeat-x center / 26px 10px;
  opacity: .9;
  border-bottom: 1px solid rgba(200, 162, 74, .35);
}
.receipt-tag__check {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--madder);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(92, 22, 34, .35);
}
.receipt-tag__check svg { width: 28px; height: 28px; }
.receipt-tag__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.08;
  letter-spacing: .01em;
}
.receipt-tag__sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.receipt-tag__no {
  margin: 18px 0;
  padding: 11px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-stretch: 84%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.receipt-tag__list { text-align: left; margin: 4px 0 0; }
.receipt-tag__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.receipt-tag__line small { color: var(--muted); display: block; font-size: 12px; }
.receipt-tag__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}
.receipt-tag__actions { margin-top: 24px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- reduced */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .tag { transform: none !important; }
  .receipt-tag.is-swinging { animation: none !important; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
