/* ─────────────────────────────────────────────
   GSU Shop · Schulhof Editorial
   Caprasimo · Plus Jakarta Sans · Caveat
   ───────────────────────────────────────────── */

:root {
  --paper: #fbf3e3;
  --paper-2: #f5ebd5;
  --ink: #1a1815;
  --ink-soft: #4a443c;
  --muted: #8a8275;

  --red: #e63946;
  --red-deep: #c1232f;
  --blue: #1d6fb8;
  --blue-deep: #15538b;
  --yellow: #ffc93c;
  --yellow-deep: #e6a800;
  --green: #4fa666;
  --green-deep: #357a48;

  --border: #1a1815;
  --shadow-stroke: 4px 4px 0 var(--ink);
  --shadow-soft: 0 18px 40px -22px rgba(26,24,21,.35);

  --display: "Caprasimo", "Georgia", serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

/* Paper grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  width: 100%; height: 100%; mix-blend-mode: multiply; opacity: .35;
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: sticky; top: 14px; z-index: 30;
  margin: 14px clamp(14px, 2vw, 28px) 0;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: 10px 14px 10px 16px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-stroke);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  overflow: hidden;
  transform: rotate(-6deg);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-logo { transform: rotate(8deg) scale(1.05); }
.brand-logo img { width: 88%; height: 88%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.25rem; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; gap: clamp(8px, 1.5vw, 22px); margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 6px 4px; position: relative;
}
.nav-links a span { font-family: var(--display); font-size: .75rem; color: var(--red); }
.nav-links a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px;
  height: 6px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
  z-index: -1; opacity: .8;
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav-links { display: none; } }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 9px 16px;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .15s ease;
}
.cart-btn:hover { transform: translateY(-1px) rotate(-1deg); }
.cart-btn .badge {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 64px) clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-bg .blob {
  position: absolute; border-radius: 50%;
  filter: blur(2px);
}
.blob.b1 { width: 320px; height: 320px; background: var(--yellow); top: -90px; right: 8%; opacity: .55; }
.blob.b2 { width: 220px; height: 220px; background: var(--blue); bottom: -60px; left: 5%; opacity: .35; border-radius: 42% 58% 70% 30%; }
.blob.b3 { width: 160px; height: 160px; background: var(--green); top: 40%; left: 38%; opacity: .25; border-radius: 60% 40% 50% 50%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 1280px; margin: 0 auto;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.eyebrow i {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%; display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.6} }

.hero-text h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: .92;
  letter-spacing: -.015em;
  margin: 22px 0 18px;
}
.hero-text h1 span { display: block; color: var(--ink); }
.hero-text h1 em {
  font-style: normal;
  display: block;
  color: var(--red);
  position: relative;
}
.hero-text h1 em .kern { letter-spacing: -.04em; }
.hero-text h1 em::after {
  content: "";
  position: absolute; left: -.05em; right: .15em; bottom: .04em;
  height: .14em; background: var(--yellow); z-index: -1;
  transform: rotate(-1deg);
  border-radius: 99px;
}

.hero-text p {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 28px;
}
.hero-text p a strong { color: var(--blue); }

.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hand-note {
  font-family: var(--hand); font-size: 1.5rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px;
  transform: rotate(-3deg);
}
.hand-note svg { color: var(--red); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  background: var(--red); color: #fff;
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 14px 24px;
  text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); text-decoration: none; }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary:disabled { background: #d8d2c5; color: var(--muted); cursor: not-allowed; box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:disabled:hover { transform: none; }

.btn-ghost {
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  background: transparent; color: var(--ink-soft);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
  transition: background .15s ease;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero photo as polaroid */
.hero-photo {
  position: relative;
  margin: 0;
  background: #fff;
  border: 2.5px solid var(--ink);
  padding: 14px 14px 60px;
  box-shadow: 10px 12px 0 var(--ink), var(--shadow-soft);
  transform: rotate(2.5deg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  max-width: 520px; justify-self: end;
}
.hero-photo:hover { transform: rotate(0); }
.hero-photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border: 1px solid #e6dfcc;
}
.hero-photo figcaption {
  font-family: var(--hand); font-size: 1.4rem; color: var(--ink-soft);
  text-align: center; margin-top: 14px; line-height: 1.1;
}
.hero-photo figcaption small { font-size: .9rem; color: var(--muted); display: block; margin-top: 2px; }
.hero-photo .tape {
  position: absolute; top: -18px; left: 50%;
  width: 130px; height: 32px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 201, 60, .75);
  border-left: 1px dashed rgba(0,0,0,.18);
  border-right: 1px dashed rgba(0,0,0,.18);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
@media (max-width: 920px) { .hero-photo { justify-self: center; transform: rotate(1.5deg); margin-top: 20px; } }

/* ── Marquee ────────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--paper);
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  overflow: hidden; padding: 14px 0;
  margin-top: 20px;
}
.marquee-track {
  display: flex; gap: 28px; align-items: center; width: max-content;
  animation: scroll 30s linear infinite;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em;
  white-space: nowrap;
}
.marquee-track span { padding: 0 8px; }
.marquee-track .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.marquee-track .dot.red { background: var(--red); }
.marquee-track .dot.blue { background: var(--blue); }
.marquee-track .dot.yellow { background: var(--yellow); }
.marquee-track .dot.green { background: var(--green); }
@keyframes scroll { from {transform: translateX(0)} to {transform: translateX(-50%)} }

/* ── Sections ───────────────────────────────── */
.section-head {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(50px, 8vw, 90px) clamp(20px, 4vw, 64px) 0;
}
.section-head .kicker {
  font-family: var(--body); font-size: .8rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--red);
  display: inline-block; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1; margin: 0 0 14px; letter-spacing: -.01em;
}
.section-head .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; margin: 0; }

/* ── Products ───────────────────────────────── */
.products {
  max-width: 1280px; margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: 40px;
}

.card {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  overflow: visible;
}
.card:nth-child(3n+1) { transform: rotate(-1deg); }
.card:nth-child(3n+2) { transform: rotate(.6deg); }
.card:nth-child(3n+3) { transform: rotate(-.4deg); }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 10px 12px 0 var(--ink); }

.card .img {
  aspect-ratio: 1/1;
  background: var(--accent, var(--paper-2));
  display: grid; place-items: center;
  border-bottom: 2.5px solid var(--ink);
  border-radius: 5px 5px 0 0;
  position: relative; overflow: hidden;
}
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img-fallback {
  width: 60%; opacity: .85;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.1));
  transition: transform .4s ease;
}
.card:hover .img-fallback { transform: rotate(-6deg) scale(1.05); }

.card .price-stamp {
  position: absolute; top: 14px; right: 14px;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.05rem;
  border: 2px dashed var(--paper);
  outline: 2px solid var(--ink);
  transform: rotate(8deg);
  text-align: center; line-height: 1; padding: 4px;
}

.card .body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.4rem; margin: 0; letter-spacing: -.005em;
}
.card .desc { color: var(--ink-soft); font-size: .92rem; margin: 0; flex: 1; }

.card .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card .opts label { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 9px 28px 9px 12px;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231a1815' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}
.card .add-btn {
  font: inherit; font-weight: 700; font-size: .95rem;
  background: var(--ink); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 11px 16px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.card .add-btn:hover { background: var(--red); border-color: var(--red); }
.card .add-btn.added { background: var(--green); border-color: var(--green); }

.card .perso { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px dashed var(--ink); border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); }
.card .perso input[type=checkbox] { transform: scale(1.15); accent-color: var(--red); cursor: pointer; flex: 0 0 auto; }
.card .perso em { color: var(--red); font-style: normal; font-weight: 700; }
.card input[data-role=perso-name] { font: inherit; font-size: .95rem; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-weight: 500; }
.card input[data-role=perso-name]:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.cart-line .perso-tag { color: var(--red-deep, var(--red)); font-weight: 600; margin-top: 2px; }
.price-disclaimer { text-align: center; font-size: .72rem; color: var(--muted); margin: 14px 0 0; letter-spacing: .02em; }
.price-disclaimer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.price-disclaimer a:hover { color: var(--red); }
.price-disclaimer.cart-disclaimer { margin: 4px 0 6px; text-align: right; }
.price-stamp .star { font-size: .55em; vertical-align: super; margin-left: 1px; opacity: .8; }
.cart-foot .row .star { font-size: .65em; vertical-align: super; opacity: .7; margin-left: 1px; }

.card .info-link { background: transparent; border: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--blue); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; align-self: flex-start; }
.card .info-link:hover { color: var(--red); }

dialog#product-info { border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); max-width: 720px; width: 92vw; padding: 28px 32px 32px; box-shadow: 8px 8px 0 var(--ink); position: relative; }
dialog#product-info::backdrop { background: rgba(26,24,21,.55); backdrop-filter: blur(2px); }
dialog#product-info h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0 0 16px; }
dialog#product-info h4 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 24px 0 10px; }
dialog#product-info p, dialog#product-info li { line-height: 1.55; color: var(--ink-soft); }
dialog#product-info table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .9rem; }
dialog#product-info table th, dialog#product-info table td { border: 1.5px solid var(--ink); padding: 6px 10px; text-align: left; }
dialog#product-info table th { background: var(--paper-2); font-weight: 700; }
.pi-close { position: absolute; top: 14px; right: 14px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pi-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* color accents per card */
.card[data-accent="red"]    { --accent: #fad7da; }
.card[data-accent="blue"]   { --accent: #d2e3f3; }
.card[data-accent="yellow"] { --accent: #fff0c2; }
.card[data-accent="green"]  { --accent: #d6ebdc; }

/* ── Versand ────────────────────────────────── */
.versand { max-width: 1280px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 64px) clamp(40px, 6vw, 80px); }
.versand-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 32px);
  margin-top: 40px;
}
@media (max-width: 820px) { .versand-grid { grid-template-columns: 1fr; } }

.ship-card {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 28px 24px 26px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .25s ease;
}
.ship-card:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }
.ship-card .ship-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  border: 2.5px solid var(--ink);
  margin-bottom: 18px;
  transform: rotate(-3deg);
}
.ship-card.c-red  .ship-icon { background: var(--red); color: #fff; }
.ship-card.c-blue .ship-icon { background: var(--blue); color: #fff; }
.ship-card.c-green .ship-icon { background: var(--green); color: #fff; }
.ship-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; }
.ship-card .ship-price {
  font-family: var(--hand); font-size: 1.6rem; color: var(--red); margin: 0 0 10px;
  font-weight: 700;
}
.ship-card.c-blue .ship-price  { color: var(--blue); }
.ship-card.c-green .ship-price { color: var(--green-deep); }
.ship-card p { color: var(--ink-soft); margin: 0; }

/* ── Kontakt ────────────────────────────────── */
.kontakt { max-width: 1280px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 64px) clamp(60px, 8vw, 100px); text-align: left; }
.kontakt-mail { margin: 32px 0 8px; }
.kontakt-mail a {
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--blue); text-decoration: none;
  position: relative;
}
.kontakt-mail a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px;
  background: var(--yellow); z-index: -1; transform: rotate(-.5deg);
}
.kontakt-mail a:hover::after { background: var(--red); }
.kontakt-sub { color: var(--muted); font-family: var(--hand); font-size: 1.4rem; margin: 0; }

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 2.5px solid var(--ink);
  padding: 40px clamp(20px, 4vw, 64px) 60px;
  background: var(--paper-2);
  text-align: center;
}
.foot-smileys { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; font-size: 1.4rem; }
.foot-smileys span { color: var(--c); }
.foot-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; font-weight: 600; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
footer p { color: var(--muted); font-size: .9rem; margin: 0; }
footer p a { color: var(--ink-soft); }

/* ── Cart drawer ────────────────────────────── */
.scrim {
  position: fixed; inset: 0; background: rgba(26,24,21,.45);
  z-index: 38; opacity: 0; transition: opacity .25s ease;
}
.scrim.show { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: 420px; max-width: 100vw;
  background: var(--paper);
  border-left: 2.5px solid var(--ink);
  z-index: 40;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 2.5px solid var(--ink);
}
.drawer-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.drawer-head button {
  background: #fff; border: 2px solid var(--ink); border-radius: 50%;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  transition: transform .2s ease, background .15s ease;
}
.drawer-head button:hover { background: var(--red); color: #fff; transform: rotate(90deg); }

#cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
#cart-items > p { font-family: var(--hand); font-size: 1.4rem; color: var(--muted); text-align: center; margin: 60px 0; }

.cart-line {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 14px; padding: 16px 0; border-bottom: 1px dashed rgba(26,24,21,.25);
  align-items: start;
}
.cart-line .line-thumb {
  width: 60px; height: 60px; border-radius: 8px;
  background: var(--accent, var(--paper-2));
  border: 2px solid var(--ink);
  display: grid; place-items: center; overflow: hidden;
}
.cart-line .line-thumb img { width: 70%; height: 70%; object-fit: contain; }
.cart-line strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.cart-line .meta { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.cart-line .qty {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 4px;
}
.cart-line .qty button {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink);
}
.cart-line .qty button:hover { background: var(--paper); }
.cart-line .qty span { font-weight: 700; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-line .rm {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-size: .8rem; text-decoration: underline;
  text-underline-offset: 3px; margin-top: 8px; padding: 0;
  display: block;
}
.cart-line .rm:hover { color: var(--red); }
.cart-line .price { font-weight: 700; font-variant-numeric: tabular-nums; }

.cart-foot {
  padding: 20px 24px 24px;
  border-top: 2.5px solid var(--ink);
  background: #fff;
  display: flex; flex-direction: column; gap: 14px;
}
.row { display: flex; justify-content: space-between; align-items: baseline; }
.row.total { font-family: var(--display); font-size: 1.5rem; }
.cart-foot-note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }

/* ── Checkout dialog ────────────────────────── */
dialog#checkout {
  border: 2.5px solid var(--ink); border-radius: 16px;
  padding: 28px; max-width: 560px; width: 92vw;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
}
dialog#checkout::backdrop { background: rgba(26,24,21,.55); backdrop-filter: blur(2px); }

#checkout-form { display: flex; flex-direction: column; gap: 16px; }
.co-head { margin-bottom: 4px; }
.co-head .kicker { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.co-head h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 4px 0 0; line-height: 1; }

.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .co-grid { grid-template-columns: 1fr; } }

#checkout-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
#checkout-form input, #checkout-form textarea {
  font-family: var(--body); font-size: 1rem; font-weight: 500;
  color: var(--ink);
  padding: 11px 14px;
  background: #fff;
  border: 2px solid var(--ink); border-radius: 10px;
  letter-spacing: 0; text-transform: none;
}
#checkout-form input:focus, #checkout-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }

.shipping {
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 14px 16px 10px; background: #fff;
}
.shipping legend {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 0 8px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
}
.ship-opt {
  flex-direction: row !important; align-items: center; gap: 10px;
  padding: 8px 4px; cursor: pointer; text-transform: none !important;
  letter-spacing: 0 !important; font-weight: 500 !important; font-size: .95rem !important;
  color: var(--ink) !important;
}
.ship-opt input { accent-color: var(--red); transform: scale(1.2); }
.ship-opt strong { font-weight: 700; }

.addr { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }

.totals { border-top: 2px dashed var(--ink); padding-top: 14px; margin-top: 4px; }
.totals .row { padding: 4px 0; }
.totals .row.total { font-family: var(--display); font-size: 1.5rem; padding-top: 8px; border-top: 1px solid rgba(26,24,21,.15); margin-top: 4px; }

#paypal-buttons { margin-top: 8px; }
.msg { color: var(--red); font-weight: 600; min-height: 1.2em; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
