/*
Theme Name:   Muse SA
Theme URI:    https://muse-sa.co.za
Description:  Divi child theme for Muse South Africa. Carries MUSE's brand system
              (charcoal + lime, Open Sans, product-photography-led) into WooCommerce.
Author:       GCT Brands
Template:     Divi
Version:      1.0.0
Text Domain:  muse-sa
*/

/* ==========================================================================
   1. Design tokens
   MUSE brand values sampled from muse-europe.com and the 2026 catalogue.
   Lime is #88C540. It measures 1.98:1 on white, so it is NEVER used for text
   on light surfaces: only on charcoal/near-black, or as a fill behind dark ink.
   ========================================================================== */
:root {
  /* Brand */
  --muse-lime:        #88C540;
  --muse-lime-bright: #9BD653;   /* hover on dark */
  --muse-lime-deep:   #6DA630;   /* pressed / borders on light */

  /* Surfaces */
  --muse-black:       #141416;
  --muse-charcoal:    #3A3A3C;   /* MUSE's own section band */
  --muse-charcoal-lo: #2A2A2C;
  --muse-paper:       #FFFFFF;
  --muse-mist:        #F4F5F6;   /* neutral grey-cool, deliberately not warm */
  --muse-line:        #E2E4E6;
  --muse-line-dark:   #4C4C4F;

  /* Ink — contrast-checked */
  --muse-ink:         #1F2022;   /* on white  16.1:1 */
  --muse-ink-soft:    #55585C;   /* on white   7.2:1 */
  --muse-ink-mute:    #6B6F73;   /* on white   5.1:1 — floor for small text */
  --muse-on-dark:     #FFFFFF;   /* on charcoal 9.7:1 */
  --muse-on-dark-mut: #C3C6C9;   /* on charcoal 6.1:1 */

  /* Type */
  --muse-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --muse-step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.88rem);
  --muse-step-0:  clamp(0.95rem, 0.91rem + 0.18vw, 1.05rem);
  --muse-step-1:  clamp(1.20rem, 1.10rem + 0.45vw, 1.45rem);
  --muse-step-2:  clamp(1.55rem, 1.35rem + 0.90vw, 2.10rem);
  --muse-step-3:  clamp(2.00rem, 1.65rem + 1.60vw, 3.05rem);
  --muse-step-4:  clamp(2.55rem, 1.95rem + 2.70vw, 4.20rem);

  /* Space */
  --muse-gap:     clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  --muse-band:    clamp(3rem, 2rem + 5vw, 7rem);
  --muse-shell:   min(1440px, 100% - 2 * var(--muse-gap));

  /* Motion */
  --muse-ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
  --muse-fast: 180ms;
  --muse-med:  340ms;

  /* Layers */
  --z-sticky: 100;
  --z-header: 200;
  --z-drawer: 300;
  --z-modal:  400;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body,
body.et-db #et-boc .et-l {
  font-family: var(--muse-font);
  font-size: var(--muse-step-0);
  line-height: 1.65;
  color: var(--muse-ink);
  background: var(--muse-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3 {
  font-family: var(--muse-font);
  font-weight: 700;
  color: var(--muse-ink);
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: var(--muse-step-4); font-weight: 800; }
h2 { font-size: var(--muse-step-3); }
h3 { font-size: var(--muse-step-2); }
h4 { font-size: var(--muse-step-1); }

p { text-wrap: pretty; }
.entry-content p,
.woocommerce-product-details__short-description p { max-width: 68ch; }

a { color: var(--muse-ink); text-decoration-color: var(--muse-lime-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--muse-lime-deep); }

:where(a, button, input, select, textarea, .button):focus-visible {
  outline: 3px solid var(--muse-lime-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   3. Header — MUSE runs a dark bar with the wordmark left, nav right
   ========================================================================== */
#main-header,
#main-header.et-fixed-header {
  background: var(--muse-black) !important;
  box-shadow: none;
  border-bottom: 1px solid var(--muse-line-dark);
}
/* Divi's default container is narrower than this catalogue needs: six tiles
   per row want room, and the nav wraps at the default width. */
#main-header .container,
#page-container #main-content .container,
#et-main-area .container { width: var(--muse-shell) !important; max-width: none !important; }
#main-content .container::before { display: none; }
.et_right_sidebar #left-area, .et_left_sidebar #left-area { width: 100%; padding: 0 !important; }

#logo { max-height: 38px; }
#et-top-navigation { padding-top: 22px !important; }
.et_header_style_left #et-top-navigation nav > ul > li > a { padding-bottom: 22px; }
#top-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.35rem; }
#top-menu li { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1320px) {
  #top-menu li a { font-size: 0.83rem !important; }
  #top-menu { gap: 0.1rem; }
}

#top-menu li a,
#et-top-navigation .et-cart-info { color: var(--muse-on-dark) !important; opacity: 1; font-weight: 600; font-size: 0.92rem; }
#top-menu li a { position: relative; padding-bottom: 14px; }
#top-menu li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--muse-lime); transform: scaleX(0); transform-origin: left;
  transition: transform var(--muse-med) var(--muse-ease);
}
#top-menu li a:hover::after,
#top-menu li.current-menu-item > a::after { transform: scaleX(1); }
#top-menu li.current-menu-item > a { color: var(--muse-lime) !important; }
#top-menu .sub-menu { background: var(--muse-charcoal-lo); border-top: 2px solid var(--muse-lime); }
#top-menu .sub-menu li a { color: var(--muse-on-dark-mut) !important; }
#top-menu .sub-menu li a:hover { color: var(--muse-lime) !important; background: rgba(255,255,255,.04); }
.mobile_menu_bar::before { color: var(--muse-on-dark) !important; }
.et_mobile_menu { background: var(--muse-charcoal-lo); border-top: 2px solid var(--muse-lime); }
.et_mobile_menu li a { color: var(--muse-on-dark-mut) !important; border-bottom: 1px solid var(--muse-line-dark); }

/* ==========================================================================
   4. Buttons — lime fill carries dark ink (5.5:1), never lime text on white
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.et_pb_button,
.muse-btn {
  font-family: var(--muse-font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  background: var(--muse-lime) !important;
  color: var(--muse-black) !important;
  border: 2px solid var(--muse-lime) !important;
  border-radius: 2px;
  padding: 0.78em 1.6em !important;
  transition: background var(--muse-fast) var(--muse-ease),
              border-color var(--muse-fast) var(--muse-ease),
              color var(--muse-fast) var(--muse-ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.et_pb_button:hover,
.muse-btn:hover {
  background: var(--muse-black) !important;
  color: var(--muse-lime) !important;
  border-color: var(--muse-black) !important;
}
.et_pb_button::after { display: none !important; }

.muse-btn--ghost {
  background: transparent !important;
  color: var(--muse-ink) !important;
  border-color: var(--muse-ink) !important;
}
.muse-btn--ghost:hover { background: var(--muse-ink) !important; color: var(--muse-paper) !important; }

/* ==========================================================================
   5. Category band — dark header strip above shop + category archives
   ========================================================================== */
/* `100vw` counts the scrollbar, so a full-bleed child overflows by its width
   and the page scrolls sideways. `clip` stops that without creating a scroll
   container, so sticky/fixed positioning still works. */
#page-container { overflow-x: clip; }

/* Full-bleed: the band must reach both edges like MUSE's own section strips,
   even though Divi renders it inside a max-width container. */
.muse-band {
  background: var(--muse-black);
  color: var(--muse-on-dark);
  padding: clamp(2.2rem, 1.4rem + 3vw, 4rem) 0;
  margin: 0 0 clamp(1.8rem, 1.2rem + 2vw, 3.2rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.muse-band__inner { width: var(--muse-shell); margin-inline: auto; }
.muse-band h1 {
  color: var(--muse-on-dark);
  font-size: var(--muse-step-3);
  margin: 0 0 0.4rem;
}
.muse-band p {
  color: var(--muse-on-dark-mut);
  max-width: 60ch;
  margin: 0;
  font-size: var(--muse-step-0);
}
.muse-band a { color: var(--muse-lime); }

.woocommerce .woocommerce-breadcrumb {
  font-size: var(--muse-step--1);
  color: var(--muse-ink-mute);
  margin-bottom: 1.4rem;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--muse-ink-soft); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--muse-lime-deep); }

/* ==========================================================================
   6. Product grid
   MUSE presents product tiles as a photograph with the model name banded
   beneath it. Our shots are on white, so the band carries the identity: it
   goes lime on hover and the photograph lifts slightly.
   ========================================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: var(--muse-gap);
  margin: 0 0 var(--muse-band) !important;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; }

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  background: var(--muse-paper);
  border: 1px solid var(--muse-line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--muse-med) var(--muse-ease),
              box-shadow var(--muse-med) var(--muse-ease),
              transform var(--muse-med) var(--muse-ease);
}
.woocommerce ul.products li.product:hover {
  border-color: var(--muse-lime);
  box-shadow: 0 14px 34px -18px rgba(20,20,22,.42);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--muse-mist);
  padding: 1.15rem;
  margin: 0;
  box-shadow: none;
  transition: transform var(--muse-med) var(--muse-ease);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.045); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.98rem !important;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muse-on-dark);
  background: var(--muse-charcoal);
  padding: 0.85rem 1rem 0.95rem !important;
  margin: auto 0 0;
  min-height: 5.1rem;                 /* steadies the baseline across a row */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  transition: background var(--muse-med) var(--muse-ease),
              color var(--muse-med) var(--muse-ease);
}
.woocommerce ul.products li.product .muse-model {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.005em;
}
.woocommerce ul.products li.product .muse-desc {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muse-on-dark-mut);
  transition: color var(--muse-med) var(--muse-ease);
  /* two lines keeps the name bands level across a row; the full name is on
     the product page and in the title attribute */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  background: var(--muse-lime);
  color: var(--muse-black);
}
.woocommerce ul.products li.product:hover .muse-desc { color: rgba(20,20,22,.78); }

/* Catalogue mode: no prices, no add-to-cart. Keep the tile tidy. */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart { display: none !important; }

/* The wishlist control escapes the tile by default — pull it back inside,
   sitting over the image rather than dangling below the name band. */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist {
  position: absolute; top: 0.6rem; left: 0.6rem; margin: 0; z-index: 2;
}
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255,255,255,.94); border: 1px solid var(--muse-line);
  border-radius: 50%; font-size: 0; color: var(--muse-ink-soft);
  transition: color var(--muse-fast) var(--muse-ease), border-color var(--muse-fast) var(--muse-ease);
}
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button::before { font-size: 15px; margin: 0; }
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button:hover { color: var(--muse-lime-deep); border-color: var(--muse-lime); }
.woocommerce ul.products li.product .tinv-wraper .tinvwl-tooltip { display: none !important; }

/* The name band is the last thing in the tile; nothing may follow it. */
.woocommerce ul.products li.product > *:not(a):not(.woocommerce-loop-product__title):not(.tinv-wraper):not(.onsale) { display: none !important; }

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--muse-lime);
  color: var(--muse-black);
  font-weight: 700;
  border-radius: 2px;
  min-height: 0; min-width: 0;
  padding: 0.35em 0.8em; line-height: 1.4;
  top: 0.75rem; left: 0.75rem; right: auto; margin: 0;
}

/* Out-of-stock marker, honest while the first order is in transit */
.woocommerce ul.products li.product.outofstock > a:first-of-type { position: relative; display: block; }
.woocommerce ul.products li.product.outofstock > a:first-of-type::after {
  content: "Arriving soon";
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(20,20,22,.86); color: var(--muse-on-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.34em 0.7em; border-radius: 2px;
}

/* ==========================================================================
   7. Single product
   ========================================================================== */
.woocommerce div.product .product_title { font-size: var(--muse-step-3); margin-bottom: 0.3em; }
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: var(--muse-step-1);
  font-weight: 300;
  color: var(--muse-ink-soft);
  line-height: 1.45;
  margin-bottom: 1.6rem;
}
.woocommerce div.product .product_meta {
  font-size: var(--muse-step--1);
  color: var(--muse-ink-mute);
  border-top: 1px solid var(--muse-line);
  padding-top: 1rem;
  margin-top: 1.4rem;
}
.woocommerce div.product .product_meta .sku { font-weight: 700; color: var(--muse-ink); letter-spacing: 0.02em; }

.woocommerce div.product div.images img { background: var(--muse-mist); border-radius: 3px; }
.woocommerce div.product div.images .flex-control-thumbs { gap: 0.55rem; display: flex; flex-wrap: wrap; margin-top: 0.7rem; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs img {
  width: 76px; border: 2px solid transparent; border-radius: 3px;
  transition: border-color var(--muse-fast) var(--muse-ease), opacity var(--muse-fast) var(--muse-ease);
  opacity: .72;
}
.woocommerce div.product div.images .flex-control-thumbs img:hover,
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--muse-lime); opacity: 1; }

/* Variation swatches */
.woocommerce div.product form.cart .variations { border: 0; margin-bottom: 1.2rem; }
.woocommerce div.product form.cart .variations td { padding: 0.3rem 0; }
.woocommerce div.product form.cart .variations label { font-weight: 700; color: var(--muse-ink); }
.wpcvrb-variations-radio-buttons label {
  border: 2px solid var(--muse-line) !important;
  border-radius: 2px; padding: 0.5em 1em !important;
  font-weight: 600; color: var(--muse-ink-soft);
  transition: border-color var(--muse-fast) var(--muse-ease), color var(--muse-fast) var(--muse-ease);
}
.wpcvrb-variations-radio-buttons input:checked + label,
.wpcvrb-variations-radio-buttons label:hover { border-color: var(--muse-lime) !important; color: var(--muse-ink); }

/* Colourways — the catalogue-mode replacement for the variation selector */
.muse-colourways { margin: 1.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--muse-line); }
.muse-colourways__title {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muse-ink); margin: 0 0 0.9rem;
}
.muse-colourways__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.7rem;
}
.muse-colourway { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
.muse-colourway__img {
  display: block; width: 100%; aspect-ratio: 1; background: var(--muse-mist);
  border: 1px solid var(--muse-line); border-radius: 3px; overflow: hidden;
  transition: border-color var(--muse-fast) var(--muse-ease);
}
.muse-colourway:hover .muse-colourway__img { border-color: var(--muse-lime); }
.muse-colourway__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.muse-colourway__name { font-size: 0.82rem; font-weight: 700; color: var(--muse-ink); line-height: 1.2; }
.muse-colourway__sku { font-size: 0.7rem; color: var(--muse-ink-mute); letter-spacing: 0.02em; }

/* Tabs — Divi ships its own tab chrome, so these need to out-specify it */
.woocommerce div.product .woocommerce-tabs ul.tabs,
body.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important; margin: 0 0 1.8rem !important;
  border-bottom: 1px solid var(--muse-line);
  display: flex; flex-wrap: wrap; gap: 0.3rem; background: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; border: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li,
body.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  margin: 0 !important; padding: 0 !important; box-shadow: none !important;
  border-bottom: 3px solid transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a,
body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 700 !important; color: var(--muse-ink-mute) !important;
  padding: 0.75rem 0.95rem !important; display: block; text-shadow: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
body.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--muse-lime) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--muse-ink) !important; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }

/* Gallery thumbs — Divi's grid fights Woo's flex list */
.woocommerce div.product div.images .flex-control-thumbs li,
body.woocommerce div.product div.images ol.flex-control-thumbs li { width: auto !important; margin: 0 !important; }

/* Spec sections generated by the importer */
.woocommerce-Tabs-panel--description h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muse-ink);
  margin: 2.2rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--muse-line);
}
.woocommerce-Tabs-panel--description h3:first-child { margin-top: 0; }
/* Divi paints its own list marker; ours is the lime dot, so suppress both the
   native marker and Divi's pseudo-element or every bullet doubles up. */
.woocommerce-Tabs-panel--description ul,
body #page-container .woocommerce-Tabs-panel--description ul {
  list-style: none !important; padding: 0 !important; margin: 0 !important;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 0.1rem 2rem;
}
.woocommerce-Tabs-panel--description li,
body #page-container .woocommerce-Tabs-panel--description li {
  position: relative; padding: 0.42rem 0 0.42rem 1.15rem !important;
  color: var(--muse-ink-soft); line-height: 1.5;
  list-style: none !important; background: none !important;
}
.woocommerce-Tabs-panel--description li::before {
  content: ""; position: absolute; left: 0; top: 0.92em;
  width: 6px; height: 6px; background: var(--muse-lime); border-radius: 50%;
}
/* Downloads read as a list of documents, not spec bullets */
.woocommerce-Tabs-panel--description ul:last-of-type li::before { border-radius: 1px; }

.woocommerce div.product p.stock.out-of-stock {
  display: inline-block; background: var(--muse-mist); color: var(--muse-ink-soft);
  border-left: 0; border: 1px solid var(--muse-line); border-radius: 2px;
  font-weight: 600; padding: 0.55em 0.9em;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
#main-footer { background: var(--muse-black); }
#footer-widgets .footer-widget h4, #footer-widgets h4.title { color: var(--muse-on-dark); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
#footer-widgets .footer-widget li a, #footer-widgets .footer-widget, #main-footer p { color: var(--muse-on-dark-mut); }
#footer-widgets .footer-widget li a:hover { color: var(--muse-lime); }
#footer-widgets .footer-widget li::before { border-color: var(--muse-lime); }
#footer-bottom { background: var(--muse-black); border-top: 1px solid var(--muse-line-dark); }
#footer-info, #footer-info a { color: var(--muse-on-dark-mut); }
#footer-info a:hover { color: var(--muse-lime); }

/* ==========================================================================
   9. Coming-soon / holding page
   ========================================================================== */
.woocommerce-coming-soon-page,
body.woocommerce-coming-soon { background: var(--muse-black) !important; color: var(--muse-on-dark); }
.woocommerce-coming-soon h1, .woocommerce-coming-soon h2 { color: var(--muse-on-dark) !important; }
.woocommerce-coming-soon p { color: var(--muse-on-dark-mut) !important; }

/* ==========================================================================
   9b. Home page
   MUSE alternates full-bleed photographic bands with quiet content strips.
   The photographs carry the brand; the type stays out of their way.
   ========================================================================== */
#muse-home { --pad: clamp(1.1rem, 0.6rem + 2vw, 2rem); }
#muse-home section { width: 100vw; margin-left: calc(50% - 50vw); }

/* Hero */
.muse-hero { position: relative; display: grid; place-items: end start; min-height: min(76vh, 660px); overflow: hidden; background: var(--muse-black); }
.muse-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: muse-settle 1400ms var(--muse-ease) both;
}
@keyframes muse-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
/* Scrim behind the text only. Plain percentage stops: min()/clamp() inside
   gradient colour stops did not resolve reliably here and rendered opaque,
   which flattened the photograph to black. */
.muse-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(10,10,12,.86) 0%,
    rgba(10,10,12,.58) 32%,
    rgba(10,10,12,.12) 52%,
    rgba(10,10,12,0) 64%);
}
.muse-hero__inner {
  position: relative; z-index: 1;
  width: var(--muse-shell); margin-inline: auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0;
  max-width: var(--muse-shell);
}
.muse-hero__kicker {
  color: var(--muse-lime); font-weight: 600; font-size: var(--muse-step-0);
  margin: 0 0 0.6rem; letter-spacing: 0.02em;
}
.muse-hero__title {
  color: var(--muse-on-dark); font-size: var(--muse-step-4); font-weight: 800;
  margin: 0 0 0.7rem; line-height: 1.05; letter-spacing: -0.03em;
}
.muse-hero__lead {
  color: var(--muse-on-dark-mut); max-width: 46ch; font-size: var(--muse-step-1);
  font-weight: 300; line-height: 1.5; margin: 0 0 1.8rem;
}

/* Honest status strip while the first order is in transit */
.muse-note { background: var(--muse-mist); border-bottom: 1px solid var(--muse-line); }
.muse-note p {
  width: var(--muse-shell); margin-inline: auto; padding: 0.95rem 0;
  font-size: var(--muse-step-0); color: var(--muse-ink-soft);
}
.muse-note strong { color: var(--muse-ink); }
.muse-note a { color: var(--muse-ink); text-decoration: underline; text-decoration-color: var(--muse-lime-deep); }
.muse-note a:hover { color: var(--muse-lime-deep); }

/* Collection grid */
.muse-collection { padding: var(--muse-band) 0; }
.muse-collection__head { width: var(--muse-shell); margin: 0 auto clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.muse-collection__head h2 { margin: 0 0 0.3rem; }
.muse-collection__head p { color: var(--muse-ink-mute); margin: 0; }
.muse-collection__grid {
  width: var(--muse-shell); margin-inline: auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--muse-gap);
}
/* Six ranges: three across reads as two complete rows rather than five-plus-one */
@media (min-width: 1000px) { .muse-collection__grid { grid-template-columns: repeat(3, 1fr); } }
.muse-cat a {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--muse-line); border-radius: 3px; overflow: hidden;
  background: var(--muse-paper); text-decoration: none;
  transition: border-color var(--muse-med) var(--muse-ease),
              box-shadow var(--muse-med) var(--muse-ease),
              transform var(--muse-med) var(--muse-ease);
}
.muse-cat a:hover { border-color: var(--muse-lime); box-shadow: 0 14px 34px -18px rgba(20,20,22,.42); transform: translateY(-3px); }
.muse-cat__img { display: block; background: var(--muse-mist); }
.muse-cat__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 1.2rem; transition: transform var(--muse-med) var(--muse-ease); }
.muse-cat a:hover .muse-cat__img img { transform: scale(1.05); }
.muse-cat__bar {
  margin-top: auto; background: var(--muse-charcoal); color: var(--muse-on-dark);
  padding: 0.85rem 1rem 0.95rem; display: flex; flex-direction: column; gap: 0.15rem;
  transition: background var(--muse-med) var(--muse-ease), color var(--muse-med) var(--muse-ease);
}
.muse-cat a:hover .muse-cat__bar { background: var(--muse-lime); color: var(--muse-black); }
.muse-cat__name { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.muse-cat__count { font-size: 0.78rem; color: var(--muse-on-dark-mut); transition: color var(--muse-med) var(--muse-ease); }
.muse-cat a:hover .muse-cat__count { color: rgba(20,20,22,.75); }

/* Photographic feature bands */
.muse-feature { position: relative; display: grid; align-items: center; min-height: min(58vh, 500px); overflow: hidden; background: var(--muse-black); }
.muse-feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.muse-feature::after { content: ""; position: absolute; inset: 0; }
.muse-feature--vintage::after {
  background: linear-gradient(90deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.58) 32%,
              rgba(10,10,12,.12) 52%, rgba(10,10,12,0) 64%);
}
.muse-feature--party::after {
  background: linear-gradient(270deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.58) 32%,
              rgba(10,10,12,.12) 52%, rgba(10,10,12,0) 64%);
}
.muse-feature__inner { position: relative; z-index: 1; width: var(--muse-shell); margin-inline: auto; padding: clamp(2.2rem, 1.4rem + 3vw, 4rem) 0; }
.muse-feature--party .muse-feature__inner { margin-left: auto; text-align: right; }
.muse-feature h2 { color: var(--muse-on-dark); margin: 0 0 0.55rem; max-width: 18ch; }
.muse-feature--party h2 { margin-left: auto; }
.muse-feature p { color: var(--muse-on-dark-mut); max-width: 48ch; font-weight: 300; font-size: var(--muse-step-1); line-height: 1.5; margin: 0 0 1.6rem; }
.muse-feature--party p { margin-left: auto; }

/* Distributor */
.muse-distributor { background: var(--muse-mist); padding: var(--muse-band) 0; }
.muse-distributor__inner { width: var(--muse-shell); margin-inline: auto; }
.muse-distributor__inner h2 { margin: 0 0 0.5rem; }
.muse-distributor__lead { max-width: 62ch; color: var(--muse-ink-soft); font-size: var(--muse-step-1); font-weight: 300; line-height: 1.5; margin: 0 0 clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.muse-distributor__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: clamp(1.1rem, 0.8rem + 1vw, 2rem); margin: 0 0 2.2rem; }
.muse-distributor__points div { padding-top: 0.9rem; border-top: 2px solid var(--muse-lime); }
.muse-distributor__points dt { font-weight: 700; color: var(--muse-ink); margin-bottom: 0.25rem; }
.muse-distributor__points dd { margin: 0; color: var(--muse-ink-soft); font-size: var(--muse-step--1); line-height: 1.55; }

@media (max-width: 780px) {
  .muse-feature--party .muse-feature__inner { text-align: left; }
  .muse-feature--party h2, .muse-feature--party p { margin-left: 0; }
  .muse-feature--party::after { background: linear-gradient(95deg, rgba(10,10,12,.90) 0%, rgba(10,10,12,.62) 46%, rgba(10,10,12,.15) 84%); }
  .muse-hero { min-height: min(70vh, 520px); }
}

/* ==========================================================================
   9c. Content pages
   ========================================================================== */
/* Divi already sets the page title and its spacing; the band variable on top
   of that left a dead gap between heading and first paragraph. */
.muse-page { width: 100%; margin: 0 auto; padding: 0 0 var(--muse-band); }
.muse-page > * { max-width: 70ch; }
.single-post .entry-title, .page .entry-title {
  font-size: var(--muse-step-3); margin-bottom: 0.6rem;
}
.page #main-content .container { padding-top: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); }
.page #left-area { padding-bottom: 0 !important; }
.muse-page h2 { font-size: var(--muse-step-2); margin: 2.4rem 0 0.7rem; }
.muse-page h3 { font-size: var(--muse-step-1); margin: 1.8rem 0 0.5rem; }
.muse-page p, .muse-page li { color: var(--muse-ink-soft); }
.muse-page ul { padding-left: 1.1rem; }
.muse-page li { margin-bottom: 0.45rem; }
.muse-page dl.muse-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; max-width: none; margin: 1.6rem 0; }
.muse-page dl.muse-facts div { padding-top: 0.85rem; border-top: 2px solid var(--muse-lime); }
.muse-page dl.muse-facts dt { font-weight: 700; color: var(--muse-ink); margin-bottom: 0.2rem; }
.muse-page dl.muse-facts dd { margin: 0; color: var(--muse-ink-soft); font-size: var(--muse-step--1); line-height: 1.55; }

/* ==========================================================================
   10. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .woocommerce ul.products li.product:hover { transform: none; }
  .woocommerce ul.products li.product:hover a img { transform: none; }
  #top-menu li a::after { transition: none; }
  .muse-hero__bg { animation: none; }
  .muse-cat a:hover { transform: none; }
  .muse-cat a:hover .muse-cat__img img { transform: none; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .woocommerce ul.products { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
  .woocommerce div.product .woocommerce-tabs ul.tabs { gap: 0.1rem; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.86rem !important; padding: 0.7rem 0.75rem 0.8rem !important; }
  .woocommerce-Tabs-panel--description ul { grid-template-columns: 1fr; }
}

/* Wide tables/specs never push the page sideways */
.woocommerce table.shop_attributes,
.woocommerce-Tabs-panel table { display: block; overflow-x: auto; max-width: 100%; }

/* Unresolved content that must not ship unnoticed */
.muse-todo {
  background: #FFF4D6; border: 1px solid #E8C766; border-radius: 3px;
  padding: 0.9rem 1.1rem; color: #4A3B10;
}
.muse-todo strong { color: #6B520C; }
