/* =============================================================
   FENOUS — Shop, Single Product & Personalization
   Loaded only on WooCommerce pages (see inc/setup.php)
   ============================================================= */

/* ---- Shop archive ---- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem; border-radius: var(--radius-pill); border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"], .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-result-count { color: var(--ink-faint); font-size: .9rem; margin: 0; }

/* Override WooCommerce's floated loop layout (woocommerce-layout.css) with a
   real CSS grid. WC forces li.product{float:left;width:22.05%} and adds clearfix
   pseudo-elements that would become phantom grid cells — reset all three. */
.woocommerce ul.products,
ul.products {
  list-style: none; margin: 0 0 1em; padding: 0;
  display: grid !important;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.woocommerce ul.products li.product,
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after { content: none !important; }
ul.products li.product .product-card { height: 100%; }

/* ---- Single product layout ---- */
.product-layout { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
/* Prevent grid-item blowout / horizontal scroll on mobile (grid items default to min-width:auto) */
.product-layout > * { min-width: 0; }
.product-gallery, .product-gallery__main { max-width: 100%; }
.product-gallery__main img { max-width: 100%; }
.product-gallery { position: relative; }
.product-gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); aspect-ratio: 4/5; box-shadow: var(--shadow-md); position: relative; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.product-gallery__thumbs button { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--sky); padding: 0; }
.product-gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-summary { position: relative; }
.product-summary .rating-row { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .92rem; margin-bottom: .6rem; }
.product-title { margin-bottom: .4rem; }
.product-price { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); margin: .3rem 0 1rem; }
.product-price del { color: var(--ink-faint); font-weight: 400; font-size: 1.15rem; margin-right: .5rem; }
.product-short-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ---- Personalization panel ---- */
.personalize {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.personalize__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.personalize__head .eyebrow { margin: 0; }
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: .45rem; }
.field .hint { color: var(--ink-faint); font-size: .82rem; font-weight: 400; }
.field input[type="text"] {
  width: 100%; padding: .9rem 1.1rem; border-radius: 14px; border: 2px solid var(--line);
  font: inherit; background: var(--cream); transition: border-color .15s;
}
.field input[type="text"]:focus { border-color: var(--lime-deep); outline: none; background: #fff; }
.field .char-count { text-align: right; font-size: .78rem; color: var(--ink-faint); margin-top: .3rem; }

/* Swatch / option pills */
.optiongroup { display: flex; flex-wrap: wrap; gap: .5rem; }
.optiongroup input { position: absolute; opacity: 0; pointer-events: none; }
.optiongroup label {
  font-family: var(--font-display); font-weight: 500; padding: .7rem 1.1rem; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream); cursor: pointer; transition: all .15s;
  display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2;
}
.optiongroup label .opt-price { font-size: .8rem; color: var(--ink-faint); font-weight: 400; }
.optiongroup input:checked + label { border-color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.optiongroup input:focus-visible + label { outline: 3px solid var(--lime-deep); outline-offset: 2px; }

/* Skin/hair swatch dots */
.swatch label { width: 40px; height: 40px; border-radius: 50%; padding: 0; border-width: 3px; }
.swatch input:checked + label { transform: scale(1.08); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.addtocart-row { display: grid; gap: .7rem; margin-top: 1.4rem; }
.qty-row { display: flex; align-items: center; gap: .8rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 42px; height: 44px; background: var(--cream); border: none; font-size: 1.3rem; color: var(--ink); }
.qty input { width: 44px; text-align: center; border: none; font: inherit; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Live preview ---- */
.preview {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky);
  aspect-ratio: 4/5; box-shadow: var(--shadow-md);
}
.preview img.preview__art { width: 100%; height: 100%; object-fit: cover; }
.preview__name {
  position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 600; color: #fff; text-align: center;
  width: 84%; font-size: clamp(1.6rem, 6vw, 3rem); line-height: 1.05;
  text-shadow: 0 3px 0 rgba(20,64,58,.25), 0 1px 12px rgba(0,0,0,.18);
  word-break: break-word; pointer-events: none;
}
.preview__flag {
  position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
  display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap;
}
.preview.is-empty .preview__name { opacity: .45; }

/* Sticky mobile add-to-cart bar */
.sticky-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: .7rem clamp(1rem, 4vw, 1.5rem);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  transform: translateY(120%); transition: transform .25s ease; box-shadow: 0 -6px 24px rgba(20,64,58,.08);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
}
.sticky-cart[data-show="true"] { transform: translateY(0); }
.sticky-cart__info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cart__info strong { font-family: var(--font-display); }
.sticky-cart__info span { font-size: .8rem; color: var(--ink-faint); }
.sticky-cart .btn { flex: 0 0 auto; }

/* Product info tabs / accordions */
.product-info { margin-top: clamp(3rem, 7vw, 5rem); }
.spec-grid { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; margin: 0; }
.spec-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.spec-grid dt { color: var(--ink-faint); }
.spec-grid dd { margin: 0; font-weight: 600; text-align: right; }

/* Personalization added to cart / order display */
.fenous-personal-meta { display: grid; gap: .2rem; margin-top: .3rem; }
.fenous-personal-meta .pm { font-size: .85rem; color: var(--ink-soft); }
.fenous-personal-meta .pm strong { color: var(--ink); }

@media (min-width: 600px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1.05fr 1fr; }
  .sticky-cart { display: none; } /* desktop keeps the in-page CTA */
}

/* =============================================================
   WooCommerce core elements — restyled to the brand
   ============================================================= */

/* Buttons: adopt the brand pill for all WC buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .button, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; line-height: 1; transition: transform .12s, box-shadow .2s, background .2s; cursor: pointer;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover { background: #0d322d; box-shadow: var(--shadow-md); }
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce #place_order,
.woocommerce .checkout-button, .wc-block-components-checkout-place-order-button {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink);
}
.woocommerce .button.alt:hover, .woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: var(--lime-deep); border-color: var(--lime-deep); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); border-left: 5px solid var(--lime-deep);
  color: var(--ink); font-family: var(--font-body);
}
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-info { border-left-color: var(--sky-deep); }

/* Form fields */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection, .woocommerce form .form-row select,
.wc-block-components-text-input input {
  border: 2px solid var(--line); border-radius: 14px; padding: .8rem 1rem; font: inherit; background: var(--paper);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--lime-deep); outline: none; }
.woocommerce form .form-row label, .wc-block-components-form label { font-family: var(--font-display); font-weight: 500; }

/* Cart table */
.woocommerce table.shop_table { border-radius: var(--radius-lg); border: 1px solid var(--line); border-collapse: separate; overflow: hidden; background: var(--paper); }
.woocommerce table.shop_table th { font-family: var(--font-display); background: var(--cream); }
.woocommerce table.cart img { border-radius: 12px; }
.woocommerce .cart_totals, .woocommerce-checkout .woocommerce-checkout-review-order-table {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem 1.2rem;
}
.woocommerce .quantity .qty { border: 2px solid var(--line); border-radius: var(--radius-pill); padding: .5rem; font: inherit; }

/* Checkout layout */
.woocommerce-checkout #payment { background: var(--cream); border-radius: var(--radius-lg); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.woocommerce-checkout .place-order { padding: 1rem 0; }

/* Empty cart */
.cart-empty-hero { text-align: center; padding: 3rem 0; }
.cart-empty-hero img { max-width: 200px; margin: 0 auto 1.5rem; }

/* Trust strip on cart/checkout */
.checkout-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; color: var(--ink-soft); font-size: .9rem; margin-top: 1.5rem; }
.checkout-trust span { display: inline-flex; gap: .4rem; align-items: center; }

/* ---- Brand refresh: square corners on shop/product elements ---- */
.chip, .product-gallery__main, .product-gallery__thumbs button, .personalize,
.field input[type="text"], .optiongroup label, .swatch label, .qty, .qty button,
.preview, .preview__flag, .sticky-cart, .product-card__tag,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .button, .wc-block-components-button, .woocommerce-message,
.woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce table.shop_table,
.woocommerce .cart_totals, .woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce .quantity .qty, .woocommerce-checkout #payment { border-radius: 0; }

/* Serif titles, sans for controls, on the product page */
.product-price, .product-card__price { font-family: var(--font-display); }
.field > label, .optiongroup label, .personalize__head .eyebrow,
.chip, .sticky-cart .btn, .addtocart-row .form-note { font-family: var(--font-body); }

/* Square product-page image slider — edge-to-edge, arrow navigation */
.product-gallery__main { aspect-ratio: 1 / 1; position: relative; background: transparent; box-shadow: none; overflow: hidden; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; padding: 0; background: transparent; }
.product-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; box-shadow: var(--shadow-sm); transition: background .15s;
}
.product-gallery__nav:hover { background: #fff; }
.product-gallery__nav--prev { left: .7rem; }
.product-gallery__nav--next { right: .7rem; }
.product-gallery__nav--prev .icon { transform: rotate(180deg); }
.product-gallery__thumbs [data-thumb] { flex: 0 0 auto; width: 64px; height: 64px; border: 2px solid var(--line); background: transparent; padding: 0; cursor: pointer; overflow: hidden; }
.product-gallery__thumbs [data-thumb][aria-current="true"] { border-color: var(--ink); }
.product-gallery__thumbs [data-thumb] img { width: 100%; height: 100%; object-fit: cover; padding: 0; }

/* =============================================================
   PRODUCT LANDING PAGE (LP) — Wonderbly/Letterfest-style sections
   ============================================================= */
.pdp-hero { padding-top: 1.5rem; }
#personalize-form { scroll-margin-top: 90px; }

/* Trust strip under the fold */
.pdp-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; padding: 1.5rem 0; }
.pdp-trust__grid > div { display: flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-weight: 500; font-size: .95rem; }
.pdp-trust__grid .icon { color: var(--ink-soft); flex: 0 0 auto; }
@media (min-width: 760px) { .pdp-trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* Peek inside — horizontally scrolling spreads */
.pdp-inside .section-head { margin-bottom: 1.5rem; }
.spread-strip { display: flex; gap: 1.2rem; overflow-x: auto; padding: .3rem clamp(1.2rem, 5vw, 4rem) 1.4rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.spread-strip figure { flex: 0 0 auto; width: min(76vw, 400px); margin: 0; scroll-snap-align: center; }
.spread-strip img { width: 100%; height: auto; border: 1px solid var(--line); background: #F5F5F4; box-shadow: var(--shadow-sm); }

/* Story body */
.pdp-story__body { color: var(--ink-soft); }
.pdp-story__body p { margin-bottom: 1rem; }

/* Closing CTA band */
.pdp-cta { background: var(--ink); color: #EAF3EE; text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.pdp-cta h2 { color: #fff; }
.pdp-cta p { color: #B9CFC7; max-width: 44ch; margin: .6rem auto 1.6rem; }

/* Smaller product title */
.product-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.pdp-buy { margin-top: .5rem; }

/* =============================================================
   PERSONALIZATION WIZARD (full-screen takeover)
   ============================================================= */
body.wizard-open { overflow: hidden; }
.wizard { position: fixed; inset: 0; z-index: 300; background: var(--paper); display: flex; flex-direction: column; }
.wizard[hidden] { display: none; }

.wizard__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); }
.wizard__brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.wizard__brand span { white-space: nowrap; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.wizard__close { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border: none; background: transparent; color: var(--ink); cursor: pointer; }
.wizard__close:hover { background: var(--cream); }

.wizard__steps { display: none; gap: 0; list-style: none; margin: 0 auto; padding: 0; }
.wizard__steps li { display: inline-flex; align-items: center; color: var(--ink-faint); font-family: var(--font-body); font-size: .9rem; }
.wizard__dot-label { margin-left: .45rem; }
.wizard__steps li:not(:last-child)::after { content: ""; width: 24px; height: 2px; background: var(--line); margin: 0 .7rem; }
.wizard__dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); font-weight: 600; font-size: .82rem; }
.wizard__steps li.is-current { color: var(--ink); }
.wizard__steps li.is-current .wizard__dot { border-color: var(--ink); background: var(--ink); color: #fff; }
.wizard__steps li.is-done .wizard__dot { border-color: var(--lime-deep); background: var(--lime); color: var(--lime-ink); }
@media (min-width: 820px) { .wizard__steps { display: flex; } }

.wizard__body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.wizard__preview { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; padding: 1.2rem; background: linear-gradient(160deg, var(--cream), #EEF4F6); border-bottom: 1px solid var(--line); }
.wizard__preview .preview { width: min(150px, 38vw); box-shadow: var(--shadow-md); border: 4px solid var(--char-color, transparent); }
.wizard__dedication { max-width: 340px; text-align: center; font-style: italic; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: .7rem 1rem; }

/* Two-image preview (cover + dedication page) with overlay text */
.preview .preview__art { position: absolute; inset: 0; }
.preview__name, .preview__dedication { z-index: 2; }
.preview__flag { z-index: 3; }
.preview__dedication {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 82%; text-align: center; line-height: 1.35; white-space: pre-wrap; word-break: break-word;
}

.wizard__form { flex: 1; display: flex; flex-direction: column; padding: clamp(1.3rem, 4vw, 2.6rem); overflow-y: auto; width: 100%; max-width: 640px; margin-inline: auto; }
.wizard__step { flex: 1; }
.wizard__q { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 1.4rem; }
.wizard__hint { color: var(--ink-faint); margin: -.8rem 0 1.2rem; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.6rem 1rem; border: 2px solid var(--line); background: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .12s; }
.choice-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.choice-card.is-selected { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }
.choice-card__emoji { font-size: 2.4rem; line-height: 1; }
.char-card { flex-direction: row; }
.char-dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
@media (min-width: 560px) { .choice-grid--chars { grid-template-columns: repeat(4, 1fr); } .char-card { flex-direction: column; } }

.wizard__form textarea { width: 100%; padding: .9rem 1.1rem; border: 2px solid var(--line); font: inherit; background: var(--cream); resize: vertical; min-height: 110px; }
.wizard__form textarea:focus { border-color: var(--lime-deep); outline: none; background: #fff; }
.field.has-error input { border-color: var(--danger); }

.wizard__summary { display: grid; gap: 0; margin: 0 0 1.5rem; border: 1px solid var(--line); }
.wizard__summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.wizard__summary > div:last-child { border-bottom: none; }
.wizard__summary dt { color: var(--ink-faint); }
.wizard__summary dd { margin: 0; font-weight: 600; text-align: right; max-width: 62%; white-space: pre-wrap; }
.wizard__flabel { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .5rem; }
.wizard__total { font-family: var(--font-display); font-size: 1.2rem; margin-top: 1.2rem; }

.wizard__nav { display: flex; gap: .8rem; align-items: center; padding: 1rem 0 calc(.4rem + env(safe-area-inset-bottom)); margin-top: auto; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--paper); }
.wizard__nav [data-wizard-back] { margin-right: auto; }
.wizard__nav [data-wizard-next], .wizard__nav [data-wizard-addtocart] { margin-left: auto; min-width: 160px; }

@media (min-width: 860px) {
  .wizard__form { max-width: 640px; }
}

/* ---- Left-aligned Wonderbly-style shop header ---- */
.shop-page { padding-top: 1.5rem; }
.shop-page .breadcrumb { text-align: left; margin-bottom: .9rem; }
.shop-title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); text-align: left; margin-bottom: .4rem; }
.shop-sub { max-width: 54ch; margin: 0 0 1.75rem; text-align: left; }
.shop-page .shop-filters { margin-bottom: 1.25rem; }
.shop-count-row { text-align: right; margin: .25rem 0 1.75rem; color: var(--ink-faint); }
.shop-count-row .woocommerce-result-count { margin: 0; }
/* breathing room between the header/filters and the product grid */
.shop-page ul.products { margin-top: .5rem; }

/* ---- Wonderbly-style shop: green pill filters + generous cover tiles ---- */
.shop-filters { gap: .7rem; justify-content: flex-start; }
.shop-filters .chip {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: .7rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
}
.shop-filters .chip:hover { background: #0d322d; border-color: #0d322d; }
.shop-filters .chip[aria-current="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* Larger cover tiles with the soft cream backdrop like the reference */
ul.products .product-card { box-shadow: none; background: transparent; }
ul.products .product-card:hover { transform: translateY(-4px); box-shadow: none; }
ul.products .product-card__media { background: #F5F5F4; border: 1px solid var(--line); }
ul.products .product-card__media img { padding: 8%; }
ul.products .product-card__body { padding: 1rem .2rem 0; }
ul.products .product-card__title { font-size: 1.3rem; }
ul.products .product-card__meta { font-size: .98rem; color: var(--ink-soft); }
ul.products .product-card__price { font-size: 1.1rem; margin-top: .4rem; }

.woocommerce-result-count { font-family: var(--font-body); }

/* ---- Mobile: one-line scrollable filters + 2 products per row ---- */
@media (max-width: 600px) {
  .shop-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; scrollbar-width: none; }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filters .chip { flex: 0 0 auto; white-space: nowrap; }
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  ul.products .product-card__title { font-size: 1rem; }
  ul.products .product-card__body { padding: .7rem .1rem 0; }
}

/* Cascading variation options: dim + strike-through the unavailable ones */
.optiongroup input:disabled + label { opacity: .3; cursor: not-allowed; text-decoration: line-through; pointer-events: none; }

/* The hidden attribute must win over .optiongroup's display (paired cover sizes) */
.optiongroup[hidden] { display: none !important; }

/* ---- Combined "about them" step: name + gender + character ---- */
.wizard__field-block { margin-top: 1.5rem; }
.wizard__field-block > .wizard__flabel { display: block; margin-bottom: .55rem; }
.choice-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* Character image tiles (uploaded per gender), select with a check badge */
.char-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.char-tiles[hidden] { display: none !important; }
.char-tile { position: relative; padding: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid var(--line); background: #EAF3EE; cursor: pointer; }
.char-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-tile.is-selected { border-color: var(--ink); }
.char-tile__check { position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: none; align-items: center; justify-content: center; }
.char-tile.is-selected .char-tile__check { display: flex; }
.char-tiles.has-error { outline: 2px solid #c0392b; outline-offset: 4px; }
@media (max-width: 480px) { .char-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Cover availability hint on the product page (choice happens in the wizard) */
.cover-hint { display: flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .95rem; color: var(--ink-soft); margin: 1rem 0 0; }
.cover-hint svg { flex: 0 0 auto; color: var(--pine, var(--ink)); }

/* ---- Cover switcher (soft/hard presented as one listing) ---- */
.cover-switch { margin: 1.1rem 0 1.3rem; }
.cover-switch__label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.cover-switch__opts { display: inline-flex; border: 1px solid var(--ink); }
.cover-switch__btn { font-family: var(--font-body); font-weight: 600; font-size: 1rem; padding: .62rem 1.35rem; color: var(--ink); background: #fff; text-decoration: none; border-right: 1px solid var(--ink); transition: background .15s ease, color .15s ease; cursor: pointer; }
.cover-switch__opts .cover-switch__btn:last-child { border-right: 0; }
.cover-switch__btn:hover { background: var(--cream); }
.cover-switch__btn.is-active { background: var(--ink); color: #fff; cursor: default; }
