/* Sena Crafted — main stylesheet. Ported 1:1 from the static site's styles.css, plus WordPress + WooCommerce styling at the bottom. */

@font-face {
  font-family: "Sena Handwriting";
  src: url("../../fonts/SenaHandwriting-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* palette — buttery cream, chocolate, powder blue, khaki, tomato */
  --cream: #fbeece;        /* butter cream page */
  --paper: #fdf4dc;        /* cards, nav */
  --ink: #4a2a1a;          /* chocolate */
  --muted: #7b6150;
  --red: #b9361f;          /* tomato */
  --red-dark: #962a16;
  --blue: #b7d2dc;         /* powder blue */
  --olive: #a99c6c;        /* khaki */
  --olive-soft: #e3dcbc;
  --beige: #fcf0d2;        /* custom-orders box */
  --honey: #f1c166;
  --line: rgba(74, 42, 26, .14);

  --hand: "Sena Handwriting", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --awning: 19px;          /* scalloped banner under the nav — equals the scallop depth */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; overflow-x: hidden; }
/* never scroll sideways — clip anything that pokes past the edge (drawings, stars) */
@supports (overflow-x: clip) { html { overflow-x: clip; } }
/* no sideways rubber-band bounce from trackpad swipes */
html, body { overscroll-behavior-x: none; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
/* soft paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .16 0 0 0 0 .09 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--red); word-spacing: .25em; }   /* the font's own space is narrow */
.muted { color: var(--muted); }

/* little hand-drawn asterisk — colour follows the text colour */
.spark {
  display: inline-block; width: .7em; height: .7em; margin-right: .3em; vertical-align: .02em;
  background: currentColor;
  -webkit-mask: url("../img/drawings/star-2.webp") center / contain no-repeat;
          mask: url("../img/drawings/star-2.webp") center / contain no-repeat;
}
.doodle { position: absolute; pointer-events: none; user-select: none; }

/* ── Top bar + nav ─────────────────────────────────────────── */
.announce {
  background: var(--olive); color: var(--paper);
  text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .45rem 16px;
}
.announce:empty { display: none; }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem var(--gutter) .45rem;
  background: var(--paper);
}
/* scalloped awning hanging under the nav */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--awning);
  background:
    radial-gradient(circle at 19.25px 0, var(--red) 18.5px, transparent 19.5px) 0 0 / 77px var(--awning) repeat-x,
    radial-gradient(circle at 19.25px 0, var(--paper) 18.5px, transparent 19.5px) 38.5px 0 / 77px var(--awning) repeat-x;
  filter: drop-shadow(0 2px 0 rgba(74, 42, 26, .12));
}
.brand { text-transform: lowercase; font-family: var(--hand); font-size: 1.7rem; line-height: 1.2; color: var(--red); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 1.6rem; }
.nav nav a { text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav nav a:hover { color: var(--red); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block; cursor: pointer;
  padding: .7rem 1.3rem;
  border: none; border-radius: 999px;
  background: var(--red); color: var(--paper);
  font: 600 .95rem var(--sans); text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn.ghost:hover { background: var(--red); color: var(--paper); }
.btn.small { padding: .45rem .95rem; font-size: .85rem; }

/* ── Sena's painted stripes ────────────────────────────────── */
.stripes { background: var(--blue) url("../img/stripes.jpg") center / cover; }
.stripes.khaki { background-image: url("../img/stripes-olive.jpg"); }

/* ── Hero ──────────────────────────────────────────────────── */
/* stripes end ~70% down the screen so "The work" peeks in below; logo centred in the striped part */
.hero {
  --hero-h: max(320px, calc(70svh - var(--head, 84px)));
  --hero-pad: 32px;
  display: grid; place-items: center;
  height: var(--hero-h);
  overflow: hidden;
  /* extra top room so the logo centres in the part not covered by the awning */
  padding: calc(var(--hero-pad) + var(--awning)) var(--gutter) var(--hero-pad);
}
/* logo is as big as fits: at most 420px wide, and short enough to leave the padding */
.hero-mark { position: relative; width: min(420px, 72vw, calc((var(--hero-h) - var(--awning) - 2 * var(--hero-pad)) * 1.25)); }
.hero h1 { margin: 0; }
.hero h1 img { width: 100%; height: auto; }


/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) var(--gutter); max-width: 1240px; margin: 0 auto; position: relative; }
#work { padding-top: clamp(36px, 4vw, 52px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
#work .section-head { justify-content: center; margin-bottom: 1.6rem; }
/* readable by screen readers, invisible on screen */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter {
  border: none; background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red);
  padding: .45rem 1.05rem; border-radius: 999px; cursor: pointer; font: 600 .88rem var(--sans);
}
.filter:hover { background: rgba(185, 54, 31, .08); }
.filter.active { background: var(--red); color: var(--paper); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem 1.4rem; }
.card { display: flex; flex-direction: column; }
.card .media {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); background: var(--olive-soft);
}
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .5s; }
.card .media img.alt { opacity: 0; }
@media (hover: hover) {
  .card .media:hover img.alt { opacity: 1; }
  .card .media:hover img { transform: scale(1.03); }
}
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--hand); font-size: 1.5rem; color: var(--ink);
}
.placeholder small { display: block; font: 600 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: .4rem; }
.badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 1;
  background: var(--paper); color: var(--ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
}
.badge.sold { background: var(--ink); color: var(--paper); }
.count {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 1;
  background: rgba(253, 244, 220, .92); color: var(--ink);
  font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px;
}
.card .info { padding: .9rem .2rem 0; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card h3 { font: 700 1.02rem/1.3 var(--sans); margin: 0; }
.card .desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
/* long descriptions: first few lines on the card, full text in the photo viewer */
.card .desc span { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .55rem; }
.price { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--red); }
.card.is-sold .price { color: var(--muted); text-decoration: line-through; }

/* ── Custom orders: gingham + wavy frame ───────────────────── */
.gingham {
  padding: clamp(64px, 9vw, 112px) var(--gutter);
  background: var(--blue) url("../img/gingham.jpg") center / cover;
  overflow: hidden;
}
.wavy {
  position: relative; isolation: isolate;
  max-width: 660px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 8vw, 84px) clamp(32px, 7vw, 76px);
}
.wavy .wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.wavy p { font-size: 1.08rem; margin: 0 auto 1.8rem; max-width: 480px; }
.wavy .leaf-a { width: 88px; top: -28px; left: max(-22px, calc(4px - var(--gutter))); transform: rotate(-18deg); }
/* stems point in toward the text */
.wavy .leaf-b { width: 78px; bottom: -53px; right: 26px; transform: rotate(-40deg); }
.wavy .leaf-c { width: 60px; bottom: 44px; right: max(-34px, calc(4px - var(--gutter))); transform: rotate(-95deg); }

/* ── About ─────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
/* Sena's photo big on the left, the two workbench shots stacked beside it */
.about-photos { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .me { grid-row: 1 / span 2; }
.about-text p { font-size: 1.12rem; max-width: 560px; }

/* ── Events ────────────────────────────────────────────────── */
.events-section { padding-top: 0; }
.events-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.events-head h2 { margin: 0; }
.events-head .car { width: clamp(84px, 11vw, 130px); flex-shrink: 0; }
.events { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.events li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--paper); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.events li.empty { grid-template-columns: 1fr; width: fit-content; }
/* postage-stamp date */
.events .date {
  --r: 5px;
  display: grid; place-items: center; text-align: center;
  min-width: 96px; padding: 1rem .8rem;
  background: var(--honey);
  font-family: var(--hand); font-size: 1.4rem; line-height: 1.05; color: var(--ink);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.events .place { color: var(--muted); font-size: .92rem; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { padding: clamp(80px, 11vw, 140px) var(--gutter); }
.contact-card {
  position: relative; max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--paper); padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
}
/* little stars tucked on the corners of the cream cards */
.contact-card { position: relative; }
.hero-mark .star-a, .contact-card .star-a { width: 64px; top: -26px; left: -24px; transform: rotate(-10deg); }
.hero-mark .star-b, .contact-card .star-b { width: 46px; bottom: -18px; right: -16px; transform: rotate(14deg); }
.contact-card .hello { white-space: pre-line; }
.contact-links { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding: 2.2rem 16px 2.6rem; font-size: .88rem;
}
.footer .mushrooms { width: 64px; margin: 0 auto .8rem; }

/* ── Lightbox ──────────────────────────────────────────────── */
dialog#lightbox {
  border: none; padding: 0; border-radius: 18px;
  max-width: min(980px, calc(100vw - 24px)); width: 100%;
  max-height: calc(100dvh - 24px);
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
dialog#lightbox[open] { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
dialog#lightbox::backdrop { background: rgba(46, 26, 16, .72); }
.lb-media { position: relative; grid-row: 1 / span 2; background: #2e1a10; min-height: 320px; }
.lb-frame { height: 100%; display: grid; place-items: center; }
.lb-frame img { width: 100%; height: 100%; max-height: calc(100dvh - 28px); object-fit: contain; }
.lb-frame .placeholder { position: static; min-height: 320px; color: var(--paper); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav[hidden] { display: none; }
.lb-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1.4rem 4rem 0 1.5rem; }
.lb-thumbs:empty { display: none; }
.lb-thumbs button {
  width: 56px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: none; opacity: .6;
}
.lb-thumbs button.on { border-color: var(--red); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-body { padding: 1.2rem 1.5rem 1.6rem; }
.lb-body h3 { font-size: 2rem; color: var(--red); margin-bottom: .3rem; }
.lb-body .price { font-size: 2rem; display: block; margin: .8rem 0 1rem; }
.close {
  position: absolute; top: .6rem; right: .7rem; z-index: 2;
  background: var(--paper); border: none; width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; line-height: 1; color: var(--ink);
}

/* ── Smaller screens ───────────────────────────────────────── */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  dialog#lightbox[open] { grid-template-columns: 1fr; grid-template-rows: auto; }
  .lb-media { grid-row: auto; min-height: 0; }
  .lb-frame { height: auto; }
  .lb-frame img { height: auto; max-height: 62dvh; }
}
@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: flex-start; gap: .35rem; padding-bottom: .5rem; }
  .nav nav { gap: .3rem 1.1rem; width: 100%; flex-wrap: wrap; justify-content: center; }
  .nav { align-items: center; }
  .brand { font-size: 1.5rem; }
  .hero { --hero-pad: 28px; padding-left: 16px; padding-right: 16px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .8rem; }
  .card .desc { display: none; }
  .card .row { flex-direction: column; align-items: stretch; gap: .5rem; }
  .card .row .btn { text-align: center; }
  .price { font-size: 1.35rem; }
  .events li { grid-template-columns: auto 1fr; }
  .events li .btn { grid-column: 1 / -1; text-align: center; }
  .wavy .leaf-a { width: 64px; top: -20px; }
  .wavy .leaf-b { width: 56px; bottom: -38px; right: 18px; }
  .wavy .leaf-c { width: 44px; bottom: 32px; }
  .hero-mark .star-a, .contact-card .star-a { width: 46px; top: -18px; left: -10px; }
  .hero-mark .star-b, .contact-card .star-b { width: 34px; bottom: -12px; right: -8px; }
}

/* ══════════════════════════════════════════════════════════════
   WordPress additions
   ══════════════════════════════════════════════════════════════ */

/* Skip link + nav extras */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: .6rem 1rem; background: var(--red); color: var(--paper); border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav nav a { padding: .4rem 0; }                       /* ≥44px touch targets with line height */
.nav nav a.current { color: var(--red); }
.nav .nav-cart { color: var(--red); box-shadow: inset 0 0 0 2px var(--red); border-radius: 999px; padding: .3rem .85rem; margin-left: .2rem; }
.nav .nav-cart.has-items { background: var(--red); color: var(--paper); }
.nav .nav-cart:hover { background: var(--red-dark); color: var(--paper); }
.admin-bar .nav { top: var(--wp-admin--admin-bar--height, 32px); }

/* Hero logo: the h1 holds the image plus hidden text */
.hero h1 { display: block; }
.card[hidden] { display: none; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card .media .wp-post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.small-note { font-size: .85rem; }
.empty-note { text-align: center; }
.gallery .empty-note { grid-column: 1 / -1; }
.events .place a, .events .empty a { color: var(--red); }

/* AJAX add-to-cart states */
.btn.loading { opacity: .6; pointer-events: none; }
.btn.added { background: var(--olive); }
.gallery .added_to_cart { font: 600 .85rem var(--sans); color: var(--red); text-decoration: none; white-space: nowrap; }
.gallery .added_to_cart:hover { text-decoration: underline; }
.card .row { flex-wrap: wrap; }

/* Generic page content (pages, posts, cart, checkout, account) */
.prose { max-width: 760px; }
.page-title { font-family: var(--hand); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--red); word-spacing: .25em; margin: 0 0 .5em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 1.2em; }
.prose h3 { font-size: 1.7rem; margin-top: 1em; }
.prose p, .prose li { font-size: 1.08rem; }
.prose a { color: var(--red); }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--honey); margin: 1.2em 0; padding: .2em 1.2em; color: var(--muted); }
.prose .page-thumb { margin: 0 0 1.5rem; }
.page-links, .post-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-top: 2rem; }
.post-nav a { color: var(--red); font-weight: 600; text-decoration: none; }
.entry-meta { margin-top: -.6rem; }
.not-found { text-align: center; }
.not-found .car { margin: 0 auto 1rem; }
.post-grid .card .media { aspect-ratio: 4 / 3; cursor: pointer; display: block; }
.navigation.pagination { margin-top: 2.5rem; text-align: center; }
.navigation.pagination .nav-links { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.navigation.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }
.navigation.pagination .page-numbers.current, .navigation.pagination .page-numbers:hover { background: var(--red); color: var(--paper); }

/* Core block niceties */
.wp-block-image img, .wp-block-gallery img { border-radius: var(--radius); }
.wp-block-button__link { border-radius: 999px; background: var(--red); color: var(--paper); font-weight: 600; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--red); border: 2px solid var(--red); }
.wp-element-button, .wp-block-button__link { font-family: var(--sans); }
.search-form { display: flex; gap: .6rem; max-width: 420px; }
.search-form input { flex: 1; }

/* ══════════════════════════════════════════════════════════════
   Forms, inputs, buttons (shared by WooCommerce + contact forms)
   ══════════════════════════════════════════════════════════════ */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"],
select, textarea,
.woocommerce .input-text, .woocommerce .select2-container--default .select2-selection--single {
  width: 100%; min-height: 46px; padding: .6rem .9rem;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce .select2-container--default .select2-selection--single { display: flex; align-items: center; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); height: auto; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding-left: 0; color: var(--ink); }
.select2-dropdown { border-color: var(--line); border-radius: 12px; font-family: var(--sans); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--red); }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus, .woocommerce .input-text:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(185, 54, 31, .18); }
label { font-weight: 600; font-size: .95rem; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); vertical-align: middle; }

/* Every WooCommerce button becomes a red pill */
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page .button, .woocommerce button[type="submit"], .wc-block-components-button,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .7rem 1.3rem !important;
  border: none !important; border-radius: 999px !important;
  background: var(--red) !important; color: var(--paper) !important;
  font: 600 .95rem var(--sans) !important; line-height: 1.2 !important; text-decoration: none !important;
  cursor: pointer; transition: background .15s, color .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.wc-block-components-button:hover, .wp-element-button:hover { background: var(--red-dark) !important; color: var(--paper) !important; }
.woocommerce a.button.disabled, .woocommerce button.button.disabled, .woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled], .wc-block-components-button:disabled { opacity: .55; cursor: not-allowed; background: var(--red) !important; color: var(--paper) !important; }
.woocommerce .button.ghost, .wc-block-components-button.outlined, .wc-block-components-button.is-style-outline {
  background: transparent !important; color: var(--red) !important; box-shadow: inset 0 0 0 2px var(--red);
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
  position: relative; margin: 0 0 1.6rem; padding: 1rem 1.2rem 1rem 1.2rem !important;
  background: var(--paper) !important; color: var(--ink) !important;
  border: none !important; border-left: 6px solid var(--olive) !important; border-radius: var(--radius) !important;
  font-family: var(--sans); list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-message { border-left-color: var(--olive) !important; }
.woocommerce-info { border-left-color: var(--blue) !important; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-left-color: var(--red) !important; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { order: 2; margin-left: auto; }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid .select2-container,
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--red); }
.woocommerce form .form-row.woocommerce-validated .select2-container,
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select { border-color: var(--olive); }

/* Generic WooCommerce page wrapper */
.wc-section { padding-top: clamp(36px, 4vw, 52px); }
.wc-section .page-title { margin-bottom: 1rem; }
.shop-head { align-items: center; }
.woocommerce .woocommerce-breadcrumb { display: none; }
.woocommerce-products-header { margin-bottom: 1rem; }
.woocommerce .term-description { max-width: 620px; color: var(--muted); }
.woocommerce-pagination { margin-top: 2.5rem; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: none; display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
  border-radius: 999px; font-weight: 600; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); background: transparent;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--red); color: var(--paper); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { display: none; }
.woocommerce-no-products-found .woocommerce-info { max-width: 620px; }

/* Price inside cards / summary: keep WC's <span class="amount"> in the handwriting */
.price .amount, .price ins, .price del { font-family: inherit; }
.price del { color: var(--muted); font-size: .7em; margin-right: .3em; opacity: .8; }
.price ins { text-decoration: none; }
.card .price { font-size: 1.6rem; }

/* ── Single product ───────────────────────────────────────── */
.product-page { max-width: 1240px; margin: 0 auto; }
.product-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-gallery { position: relative; }
.woocommerce div.product div.images, .product-gallery .woocommerce-product-gallery { width: 100% !important; float: none; margin: 0; }
.woocommerce-product-gallery__wrapper { border-radius: var(--radius); overflow: hidden; background: var(--olive-soft); }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 64px; height: 80px; float: none; margin: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .6; cursor: pointer; }
.woocommerce div.product div.images .flex-control-thumbs li img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; }
.woocommerce div.product div.images .flex-control-thumbs li:has(img.flex-active) { border-color: var(--red); opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: .7rem; right: .7rem; border-radius: 50%; background: var(--paper); width: 38px; height: 38px; }
.woocommerce span.onsale { position: absolute; top: .7rem; left: .7rem; z-index: 2; min-width: 0; min-height: 0; line-height: 1.4; padding: .2rem .6rem; border-radius: 999px; background: var(--honey); color: var(--ink); font: 700 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.card .media .onsale { display: none; }

.woocommerce div.product .summary { float: none; width: auto; margin: 0; }
.woocommerce div.product .product_title { font-family: var(--hand); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; color: var(--red); word-spacing: .25em; margin: 0 0 .4rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-family: var(--hand); font-size: 2.2rem; line-height: 1; color: var(--red); margin: .4rem 0 1rem; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: .65em; }
.woocommerce div.product p.price ins { font-weight: 400; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 1.08rem; color: var(--muted); }
.woocommerce div.product .woocommerce-product-details__short-description p { margin-top: 0; }
.status-note { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.status-note .badge { position: static; }
.woocommerce div.product .stock { font-weight: 600; color: var(--olive); font-size: .9rem; }
.woocommerce div.product .stock.out-of-stock { color: var(--muted); }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--honey); }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: .5rem; }

/* Add to cart row: quantity + button */
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.2rem 0 1.4rem; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 84px; min-height: 46px; text-align: center; padding: .6rem .4rem; }
.woocommerce div.product form.cart .button { float: none; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: .4rem; border: none; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; border: none; text-align: left; line-height: 1.5; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: .8rem; }
.woocommerce div.product form.cart .variations label { font-weight: 600; display: block; margin-bottom: .3rem; }
.woocommerce div.product form.cart .variations select { max-width: 320px; }
.woocommerce div.product form.cart .reset_variations { font-size: .85rem; color: var(--muted); margin-left: .6rem; }
.woocommerce div.product form.cart .single_variation_wrap { width: 100%; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.woocommerce div.product form.cart .woocommerce-variation-price .price { display: block; margin-bottom: .6rem; }
.woocommerce div.product form.cart .group_table td { vertical-align: middle; border: none; }
.woocommerce div.product .product_meta { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: .2rem; }
.woocommerce div.product .product_meta a { color: var(--red); }

.product-description { margin: clamp(40px, 6vw, 72px) 0 0; max-width: 760px; }
.product-description h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.product-description p { font-size: 1.08rem; }

/* Related / upsells: same grid, handwritten heading */
.woocommerce .related, .woocommerce .up-sells { margin-top: clamp(56px, 8vw, 96px); clear: both; }
.woocommerce .related > h2, .woocommerce .up-sells > h2 { font-family: var(--hand); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--red); word-spacing: .25em; margin-bottom: 1.2rem; }
.woocommerce .related .gallery, .woocommerce .up-sells .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── Cart (classic) ───────────────────────────────────────── */
.woocommerce table.shop_table { border: none; border-collapse: collapse; border-radius: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: none; border-bottom: 1px solid var(--line); padding: .9rem 1rem; vertical-align: middle; }
.woocommerce table.shop_table thead th { background: var(--olive-soft); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce table.shop_table tbody tr:last-child td { border-bottom: none; }
.woocommerce table.shop_table td.product-thumbnail img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.woocommerce table.shop_table td.product-name a { text-decoration: none; font-weight: 600; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--red); }
.woocommerce table.shop_table td.product-name .variation { font-size: .85rem; color: var(--muted); }
.woocommerce a.remove { width: 32px; height: 32px; line-height: 32px; border-radius: 50%; color: var(--red) !important; font-size: 1.3rem; }
.woocommerce a.remove:hover { background: var(--red); color: var(--paper) !important; }
.woocommerce table.shop_table .coupon { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.woocommerce table.shop_table .coupon .input-text { width: 180px !important; min-height: 44px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; }
.woocommerce-cart table.cart td.actions { background: transparent; }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; max-width: 480px; float: none; margin-left: auto; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 2rem; }
.woocommerce-cart .cart-collaterals .cart_totals table th { width: 40%; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; font-size: 1.05rem !important; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .return-to-shop a { background: transparent !important; color: var(--red) !important; box-shadow: inset 0 0 0 2px var(--red); }
.woocommerce .cart-empty, .woocommerce-cart .wc-empty-cart-message { max-width: 620px; }
.woocommerce ul#shipping_method li { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; }
.woocommerce ul#shipping_method li input { margin: 0; }
.woocommerce ul#shipping_method li label { font-weight: 400; }

/* ── Checkout (classic) ───────────────────────────────────── */
.woocommerce-checkout .woocommerce { max-width: 1100px; }
.woocommerce-checkout form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review { background: var(--paper); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: calc(var(--head, 84px) + 24px); }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout .woocommerce-shipping-fields h3, .woocommerce-checkout .woocommerce-additional-fields h3 { font-family: var(--hand); font-weight: 400; font-size: 2rem; color: var(--red); word-spacing: .25em; margin: 0 0 .6rem; }
.woocommerce-checkout .woocommerce-shipping-fields h3 label { font-family: var(--sans); font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce form .form-row { margin: 0 0 .9rem; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: .3rem; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - .45rem); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row.woocommerce-validated input, .woocommerce form .form-row.woocommerce-invalid input { box-shadow: none; }
.woocommerce-checkout #order_review table.shop_table { background: transparent; margin-bottom: 1rem; }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { padding: .6rem .3rem; }
.woocommerce-checkout #order_review table.shop_table thead th { background: transparent; }
.woocommerce-checkout #order_review .order-total .amount { font-family: var(--hand); font-size: 1.6rem; color: var(--red); }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: none; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; }
.woocommerce-checkout #payment div.payment_box { background: var(--olive-soft); color: var(--ink); border-radius: 10px; width: 100%; margin: .4rem 0; font-size: .92rem; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--olive-soft); }
.woocommerce-checkout #payment div.place-order { padding: 1rem 0 0; }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 1.05rem !important; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 1rem; font-size: .9rem; }
.woocommerce-checkout .woocommerce-privacy-policy-text { color: var(--muted); font-size: .88rem; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: .8rem; }
.woocommerce-checkout form.checkout_coupon, .woocommerce-checkout form.woocommerce-form-login { border: none; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.woocommerce-checkout form.checkout_coupon .form-row { float: none; width: 100%; }
.woocommerce-checkout form.checkout_coupon { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.woocommerce-checkout form.checkout_coupon .form-row-first { flex: 1; min-width: 180px; }
.woocommerce-checkout form.checkout_coupon .form-row-last { width: auto; }
.woocommerce-checkout .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout .blockUI.blockOverlay { background: var(--cream) !important; opacity: .6 !important; }
.woocommerce .woocommerce-privacy-policy-link, .woocommerce .woocommerce-terms-and-conditions-link { color: var(--red); }

/* Order received / thank-you */
.woocommerce-order ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; padding: 0; }
.woocommerce-order ul.order_details li { float: none; border: none; background: var(--paper); border-radius: var(--radius); padding: .9rem 1rem; margin: 0; font-size: .8rem; }
.woocommerce-order ul.order_details li strong { font-size: 1rem; }
.woocommerce-order .woocommerce-notice--success { font-family: var(--hand); font-size: 1.8rem; color: var(--red); border: none !important; background: transparent !important; padding: 0 !important; }
.woocommerce-order h2 { font-size: 2rem; }
.woocommerce-customer-details address { border: none; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; }

/* ── My account ───────────────────────────────────────────── */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper, .woocommerce-account .woocommerce > .woocommerce-message, .woocommerce-account .woocommerce > .woocommerce-error, .woocommerce-account .woocommerce > .woocommerce-info, .woocommerce-account .woocommerce > form, .woocommerce-account .woocommerce > .u-columns, .woocommerce-account .woocommerce > h2, .woocommerce-account .woocommerce > .woocommerce-form-login-toggle { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--olive-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--red); color: var(--paper); }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; background: var(--paper); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.woocommerce-account .woocommerce-MyAccount-content p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content h2, .woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 1.7rem; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button { margin-top: .4rem; }
.woocommerce-account .addresses .title h2 { font-size: 1.6rem; }
.woocommerce-account .addresses .title .edit { color: var(--red); font-weight: 600; text-decoration: none; }
.woocommerce-account address { background: var(--cream); border-radius: 10px; padding: .9rem 1rem; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { padding: .45rem .9rem !important; min-height: 38px; font-size: .85rem !important; }
.woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { color: var(--red); font-weight: 600; }
.woocommerce-account .woocommerce-pagination { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info { margin-top: 0; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password, .woocommerce-ResetPassword { border: none !important; background: var(--paper); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px) !important; max-width: 520px; }
.woocommerce .u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.woocommerce .u-columns.col2-set .col-1, .woocommerce .u-columns.col2-set .col-2 { float: none; width: 100%; }
.woocommerce .u-columns.col2-set h2 { font-size: 1.8rem; }
.woocommerce form.login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.woocommerce form.login .lost_password a { color: var(--red); }
.woocommerce-password-strength { font-size: .85rem; }
.woocommerce fieldset { border: none; padding: 0; margin: 1.5rem 0 0; }
.woocommerce fieldset legend { font-family: var(--hand); font-size: 1.6rem; color: var(--red); }

/* ── Cart & checkout blocks (WooCommerce 9 default pages) ── */
.wc-block-components-sidebar-layout { font-family: var(--sans); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wc-block-components-sidebar-layout .wc-block-components-sidebar { background: var(--paper); border-radius: var(--radius); }
.wc-block-cart .wc-block-cart__sidebar, .wc-block-checkout .wc-block-checkout__sidebar { padding: 0; }
.wc-block-cart .wc-block-components-sidebar { padding: 1rem 1.2rem; }
.wc-block-components-sidebar-layout .wc-block-components-totals-wrapper { border-top: none; }
.wc-block-cart-items, .wc-block-components-panel { font-family: var(--sans); }
.wc-block-components-product-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.wc-block-cart-item__image img { border-radius: 8px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-item__value { font-family: var(--sans); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--hand); font-size: 1.6rem; color: var(--red); }
.wc-block-components-quantity-selector { border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line) !important; }
.wc-block-components-quantity-selector::after { display: none; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { font-family: var(--sans); font-weight: 600; background: transparent; border: none; min-height: 40px; }
.wc-block-components-quantity-selector__button { min-width: 36px; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea, .wc-block-components-combobox .components-combobox-control__input, .wc-block-components-select .components-custom-select-control__button {
  font-family: var(--sans); border-radius: 12px !important; border: 2px solid var(--line) !important; background: var(--paper) !important; color: var(--ink) !important; min-height: 46px;
}
.wc-block-components-text-input.is-active input:focus, .wc-block-components-text-input input:focus, .wc-block-components-combobox.is-active .components-combobox-control__input { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(185, 54, 31, .18) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-block-components-select label { font-family: var(--sans); }
.wc-block-components-checkout-step__title, .wc-block-components-title, .wc-block-cart__totals-title, .wc-block-components-checkout-order-summary__title, .wc-block-components-checkout-step__heading .wc-block-components-title { font-family: var(--hand) !important; font-weight: 400 !important; font-size: 1.6rem !important; color: var(--red); word-spacing: .25em; }
.wc-block-components-checkout-step__description { font-family: var(--sans); color: var(--muted); }
.wc-block-components-radio-control__option { font-family: var(--sans); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--red); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--red); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { color: var(--paper); }
.wc-block-components-shipping-rates-control__package, .wc-block-components-radio-control, .wc-block-components-checkout-payment-methods { font-family: var(--sans); }
.wc-block-components-express-payment { font-family: var(--sans); }
.wc-block-components-express-payment__title-container .wc-block-components-express-payment__title { font-family: var(--sans); }
.wc-block-components-totals-coupon .wc-block-components-totals-coupon__input { flex: 1; }
.wc-block-components-order-summary-item__quantity { background: var(--red); border: 2px solid var(--paper); color: var(--paper); }
.wc-block-cart__empty-cart__title, .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title { font-family: var(--hand); color: var(--red); font-size: 2rem; }
.wc-block-components-notice-banner.is-info, .wc-block-components-notice-banner.is-success { font-family: var(--sans); }
.wc-block-components-notice-banner .wc-block-components-notice-banner__content { padding-right: 0; }
.wc-block-components-notice-banner > svg { display: none; }
.wc-block-components-button .wc-block-components-button__text { font-family: var(--sans); }
.wc-block-components-formatted-money-amount { font-family: var(--sans); }
.wc-block-components-product-metadata__description { color: var(--muted); }
.wc-block-cart .wc-block-cart__totals-title { font-size: 1.6rem !important; }
.wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; }
.wc-block-components-address-form .wc-block-components-select .components-custom-select-control__button { min-height: 46px; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-return-to-cart-button, .wc-block-cart__submit-container { font-family: var(--sans); }
.wc-block-components-checkout-return-to-cart-button { color: var(--red); }
.wc-block-cart__submit-container .wc-block-cart__submit-button { width: 100%; }

/* Mini "Store notice" from WooCommerce settings */
p.demo_store, .woocommerce-store-notice { background: var(--olive); color: var(--paper); font-family: var(--sans); font-size: .85rem; padding: .5rem 16px; position: relative; top: 0; }
p.demo_store a, .woocommerce-store-notice a { color: var(--paper); }

/* ══════════════════════════════════════════════════════════════
   WordPress/WooCommerce responsive tweaks (same breakpoints)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; }
  .woocommerce-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; }
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
}
@media (max-width: 640px) {
  .nav .nav-cart { margin-left: 0; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
  /* classic cart table collapses into rows */
  .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { text-align: right !important; padding: .7rem 1rem; }
  .woocommerce table.shop_table_responsive tr td::before { font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: .3rem 0; }
  .woocommerce table.shop_table_responsive tr td.product-remove, .woocommerce table.shop_table_responsive tr td.product-thumbnail { text-align: left !important; }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before { display: none; }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail img { margin: 0; }
  .woocommerce table.shop_table_responsive tr td.product-remove::before { display: none; }
  .woocommerce table.shop_table_responsive tr td.actions { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
  .woocommerce table.shop_table_responsive tr td.actions .coupon { display: flex; flex-direction: column; }
  .woocommerce table.shop_table_responsive tr td.actions .coupon .input-text, .woocommerce table.shop_table_responsive tr td.actions .coupon .button { width: 100% !important; }
  .woocommerce table.shop_table_responsive tr td.actions > .button { width: 100%; }
  .woocommerce-cart .cart-collaterals .cart_totals { max-width: none; }
  .woocommerce div.product form.cart .button { width: 100%; }
  .woocommerce div.product form.cart div.quantity { width: 100%; }
  .woocommerce div.product form.cart div.quantity .qty { width: 100%; }
  .woocommerce div.product .product_title { font-size: 2.2rem; }
  .woocommerce div.product p.price { font-size: 1.8rem; }
  .woocommerce .related .gallery, .woocommerce .up-sells .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce-order ul.order_details { grid-template-columns: 1fr 1fr; }
  .wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 1rem; }
  .woocommerce-MyAccount-content { padding: 16px; }
  .shop-head { flex-direction: column; align-items: flex-start; }
}

/* Honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .media img, .btn { transition: none; }
}

/* WooCommerce hides the gallery until its slider fires a start callback; show it regardless so photos never stay invisible. */
.woocommerce-product-gallery { opacity: 1 !important; }

/* ── One-to-one with the original lightbox on product pages ─────────── */
.woocommerce div.product .product_title { font-size: 2rem; line-height: 1.15; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 2rem; margin: .4rem 0 .8rem; }
.woocommerce-product-gallery__wrapper { background: #2e1a10; border-radius: 18px; }
.woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 160px); object-fit: contain; margin: 0 auto; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 56px; height: 70px; }
.woocommerce div.product .stock { display: none; }
.woocommerce div.product .product-description h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.woocommerce div.product form.cart { margin: .6rem 0 1rem; }
@media (max-width: 640px) {
  .woocommerce div.product .product_title { font-size: 1.8rem; }
  .woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.8rem; }
  .woocommerce-product-gallery__image img { max-height: 62dvh; }
  .woocommerce .related > h2, .woocommerce .up-sells > h2 { font-size: 1.9rem; }
  /* Header: two rows like the original (brand, then links); the cart pill sits in the brand row. */
  .nav { position: sticky; }
  .nav .nav-cart { position: absolute; right: 14px; top: .6rem; padding: .22rem .65rem; font-size: .82rem; margin: 0; }
  .nav nav { padding-right: 0; }
}

/* Lightbox title is a link to the product page; keep it looking like the original heading. */
.lb-body h3 a { text-decoration: none; color: inherit; }
.lb-body h3 a:hover { color: var(--red-dark); }

/* Accessibility: the announcement bar needs 4.5:1 contrast; a deeper khaki keeps the look (cream on olive) and passes. */
.announce { background: #6f6440; }
