/* ===========================================================
   Spacivo — Theme CSS
   Ported near-verbatim from assets/theme.css (Shopify theme).
   Design system + components + utilities. CSS variables are
   emitted by inc/customizer.php via wp_head (see spacivo_css_variables()).
   =========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-fg);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:active { text-decoration: none; }

/* Browsers underline <ins> by default (its semantic meaning is "inserted
   text") — WooCommerce wraps every sale price in one, so without this
   every sale price site-wide (PDP, shop grid, cart, everywhere) shows an
   unwanted underline. <del> keeps its default line-through — that's the
   intentional "struck through regular price" styling, not a stray
   underline, so it's left alone. */
ins { text-decoration: none; }

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

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-accent-fg);
  padding: .75rem 1rem; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--color-accent); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* --- Section spacing --- */
.section { padding-block: clamp(2rem, 5vw, 4rem); }
.section--sm { padding-block: clamp(1rem, 3vw, 2rem); }
.section--lg { padding-block: clamp(3rem, 7vw, 6rem); }
.section--surface { background: var(--color-surface); }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--6 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 750px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 990px) {
  .grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
/*
 * This base (mobile-first) rule must come BEFORE the desktop media query
 * below — it previously sat after it with equal specificity, so it always
 * won and silently forced 2 columns even on wide desktop screens (the
 * "why is the shop grid only 2-up" bug).
 */
.grid--products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1rem; }
@media (min-width: 990px) {
  /* Reverted a recent auto-fill/minmax(280px) experiment here — it broke
     card layout at desktop widths (cards rendering as image+text side by
     side instead of stacked). Back to a fixed, predictable 4-equal-column
     row; each card's own width still matters for image sizing, controlled
     via .product-card__media's aspect-ratio in
     woocommerce/content-product.php, not by fiddling with column count. */
  .grid--products { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem 2rem; }
  .grid--products-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--color-fg); border: 1px solid var(--color-border); }
.btn--secondary:hover { background: var(--color-surface); }
.btn--ghost { background: transparent; color: var(--color-fg); }
.btn--ghost:hover { background: var(--color-surface); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* --- Forms --- */
.input, .select, .textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font: inherit;
  color: inherit;
  min-height: 44px;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field { display: block; margin-bottom: 1rem; }
.field__label { display: block; margin-bottom: .35rem; font-size: .9rem; color: var(--color-muted); }

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.05);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--hover:hover img { transform: scale(1.04); }
.card__body { padding: 1.5rem; }
.card__title { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 .5rem; color: var(--color-fg); }
.card__meta { color: var(--color-muted); font-size: .85rem; }

/* --- Price --- */
/* flex-wrap + max-width so a variable product's price RANGE (e.g.
   "₹12,000.00 – ₹23,500.00") wraps onto a second line inside a narrow
   product card instead of forcing the card wider / overflowing it. */
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; font-weight: 600; max-width: 100%; }
.price__compare { color: var(--color-muted); text-decoration: line-through; font-weight: 400; }
.price__sale { color: var(--color-sale); }
.price--small { font-size: .95rem; }
.price--large { font-size: 1.35rem; }

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: .25rem .55rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
}
.badge--sale { background: var(--color-sale); color: #fff; border-color: transparent; }
/* Product-grid tile's own "X% off" badge is independently configurable
   (Customizer → Product card → Discount badge) without touching the PDP's
   plain-text "Sale" badge above, which reuses the same .badge--sale class. */
.product-card__media .badge--sale { background: var(--card-discount-bg); color: var(--card-discount-color); font-size: var(--card-discount-size); position: absolute; top: .5rem; left: .5rem; z-index: 3; text-transform: none; }
.badge--new { background: var(--color-accent); color: var(--color-accent-fg); border-color: transparent; }
.product-card__media .badge--new { position: absolute; bottom: .5rem; left: .5rem; z-index: 3; text-transform: none; }
.badge--exclusive { background: #1E8449; color: #fff; border-color: transparent; }
.badge--soldout { background: #ddd; color: #333; border-color: transparent; }
.badge--stack { position: absolute; top: .75rem; left: .75rem; z-index: 2; }
.badge + .badge { margin-left: .35rem; }

/* --- Swatches --- */
.swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.swatch--lg { width: 32px; height: 32px; }
.swatch[aria-pressed="true"], .swatch.is-selected { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.swatch-group { display: inline-flex; gap: .35rem; }

/* --- Product card --- */
.product-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--color-bg); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(0,0,0,.05); box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.product-card__link { color: inherit; display: block; width: 100%; }
.product-card__media { width: 100%; position: relative; }
.product-card .card__body { padding: 1rem; }
.product-card__title { font-size: var(--card-title-size, .95rem); font-weight: 600; margin: 0 0 .25rem; color: var(--card-title-color, inherit); }
.product-card__vendor { color: var(--color-muted); font-size: .8rem; margin-bottom: .15rem; }

/* Badges row (rating chip + Sold out/Online Exclusive) sits below the
   image inside the card body. Sale % and New Arrival moved to overlay
   badges directly on the photo instead (.product-card__media .badge--sale
   / .badge--new above) to match the reference card design. */
.product-card__badges { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.product-card__badges .badge { margin-left: 0; }
.product-card__rating {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--color-surface); border-radius: 999px; padding: .15rem .55rem;
  font-size: var(--card-rating-size, .8rem); color: var(--card-rating-color, inherit);
  width: fit-content;
}
.product-card__rating-star { color: #E8823A; }
.product-card__rating-count { color: var(--color-muted); }

.product-card__store { display: flex; align-items: center; gap: .3rem; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: var(--color-muted); margin: .1rem 0 .35rem; }
.product-card__store-flag { font-size: 1rem; line-height: 1; }

.product-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .5rem; }
.product-card__footer .price { min-width: 0; }
.product-card__footer .price ins { text-decoration: none; }
.product-card__footer .price ins .woocommerce-Price-amount { color: var(--card-sale-price-color, inherit); font-size: var(--card-sale-price-size, 1em); font-weight: 600; }
.product-card__footer .price del .woocommerce-Price-amount { color: var(--card-regular-price-color, inherit); font-size: var(--card-regular-price-size, .9em); font-weight: 400; }

.product-card__emi { flex-basis: 100%; font-size: .78rem; color: var(--color-muted); margin-top: .1rem; }
.product-card__emi-link { color: var(--color-accent); font-weight: 600; text-decoration: none; }

/* Top-right action stack (wishlist / quick-add / share) — one flex column
   wrapper instead of three separately-offset absolutely-positioned
   elements, so adding/removing a button never requires re-tuning offsets. */
.product-card__actions {
  position: absolute; top: .5rem; right: .5rem; z-index: 4;
  display: flex; flex-direction: column; gap: .5rem;
}
.product-card__wishlist,
.product-card__share {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center;
  color: var(--color-fg); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: color .2s ease;
}

/* Share popover (template-parts/share-menu.php) — wraps the share trigger
   button on both the product-grid card and the PDP gallery
   (assets/css/woocommerce.css's .spacivo-pdp-gallery__share-trigger) so
   the popover can anchor to just that one button via position:absolute
   instead of the whole action stack. Toggled via [hidden] by
   initPdpShare() in assets/js/product.js. */
.share-trigger { position: relative; }
.share-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 10;
  display: flex; gap: .4rem; padding: .5rem;
  background: var(--color-bg); border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
/* .share-menu's own "display: flex" above otherwise beats the browser's
   default [hidden] { display: none } UA rule (a class selector always
   outranks that plain-attribute default), so the popover was rendering
   open at all times instead of only once initPdpShare() clears [hidden]
   on click — this restores it. */
.share-menu[hidden] { display: none; }
.share-menu__item {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; border: none;
  background: var(--color-surface); display: flex; align-items: center; justify-content: center;
  color: var(--color-fg); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.share-menu__item:hover { background: var(--color-accent); color: var(--color-accent-fg); }
.product-card__wishlist.is-active { color: var(--color-sale); }
/*
 * .woocommerce a.button (assets/css/woocommerce.css) is 2 classes + 1
 * element and loads after this file, so a plain ".product-card__quick-add
 * a" (1 class) — or even ".product-card__quick-add a.button" (a tie,
 * still lost to load order) — was losing to it, leaving WooCommerce's
 * default padded rectangular button in place: the "solid, displaced"
 * block instead of a round icon. Needs to outrank it on specificity alone
 * (3 classes), not rely on load order.
 */
.product-card .product-card__quick-add a.button,
.product-card .product-card__quick-add .added_to_cart.button {
  width: 30px; height: 30px; min-height: 0; border-radius: 50%; padding: 0; margin: 0;
  background: rgba(255,255,255,.9); border: none; display: flex; align-items: center; justify-content: center;
  color: var(--color-fg); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: color .2s ease, background .2s ease; font-size: 0; line-height: 1;
}
.product-card .product-card__quick-add a.button:hover,
.product-card .product-card__quick-add .added_to_cart.button:hover { background: rgba(255,255,255,.9); }
.product-card__quick-add a.loading { opacity: .6; pointer-events: none; }
.product-card__quick-add a.added_to_cart { display: none; }
.product-card__quick-add img { width: 16px; height: 16px; }
/* The built-in cart SVG renders inside a small accent-colored rounded-square
   chip (an "add to bag" emblem) rather than as a plain outline glyph; a
   custom-uploaded icon (Customizer) skips this wrapper, see
   inc/woocommerce-archive-hooks.php spacivo_icon_only_loop_add_to_cart(). */
.product-card__cart-icon-chip {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; background: var(--color-accent); color: #fff;
}
.product-card__hover-media { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.product-card__media:hover .product-card__hover-media { opacity: 1; }

/* --- Header --- */
.site-header__logo { flex: 0 0 auto; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--color-accent); color: var(--color-accent-fg);
  font-size: .65rem; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 0 0 2px var(--color-bg);
}

/* --- Primary nav --- */
.primary-nav { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__link { padding: .5rem .25rem; display: inline-block; font-weight: 500; }
.primary-nav__item { position: relative; }
.primary-nav__submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: .75rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .2s ease; list-style: none; margin: 0;
}
.primary-nav__item:hover .primary-nav__submenu,
.primary-nav__item:focus-within .primary-nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav__submenu a { display: block; padding: .4rem .5rem; border-radius: var(--radius-sm); }
.primary-nav__submenu a:hover { background: var(--color-surface); text-decoration: none; }

/* --- Mobile drawer --- */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .25s, opacity .25s ease;
}
.drawer[data-open="true"] { visibility: visible; opacity: 1; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--color-bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__header, .drawer__footer { padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.drawer__footer { border-bottom: 0; border-top: 1px solid var(--color-border); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer__title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.drawer__close { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.drawer__close:hover { background: var(--color-surface); }

/* --- Announcement bar --- */
.announcement-bar {
  background: var(--color-accent); color: var(--color-accent-fg);
  font-size: .85rem; letter-spacing: .02em;
  padding: .55rem 1rem; text-align: center;
}
.announcement-bar__rotator { display: grid; }
.announcement-bar__slide { grid-area: 1 / 1; opacity: 0; transition: opacity .4s ease; }
.announcement-bar__slide.is-active { opacity: 1; }

/* --- Accordion --- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__trigger {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1rem 0; text-align: left; font-weight: 500;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__icon { transition: transform .2s ease; font-size: 1.2rem; line-height: 1; }
.accordion__panel { padding: 0 0 1rem; color: var(--color-fg); }
.accordion__panel[hidden] { display: none; }

/* --- Breadcrumbs --- */
.breadcrumbs { font-size: .85rem; color: var(--color-muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 .4rem; }
.breadcrumbs a:hover { color: var(--color-fg); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%); }
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.35); }
.hero__inner { position: relative; z-index: 3; color: #fff; height: 100%; display: flex; align-items: center; justify-content: flex-start; padding-block: clamp(3rem,10vw,7rem); }
.hero__eyebrow { color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin-bottom: .5rem; display: block; }
.hero__title { color: #fff; max-width: 18ch; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero__subtitle { color: rgba(255,255,255,.95); max-width: 600px; margin: 0 0 1.5rem; line-height: 1.4; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero__actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero--align-left .hero__inner { text-align: left; }
.hero--align-center .hero__inner { text-align: center; justify-content: center; }
.hero--align-right .hero__inner { text-align: right; justify-content: flex-end; }
.hero--height-sm { min-height: 300px; }
.hero--height-md { min-height: 500px; }
.hero--height-lg { min-height: 700px; }

/* --- Category grid (6-column "Shop by category" homepage section) --- */
.category-tile { display: block; position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); }
.category-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.category-tile:hover img { transform: scale(1.03); }
.category-tile__body { padding: .6rem; }
.category-tile__title { font-size: .9rem; font-weight: 600; margin: 0 0 .15rem; }

/* --- Promo card --- */
.promo-card { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); color: var(--color-fg); }
.promo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.promo-card__body { padding: 1rem; }
.promo-card--overlay .promo-card__body { position: absolute; inset: auto 0 0 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff; }
.promo-card--overlay img { aspect-ratio: 4/5; }

/* --- Video promo --- */
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Trust icons --- */
.trust-list { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 750px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; }
.trust-item__icon { font-size: 1.6rem; line-height: 1; }

/* --- FAQ / rich text --- */
.faq { max-width: 820px; margin-inline: auto; }
.richtext { max-width: 820px; margin-inline: auto; }
.richtext p + p { margin-top: 1em; }

/* --- Blog cards --- */
.article-card__image { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/2; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__title { font-size: 1.1rem; margin: .75rem 0 .25rem; }
.article-card__meta { color: var(--color-muted); font-size: .85rem; }

/* --- Single blog post --- */
.single-post__title { max-width: 820px; margin: 0 auto 1rem; }
.single-post__meta { max-width: 820px; margin: 1.5rem auto 1.5rem; color: var(--color-muted); font-size: .9rem; }
.single-post__meta a { color: var(--color-muted); text-decoration: none; }
.single-post__tags { max-width: 820px; margin: 2rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.single-post__comments { max-width: 820px; margin: 3rem auto 0; }

/* Full-bleed hero — outside .container on purpose, directly under the
   header. Text sits on a light gradient scrim fading from opaque (left)
   to transparent (right) rather than a dark overlay, so it reads clearly
   without hiding most of the photo. */
.single-post__hero { position: relative; }
.single-post__hero-media { aspect-ratio: 16/7; }
.single-post__hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-post__hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 640px; padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(90deg, var(--color-bg) 45%, rgba(255,255,255,0) 100%);
}
.single-post__hero-badge { background: var(--color-accent); color: var(--color-accent-fg); border-color: transparent; align-self: flex-start; margin-bottom: 1rem; }
.single-post__hero-title { margin: 0 0 .75rem; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; color: var(--color-fg); }
.single-post__hero-excerpt { margin: 0; color: var(--color-fg); font-size: 1rem; line-height: 1.5; }
@media (max-width: 750px) {
  .single-post__hero-media { aspect-ratio: 4/5; }
  .single-post__hero-overlay { max-width: 100%; background: linear-gradient(0deg, var(--color-bg) 55%, rgba(255,255,255,0) 100%); }
}

/* --- Store card --- */
.store-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; }
.store-card h3 { margin: 0 0 .35rem; }
.store-card__meta { color: var(--color-muted); font-size: .9rem; }
.store-card__actions { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- Collection toolbar / filters --- */
.collection-toolbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--color-border); margin-bottom: 1.25rem; }
.collection-toolbar__count { color: var(--color-muted); font-size: .9rem; }

.sort-dropdown { position: relative; }
.sort-dropdown__trigger {
  display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: .55rem .9rem; font-size: .9rem; color: var(--color-fg); background: var(--color-bg);
  user-select: none;
}
.sort-dropdown__trigger::-webkit-details-marker { display: none; }
.sort-dropdown__chevron {
  width: 8px; height: 8px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg); transition: transform .15s ease; margin-top: -3px;
}
.sort-dropdown[open] .sort-dropdown__chevron { transform: rotate(-135deg); margin-top: 3px; }
.sort-dropdown__panel {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 10; min-width: 220px;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: .5rem; display: grid; gap: .1rem;
}
.sort-dropdown__option {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .5rem; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--color-fg);
}
.sort-dropdown__option:hover { background: var(--color-surface); text-decoration: none; }
.sort-dropdown__option-icon {
  display: inline-flex; flex: 0 0 auto; color: var(--color-muted);
}
.sort-dropdown__option.is-checked .sort-dropdown__option-icon { color: var(--color-accent); }
.sort-dropdown__option-label { flex: 1; }
.sort-dropdown__radio {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--color-border); flex: 0 0 auto; position: relative;
}
.sort-dropdown__option.is-checked .sort-dropdown__radio { border-color: var(--color-accent); }
.sort-dropdown__option.is-checked .sort-dropdown__radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-accent);
}
.filters { display: grid; gap: 1rem; }
.filters__group { border-bottom: 1px solid var(--color-border); padding-bottom: .75rem; }
.filters__legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.filters__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.filters__option label { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; cursor: pointer; }
.filters__pills { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.filter-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border: 1px solid var(--color-border);
  border-radius: 999px; font-size: .85rem; background: var(--color-bg);
}
.filter-pill button { line-height: 1; }

/* --- Category archive: centered hero title + circular subcategory row --- */
.collection-hero__title,
.collection-hero__eyebrow,
.collection-hero__description { text-align: center; }
/* Still a real <h1> for SEO (one per page), just visually sized to match
   the theme's h4 (1.125rem) instead of h1's large clamp() size. */
.collection-hero__title--h4 { font-size: 1.125rem; }
.collection-hero__description { max-width: 640px; margin-left: auto; margin-right: auto; }

.subcategory-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 1rem; margin-top: 1.5rem;
}
.subcategory-row__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 84px; text-decoration: none; color: inherit; }
.subcategory-row__icon {
  display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--color-surface);
}
.subcategory-row__icon img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.subcategory-row__item:hover .subcategory-row__icon img { transform: scale(1.5); }
.subcategory-row__label { font-size: .8rem; text-align: center; line-height: 1.3; }

/* --- Category archive: filter sidebar + main grid layout --- */
.collection-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .collection-layout { grid-template-columns: 260px 1fr; } }
.collection-layout__main { min-width: 0; }

.collection-filters { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem; }
.collection-filters__header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.collection-filters__heading { margin: 0; font-size: 1.1rem; }
.collection-filters__clear-all { font-size: .8rem; font-weight: 600; color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.collection-filters__clear-all:hover { text-decoration: underline; }

/* Per-group "Clear" — clears just that attribute's active filter, leaving
   every other filter (price, other attributes) untouched. Sits beside the
   accordion trigger button rather than inside it (a link can't nest
   inside a button). Rendered as a small text label rather than a bare "x"
   glyph because the accordion's own "+" toggle icon rotates 45deg into an
   "x" shape when the panel is expanded (see .accordion__icon below) — two
   adjacent "x" characters read as a duplicated control, so this one needs
   its own distinct shape. */
.filters__group-heading { display: flex; align-items: center; gap: .4rem; }
.filters__group-heading .accordion__trigger { flex: 1; }
.filters__group-clear {
  font-size: .75rem; font-weight: 600; line-height: 1; color: var(--color-muted); text-decoration: none;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--color-border); white-space: nowrap;
}
.filters__group-clear:hover { color: var(--color-accent); border-color: var(--color-accent); background: var(--color-surface); }

/* Filter term rows are plain <a> links styled to look like checkboxes
   (spacivo_render_filter_sidebar(), inc/woocommerce-archive-hooks.php) —
   not real <input type="checkbox"> elements, since a real checkbox can't
   navigate the page on its own without an inline JS handler (which this
   project avoids). role="checkbox"/aria-checked on the link keeps it
   accessible despite not being a native form control. */
.filters__option-link { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: inherit; text-decoration: none; padding: .2rem 0; }
.filters__checkbox-box {
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border-radius: 3px;
  border: 1px solid var(--color-border); background: var(--color-bg); position: relative;
}
.filters__option-link.is-checked .filters__checkbox-box {
  background: var(--color-accent); border-color: var(--color-accent);
}
.filters__option-link.is-checked .filters__checkbox-box::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* --- Price range slider (assets/js/shop-filters.js) — two overlapping
   native <input type="range"> tracks, a common vanilla dual-handle
   technique. Both inputs share the same box via position:absolute; the
   track/fill itself is drawn once via .filters__price-slider's own
   background rather than by either input, so there's no double-track
   visual overlap, and each input's thumb stays independently draggable
   since only the thumb (not the track) has pointer-events. --- */
.filters__price { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--color-border); }
.filters__price-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.filters__price-slider { position: relative; height: 20px; margin-bottom: 1rem; }
.filters__price-slider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%);
  background: var(--color-border); border-radius: 999px;
}
.filters__price-input {
  position: absolute; top: 0; left: 0; width: 100%; margin: 0; height: 20px;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.filters__price-input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-accent); cursor: pointer; margin-top: 0; position: relative; z-index: 2;
}
.filters__price-input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; border: none;
  background: var(--color-accent); cursor: pointer;
}
.filters__price-input::-webkit-slider-runnable-track { background: none; }
.filters__price-input::-moz-range-track { background: none; }
.filters__price-actions { display: flex; align-items: center; gap: 1rem; }
.filters__price-actions .btn { padding: .5rem 1.25rem; font-size: .85rem; }
.filters__price-reset { font-size: .85rem; color: var(--color-muted); text-decoration: none; }

/* --- Product detail --- */
/* .product__media is intentionally NOT position:sticky — the gallery
   scrolls normally with the rest of the page (a plain full-page scroll)
   instead of staying pinned while .product__info scrolls independently
   beside it. align-items:start is kept anyway since it's still the
   correct behavior for a 2-column grid with mismatched content heights
   (each column sized to its own content, not stretched to match the
   taller one). */
/* Targets .spacivo-pdp-layout (added alongside the bare "product" class
   in woocommerce/content-single-product.php) rather than ".single-product
   .product" — WooCommerce's wc_product_class() puts the bare "product"
   class on every product card's <article> (shop grid, related products,
   AND the "You may also like" up-sells shown further down this very
   single-product page), so scoping only by the .single-product body class
   still let this rule hijack every OTHER product card embedded on the
   page into this same 2-column PDP grid, splitting each card's image and
   text side by side instead of stacking them. A dedicated class on just
   the actual PDP wrapper avoids the collision entirely. */
.spacivo-pdp-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 990px) { .spacivo-pdp-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.product__title { margin-bottom: .25rem; }
.product__subtitle { color: var(--color-muted); margin-bottom: 1rem; }
.product__price { margin: 1rem 0; }
.product__options { display: grid; gap: 1rem; margin: 1rem 0; }
.product__option-label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.product__option-values { display: flex; flex-wrap: wrap; gap: .4rem; }
.option-button { padding: .55rem .85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); font-size: .9rem; }
.option-button[aria-pressed="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent) inset; }
.option-button[disabled] { opacity: .4; text-decoration: line-through; }
.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-selector button { width: 40px; height: 40px; }
.qty-selector input { width: 44px; height: 40px; border: 0; text-align: center; background: transparent; }
.product__cta { display: grid; gap: .75rem; margin: 1rem 0; }
@media (min-width: 750px) { .product__cta { grid-template-columns: 1fr 1fr; } }
.product__trust { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--color-muted); font-size: .85rem; margin-top: .5rem; }

/* --- Sticky ATC mobile --- */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--color-bg); border-top: 1px solid var(--color-border);
  padding: .65rem .75rem; display: flex; gap: .5rem; align-items: center;
  transform: translateY(100%); transition: transform .2s ease;
}
.sticky-atc.is-visible { transform: translateY(0); }
.sticky-atc__price { margin-right: auto; font-weight: 600; }
@media (min-width: 990px) { .sticky-atc { display: none; } }

/* --- Cart --- */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--color-border); }
.cart-line__image img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface); }
.cart-line__title { font-weight: 600; font-size: .95rem; margin: 0; }
.cart-line__variant { color: var(--color-muted); font-size: .82rem; }
.cart-line__remove { color: var(--color-muted); font-size: .8rem; text-decoration: none; }
.cart-summary { padding: 1rem 0; }
.cart-summary__row { display: flex; justify-content: space-between; margin: .25rem 0; }
.cart-empty { text-align: center; padding: 2rem 1rem; }
.ship-threshold { padding: .5rem .75rem; background: var(--color-surface); border-radius: var(--radius-md); font-size: .85rem; margin-bottom: .75rem; }
.ship-threshold__bar { height: 6px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.ship-threshold__fill { height: 100%; background: var(--color-accent); width: 0; transition: width .3s ease; }

/* --- Predictive search --- */
.predictive-search {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: .75rem;
  max-height: 70vh; overflow: auto;
}
.predictive-search__group + .predictive-search__group { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--color-border); }
.predictive-search__group h5 { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; color: var(--color-muted); margin: 0 0 .4rem; font-weight: 600; }
.predictive-search__item { display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; padding: .4rem .25rem; border-radius: var(--radius-sm); align-items: center; }
.predictive-search__item:hover { background: var(--color-surface); text-decoration: none; }
.predictive-search__item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface); }

/* --- Pagination --- */
.pagination { display: flex; gap: .25rem; justify-content: center; padding: 1.5rem 0; }
.pagination a, .pagination span { padding: .45rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.pagination .is-current { background: var(--color-accent); color: var(--color-accent-fg); border-color: transparent; }

/* --- 404 --- */
.not-found { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }

/* --- Placeholder media --- */
.placeholder-image {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #F5EBE0 0%, #E8D5E0 50%, #D4C5D9 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); min-height: 300px; position: relative; overflow: hidden;
  border-radius: var(--radius-md);
}
.placeholder-image::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent);
  pointer-events: none;
}
.placeholder-image svg { opacity: .3; max-width: 80px; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.1)); }
.payment-icon { display: inline-block; max-height: 22px; margin-right: .25rem; vertical-align: middle; }

/* --- Image containers --- */
.image-container { overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, #F5EBE0 0%, #E8D5E0 100%); }
.image-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Spec table --- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.spec-table th { width: 32%; color: var(--color-muted); font-weight: 500; }

/* --- Feature grid --- */
.feature-grid { display: grid; gap: 2rem; }
@media (min-width: 750px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-item { text-align: center; }
.feature-item__icon { margin-bottom: 1rem; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.feature-item__title { font-weight: 600; margin-bottom: .5rem; }

/* --- Product grid --- */
.product-grid { display: grid; gap: 1.5rem; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Section headers --- */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { color: var(--color-accent); margin-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--color-muted); }

/* --- Utility --- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: .5rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.aspect-square { aspect-ratio: 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-landscape { aspect-ratio: 4 / 3; }

/* --- Toast --- */
.toast-host { position: fixed; bottom: 1rem; right: 1rem; z-index: 120; display: grid; gap: .5rem; }
.toast { background: var(--color-fg); color: var(--color-bg); padding: .75rem 1rem; border-radius: var(--radius-md); font-size: .9rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.toast--error { background: var(--color-sale); color: #fff; }

/* --- Loading --- */
.is-loading { opacity: .55; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Focus visibility --- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

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

a, button, .btn { transition: color .2s ease, background .2s ease, transform .2s ease; }

/* --- "Book a Free Consultation" floating CTA (footer.php) ---
   Fixed to the viewport (like the Ivo chat bubble / WhatsApp CTA), not any
   one page's content, so it stays put at the bottom center as the page
   scrolls. Lives here (not hero-carousel.css) because footer.php shows it
   on more than just the homepage, and this stylesheet loads on every
   page. */
.hero-consultation-cta {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 900;
  background-color: var(--color-accent, #72192D); color: #fff;
  padding: .425rem 3.75rem; border-radius: 6px; font-weight: 600; font-size: .95rem;
  text-decoration: none; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-consultation-cta:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); color: #fff; }

@media (max-width: 750px) {
  .hero-consultation-cta { padding: .35rem 2.25rem; font-size: .85rem; bottom: 0; }
}

/* --- "Choose a Variant" modal (shop/category grid) --- */
.spacivo-variant-modal[hidden] { display: none; }
.spacivo-variant-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.spacivo-variant-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.spacivo-variant-modal__dialog {
  position: relative; z-index: 1; background: var(--color-bg); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.spacivo-variant-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.spacivo-variant-modal__header h3 { margin: 0; font-size: 1.15rem; }
.spacivo-variant-modal__close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-muted); padding: 0; }
.spacivo-variant-modal__product { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.spacivo-variant-modal__product img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface); }
.spacivo-variant-modal__product span { font-size: .9rem; color: var(--color-fg); }
.spacivo-variant-modal__body { margin-bottom: 1.25rem; }
.spacivo-variant-modal__confirm { width: 100%; }
.spacivo-variant-modal__confirm:disabled { opacity: .5; cursor: not-allowed; }

/* --- Compact "Choose Variant" summary bar (product page only) --- */
.spacivo-variant-summary[hidden] { display: none; }
.spacivo-variant-summary {
  display: block; width: 100%; max-width: 380px; text-align: left; background: none; border: none;
  padding: 0; margin-bottom: 1.25rem; cursor: pointer; font-family: inherit;
}
.spacivo-variant-summary__label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .6rem; color: var(--color-fg); }
/*
 * Badge sits as a normal flex child (align-self: center + negative
 * top margin to pull it up over the border) rather than position:absolute
 * + left:50%/transform:translateX(-50%) — the latter only centers
 * correctly if every ancestor up the chain has a sane, unbroken
 * containing-block width, which isn't guaranteed inside WooCommerce's own
 * product-summary markup; this way the badge can never end up positioned
 * relative to the wrong ancestor.
 */
.spacivo-variant-summary__control {
  border: 1px solid var(--color-accent); border-radius: var(--radius-md); padding: .9rem .9rem .55rem;
  display: flex; flex-direction: column;
}
.spacivo-variant-summary__badge {
  align-self: center; margin: -1.4rem 0 .5rem;
  background: var(--color-accent); color: var(--color-accent-fg); font-size: .75rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 999px; white-space: nowrap;
}
.spacivo-variant-summary__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.spacivo-variant-summary__text { color: var(--color-accent); font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacivo-variant-summary__chevron { flex: 0 0 auto; color: var(--color-fg); }
