/* ===========================================================
   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; }

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)); }
}
@media (min-width: 990px) {
  .grid--products { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid--products-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.grid--products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1rem; }

/* --- 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 --- */
.price { display: inline-flex; align-items: baseline; gap: .5rem; font-weight: 600; }
.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; }
.badge--new { background: var(--color-accent); color: var(--color-accent-fg); border-color: transparent; }
.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; }
.product-card__link { color: inherit; }
.product-card__title { font-size: .95rem; font-weight: 600; margin: 0 0 .25rem; }
.product-card__vendor { color: var(--color-muted); font-size: .8rem; margin-bottom: .15rem; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .5rem; }
.product-card__quick-add {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 3;
  opacity: 0; transform: translateY(4px); transition: .2s ease;
  background: var(--color-accent); color: var(--color-accent-fg);
  padding: .5rem .8rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
}
.product-card:hover .product-card__quick-add,
.product-card:focus-within .product-card__quick-add { opacity: 1; transform: translateY(0); }
.product-card__hover-media { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.product-card__media:hover .product-card__hover-media { opacity: 1; }
.product-card__corner-badges {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
}
.product-card__wishlist {
  position: absolute; top: .5rem; right: .5rem; z-index: 4; width: 30px; height: 30px; border-radius: 50%;
  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;
}
.product-card__wishlist.is-active { color: var(--color-sale); }

/* --- 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; }

/* --- 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; }
.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; }
.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); border: 1px solid var(--color-border);
}
.subcategory-row__icon img { width: 100%; height: 100%; object-fit: cover; }
.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__heading { margin: 0 0 1rem; font-size: 1.1rem; }

/* 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);
}

/* --- 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). */
.product { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 990px) { .product { 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; }
}
