/*
Theme Name: Facet Merch
Theme URI: https://shop.facet.llc
Description: Facet-branded merch storefront. Monochrome Storefront child theme: ink on paper, Space Grotesk headings, JetBrains Mono body. Built for humans, buyable by agents.
Author: Facet, LLC
Template: storefront
Version: 1.0.0
*/

:root{
  --ink:#08080A; --paper:#FFFFFF;
  --shale-1:#E6E6E2; --shale-2:#C9C9C2; --shale-3:#9C9C92; --shale-4:#6E6E64;
  --surface:#F5F5F3; --border:#E3E3DC; --border-hi:#CFCFC6;
  --text-1:var(--ink); --text-2:#1C1C19; --text-3:#4A4A42; --text-4:#6E6E64;
  --font-ui:'Space Grotesk','Inter',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,Menlo,monospace;
  --radius:2px; --maxw:1220px;
}

/* ---- base ---- */
body{ background:var(--paper); color:var(--text-2); font-family:var(--font-mono);
  font-size:15px; line-height:1.62; letter-spacing:-0.01em; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,h5{ font-family:var(--font-ui); color:var(--text-1); font-weight:600; letter-spacing:-0.025em; line-height:1.08; }
a{ color:var(--ink); text-decoration:none; transition:color .15s ease, opacity .15s ease; }
a:hover{ color:var(--text-3); }
.fx-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
img{ max-width:100%; height:auto; }

/* ---- header (rendered into #masthead) ---- */
.site-header{ background:var(--paper); border-bottom:1px solid var(--border); padding:0; margin:0; }
.fx-topbar{ background:var(--ink); color:var(--paper); font-family:var(--font-mono);
  font-size:11.5px; letter-spacing:0.06em; text-transform:uppercase; text-align:center; padding:7px 16px; }
.fx-header{ display:flex; align-items:center; gap:28px; padding:20px 24px; max-width:var(--maxw); margin:0 auto; }
.fx-logo{ display:flex; align-items:center; gap:11px; flex:0 0 auto; }
.fx-logo .fx-wordmark{ display:block; height:34px; width:auto; }
.fx-nav{ display:flex; gap:26px; margin-left:8px; flex:1 1 auto; }
.fx-nav a{ font-family:var(--font-mono); font-size:13px; letter-spacing:0.02em; color:var(--text-2); text-transform:uppercase; }
.fx-nav a:hover{ color:var(--ink); }
.fx-actions{ display:flex; align-items:center; gap:20px; flex:0 0 auto; }
.fx-actions a{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:13px; color:var(--text-2); }
.fx-actions svg{ width:19px; height:19px; }
.fx-cartcount{ font-weight:700; }

/* ---- buttons ---- */
.button, button, .fx-btn, input[type=submit],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt{
  background:var(--ink); color:var(--paper); font-family:var(--font-mono); font-weight:500;
  font-size:13px; letter-spacing:0.02em; text-transform:uppercase; border:1px solid var(--ink);
  border-radius:var(--radius); padding:12px 22px; line-height:1; transition:opacity .15s ease; }
.button:hover, .fx-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover{
  background:var(--ink); color:var(--paper); opacity:.82; }
.fx-btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--ink); }
.fx-btn-ghost:hover{ background:var(--ink); color:var(--paper); }

/* ---- hero ---- */
.fx-hero{ border-bottom:1px solid var(--border); }
.fx-hero-inner{ max-width:var(--maxw); margin:0 auto; padding:96px 24px 88px; text-align:center; }
.fx-hero .fx-hero-cube{ width:76px; height:auto; margin:0 auto 28px; display:block; }
.fx-hero h1{ font-size:clamp(40px,7vw,76px); margin:0 0 18px; }
.fx-hero p{ font-family:var(--font-mono); color:var(--text-3); font-size:16px; max-width:560px; margin:0 auto 30px; }
.fx-hero .fx-cta{ display:inline-flex; gap:12px; }

/* ---- section headings ---- */
.fx-section{ max-width:var(--maxw); margin:0 auto; padding:64px 24px; }
.fx-section-head{ display:flex; align-items:baseline; justify-content:space-between; border-bottom:1px solid var(--ink); padding-bottom:12px; margin-bottom:34px; }
.fx-section-head h2{ font-size:26px; }
.fx-section-head a{ font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-3); }

/* ---- category tiles ---- */
.fx-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--border); border:1px solid var(--border); }
.fx-tile{ background:var(--surface); padding:56px 32px; display:flex; flex-direction:column; gap:8px; min-height:220px; justify-content:flex-end; transition:background .15s ease; }
.fx-tile:hover{ background:var(--paper); }
.fx-tile h3{ font-size:30px; }
.fx-tile span{ font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-3); }

/* ---- product grid + cards ---- */
.woocommerce ul.products, .woocommerce-page ul.products{ display:grid !important; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); margin:0 0 40px; padding:0; list-style:none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{ background:var(--paper); margin:0 !important; padding:22px !important; width:100% !important; max-width:100% !important; min-width:0 !important; float:none !important; clear:none !important; text-align:left; box-sizing:border-box; display:flex; flex-direction:column; }
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after{ content:none !important; display:none !important; }
.woocommerce ul.products li.product::before, .woocommerce ul.products li.product::after{ content:none !important; display:none !important; }
.woocommerce ul.products li.product:hover{ background:var(--surface); }
.woocommerce ul.products li.product a img, .woocommerce ul.products li.product img{ width:100% !important; aspect-ratio:1/1; object-fit:cover; margin:0 0 16px !important; background:var(--surface); }
.woocommerce ul.products li.product .button{ margin-top:auto; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-family:var(--font-ui); font-size:15px; font-weight:600; color:var(--ink); padding:0; margin:0 0 4px; }
.woocommerce ul.products li.product .price{ font-family:var(--font-mono); color:var(--text-2); font-size:14px; font-weight:500; }
.woocommerce ul.products li.product .price del{ color:var(--text-4); opacity:.7; }
.woocommerce ul.products li.product .button{ margin-top:14px; display:inline-block; }
.woocommerce ul.products li.product .onsale{ background:var(--ink); color:var(--paper); border-radius:var(--radius); font-family:var(--font-mono); font-size:10px; letter-spacing:0.06em; text-transform:uppercase; min-height:0; min-width:0; padding:4px 8px; line-height:1; top:14px; right:14px; margin:0; }

/* ---- full-width woo pages (no sidebar) ---- */
.fx-fullwidth #primary{ width:100%; float:none; margin:0; }
.fx-fullwidth #secondary{ display:none; }
.woocommerce .page-title, .woocommerce-products-header__title{ font-family:var(--font-ui); font-weight:600; letter-spacing:-0.025em; }
.storefront-breadcrumb{ font-family:var(--font-mono); font-size:12px; color:var(--text-4); }

/* ---- footer (rendered into #colophon) ---- */
.site-footer{ background:var(--ink); color:var(--shale-2); border:0; padding:0; margin:0; }
.fx-foot{ max-width:var(--maxw); margin:0 auto; padding:64px 24px 40px; display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.fx-foot .fx-wordmark-foot{ height:30px; width:auto; }
.fx-foot .brand p{ color:var(--shale-3); font-size:13px; max-width:320px; margin:14px 0 0; }
.fx-foot h4{ color:var(--paper); font-family:var(--font-mono); font-weight:700; font-size:12px; letter-spacing:0.06em; text-transform:uppercase; margin:0 0 14px; }
.fx-foot ul{ list-style:none; margin:0; padding:0; }
.fx-foot li{ margin:0 0 9px; }
.fx-foot a{ color:var(--shale-2); font-size:13px; }
.fx-foot a:hover{ color:var(--paper); }
.fx-footbottom{ border-top:1px solid var(--shale-6, #2E2E28); color:var(--shale-4); font-size:11.5px; letter-spacing:0.04em; text-align:center; padding:20px 24px; max-width:var(--maxw); margin:0 auto; }

/* ---- responsive ---- */
@media (max-width:1000px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){
  .fx-header{ flex-wrap:wrap; gap:16px; }
  .fx-nav{ order:3; width:100%; margin:0; justify-content:center; }
  .woocommerce ul.products{ grid-template-columns:repeat(2,1fr); }
  .fx-tiles{ grid-template-columns:1fr; }
  .fx-foot{ grid-template-columns:1fr; gap:28px; }
}


/* ============================================================
   FACET.LLC THEME ALIGNMENT  (appended override; delete this
   block to revert to the monochrome theme)
   Matches the marketing homepage: Space Grotesk 500 UI + body,
   green accent, homepage-style white nav bar, 1180 container,
   10px rounded buttons. Prices/labels stay JetBrains Mono, same
   as the homepage's "machine output in mono" rule.
   ============================================================ */
:root{
  --accent:#489C72; --accent-dim:#3F8B64; --accent-text:#1D7F5C;
  --radius-btn:10px; --maxw:1180px;
}
/* UI + body in Space Grotesk medium, like facet.llc */
body{ font-family:var(--font-ui); font-weight:500; }
.fx-hero p, .fx-foot .brand p{ font-family:var(--font-ui); }

/* header: the homepage's 68px white bar, 44px lockup */
.fx-header{ height:68px; padding:0 24px; gap:26px; }
.fx-wordmark{ height:44px; width:auto; }
.fx-nav a{ font-family:var(--font-ui); font-weight:500; font-size:14.5px; letter-spacing:0; text-transform:none; color:#3A3A34; }
.fx-nav a:hover{ color:#16160F; }
.fx-actions a{ font-family:var(--font-ui); font-weight:500; font-size:14.5px; color:#16160F; }
.fx-actions a:hover{ color:var(--accent); }

/* buttons: rounded rectangles + green primary (homepage button system) */
.button, button, .fx-btn, input[type=submit],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt{
  background:var(--accent); border-color:var(--accent); color:#08080A;
  border-radius:var(--radius-btn); font-weight:600; }
.button:hover, .fx-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover{
  background:var(--accent-dim); border-color:var(--accent-dim); color:#08080A; opacity:1; }
.fx-btn-ghost{ background:transparent; color:var(--ink); border:1px solid var(--border-hi); border-radius:var(--radius-btn); }
.fx-btn-ghost:hover{ background:var(--surface); color:var(--ink); }

/* on-sale flag picks up the green accent + rounded corners */
.woocommerce ul.products li.product .onsale{ background:var(--accent); border-radius:var(--radius-btn); }

/* the shop always renders light; keep the footer ink logo even on a dark-mode OS (site-chrome.css would otherwise swap it) */
footer.site .brand-lockup--ink{ display:block !important; }
footer.site .brand-lockup--paper{ display:none !important; }

/* tokens the shared chrome (site-chrome.css) reads; keep them on the light marketing palette */
:root{ --bg:#FFFFFF; --container:1180px; --gutter:24px; }

/* footer section background matches the footer card (was ink/black framing) */
.site-footer{ background:var(--surface) !important; }

/* product grid + cards in the photo warm white so images match the backdrop */
.woocommerce ul.products{ background:#CFD0CD !important; }
.woocommerce ul.products li.product{ background:#CFD0CD !important; }
.woocommerce ul.products li.product a img, .woocommerce ul.products li.product img{ background:#CFD0CD !important; }

/* agents-only product page notice */
.fx-agent-note{ margin:22px 0 0; padding:14px 16px; border:1px solid var(--border-hi); border-radius:10px; background:var(--surface); font-size:14px; line-height:1.55; color:var(--ink); max-width:540px; }
.fx-agent-note strong{ color:#1D7F5C; }

/* shopping-skill link inside the agent note */
.fx-agent-note a{ color:#1D7F5C; font-family:var(--font-mono,'JetBrains Mono',monospace); font-weight:500; }

/* image hero, headline over the left */
.fx-hero-img{ position:relative; background-color:#F3F0E9; background-repeat:no-repeat; background-position:center right; background-size:cover; }
.fx-hero-img::before{ content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(243,240,233,0.97) 0%, rgba(243,240,233,0.82) 32%, rgba(243,240,233,0) 62%); }
.fx-hero-img-inner{ position:relative; z-index:1; max-width:var(--maxw); margin:0 auto; padding:96px 24px; min-height:460px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:18px; }
.fx-hero-img-inner h1{ margin:0; font-size:clamp(40px,6vw,78px); line-height:1.02; letter-spacing:-0.02em; max-width:12ch; }
.fx-hero-img-inner p{ margin:0; font-size:17px; line-height:1.5; max-width:36ch; color:#3A3A34; }
.fx-hero-img-inner .fx-cta{ margin-top:8px; }
@media (max-width:860px){
  .fx-hero-img::before{ background:linear-gradient(180deg, rgba(243,240,233,0.96) 0%, rgba(243,240,233,0.75) 42%, rgba(243,240,233,0) 78%); }
  .fx-hero-img-inner{ align-items:center; text-align:center; min-height:74vh; justify-content:flex-start; padding-top:52px; }
  .fx-hero-img-inner h1{ max-width:none; }
}

/* hero updates: sage surface, full bleed edge to edge */
.fx-hero-img{ width:100vw; margin-left:calc(50% - 50vw); background-color:#BCC6B3 !important; }
.fx-hero-img::before{ background:linear-gradient(90deg, rgba(188,199,181,0.97) 0%, rgba(188,199,181,0.82) 32%, rgba(188,199,181,0) 62%) !important; }
@media (max-width:860px){
  .fx-hero-img::before{ background:linear-gradient(180deg, rgba(188,199,181,0.96) 0%, rgba(188,199,181,0.75) 42%, rgba(188,199,181,0) 78%) !important; }
}

/* rounded product container with a soft lift, parallax on scroll */
.woocommerce ul.products{ border-radius:26px; overflow:hidden; box-shadow:0 18px 50px rgba(8,8,10,0.06); will-change:transform; }

/* hero final: sage band full width, image + copy held in the container */
.fx-hero-img{ width:100vw; margin-left:calc(50% - 50vw); background:#AAB5A3 !important; }
.fx-hero-img::before{ display:none !important; }
.fx-hero-img-inner{ max-width:var(--maxw) !important; margin:0 auto !important; position:relative; background-color:#AAB5A3; background-repeat:no-repeat; background-position:center; background-size:cover; min-height:480px; display:flex !important; flex-direction:column; justify-content:center; align-items:flex-start; padding:0 40px !important; overflow:hidden; }
.fx-hero-img-inner::before{ content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(170,181,163,0.96) 0%, rgba(170,181,163,0.68) 30%, rgba(170,181,163,0) 58%); }
.fx-hero-copy{ position:relative; z-index:1; display:flex; flex-direction:column; gap:18px; align-items:flex-start; max-width:520px; }
.fx-hero-copy h1{ margin:0; font-size:clamp(38px,5.2vw,72px); line-height:1.02; letter-spacing:-0.02em; color:#14160F; }
.fx-hero-copy p{ margin:0; font-size:17px; line-height:1.5; color:#20241C; max-width:34ch; }
/* desktop keeps the full-bleed background photo; the inline <img> is mobile only */
.fx-hero-photo{ display:none; }
@media (max-width:860px){
  /* mobile: stack the whole product photo on top, copy (title + button) below,
     everything centered. drop the cropped background so nothing is cut off. */
  .fx-hero-img-inner{ min-height:0; background-image:none !important; background-color:#AAB5A3; align-items:stretch; text-align:center; justify-content:flex-start; padding:0 !important; gap:0; overflow:hidden; }
  .fx-hero-img-inner::before{ display:none; }
  .fx-hero-photo{ display:block; width:100%; aspect-ratio:1/1; object-fit:cover; object-position:100% 50%; margin:0; }
  .fx-hero-copy{ align-items:center; max-width:none; padding:34px 24px 44px; gap:16px; }
}

/* per-product parallax removed: product images render full-frame (no scale/crop) so the drop shadow is not clipped */

/* ===== Facet agent reviews (design-system tokens) ===== */
.fx-reviews{margin-top:8px;font-family:var(--font-ui)}
.fx-reviews-heading{font-family:var(--font-ui);color:var(--text-1);font-weight:600;letter-spacing:-0.02em;font-size:1.45rem;margin:0 0 18px}

/* stars: brand green fill, shale for empty. No gold. */
.fx-stars{display:inline-flex;gap:2px;line-height:1;vertical-align:middle}
.fx-star{color:var(--shale-2);font-size:1.02em}
.fx-star.on{color:var(--accent)}
.fx-star.half{background:linear-gradient(90deg,var(--accent) 50%,var(--shale-2) 50%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* summary: surface card, hairline border, rounded (card radius) */
.fx-reviews-summary{display:flex;flex-wrap:wrap;gap:36px;align-items:center;padding:22px 24px;border:1px solid var(--border);border-radius:var(--radius-btn,6px);background:var(--surface);margin-bottom:26px}
.fx-reviews-avg{min-width:150px}
.fx-reviews-avg-num{font-family:var(--font-ui);font-weight:600;letter-spacing:-0.03em;font-size:2.5rem;line-height:1;color:var(--text-1)}
.fx-reviews-avg-num span{font-family:var(--font-mono);font-size:.8rem;font-weight:400;letter-spacing:0;color:var(--text-3)}
.fx-reviews-avg .fx-stars{font-size:1.25rem;margin:8px 0}
.fx-reviews-count{font-family:var(--font-mono);font-size:.72rem;text-transform:uppercase;letter-spacing:0.06em;color:var(--text-3)}
.fx-reviews-hist{flex:1;min-width:220px;display:flex;flex-direction:column;gap:7px}
.fx-hist-row{display:flex;align-items:center;gap:12px;font-family:var(--font-mono);font-size:.72rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--text-3)}
.fx-hist-label{width:54px;white-space:nowrap}
.fx-hist-bar{flex:1;height:8px;background:var(--shale-1);border-radius:var(--radius);overflow:hidden}
.fx-hist-bar>span{display:block;height:100%;background:var(--accent);border-radius:var(--radius)}
.fx-hist-pct{width:40px;text-align:right}

/* review rows: hairline separated, mono meta, grotesk body */
.fx-review-list{list-style:none;margin:0;padding:0}
.fx-review{padding:24px 0;border-top:1px solid var(--border)}
.fx-review-head{display:flex;align-items:center;gap:11px;margin-bottom:9px}
.fx-review-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--radius);background:var(--ink);color:var(--paper);font-family:var(--font-ui);font-weight:600;font-size:.9rem;flex:none}
.fx-review-author{font-family:var(--font-ui);font-weight:600;color:var(--text-1)}
.fx-review-agent-tag{font-family:var(--font-mono);font-size:.62rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--accent-text);border:1px solid var(--border-hi);padding:2px 7px;border-radius:var(--radius)}
.fx-review-rating{display:flex;align-items:center;gap:11px;margin-bottom:7px;flex-wrap:wrap}
.fx-review-title{font-family:var(--font-ui);font-weight:600;color:var(--text-1)}
.fx-review-meta{display:flex;align-items:center;gap:14px;font-family:var(--font-mono);font-size:.72rem;text-transform:uppercase;letter-spacing:0.04em;margin-bottom:10px;flex-wrap:wrap}
.fx-verified{color:var(--accent-text);font-weight:500}
.fx-verified::before{content:"\2713 ";font-weight:700}
.fx-review-date{color:var(--text-3)}
.fx-review-body{font-family:var(--font-ui);color:var(--text-2);line-height:1.62}
.fx-review-body p{margin:0 0 8px}
.fx-noreviews{font-family:var(--font-mono);font-size:.8rem;color:var(--text-3);padding:14px 0}

/* only-agents notice: matches the .fx-agent-note pattern */
.fx-agents-only{margin-top:28px;padding:16px 18px;border:1px solid var(--border-hi);background:var(--surface);border-radius:var(--radius-btn,6px);line-height:1.55;font-size:14px;color:var(--text-2);max-width:560px}
.fx-agents-only-lead{display:block;font-family:var(--font-ui);font-weight:600;color:var(--accent-text);margin-bottom:4px}
.fx-agents-only code{font-family:var(--font-mono);color:var(--accent-text);background:var(--shale-1);padding:1px 6px;border-radius:var(--radius)}
@media(max-width:600px){.fx-reviews-summary{gap:20px}}

/* ===== Facet shop entrance animations (initial state, gated on .fx-anim) ===== */
.fx-anim ul.products li.product,
.fx-anim .single-product div.product .woocommerce-product-gallery,
.fx-anim .single-product div.product .fx-color-gallery,
.fx-anim .single-product div.product .summary.entry-summary > *,
.fx-anim .single-product div.product .woocommerce-tabs { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .fx-anim ul.products li.product,
  .fx-anim .single-product div.product .woocommerce-product-gallery,
  .fx-anim .single-product div.product .fx-color-gallery,
  .fx-anim .single-product div.product .summary.entry-summary > *,
  .fx-anim .single-product div.product .woocommerce-tabs { opacity: 1 !important; }
}

/* ===== Facet agent reviews: wallet-bound identity line ===== */
.fx-review-wallet{font-family:var(--font-mono);font-size:.72rem;letter-spacing:0.02em;color:var(--text-3);border:1px solid var(--border);border-radius:var(--radius);padding:2px 7px}

/* ===== Facet: native WooCommerce star-rating -> brand accent (was WooCommerce purple #7f54b3) ===== */
.star-rating::before{color:var(--shale-2)}
.star-rating span::before{color:var(--accent)}

/* star-rating accent override (win over WooCommerce specificity) */
.woocommerce .star-rating span::before,.woocommerce-page .star-rating span::before,.star-rating span::before{color:var(--accent) !important}
.woocommerce .star-rating::before,.woocommerce-page .star-rating::before,.star-rating::before{color:var(--shale-2) !important}

/* ===== Facet: replace all remaining WooCommerce purple (#7f54b3) with brand accent ===== */
a:focus,input:focus,textarea:focus,select:focus,button:focus,.woocommerce a.button:focus,.woocommerce button:focus{outline-color:var(--accent) !important}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle,.woocommerce .widget_price_filter .ui-slider .ui-slider-range{background-color:var(--accent) !important}
.woocommerce p.stars.selected a.active::before,.woocommerce p.stars.selected a:not(.active)::before,.woocommerce p.stars:hover a::before{color:var(--accent) !important}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce #respond input#submit.alt{background-color:var(--accent) !important;color:var(--ink) !important}
.woocommerce span.onsale{background-color:var(--accent) !important;color:var(--ink) !important}

/* ===== Facet shop: left-align product-card star ratings ===== */
/* Storefront centers the loop star widget with margin:0 auto; the title and price
   are left-aligned, so left-align the whole star element to match. */
.woocommerce ul.products li.product .star-rating{margin-left:0 !important;margin-right:auto !important}

/* ===== Facet shop: video hero (logo montage -> fade to white -> headline) =====
   The embroidered-logo montage is black stitching on a white ground that resolves
   to the >_ Facet lockup, so the video, the fade to white, and the dark headline
   all share one paper background. Full-bleed band; the montage covers it, then the
   JS reveal (front-page.php) dissolves the video out and raises the centered copy. */
.fx-hero-vid{ position:relative; width:100vw; margin-left:calc(50% - 50vw); background:var(--paper); overflow:hidden; height:clamp(340px,75vh,686px); transition:height .9s ease; display:flex; align-items:center; justify-content:center; }
/* the montage sits within the main container width (not edge to edge) and scales to
   ~75vh; contain (never cover) keeps the whole 16:9 frame uncropped on the white band */
.fx-hero-video{ position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:var(--maxw); height:100%; object-fit:contain; object-position:center; background:var(--paper); z-index:0; pointer-events:none; opacity:1; transition:opacity .9s ease; }
.fx-hero-fallback{ display:none; }
.fx-hero-copy--vid{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; max-width:640px; margin:0 auto; padding:32px 24px; transition:opacity .9s ease, transform .9s ease; }
.fx-hero-copy--vid h1{ margin:0; font-size:clamp(38px,5.4vw,74px); line-height:1.02; letter-spacing:-0.02em; color:var(--ink); max-width:none; }
.fx-hero-copy--vid p{ margin:0; font-size:17px; line-height:1.5; color:var(--text-3); max-width:40ch; }
.fx-hero-copy--vid .fx-cta{ margin-top:6px; }
/* intro state, set on <html> before first paint so the copy never flashes */
.fx-herojs .fx-hero-copy--vid{ opacity:0; transform:translateY(14px); pointer-events:none; }
/* reveal: the montage dissolves out AND the band retracts to a compact CTA height,
   so the hero is not left tall and empty around the headline */
.fx-hero-vid.is-revealed{ height:clamp(360px,48vh,460px); }
.fx-hero-vid.is-revealed .fx-hero-video{ opacity:0; }
/* front page only: drop Storefront's header bottom margin so the video sits flush
   right under the black announcement bar (no white gap above the hero) */
body.home #masthead{ margin-bottom:0; }
@media (max-width:860px){
  /* mobile: the video is full width, so the intro band hugs its own 16:9 height */
  .fx-hero-vid{ height:clamp(240px,56.25vw,420px); }
  .fx-hero-vid.is-revealed{ height:clamp(360px,60vh,480px); }
}
@media (prefers-reduced-motion: reduce){
  .fx-hero-vid{ height:clamp(360px,48vh,460px) !important; transition:none !important; }
  .fx-hero-video{ display:none !important; }
  .fx-hero-fallback{ display:block; width:min(300px,58%); height:auto; margin-bottom:4px; }
  .fx-hero-copy--vid{ opacity:1 !important; transform:none !important; }
}
