/*
Theme Name: BLAQ Source
Theme URI: https://blaqsource.com
Author: Imulance
Author URI: https://imufolio.com
Description: Custom hand-coded theme for BLAQ, an art and craft supply store. Built lean, no page-builder bloat, WooCommerce-ready.
Version: 1.8.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: blaqsource
*/

/* ==========================================================================
   DESIGN TOKENS
   BLAQ sells paint, paper, ink, brushes — the palette pulls from a mixing
   table, not a template. Ink navy for structure, warm paper ground,
   a marigold pigment for action, cobalt and sage as secondary pigments.
   ========================================================================== */

:root {
  /* Color */
  --ink: #222222;
  --ink-soft: #222222;
  --paper: #FFFAF7;
  --paper-raised: #FFFFFF;
  --charcoal: #222222;
  /* Unified brand black — every solid black/near-black surface in the
     theme (utility bar, footer, marquee) uses this single value so
     they're always in sync. Previously these were different shades
     (#222222, #222222) that didn't quite match. */
  --brand-black: #222222;
  --marigold: #DD183B;
  --marigold-deep: #B01430;
  --cobalt: #222222;
  --sage: #3FA36B;
  --sage-deep: #3FA36B;
  --line: #E5CFC6;
  --paper-light: #FFFAF7; /* lighter tint of --paper, used for the shop header banner */

  /* Product card accents (sampled from blaqsource.com) */
  --price-green: #3FA36B;
  --btn-blush: #FFF3EF;
  --btn-blush-text: #222222;
  --line-dark: rgba(34,34,34,0.14);

  /* Brand red — header / nav strip / category accents (sampled from live site) */
  --brand-red: #DD183B;
  --brand-red-deep: #B01430;
  --bar-dark: var(--brand-black);
  --bar-dark-text: #827C7A;
  --topbar-bg: #222222;
  --topbar-text: #FFFFFF;
  --cart-gold: #FFDB00;
  /* Header menu bar + header icons — editable in Admin → BLAQ Theme →
     Theme colors → "Header menu bar & icons". Defaults match the look
     the theme shipped with. */
  --atc-bg: #FFFAF7;
  --atc-text: #222222;
  --atc-border: #E5CFC6;
  --atc-hover-bg: #DD183B;
  --atc-hover-text: #FFFFFF;
  --pdp-atc-bg: #222222;
  --pdp-atc-text: #FFFFFF;
  --pdp-atc-hover-bg: #DD183B;
  --header-bg: #FFFFFF;
  --header-line: #E5CFC6;
  --nav-bg: #DD183B;
  --nav-text: #FFFFFF;
  --nav-hover: #B01430;
  --header-icon: #222222;
  --header-icon-hover: #222222;
  --cart-fill: #FFDB00;
  --cart-count-text: #222222;
  --wishlist-badge: #DD183B;
  --hero-card-bg: #FFF3EF;
  --hero-card-title: #222222;
  --hero-card-text: #222222;
  --hero-card-link: #DD183B;
  --hero-card-link-hover: #B01430;
  --mm-bg: #FFFFFF;
  --mm-text: #222222;
  --mm-line: #EFEFEF;
  --mm-head-line: #E5CFC6;
  --mm-sub1-bg: #F1F1F1;
  --mm-sub2-bg: #FFFFFF;
  --mm-sub-line: #DEDEDE;
  /* Shared height for both horizontal bars — the primary nav strip and
     the scrolling marquee — so they visually match. */
  --bar-height: 42px;
  /* Shared height for every clickable CTA/submit button site-wide, so
     Login, Checkout, Apply Coupon, drawer actions, shop-loop and reel
     "Add to Cart" buttons etc. all match the single-product page's
     Add to Cart button. Deliberately NOT used on small square icon-only
     controls (close ×, mute, slider nav, drawer close) — those are a
     different UI pattern and sizing them to this height would just
     make the circles bigger, not "match" anything. */
  --btn-height: 42px;

  /* Type */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale (Elements of Typographic Style ratios) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4rem);

  /* Layout */
  --content-max: 1600px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: calc(var(--step-4) * var(--heading-scale, 1)); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: calc(var(--step-3) * var(--heading-scale, 1)); font-weight: 500; }
h3 { font-size: calc(var(--step-2) * var(--heading-scale, 1)); }
h4 { font-size: calc(var(--step-1) * var(--heading-scale, 1)); }

p { max-width: 62ch; margin: 0 0 1.2em; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* .section and .page-header (below) each set their OWN padding shorthand
   — vertical spacing only, with left/right explicitly 0, on the assumption
   they're an OUTER full-bleed wrapper around an INNER .container div that
   supplies the actual gutter. Several templates instead put both classes
   on the SAME element (e.g. <main class="site-main container section
   artwork-form__main">, plus search.php/index.php/category-gallery.php/
   404.php's "site-main container section", single.php/page.php's
   "page-header container", and every home-page section in functions.php's
   "section container ..."). Same specificity, later source order — .section
   / .page-header's shorthand silently wins and wipes the gutter back to 0
   on all of those. Some of those sections happen to re-pad their own inner
   content and hide the symptom; the artwork-submission form doesn't, which
   is how this got noticed (its fields ran edge-to-edge instead of lining
   up with the search bar/header above them). Restored here for every
   element carrying both classes, without touching .section/.page-header's
   own vertical padding or their behavior when used alone. */
.container.section,
.section.container,
.container.page-header,
.page-header.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus { left: var(--gutter); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BUTTONS / FORM CONTROLS
   ========================================================================== */

.btn, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.85em 1.5em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
/* Every full-size CTA/submit button site-wide — Add to Cart in every
   context, Checkout/View Cart/Apply Coupon/Login/Register, etc. — is
   pinned to this same height so they all match the single-product
   page's Add to Cart button exactly. Deliberately scoped to this list
   rather than the bare `button`/`.btn` rule above: that base rule also
   matches small icon-only controls (accordion triggers, the hamburger,
   drawer close ×, slider dots) that size themselves off their own
   padding, and forcing those to 42px would inflate their hit areas
   instead of "matching" anything. */
.woocommerce div.product .single_add_to_cart_button.button,
.woocommerce div.product .wishlist-btn--labeled,
ul.products li.product .button,
.reel-card__cart .button,
.reel-card__cart a.button,
.cart-drawer__actions .btn,
.cart-drawer__actions .btn-outline,
.wishlist-drawer__actions .btn,
.wishlist-drawer__add-to-cart,
.blaq-wishlist-items__add-to-cart,
.blaq-wishlist-items__view,
.blaq-order-card__actions .btn,
.blaq-order-card__actions .btn-outline {
  height: var(--btn-height);
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
}
/* Every button above (plus the Add to Cart row it's built around —
   the quantity stepper and quantity input scale off the same
   variable) drops a few px on small screens, since 42px reads a bit
   tall/thick on a narrow mobile layout. */
@media (max-width: 480px) {
  :root {
    --btn-height: 38px;
  }
}
@media (hover: hover) {
  .btn:hover, button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover, .woocommerce input.button:hover {
  background: var(--marigold-deep);
  border-color: var(--marigold-deep);
}
}
/* .blaq-thumb-slider__nav is excluded here: that button is centered
   with its own transform (translateX/translateY depending on
   horizontal vs vertical thumbnail layout — see the rules further
   down). This generic press effect used to overwrite that centering
   transform outright on click, since only one `transform` can apply
   at a time — causing the button to visibly jump/"slip" out of its
   centered position the instant it was pressed. */
.btn:active, button:active:not(.blaq-thumb-slider__nav) { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
}
@media (hover: hover) {
  .btn-outline:hover { background: var(--ink); color: var(--paper) !important; }
}

input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="password"], input[type="number"], textarea, select {
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.7em 0.9em;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: var(--charcoal);
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--cobalt); }

/* ==========================================================================
   SITE HEADER
   Three tiers: dark utility bar, white branding/search/tools row, and a
   red nav strip carrying the primary menu + categories mega-menu.
   ========================================================================== */

.site-header {
  position: relative;
}

/* --- Utility bar --- */
.header-topbar {
  /* --topbar-bg / --topbar-text are set in Admin → BLAQ Theme → Theme
     colors → Header. Until they are, they fall back to the old values. */
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: var(--step--1);
}
.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  /* Same fix as .header-main__inner below: "0.6em 0" was zeroing this
     row's horizontal padding, so it inherited none of .container's
     gutter and sat flush against the page edge instead of lining up
     with the logo/nav rows underneath it. */
  padding: 0.6em var(--gutter);
}
.header-topbar__phone { color: var(--topbar-text, #fff); text-decoration: none; font-weight: 600; }
.header-topbar__links ul { list-style: none; display: flex; gap: 1.75em; margin: 0; padding: 0; }
.header-topbar__links a { color: var(--topbar-text); text-decoration: none; }
@media (hover: hover) {
  .header-topbar__links a:hover { color: var(--topbar-text, #fff); opacity: .8; }
}

/* --- Top bar ticker (Admin → BLAQ Theme → Top bar ticker) -------------
   Replaces the phone/links row above with one auto-scrolling line when
   enabled. It's rendered as a direct child of .header-topbar (not inside
   .container) so it runs truly edge-to-edge instead of stopping at the
   page gutter — the dark .header-topbar background is the only thing
   behind it, no separate fade/overlay layer. The track is rendered as
   two equal-sized halves back-to-back, each repeating the text enough
   times to overflow even an ultra-wide screen (see header.php), and the
   animation moves it exactly -50%, so the moment the first half scrolls
   fully out of view the second half is sitting in the identical spot —
   the loop point is invisible. */
.header-topbar__marquee {
  width: 100%;
  overflow: hidden;
  /* Match the vertical padding .header-topbar__inner gets from its own
     rule above, so the bar is the same height whether the ticker or the
     phone/links row is showing. */
  padding: 0.6em 0;
  box-sizing: border-box;
}
.header-topbar__marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* Runs at the configured speed from the very first frame — no separate
     "slide in" entrance. (An earlier version chained a 1.4s intro before
     this, but that intro covered a fixed one-screen-width distance in a
     fixed 1.4s regardless of --blaq-marquee-duration, so it visibly ran
     at a different — usually much faster — speed than the loop that
     followed. Starting the loop immediately keeps the speed consistent
     the whole time, matching how the ticker looks once it's already
     running.) */
  animation: blaq-marquee-rtl var(--blaq-marquee-duration, 20s) linear infinite;
}
.header-topbar__marquee-track--ltr {
  animation: blaq-marquee-ltr var(--blaq-marquee-duration, 20s) linear infinite;
}
.header-topbar__marquee-item {
  flex: 0 0 auto;
  padding: 0 2.5em;
  white-space: nowrap;
  font-size: var(--blaq-marquee-size, 14px);
  letter-spacing: var(--blaq-marquee-letter-spacing, 0px);
  color: var(--topbar-text, #fff);
  font-weight: 600;
}
/* Pause on hover/focus so the text can actually be read on demand. */
.header-topbar__marquee:focus-within .header-topbar__marquee-track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .header-topbar__marquee:hover .header-topbar__marquee-track {
  animation-play-state: paused;
}
}
@media (prefers-reduced-motion: reduce) {
  .header-topbar__marquee-track { animation: none; }
  .header-topbar__marquee-item[aria-hidden="true"] { display: none; }
}
@keyframes blaq-marquee-rtl {
  /* Seamless loop: the track holds two back-to-back halves of the text,
     so shifting left by exactly 50% of the track's own width (= one
     half's width) lands the second half precisely where the first
     started — no gap, no visible reset. */
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes blaq-marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 780px) {
  .header-topbar__links ul { gap: 1em; }
  .header-topbar__phone { font-size: 0.85em; }
}
@media (max-width: 600px) {
  .header-topbar { display: none; }
}

/* --- Branding / search / tools row --- */
.header-main { background: var(--header-bg); border-bottom: 1px solid var(--header-line); }
/* On mobile the red .nav-strip below is hidden entirely (see its own
   max-width:860px rule further down) and replaced by the off-canvas
   drawer, so it's no longer around to be the page's sticky bar there.
   This row (hamburger/logo/cart + the search bar under it) is what's
   actually on screen at that point, so it takes over the sticky role
   instead — the dark .header-topbar utility bar above it is left to
   scroll away normally, same as it already does once .nav-strip
   becomes the sticky element on desktop. Desktop is untouched: this
   row isn't sticky there, only .nav-strip is. */
@media (max-width: 860px) {
  .header-main {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}
/* JS fixed-lock fallback for the rule above — same reasoning as
   .nav-strip--fixed further down (see assets/js/main.js): pure CSS
   sticky silently stops working if any ancestor has non-visible
   overflow, with no console error. Only takes over on mobile widths,
   where main.js checks innerWidth itself before ever adding this
   class, since .header-main should stay in normal flow on desktop. */
.header-main--fixed {
  position: fixed !important;
  left: 0;
  right: 0;
  top: 0;
}
.header-main__spacer { display: none; }
/* padding was "1.1em 0" — the shorthand zeroed out this row's
   horizontal padding entirely, overriding the gutter it should
   inherit from .container. That let the logo sit flush against the
   very edge of the page (left of "SHOP" below it) and the search/
   wishlist/account/cart cluster run flush to the other edge (right of
   "CATEGORIES"), since .nav-strip__inner below explicitly keeps its
   own left/right gutter padding. Using the gutter here too makes both
   rows line up on the same left/right edges. */
.header-main__inner {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  padding: 1.1em var(--gutter);
}
.site-branding { flex: 0 0 auto; }
.site-branding a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--brand-red);
}
.site-branding .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 0.1em;
}
/* Uploaded logo image (Admin → BLAQ Theme → Logo). Height-capped,
   object-fit: contain scales it within the box without stretching.
   width is intentionally NOT "auto": several SVG export tools (e.g.
   Illustrator, Figma) omit width/height on the root <svg> and only
   set a viewBox. When that happens the browser has no intrinsic
   aspect ratio to fall back on, and width: auto resolves to 0 —
   the image still "loads" successfully, it's just invisible. Giving
   the box its own explicit width guarantees it always renders,
   regardless of what the uploaded SVG/PNG does or doesn't declare.
   !important on both dimensions because WooCommerce's own stylesheet
   applies height: auto to images on any page carrying its
   woocommerce-page body class (Shop, category archives, cart,
   checkout...) but NOT the homepage — without this, the logo sizes
   itself differently depending on whether that class is present. */
.site-branding__logo-img {
  display: block;
  height: clamp(32px, 4vw, 48px) !important;
  width: clamp(120px, 20vw, 180px) !important;
  max-width: 220px;
  object-fit: contain;
  object-position: left center; /* flush with the HOME link below, no centred gap */
}

.header-main__search { flex: 0 1 480px; max-width: 620px; margin-left: auto; margin-right: 0; }

.header-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 1.4em; }
.header-tools a { text-decoration: none; color: var(--header-icon); display: inline-flex; position: relative; transition: color 0.15s ease; }
.header-tools a:focus-visible { color: var(--header-icon-hover); }
@media (hover: hover) {
  .header-tools a:hover { color: var(--header-icon-hover); }
}
.header-tools svg,
.header-tools img { width: 24px; height: 24px; display: block; }
.header-tools__cart-icon,
.header-tools img.header-tools__cart-icon,
.header-tools svg.header-tools__cart-icon { width: 31px; height: 31px; }
/* Cart bag is an inline SVG so its outline (currentColor → --header-icon)
   and fill (--cart-fill) can both be set from Theme colors. */
.header-tools__cart-icon .cart-icon__body { fill: var(--cart-fill); }
.header-tools__cart .cart-count {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  background: transparent;
  color: var(--cart-count-text);
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 780px) {
  .header-main__inner { flex-wrap: wrap; }
  .header-main__search { order: 3; flex: 1 1 100%; max-width: none; }
}

/* Hamburger now lives in .header-main (left of the logo) rather than
   the red .nav-strip below — see header.php and the max-width:860px
   rule further down that hides .nav-strip on mobile outright, since
   its primary nav + categories mega-menu are replaced by the
   full-screen .mobile-menu-drawer on that breakpoint.

   Layout is a 3-column grid (hamburger | logo | tools) instead of
   flex + text-align:center: with flex, .site-branding only centers
   its text within its own leftover space, so it drifts off true
   center whenever the hamburger and the icon cluster aren't the
   same width. A symmetric "1fr auto 1fr" grid keeps the logo
   dead-center on the row regardless of how wide either side is. */
@media (max-width: 860px) {
  .header-main__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* .header-main__inner's base rule sets "gap: var(--gutter)" for the
       desktop single-row layout (space between logo/search/tools). On
       this stacked-grid layout that same gap becomes the ROW gap too,
       i.e. the vertical space above the search bar — and var(--gutter)
       (clamp 1.25rem–3rem) is much taller than this compact header
       needs, pushing the search bar too far down. row-gap overrides
       just the vertical gap while column-gap keeps the horizontal
       spacing from the inherited "gap" shorthand. */
    row-gap: 0.5em;
  }
  .menu-toggle { grid-column: 1; justify-self: start; margin-right: 0; }
  .site-branding { grid-column: 2; justify-self: center; text-align: center; }
  .header-tools { grid-column: 3; justify-self: end; }
  .header-main__search {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
    /* Grid auto-placement processes items in DOM order when "order" is
       equal (the default), and .header-main__search sits before
       .header-tools in header.php's markup. Since this element spans
       all 3 columns, row 1 is already full once the hamburger and logo
       are placed there, so the auto-placement algorithm bumps it down
       to row 2 — but it then leaves the placement cursor on row 2, and
       (in "sparse" packing, the default) that cursor never moves
       backward. So .header-tools, coming next in the markup, can't
       backfill the empty 3rd cell of row 1 anymore and gets pushed to
       a row 3 of its own, well below the search bar, on viewports
       between 781px and 860px specifically (below 780px a separate
       flex-based rule already gave this element "order: 3" instead,
       which sidesteps the whole issue by making it process last).
       Setting the same "order: 3" here processes it last under grid
       too, so .header-tools (default order 0) claims row 1's 3rd
       column before this element forces a new row. */
    order: 3;
  }

  /* Wishlist and account are reachable via the mobile drawer instead,
     so both are hidden here. ".header-tools a" (a class + a tag)
     otherwise wins over a single-class ".header-tools__wishlist"
     selector on specificity, which is why the wishlist icon was
     still showing up despite an earlier attempt to hide it here. */
  .header-tools a.header-tools__wishlist,
  .header-tools a.header-tools__account { display: none; }
}

/* ==========================================================================
   Cart drawer — slides in from the right when the header cart icon is
   clicked (see assets/js/cart-drawer.js and header.php's
   .js-cart-drawer-trigger).
   ========================================================================== */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  /* No overlay behind the panel, and the drawer stays open when clicking
     outside it — so this wrapper must not catch clicks meant for the
     page underneath. Only the panel itself (below) re-enables them. */
  pointer-events: none;
}
.cart-drawer.is-open { visibility: visible; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  pointer-events: auto; /* re-enable clicks/scroll for the panel itself */
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8em 1.4em 1.1em;
  background: #222222;
  border-bottom: 0;
  flex: 0 0 auto;
}
.cart-drawer__header h2 { margin: 0; font-family: var(--font-body); /* Montserrat */ font-size: calc(1.3rem * var(--heading-scale, 1)); font-weight: 600; letter-spacing: 0.02em; color: #fff; }
.cart-drawer__close {
  background: none !important;
  border: none;
  border-radius: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff !important;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.cart-drawer__close svg { display: block; }
.cart-drawer__close:focus-visible { background: none !important; color: var(--brand-red) !important; }
@media (hover: hover) {
  .cart-drawer__close:hover { background: none !important; color: var(--brand-red) !important; }
}
.cart-drawer__close:active { transform: scale(0.88); }

.cart-drawer__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.4em 1.4em;
}
.cart-drawer__body > .cart-drawer__item { flex: 0 0 auto; }

.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: flex-start;
  gap: 0.9em;
  padding: 1em 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.15s ease;
}
.cart-drawer__item.is-updating { opacity: 0.45; pointer-events: none; }
.cart-drawer__item-image img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.cart-drawer__item-title { font-size: calc(0.85rem * var(--heading-scale, 1)); font-weight: 600; line-height: 1.3; margin-bottom: 0.3em; }
.cart-drawer__item-title a { color: var(--charcoal); text-decoration: none; }
.cart-drawer__item-unit-price { font-size: 0.78rem; color: #777; margin-bottom: 0.5em; }
.cart-drawer__item-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #E5CFC6;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  background: #fff;
}
.cart-drawer__qty-btn {
  background: none !important;
  border: none;
  padding: 0 !important;
  margin: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a7568 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .cart-drawer__qty-btn:hover:not(:disabled) { background: var(--paper) !important; color: var(--brand-red) !important; }
}
.cart-drawer__qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-drawer__qty-value { min-width: 2.4em; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.cart-drawer__item-total { font-size: 0.85rem; font-weight: 600; white-space: nowrap; padding-top: 0.15em; }
.cart-drawer__item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0.2em;
  align-self: flex-start;
}
@media (hover: hover) {
  .cart-drawer__item-remove:hover { color: var(--brand-red); }
}

.cart-drawer__empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
  color: #777;
}
.cart-drawer__empty p { margin: 0; text-align: center; }

.cart-drawer__footer { flex: 0 0 auto; padding: 1.1em 1.4em 1.4em; border-top: 1px solid #eee; }
.cart-drawer__subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}
.cart-drawer__shipping-note { font-size: 0.75rem; color: #888; margin: 0 0 1em; }
.cart-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.cart-drawer__actions .btn,
.cart-drawer__actions .btn-outline {
  justify-content: center;
  padding: 0.55em 1em;
  font-size: 0.85rem;
  background: #222222 !important;
  border: 1px solid #222222 !important;
  color: #fff !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .cart-drawer__actions .btn:hover,
.cart-drawer__actions .btn-outline:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}
}
.cart-drawer__actions .btn-outline {
  background: #fff !important;
  border: 1px solid #222222 !important;
  color: #222222 !important;
}
@media (hover: hover) {
  .cart-drawer__actions .btn-outline:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}
}

@media (max-width: 480px) {
  .cart-drawer__item { grid-template-columns: 56px 1fr auto; }
  .cart-drawer__item-total { grid-column: 2 / 3; }
}

/* ==========================================================================
   Wishlist heart button — the small round overlay on a product-card
   thumbnail (shop grid, wishlist page grid) and the labeled variant
   next to Add to Cart on the single-product page. See
   blaq_wishlist_button_html() in functions.php.
   ========================================================================== */

.wishlist-btn {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E5CFC6 !important;
  border-radius: 50%;
  background: #fff3ef !important;
  color: #222222 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  opacity: 0; /* hidden by default; revealed on card hover (0.8) and
    full opacity on hovering the button itself or when active */
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
@media (hover: hover) {
  ul.products li.product:hover .wishlist-btn { opacity: 0.8; }
}
.wishlist-btn.is-active { opacity: 1; }
@media (hover: hover) {
  .wishlist-btn:hover { opacity: 1; }
}
.wishlist-btn svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4px !important;
  transition: fill 0.15s ease;
}
@media (hover: hover) {
  .wishlist-btn:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
  transform: scale(1.08);
}
}
.wishlist-btn.is-active {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}
.wishlist-btn.is-updating { opacity: 0.55; pointer-events: none; }

/* Single-product page: static, compact square icon button sitting
   inside form.cart, next to the quantity stepper (see
   blaq_wishlist_single_button() in functions.php and the
   form.cart rules above) — not an overlay, and no visible text label
   (the .wishlist-btn__label span is still rendered for consistency
   with the shop-loop markup, but hidden here; aria-label on the
   button itself keeps it accessible). */
.wishlist-btn--labeled {
  position: static;
  width: auto;
  min-width: var(--btn-height);
  height: var(--btn-height);
  padding: 0;
  margin: 0;
  gap: 0;
  border: 1px solid var(--brand-red);
  border-radius: 10px;
  background: var(--brand-red);
  color: #fff;
  box-shadow: none;
  opacity: 1; /* always visible here — the hide/reveal-on-hover
    behavior above is only for the small overlay variant on shop-loop
    thumbnails, not this static single-product button. */
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  /* Grows to fill whatever's left of the row next to the (fixed-width)
     quantity stepper, instead of staying a small fixed square. */
  flex: 1 1 auto;
}
.wishlist-btn--labeled .wishlist-btn__label { display: none; }
@media (hover: hover) {
  .wishlist-btn--labeled:hover { background: #fff; color: var(--brand-red); border-color: var(--brand-red); transform: none; }
}
.wishlist-btn--labeled.is-active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

/* Header heart icon's count badge — a small floating circle at the
   icon's corner, unlike the cart's count (which sits inside the
   basket glyph itself, see .header-tools__cart .cart-count above). */
.header-tools__wishlist { position: relative; }
.header-tools__wishlist .wishlist-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--wishlist-badge);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.header-tools__wishlist .wishlist-count[data-count="0"] { display: none; }

/* ==========================================================================
   Wishlist drawer — same slide-in-from-the-right pattern as the cart
   drawer above (assets/js/wishlist-drawer.js, header.php's
   .js-wishlist-drawer-trigger).
   ========================================================================== */

.wishlist-drawer { position: fixed; inset: 0; z-index: 9999; visibility: hidden; }
.wishlist-drawer.is-open { visibility: visible; }
body.wishlist-drawer-open { overflow: hidden; }

.wishlist-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wishlist-drawer.is-open .wishlist-drawer__overlay { opacity: 1; }

.wishlist-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}
.wishlist-drawer.is-open .wishlist-drawer__panel { transform: translateX(0); }

.wishlist-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8em 1.4em 1.1em;
  border-bottom: 1px solid #E5CFC6;
  flex: 0 0 auto;
}
.wishlist-drawer__header h2 { margin: 0; font-size: calc(1.4rem * var(--heading-scale, 1)); }
.wishlist-drawer__close {
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222222 !important;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.wishlist-drawer__close svg { display: block; }
@media (hover: hover) {
  .wishlist-drawer__close:hover { background: #f4f4f4; color: var(--brand-red) !important; }
}

.wishlist-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.4em 1.4em;
}

.wishlist-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: flex-start;
  gap: 0.9em;
  padding: 1em 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.wishlist-drawer__item-image img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.wishlist-drawer__item-title { font-size: calc(0.85rem * var(--heading-scale, 1)); font-weight: 600; line-height: 1.3; margin-bottom: 0.5em; padding-right: 1.6em; }
.wishlist-drawer__item-title a { color: var(--charcoal); text-decoration: none; }
.wishlist-drawer__item-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em 0.6em; }
.wishlist-drawer__item-price { font-size: 0.8rem; color: var(--price-now, var(--price-green)); font-weight: 700; margin: 0; white-space: nowrap; flex: 0 0 100%; }
.wishlist-drawer__qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #E5CFC6;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-raised);
}
.wishlist-drawer__qty-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  width: 24px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a7568 !important;
}
@media (hover: hover) {
  .wishlist-drawer__qty-btn:hover { background: var(--paper) !important; color: var(--brand-red) !important; }
}
.wishlist-drawer__qty-value { min-width: 1.8em; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.wishlist-drawer__item-price del { color: var(--price-old, #9D9D9D); opacity: 1; text-decoration: line-through; font-weight: 400; }
.wishlist-drawer__item-price ins { color: var(--price-now, var(--price-green)); text-decoration: none; font-weight: 700; }
.wishlist-drawer__add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 0.8em;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid #222222 !important;
  background: #fff !important;
  color: #222222 !important;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wishlist-drawer__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--brand-red);
  background: #fff;
  color: var(--brand-red);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.wishlist-drawer__item-row .wishlist-drawer__add-to-cart,
.wishlist-drawer__item-row .wishlist-drawer__view {
  height: 30px;
  min-height: 0;
  padding: 0 0.8em !important;
  line-height: 1;
  box-sizing: border-box;
}
@media (hover: hover) {
  .wishlist-drawer__add-to-cart:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}
}
@media (hover: hover) {
  .wishlist-drawer__view:hover { background: var(--brand-red); color: #fff; }
}
.wishlist-drawer__add-to-cart:disabled { opacity: 0.6; cursor: default; }
.wishlist-drawer__item-remove {
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #222222 !important;
  padding: 0.2em;
  position: absolute;
  top: 0.9em;
  right: 0;
}
.wishlist-drawer__item-remove svg { display: block; }
@media (hover: hover) {
  .wishlist-drawer__item-remove:hover { background: none !important; border-color: transparent !important; color: var(--brand-red) !important; }
}

.wishlist-drawer__empty { text-align: center; padding: 3em 1em; color: #777; }
.wishlist-drawer__empty .btn { display: inline-block; margin-top: 1em; }

.wishlist-drawer__footer { flex: 0 0 auto; padding: 1.1em 1.4em 1.4em; border-top: 1px solid #eee; }
.wishlist-drawer__actions .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.7em 1em;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}
@media (hover: hover) {
  .wishlist-drawer__actions .btn:hover {
  background: var(--brand-red-deep) !important;
  border-color: var(--brand-red-deep) !important;
}
}

@media (max-width: 480px) {
  .wishlist-drawer__item { grid-template-columns: 56px 1fr; }
}

/* ==========================================================================
   Chat bubble — floating WhatsApp / call / Messenger widget (see
   blaq_render_chat_bubble() in functions.php and assets/js/chat-bubble.js).
   Own theme markup instead of the old third-party Chaty plugin,
   specifically so the icon's real size on mobile vs desktop is
   something this stylesheet controls directly, rather than a setting
   buried in a separate plugin's dashboard.
   ========================================================================== */

.chat-bubble {
  position: fixed;
  /* env(safe-area-inset-*) is 0px on devices/browsers without a notch
     or gesture bar (and requires viewport-fit=cover in header.php's
     viewport meta tag to be anything else at all), so calc() here is
     a no-op there and this reduces to the plain 1.2em/0.9em it always
     was. On an iPhone-style device it keeps the button clear of the
     home-indicator bar and the rounded corner instead of sitting
     half-behind them, in both portrait and landscape. */
  right: calc(1.2em + env(safe-area-inset-right, 0px));
  bottom: calc(1.2em + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7em;
  max-width: calc(100vw - 1.6em);
  /* Faded out (see .chat-bubble.is-near-footer below) rather than
     display:none, so it never pops back in abruptly mid-scroll. */
  transition: opacity 0.2s ease;
}
/* The footer's own "Become a Member" WhatsApp button sits at the same
   bottom-right corner this fixed bubble anchors to. On phones, once the
   footer scrolls into view the bubble was floating directly on top of
   that button (exact overlap depends on footer height vs. viewport
   height, which is why this only showed up "on some devices") and
   silently ate every tap meant for Subscribe. assets/js/chat-bubble.js
   adds this class via IntersectionObserver while the footer subscribe
   form is on screen; pointer-events:none guarantees taps pass through
   even during the fade rather than only after it finishes. Skipped
   entirely while the chat panel itself is open (see the JS) so it's
   never yanked away mid-conversation. */
.chat-bubble.is-near-footer {
  opacity: 0;
  pointer-events: none;
}

/* --- Trigger (the round button you actually see sitting on the page) --- */
.chat-bubble__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* anchors the pulsing ::after ring */
  /* Fixed circle — width matches height so it's a true round button
     rather than a pill that grows with its content. Both come from
     the same admin size fields as before (Desktop/Mobile size); the
     mobile override further down is what shrinks it on phones. */
  width: var(--chat-bubble-trigger-h, 60px);
  height: var(--chat-bubble-trigger-h, 60px);
  padding: 0;
  border: none;
  border-radius: 50%;
  /* Colors come from Admin -> BLAQ Theme -> Chat Bubble (Button color /
     Button hover color) — see the \3c style id="blaq-chat-bubble-size">
     block blaq_render_chat_bubble() prints in functions.php; these px/
     hex fallbacks are only used before those options have ever saved a
     value (black by default, red on hover). */
  background: var(--chat-bubble-bg, #222222);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.chat-bubble__trigger:focus-visible {
  background: var(--chat-bubble-bg-hover, var(--brand-red));
  /* A slight playful tilt on hover/focus, not just a straight lift —
     matches the reference design's launcher button. */
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
@media (hover: hover) {
  .chat-bubble__trigger:hover {
  background: var(--chat-bubble-bg-hover, var(--brand-red));
  /* A slight playful tilt on hover/focus, not just a straight lift —
     matches the reference design's launcher button. */
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
}
.chat-bubble__trigger:active { transform: scale(0.96); }
/* A quick pop when the panel actually opens — plays once via
   animation (not transition, so it can overshoot past 1 and settle
   back) rather than on every hover. Doesn't fire on close; reopening
   after a close still restarts it since the .is-open class is
   re-added fresh each time. */
@keyframes chat-bubble-trigger-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.chat-bubble.is-open .chat-bubble__trigger {
  animation: chat-bubble-trigger-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Pulsing ring around the trigger while the panel is open — pure CSS
   (::after, no extra markup) so it stays wired to the same admin
   size field as the button itself via inset. */
.chat-bubble__trigger::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.55s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}
.chat-bubble.is-open .chat-bubble__trigger::after {
  opacity: 1;
  transform: scale(1);
  animation: chat-bubble-ring-pulse 2.2s ease-in-out infinite;
}
@keyframes chat-bubble-ring-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}
/* The button is a fixed circle now, so the greeting text no longer has
   room to sit next to the icon — kept for screen readers only (it also
   still sets the button's aria-label). Standard visually-hidden
   technique: present in the accessibility tree, invisible on screen. */
.chat-bubble__greeting {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chat-bubble__icon {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Trigger icon size — comes from blaq_chat_bubble_size_css() in
     functions.php, which scales it from the admin Desktop/Mobile size
     fields. The min() clamps it to a share of the button's own
     diameter (--chat-bubble-trigger-h) so a "make it bigger" bump on
     the multiplier can never make the icon spill past the edge of the
     round button it sits inside. */
  width: min(var(--chat-bubble-icon-size, 46px), calc(var(--chat-bubble-trigger-h, 60px) * 0.58));
  height: min(var(--chat-bubble-icon-size, 46px), calc(var(--chat-bubble-trigger-h, 60px) * 0.58));
  /* A small spin when the panel opens — reads as the icon "unfolding"
     into the panel, matching the reference design's rotating launcher
     glyph, without needing a dedicated close/X icon of its own. */
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.chat-bubble.is-open .chat-bubble__icon { transform: rotate(90deg); }
.chat-bubble__icon svg,
.chat-bubble__icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
/* Force the trigger icon to always render pure white — for the
   built-in inline SVGs (stroke/fill="currentColor") that's just
   .chat-bubble__trigger's own color:#fff below, but a custom icon
   uploaded in Admin -> BLAQ Theme -> Chat Bubble ("Button icon" /
   "Button icon (hover)") renders as an <img> with whatever colors
   are baked into that file, which CSS `color` can't touch. The
   filter recolors the rendered pixels to solid white regardless, so
   any single-color icon on a transparent background comes out white
   here no matter what color it was uploaded as. (A multi-color icon
   would also get flattened to white — expected, since the button
   only has one icon color to give it.) */
.chat-bubble__icon img { filter: brightness(0) invert(1); }
/* --- Normal/open-state icon swap (Admin -> BLAQ Theme -> Chat
   Bubble -> "Button icon" / "Button icon (open state)"). No
   dedicated close/X icon — if a second icon is uploaded it takes
   over while the panel is open (see the .is-open rule below), and
   otherwise the button just keeps showing the normal icon
   throughout, panel open or closed. .has-hover-icon on the wrapper
   is only added by functions.php when that second icon was actually
   uploaded, so sites without one never run the swap at all. */
.chat-bubble__icon-normal,
.chat-bubble__icon-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.chat-bubble__icon-hover { opacity: 0; }
/* Swap to the "open state" icon once the panel is actually open (the
   .is-open class — set by assets/js/chat-bubble.js on click, not on
   hover), rather than on :hover. .has-hover-icon is only added by
   functions.php when that alternate icon was actually uploaded in
   Admin -> BLAQ Theme -> Chat Bubble ("Button icon (open state)"), so
   sites without one just keep showing the normal icon throughout. */
.chat-bubble.is-open .chat-bubble__icon.has-hover-icon .chat-bubble__icon-normal {
  opacity: 0;
}
.chat-bubble.is-open .chat-bubble__icon.has-hover-icon .chat-bubble__icon-hover {
  opacity: 1;
}
.chat-bubble.is-open .chat-bubble__greeting { display: none; }

/* --- Panel (WhatsApp / call / Messenger buttons that expand upward) --- */
.chat-bubble__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
  transform-origin: bottom right;
  /* This (base/closed) transition is what actually plays on CLOSE —
     CSS uses the destination state's transition value, and closed is
     the destination when .is-open is removed. Quick and plain, no
     bounce: a bounce reads fine arriving but looks like a wobble on
     the way out. */
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.chat-bubble.is-open .chat-bubble__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  /* This is what plays on OPEN, since open is the destination state
     here. cubic-bezier(0.34,1.56,0.64,1) is a "back out" ease — the
     panel overshoots slightly past its final size/position before
     settling, which gives the open a bit of springy life instead of
     a flat linear slide. */
  transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.32s;
}
/* Each channel button pops in on its own, in sequence, rather than
   the whole panel arriving as one flat block — closest to the round
   trigger button goes first and it cascades outward/upward, which
   reads as the buttons "opening out of" the trigger. nth-last-child
   is used (not nth-child) so this still looks right whether 1, 2 or
   all 3 channels are configured, since hidden channels are never
   rendered at all — see blaq_render_chat_bubble() in functions.php. */
.chat-bubble__channel:nth-last-child(1) { transition-delay: 0.03s; }
.chat-bubble__channel:nth-last-child(2) { transition-delay: 0.08s; }
.chat-bubble__channel:nth-last-child(3) { transition-delay: 0.13s; }
/* Reduced motion: keep the show/hide but drop the bounce, scale and
   stagger — a plain, fast crossfade instead. */
@media (prefers-reduced-motion: reduce) {
  .chat-bubble__panel,
  .chat-bubble.is-open .chat-bubble__panel {
    transform: none;
    transition: opacity 0.12s linear, visibility 0.12s;
  }
  .chat-bubble__channel,
  .chat-bubble__trigger,
  .chat-bubble__icon,
  .chat-bubble__trigger::after { transition-delay: 0s !important; animation: none !important; transform: none !important; }
}
.chat-bubble__channel {
  display: flex;
  align-items: center;
  gap: 0.7em;
  /* --chat-bubble-channel-h (the admin "channel height" field) is now
     a floor rather than a fixed height — the pill carries a label
     *and* a subtitle line, so real height grows with content instead
     of clipping the second line at a fixed px value. */
  min-height: var(--chat-bubble-channel-h, 48px);
  width: 11.5em;
  max-width: calc(100vw - 3.4em);
  padding: 0.35em 1em 0.35em 0.35em;
  border-radius: 1.1em;
  /* Frosted-glass pill instead of a flat solid card — border-radius
     large enough it never looks like a plain rectangle even at the
     admin's smallest size setting. */
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--charcoal, #222222);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  /* Base (closed) state for the per-item pop-in described above — the
     panel itself is already invisible/non-interactive when closed
     (see .chat-bubble__panel), so this only ever plays while opening.
     Slides in on a diagonal (not just up) to match the reference
     design's motion. */
  opacity: 0;
  transform: translate(14px, 12px) scale(0.8);
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.chat-bubble.is-open .chat-bubble__channel {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .chat-bubble__channel:hover {
  transform: translateX(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}
}
.chat-bubble__channel-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--chat-bubble-channel-icon-size, 34px);
  height: var(--chat-bubble-channel-icon-size, 34px);
  /* Rounded square rather than a circle — matches the reference
     design's icon treatment. */
  border-radius: 30%;
  overflow: hidden;
  color: #fff;
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .chat-bubble__channel:hover .chat-bubble__channel-icon { transform: rotate(-6deg) scale(1.05); }
}
.chat-bubble__channel-icon svg { width: var(--chat-bubble-channel-icon-svg, 18px); height: var(--chat-bubble-channel-icon-svg, 18px); }
/* Custom PNG/SVG uploaded in Admin -> BLAQ Theme -> Chat Bubble
   (blaq_chat_*_icon_id) instead of the built-in inline SVG above —
   fills the same shape rather than sitting at the smaller SVG size,
   since an uploaded icon is usually already its own full artwork. */
.chat-bubble__channel-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-bubble__channel--whatsapp .chat-bubble__channel-icon { background: #25D366; }
.chat-bubble__channel--call .chat-bubble__channel-icon { background: #222222; }
.chat-bubble__channel--messenger .chat-bubble__channel-icon { background: linear-gradient(135deg, #8b55ff, #287bff); }
.chat-bubble__channel-copy { min-width: 0; }
.chat-bubble__channel-label {
  display: block;
  font-size: var(--chat-bubble-channel-fs, 0.88rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-bubble__channel-sub {
  display: block;
  margin-top: 0.2em;
  color: var(--ink-soft, #777);
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Mobile: real px sizes, not a CSS transform:scale() hack, so the
   click target and the icon shrink together cleanly instead of a
   scaled button leaving dead space around a shrunk hit area. The
   "-mobile" custom properties come from the same admin Mobile-size
   field as the desktop ones above (see blaq_chat_bubble_size_css());
   the px fallbacks reproduce the original fixed 80%-scale design. --- */
@media (max-width: 600px) {
  .chat-bubble {
    right: calc(0.9em + env(safe-area-inset-right, 0px));
    bottom: calc(0.9em + env(safe-area-inset-bottom, 0px));
    gap: 0.55em;
    max-width: calc(100vw - 1.2em);
  }
  .chat-bubble__trigger { width: var(--chat-bubble-trigger-h-mobile, 48px); height: var(--chat-bubble-trigger-h-mobile, 48px); }
  .chat-bubble__icon {
    width: min(var(--chat-bubble-icon-size-mobile, 37px), calc(var(--chat-bubble-trigger-h-mobile, 48px) * 0.58));
    height: min(var(--chat-bubble-icon-size-mobile, 37px), calc(var(--chat-bubble-trigger-h-mobile, 48px) * 0.58));
  }
  .chat-bubble__channel { min-height: var(--chat-bubble-channel-h-mobile, 40px); width: 10em; padding: 0.3em 0.85em 0.3em 0.3em; }
  .chat-bubble__channel-icon { width: var(--chat-bubble-channel-icon-size-mobile, 28px); height: var(--chat-bubble-channel-icon-size-mobile, 28px); }
  .chat-bubble__channel-icon svg { width: var(--chat-bubble-channel-icon-svg-mobile, 15px); height: var(--chat-bubble-channel-icon-svg-mobile, 15px); }
  .chat-bubble__channel-label { font-size: var(--chat-bubble-channel-fs-mobile, 0.8rem); }
  .chat-bubble__channel-sub { font-size: 0.68em; }
}

/* ==========================================================================
   Wishlist page (page-templates/wishlist.php) — a row-based list (image,
   title, price, quantity, add to cart, remove) built by
   blaq_wishlist_page_list_html() / blaq_wishlist_page_item_html() in
   functions.php, styled to match the account area's order-items table
   (.blaq-order-items above) rather than the shop's product-card grid.
   ========================================================================== */

.wishlist-page { padding-top: 3.5em; padding-bottom: 3em; }
.wishlist-page__empty {
  display: block;
  text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4em 1.5em;
  margin: 0 0 1.5em;
  color: var(--charcoal);
  font-size: 1.05rem;
  font-weight: 500;
}
.wishlist-page__empty-action { display: inline-flex; margin-top: 1.4em; }
.wishlist-page__empty p { max-width: none; }

.blaq-wishlist-items {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.blaq-wishlist-items__row {
  display: grid;
  grid-template-columns: 1fr 110px 130px 190px;
  gap: 1em;
  align-items: center;
  padding: 0.9em 1.3em;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}
.blaq-wishlist-items__row:last-child { border-bottom: none; }
.blaq-wishlist-items__row--head {
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a7568;
}

.blaq-wishlist-items__product { display: flex; align-items: center; gap: 0.8em; min-width: 0; }
.blaq-wishlist-items__thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--paper); display: block; }
.blaq-wishlist-items__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blaq-wishlist-items__name { font-size: var(--step--1); font-weight: 600; line-height: 1.3; }
.blaq-wishlist-items__name a { color: var(--charcoal); text-decoration: none; }
@media (hover: hover) {
  .blaq-wishlist-items__name a:hover { color: var(--brand-red); }
}

.blaq-wishlist-items__price { font-weight: 700; color: var(--price-now, var(--price-green)); }
.blaq-wishlist-items__price del { color: var(--price-old, #9D9D9D); opacity: 1; text-decoration: line-through; font-weight: 400; }
.blaq-wishlist-items__price ins { color: var(--price-now, var(--price-green)); text-decoration: none; font-weight: 700; }
.blaq-wishlist-items__row--head .blaq-wishlist-items__price,
.blaq-wishlist-items__row--head .blaq-wishlist-items__qty,
.blaq-wishlist-items__row--head .blaq-wishlist-items__actions { color: inherit; font-weight: 700; }

.blaq-wishlist-items__qty-na { color: #b5b0a3; }
.blaq-wishlist-items__qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #E5CFC6;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  background: var(--paper-raised);
}
.blaq-wishlist-items__qty-btn {
  background: none !important;
  border: none;
  padding: 0 !important;
  margin: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a7568 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .blaq-wishlist-items__qty-btn:hover { background: var(--paper) !important; color: var(--brand-red) !important; }
}
.blaq-wishlist-items__qty-value { min-width: 2.4em; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; border-left: 1px solid #eee; border-right: 1px solid #eee; }

.blaq-wishlist-items__actions { display: flex; align-items: center; gap: 0.6em; }
.blaq-wishlist-items__add-to-cart,
.blaq-wishlist-items__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid var(--brand-red);
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
@media (hover: hover) {
  .blaq-wishlist-items__add-to-cart:hover,
.blaq-wishlist-items__view:hover { background: var(--brand-red-deep); border-color: var(--brand-red-deep); color: #fff; }
}
.blaq-wishlist-items__add-to-cart:disabled { opacity: 0.6; cursor: default; }

.blaq-wishlist-items__remove {
  flex: 0 0 auto;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #999 !important;
  padding: 0.3em;
  display: inline-flex;
}
.blaq-wishlist-items__remove svg { display: block; }
@media (hover: hover) {
  .blaq-wishlist-items__remove:hover { background: none !important; border-color: transparent !important; color: var(--brand-red) !important; }
}

@media (max-width: 640px) {
  /* Price on its own line, then qty stepper and Add to Cart side by side
     (same arrangement as the wishlist drawer). */
  .blaq-wishlist-items__row { grid-template-columns: auto 1fr; gap: 0.6em 0.6em; }
  .blaq-wishlist-items__row--head { display: none; }
  .blaq-wishlist-items__product,
  .blaq-wishlist-items__price { grid-column: 1 / -1; }
  .blaq-wishlist-items__price,
  .blaq-wishlist-items__qty,
  .blaq-wishlist-items__actions { justify-content: flex-start; }
  .blaq-wishlist-items__actions { flex-wrap: nowrap; }
  .blaq-wishlist-items__add-to-cart,
  .blaq-wishlist-items__view {
    height: 30px;
    min-height: 0;
    padding: 0 0.9em;
    line-height: 1;
    box-sizing: border-box;
  }
  /* Outlined style, matching the wishlist drawer button. */
  .blaq-wishlist-items__add-to-cart {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid #222222 !important;
    background: #fff !important;
    color: #222222 !important;
  }
@media (hover: hover) {
  .blaq-wishlist-items__add-to-cart:hover {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: #fff !important;
  }
  }
}


/* ==========================================================================
   Cart page (woocommerce/cart/cart.php) — same row-list design as the
   Wishlist page above (.blaq-wishlist-items), reusing the same design
   tokens/spacing/typography, plus a Subtotal column and a
   totals/coupon/checkout card that the wishlist page has no
   equivalent of. See blaq_cart_page_items_html() /
   blaq_cart_page_totals_html() in functions.php.
   ========================================================================== */

.cart-page { padding-top: 0.5em; padding-bottom: 3em; }
.cart-page__empty,
.woocommerce-cart .cart-empty.woocommerce-info {
  display: block;
  text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4em 1.5em;
  margin: 0 0 1.5em;
  color: var(--charcoal);
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}
.woocommerce-cart .cart-empty.woocommerce-info::before { display: none; }
.cart-page__empty { text-align: left; }
.cart-page__empty p { text-align: center; }
.cart-page__empty .btn {
  display: inline-block;
  margin-top: 1.4em;
}
.woocommerce-cart .return-to-shop {
  display: flex !important;
  justify-content: flex-start !important;
  max-width: none;
  width: 100%;
  margin-top: 1.4em;
  text-align: left;
}
@media (hover: hover) {
  .woocommerce-cart .return-to-shop .button.wc-backward:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}
}

.blaq-cart-items {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.blaq-cart-items__row {
  display: grid;
  grid-template-columns: 1fr 110px 140px 110px 44px;
  gap: 1em;
  align-items: center;
  padding: 0.9em 1.3em;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}
.blaq-cart-items__row:last-child { border-bottom: none; }
.blaq-cart-items__row.is-updating { opacity: 0.45; pointer-events: none; }
.blaq-cart-items__row--head {
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a7568;
}

.blaq-cart-items__product { display: flex; align-items: center; gap: 0.8em; min-width: 0; }
.blaq-cart-items__thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--paper); display: block; }
.blaq-cart-items__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blaq-cart-items__name { font-size: var(--step--1); font-weight: 600; line-height: 1.3; }
.blaq-cart-items__name a { color: var(--charcoal); text-decoration: none; }
@media (hover: hover) {
  .blaq-cart-items__name a:hover { color: var(--brand-red); }
}

.blaq-cart-items__price,
.blaq-cart-items__subtotal { font-weight: 700; color: var(--price-green); }
.blaq-cart-items__price del,
.blaq-cart-items__subtotal del { color: #9D9D9D; opacity: 1; text-decoration: line-through; font-weight: 400; }
.blaq-cart-items__price ins,
.blaq-cart-items__subtotal ins { color: var(--price-green); text-decoration: none; font-weight: 700; }
.blaq-cart-items__row--head .blaq-cart-items__price,
.blaq-cart-items__row--head .blaq-cart-items__qty,
.blaq-cart-items__row--head .blaq-cart-items__subtotal { color: inherit; font-weight: 700; }

.blaq-cart-items__qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #E5CFC6;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  background: var(--paper-raised);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.blaq-cart-items__qty-stepper:focus-within { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(200, 30, 40, 0.08); }
.blaq-cart-items__qty-btn {
  background: none !important;
  border: none;
  padding: 0 !important;
  margin: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a7568 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .blaq-cart-items__qty-btn:hover { background: var(--paper) !important; color: var(--brand-red) !important; }
}
.blaq-cart-items__qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.blaq-cart-items__qty-stepper input.blaq-cart-items__qty-input {
  width: 2.4em;
  min-width: 0;
  height: 30px;
  line-height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid #E5CFC6;
  border-right: 1px solid #E5CFC6;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  -moz-appearance: textfield;
}
.blaq-cart-items__qty-stepper input.blaq-cart-items__qty-input:focus { border-color: #eee; }
.blaq-cart-items__qty-input::-webkit-outer-spin-button,
.blaq-cart-items__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.blaq-cart-items__actions { display: flex; align-items: center; justify-content: flex-end; }
.blaq-cart-items__remove {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0.3em;
  display: inline-flex;
}
@media (hover: hover) {
  .blaq-cart-items__remove:hover { color: var(--brand-red); }
}


@media (max-width: 640px) {
  .blaq-cart-items__row { grid-template-columns: 1fr; gap: 0.6em; }
  .blaq-cart-items__row--head { display: none; }
  .blaq-cart-items__price,
  .blaq-cart-items__qty,
  .blaq-cart-items__subtotal,
  .blaq-cart-items__actions { justify-content: flex-start; }
}

/* --- Totals / coupon / checkout card --- */
.cart-page__collaterals { margin-top: 1.5em; display: flex; justify-content: flex-end; }
.blaq-cart-totals {
  width: 100%;
  max-width: 380px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.3em;
}

.blaq-cart-totals__coupon label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.5em; }
.blaq-cart-totals__coupon-row { display: flex; gap: 0.6em; margin-bottom: 1.3em; }
.blaq-cart-totals__coupon-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.6em 0.8em;
  font-size: 0.85rem;
  font-family: inherit;
}

.blaq-cart-totals__rows { border-top: 1px solid var(--line); padding-top: 1em; }
.blaq-cart-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0;
  font-size: 0.85rem;
}
.blaq-cart-totals__row span:first-child { color: #77706a; }
.blaq-cart-totals__row--coupon span:first-child { color: var(--charcoal); }
.blaq-cart-totals__row--coupon .woocommerce-remove-coupon { margin-left: 0.4em; color: #999; text-decoration: none; }
@media (hover: hover) {
  .blaq-cart-totals__row--coupon .woocommerce-remove-coupon:hover { color: var(--brand-red); }
}
.blaq-cart-totals__shipping-note { font-size: 0.76rem; color: #99918b; font-style: italic; }
.blaq-cart-totals__row--total {
  margin-top: 0.4em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.blaq-cart-totals__row--total span:first-child { color: var(--charcoal); font-weight: 700; }
.blaq-cart-totals__row--total strong { font-size: 1.1rem; }

.blaq-cart-totals__checkout {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.2em;
  padding: 0.85em 1em;
}
@media (hover: hover) {
  .blaq-cart-totals__checkout:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--paper) !important;
}
}

@media (max-width: 480px) {
  .cart-page__collaterals { justify-content: stretch; }
  .blaq-cart-totals { max-width: none; }
}



/* --- Search form (also used standalone, e.g. no-results page) --- */
.live-search { position: relative; }
.search-form {
  display: flex;
  align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.05em 0.25em 0.05em 1em;
}
.search-form input[type="search"] {
  border: none;
  background: none;
  flex: 1 1 auto;
  padding: 0.35em 0.5em;
  width: auto;
}
.search-form input[type="search"]:focus { border: none; outline: none; }
/* Hide the browser's own built-in search-cancel icon so only our
   custom clear button (below) shows — having both stacked side by
   side looked like two separate X's. */
.search-form input[type="search"]::-webkit-search-cancel-button,
.search-form input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-form button {
  background: none;
  border: none;
  color: var(--ink-soft) !important; /* beats the global button rule's
                                         `color: var(--paper) !important` */
  padding: 0.4em 0.6em;
  border-radius: 50%;
}
@media (hover: hover) {
  .search-form button:hover { background: var(--paper); color: var(--brand-red) !important; }
}
.search-form button svg { display: block; }
.search-form__clear {
  display: none;
  width: 24px;
  height: 24px;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  background: var(--paper) !important; /* soft red/blush, same as the
    homepage hero card background */
  color: var(--brand-black, #222222) !important;
}
@media (hover: hover) {
  .search-form__clear:hover { background: var(--paper) !important; color: var(--brand-red) !important; }
}
.live-search.has-value .search-form__clear { display: flex; }

/* Live "type to search" results dropdown */
.live-search__results {
  position: absolute;
  z-index: 150;
  top: calc(100% + 0.5em);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line, #E5CFC6);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20,18,16,0.14);
  max-height: 420px;
  overflow-y: auto;
  padding: 0.4em;
}
.live-search__results[hidden] { display: none; }
.live-search__loading,
.live-search__empty {
  padding: 1em 0.8em;
  color: var(--muted, #888);
  font-size: var(--step--1);
}
.live-search__item {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.6em 0.6em;
  border-radius: 6px;
  text-decoration: none !important;
  color: inherit;
}
@media (hover: hover) {
  .live-search__item:hover { background: var(--paper); }
}
.live-search__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #E5CFC6);
}
.live-search__info { flex: 1 1 auto; min-width: 0; }
.live-search__name {
  display: block;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--charcoal, #222222);
}
.live-search__sku {
  font-weight: 400;
  color: var(--muted, #888);
  font-size: 0.92em;
}
.live-search__price {
  flex: 0 0 auto;
  text-align: right;
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
}
.live-search__price del { color: var(--price-old, #9D9D9D); font-weight: 400; opacity: 1; }
.live-search__price ins { color: var(--price-now, var(--price-green)); text-decoration: none; }
.live-search__price .woocommerce-Price-currencySymbol { font-size: 1.35em; font-weight: 800; vertical-align: -0.06em; }

/* --- Nav strip (primary menu + categories mega-menu) --- */
.nav-strip { background: var(--nav-bg); position: sticky; top: 0; z-index: 100; }

/* WP admin toolbar is position:fixed at top:0 for logged-in users (>=783px
   viewport), so our own top:0 sticky bars lock in underneath/behind it —
   looks like it "isn't working" while you're testing logged in. Below
   783px core makes the admin bar scroll away with the page, so no offset
   is needed there. Covers both .nav-strip (desktop's sticky bar) and
   .header-main (mobile's, ≤860px — see its own rule above) since the
   793px window where this applies overlaps the top of that range. */
@media screen and (min-width: 783px) {
  body.admin-bar .nav-strip,
  body.admin-bar .header-main { top: 32px; }
}

/* JS fixed-lock fallback (see assets/js/main.js). If some ancestor's
   overflow breaks native position:sticky, main.js adds this class and
   switches the bar to position:fixed instead, which isn't affected by
   an ancestor's overflow the way sticky is. .nav-strip__spacer holds
   its normal place in the flow so nothing jumps when it does. */
.nav-strip--fixed {
  position: fixed !important;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
}
@media screen and (min-width: 783px) {
  /* Never slide under the WP admin bar (main.js sets the exact offset inline;
     this is the no-JS-measurement fallback). */
  body.admin-bar .nav-strip--fixed { top: 32px; }
}
.nav-strip__spacer { display: none; }
.nav-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
  /* Pinned to the same height as the marquee bar below the hero (see
     .marquee), so both black-and-red horizontal bars on the page read
     as the same weight rather than the nav looking taller. */
  min-height: var(--bar-height);
}
.primary-nav { flex: 1 1 auto; width: 100%; margin: 0 !important; padding: 0 !important; }
.primary-nav ul {
  list-style: none !important;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25em;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}
.primary-nav li { flex: 0 0 auto; margin: 0 !important; padding: 0 !important; }
.primary-nav > ul > li:first-child > a { padding-left: 0 !important; }
.primary-nav > ul > li:last-child > a { padding-right: 0 !important; }
.primary-nav a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--nav-text);
  /* Kept intentionally shorter than --bar-height (the nav-strip's
     min-height) so the bar's real visible height is governed by that
     one shared variable, with this text simply centered inside it —
     not by this padding/line-height fighting to be the tallest thing
     in the bar. */
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
@media (hover: hover) {
  .primary-nav a:hover {
  color: var(--nav-hover);
}
}
.primary-nav .current-menu-item > a {
  border-bottom-color: var(--nav-text);
}
.primary-nav li.menu-item-has-mega > a::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.4em;
  border-right: 2px solid var(--nav-text);
  border-bottom: 2px solid var(--nav-text);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.primary-nav li.menu-item-has-mega.is-open > a::after { transform: translateY(1px) rotate(-135deg); }
.primary-nav li.menu-item-has-mega.is-open > a { color: var(--nav-hover); }
.primary-nav li.menu-item-has-mega.is-open > a::after {
  border-right-color: var(--nav-hover);
  border-bottom-color: var(--nav-hover);
}
@media (hover: hover) {
  .primary-nav li.menu-item-has-mega > a:hover::after {
  border-right-color: var(--nav-hover);
  border-bottom-color: var(--nav-hover);
}
}

/* --- Standard sub-menu dropdowns (e.g. Paint, Brushes, Draw) ---
   Separate from the "Categories" mega-panel above, which is a hand-built
   grid driven by JS/a second menu. Plain WP child items just get a
   simple hover/focus dropdown. */
.primary-nav li.menu-item-has-children:not(.menu-item-has-mega) {
  position: relative;
}
.primary-nav li.menu-item-has-children:not(.menu-item-has-mega) > a::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  border-right: 2px solid var(--nav-text);
  border-bottom: 2px solid var(--nav-text);
  transform: translateY(-2px) rotate(45deg);
  transition: border-color 0.15s ease;
}
@media (hover: hover) {
  .primary-nav li.menu-item-has-children:not(.menu-item-has-mega) > a:hover::after {
  border-right-color: var(--nav-hover);
  border-bottom-color: var(--nav-hover);
}
}

/* Vertically center the dropdown chevrons on the label text. The link
   becomes an inline-flex row so the chevron box is centered on the
   text line; the rotated chevron's visible mass sits in the lower half
   of its box, so it's nudged up slightly (and down when flipped open). */
.primary-nav li.menu-item-has-mega > a,
.primary-nav li.menu-item-has-children:not(.menu-item-has-mega) > a {
  display: inline-flex;
  align-items: center;
}
.primary-nav li.menu-item-has-mega > a::after,
.primary-nav li.menu-item-has-children:not(.menu-item-has-mega) > a::after {
  flex-shrink: 0;
  transform: translateY(-0.12em) rotate(45deg);
}
.primary-nav li.menu-item-has-mega.is-open > a::after {
  transform: translateY(0.12em) rotate(-135deg);
}
.primary-nav ul.sub-menu {
  list-style: none;
  display: block;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.5em 0;
  background: var(--paper-raised);
  border-top: 3px solid var(--brand-red-deep);
  box-shadow: 0 18px 22px -6px rgba(0,0,0,0.16);
  clip-path: inset(0 -100px -100px -100px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.primary-nav li.menu-item-has-children:not(.menu-item-has-mega):focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (hover: hover) {
  .primary-nav li.menu-item-has-children:not(.menu-item-has-mega):hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
}
.primary-nav ul.sub-menu li {
  flex: none;
  width: 100%;
}
.primary-nav ul.sub-menu a {
  display: block;
  width: 100%;
  color: var(--ink) !important;
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  white-space: nowrap;
  padding: 0.6em 1.25em;
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
@media (hover: hover) {
  .primary-nav ul.sub-menu a:hover {
  background: var(--paper);
  color: var(--brand-red) !important;
  padding-left: 1.6em;
}
}

/* Brands has far more items than the other dropdowns, so instead of
   a narrow anchored list it opens as a full-width panel in the same
   visual language as the Categories mega-menu (edge-to-edge, grid of
   links). Targets the WooCommerce brand-taxonomy class WordPress
   already outputs on this menu item, so no PHP changes are needed. */
.primary-nav li.menu-item-has-children.menu-item-object-product_brand {
  position: static !important;
}
.primary-nav li.menu-item-object-product_brand > ul.sub-menu {
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  padding: 2.25em 0;
  box-sizing: border-box;
  /* Match the Categories mega-menu panel exactly: no dark top border,
     same vertical padding — this panel is visually a mega-menu even
     though it's still technically a .sub-menu in the markup. */
  border-top: none;
}
.primary-nav li.menu-item-object-product_brand > ul.sub-menu .brand-menu-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: row;
  gap: 0.25em 1em;
}
.primary-nav li.menu-item-object-product_brand > ul.sub-menu li {
  width: auto;
}
.primary-nav li.menu-item-object-product_brand > ul.sub-menu .brand-menu-inner a {
  padding: 0.4em 0;
}
@media (hover: hover) {
  .primary-nav li.menu-item-object-product_brand > ul.sub-menu .brand-menu-inner a:hover {
  padding-left: 0.4em;
}
}

/* Lives in .header-main now (light background), not the red nav-strip
   it used to sit in — see header.php. -webkit-tap-highlight-color and
   the focus/active overrides below replace the browser's default gold
   tap-highlight/focus fill (visible on real mobile browsers, not just
   this desktop screenshot) with a deliberate press animation instead —
   same fix as .mobile-menu-accordion__trigger further down. */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #222222 !important;
  padding: 0.8em 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.menu-toggle:focus,
.menu-toggle:active { background: none !important; border-color: transparent !important; color: #222222 !important; }
@media (hover: hover) {
  .menu-toggle:hover { background: none !important; border-color: transparent !important; color: #222222 !important; }
} /* no red fill on touch (sticky :hover on phones) */
.menu-toggle:focus-visible { outline: 2px solid #222222; outline-offset: 2px; }
.menu-toggle:active { transform: scale(0.88); }

/* --- Categories mega-menu panel --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper-raised);
  box-shadow: 0 18px 22px -6px rgba(0,0,0,0.16);
  clip-path: inset(0 -100px -100px -100px);
  padding: 2.25em 0;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.mega-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Six even columns. CSS columns balance the groups by height, so any
   number of categories fills the six columns evenly instead of piling up
   in a fixed number of rows (which used to spill into extra columns). */
.mega-menu__grid {
  display: block;
  column-count: 6;
  column-gap: 2.25em;
  column-fill: balance;
}
.mega-menu__group {
  min-width: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.4em;
}
@media (max-width: 1180px) {
  .mega-menu__grid { column-count: 4; }
}
/* Evenly spaced columns, built by layoutMega() in main.js. Space-between
   puts an identical gap between every pair of columns, first column flush
   left, last flush right. */
.mega-menu__grid.is-cols {
  display: flex;
  column-count: auto;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4em;
}
.mega-menu__grid.is-cols.is-full { justify-content: space-between; gap: 1.5em; }
.mega-menu__col { min-width: 0; flex: 0 1 auto; }
.mega-menu__col .mega-menu__group:last-child { margin-bottom: 0; }
/* Categories-style panels (see layoutMegaRows() in main.js): equal-width
   columns spread across the full width, all text left-aligned. A category
   with more than 3 bold groups continues in the next column. */
.mega-menu__grid.is-rows {
  display: grid;
  /* Last track is sized to its content so the final column sits flush with
     the right edge of the nav bar (the BLOG link's edge). */
  grid-template-columns: repeat(calc(var(--mega-cols, 5) - 1), minmax(0, 1fr)) max-content;
  column-gap: 2em;
  column-count: auto;
  align-items: start;
  text-align: left;
}
.mega-menu__grid.is-rows .mega-menu__col { min-width: 0; text-align: left; }
.mega-menu__grid.is-rows .mega-menu__col:last-child { justify-self: end; text-align: right; }
/* Last column: text is right-aligned so every line ends on the same edge as the BLOG link. */
@media (hover: hover) {
  .mega-menu__grid.is-rows .mega-menu__col:last-child .mega-menu__list a:hover { transform: translateX(-4px); }
}
.mega-menu__heading--spacer { visibility: hidden; pointer-events: none; user-select: none; }
.mega-menu__group--cont { margin-top: 0; }
/* With every column in use, the last one is right-aligned to the nav's right edge. */
.mega-menu__grid.is-full .mega-menu__col.is-last { text-align: right; }
/* Flush right: sub-links share the same right edge as the heading and the links above them. */
.mega-menu__grid.is-full .mega-menu__col.is-last .mega-menu__list--sub { margin: 0.2em 0 0.35em 0; }
@media (hover: hover) {
  .mega-menu__grid.is-full .mega-menu__col.is-last .mega-menu__list a:hover { transform: translateX(-4px); }
}
.mega-menu__heading {
  font-family: var(--font-body);
  font-size: calc(var(--step--1) * var(--heading-scale, 1));
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand-red);
  margin: 0 0 0.4em;
}
.mega-menu__heading a { text-decoration: none; color: var(--brand-red) !important; transition: color 0.15s ease; }
@media (hover: hover) {
  .mega-menu__heading a:hover { color: var(--brand-red-deep) !important; }
}
.mega-menu__list { list-style: none; margin: 0; padding: 0; }
.mega-menu__list li { margin-bottom: 0.25em; line-height: 1.2; }
.mega-menu__list--sub { margin: 0.2em 0 0.35em 0; padding: 0; }
.mega-menu__list a {
  text-decoration: none;
  color: var(--ink-soft) !important;
  font-size: var(--step--1);
  line-height: 1.2;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .mega-menu__list a:hover {
  color: var(--brand-red) !important;
  transform: translateX(4px);
}
}

/* When a mega-menu is auto-generated for a *primary*-menu item (e.g.
   "Accessories" — see blaq_flag_auto_mega_items()/Blaq_Primary_Menu_Walker),
   its markup ends up nested inside .primary-nav's own <ul>/<li> structure,
   unlike the dedicated "Categories" panel above (blaq_render_categories_mega),
   which is rendered as a sibling outside .primary-nav entirely. That means
   the generic .primary-nav ul / li / a rules further up this file — which
   turn the top-level nav into a horizontal flex bar — also match the mega
   menu's own nested <ul class="mega-menu__list">, <li>, and <a> elements,
   forcing each category's link list into a horizontal row instead of a
   vertical list and causing columns to collide. Re-assert with matching
   or higher specificity so any mega-menu looks identical regardless of
   where in the DOM it happens to sit. */
.mega-menu .mega-menu__list {
  display: block;
  flex-wrap: initial;
  justify-content: initial;
  align-items: initial;
  gap: initial;
  width: auto;
}
.mega-menu .mega-menu__list li {
  flex: initial;
  width: auto;
}
.mega-menu .mega-menu__heading a,
.mega-menu .mega-menu__list a {
  display: inline-block;
  white-space: normal;
  text-transform: none;
  font-weight: inherit;
  letter-spacing: normal;
  padding: 0;
  border-bottom: none;
}

/* Column headings (the red ones: Art Supplies, Combo, Reel…) use the same
   bold weight as the group labels below, and are ALL CAPS. */
.mega-menu .mega-menu__heading,
.mega-menu .mega-menu__heading a {
  font-weight: 700;
  text-transform: uppercase;
}

/* Mega menu 2nd-layer links (Books, Candles, Cards, Brushes…) are all bold,
   whether or not they have sub-links beneath them; the 3rd-layer sub-links
   stay regular. The Brands (A–Z) panel is left alone.
   Specificity sits above the generic `.mega-menu .mega-menu__list a` reset,
   and the hover colour is repeated because that reset's !important would
   otherwise win. */
.mega-menu:not(#blaq-brands-mega) .mega-menu__list:not(.mega-menu__list--sub) > li > a {
  font-weight: 700;
  color: var(--ink) !important;
}
@media (hover: hover) {
  .mega-menu:not(#blaq-brands-mega) .mega-menu__list:not(.mega-menu__list--sub) > li > a:hover {
  color: var(--brand-red) !important;
}
}

/* ==========================================================================
   Categories mega menu — "Explore Categories" full-width panel.
   Markup: blaq_render_categories_mega() in functions.php. Values follow the
   approved BLAQ_full_width_mega_menu design. Scoped to #blaq-mega-menu.
   ========================================================================== */
#blaq-mega-menu.mega-menu--catmega {
  --cm-red: #cc1939;
  --cm-black: #161616;
  --cm-line: #eee;
  background: #fff;
  padding: 28px 0 20px;
  border-top: 2px solid var(--cm-red);
  border-bottom: 1px solid var(--cm-line);
  box-shadow: 0 20px 45px rgba(0,0,0,.10);
  font-family: var(--font-body);
}
#blaq-mega-menu .catmega { color: #292929; }
#blaq-mega-menu .catmega a { text-decoration: none; }
#blaq-mega-menu .catmega__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--cm-line);
}
#blaq-mega-menu .catmega__top h2 {
  margin: 0; font: 700 18px/1.3 var(--font-body); color: var(--cm-black);
  text-transform: none; letter-spacing: normal;
}
#blaq-mega-menu .catmega__top > a,
#blaq-mega-menu .catmega__footer > a {
  font: 700 11px var(--font-body); color: var(--cm-red) !important; letter-spacing: .4px;
}
#blaq-mega-menu .catmega__grid { display: grid; gap: 32px; align-items: start; width: 100%; }
#blaq-mega-menu .catmega__category { min-width: 0; }
#blaq-mega-menu .catmega__title {
  /* Full-width light band across the category's whole width (all of its
     columns), so it is obvious which columns belong under which category.
     Colour: Theme Options > Colors > Header > "Mega menu — category title band". */
  display: block; box-sizing: border-box; width: max-content; min-width: calc(100% - 56px); max-width: none; margin: 0 0 14px; padding: 3px 12px;
  white-space: nowrap; /* category title always stays on a single line */
  background: var(--mega-band-bg, #efefec);
  border-left: 3px solid var(--cm-red);
  font: 700 15px/1.3 var(--font-body); color: var(--cm-black) !important;
}
@media (hover: hover) {
  #blaq-mega-menu .catmega__title:hover,
#blaq-mega-menu .catmega__subtitle:hover { color: var(--cm-red) !important; }
}
#blaq-mega-menu .catmega__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#blaq-mega-menu .catmega__sub { margin-bottom: 10px; }
#blaq-mega-menu .catmega__subtitle {
  display: inline-block; margin-bottom: 4px;
  font: 700 14px/1.4 var(--font-body); color: var(--mega-title-text, #1c1c1c) !important;
}
#blaq-mega-menu .catmega__links { list-style: none; margin: 0; padding: 0; }
#blaq-mega-menu .catmega__links li { margin: 0 0 4px; padding: 0; font-size: 14px; line-height: 1.4; }
#blaq-mega-menu .catmega__links a,
#blaq-mega-menu .catmega__direct {
  font: 400 14px/1.4 var(--font-body); color: var(--mega-link-text, #555) !important;
  transition: color .15s, padding .15s;
}
#blaq-mega-menu .catmega__direct { display: block; margin-bottom: 4px; }
@media (hover: hover) {
  #blaq-mega-menu .catmega__links a:hover,
#blaq-mega-menu .catmega__direct:hover { color: var(--cm-red) !important; padding-left: 3px; transform: none; }
}
#blaq-mega-menu .catmega__category.is-last { justify-self: end; text-align: right; }
#blaq-mega-menu .catmega__category.is-last .catmega__title {
  /* Red bar stays on the LEFT of the title, like every other column. */
  width: 100%; min-width: 0; padding-left: 12px; border-left: 3px solid var(--cm-red); padding-right: 12px; border-right: 0; text-align: left;
}
@media (hover: hover) {
  #blaq-mega-menu .catmega__category.is-last .catmega__links a:hover,
#blaq-mega-menu .catmega__category.is-last .catmega__direct:hover { padding-left: 0; padding-right: 3px; }
}
#blaq-mega-menu .catmega__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--cm-line);
}
#blaq-mega-menu .catmega__footer p { margin: 0; font-size: 11px; color: #999; }
@media (max-width: 1100px) {
  #blaq-mega-menu .catmega__grid { gap: 20px; }
  #blaq-mega-menu .catmega__duo { gap: 15px; }
  #blaq-mega-menu .catmega__links a,
  #blaq-mega-menu .catmega__direct { font-size: 13px; }
}

/* Primary-menu mega panels (Art Supplies, Journaling, Stationery, Kids…):
   same look as the Categories mega menu — white panel with the red top
   line and soft shadow, Montserrat 13px, bold dark group titles, thin grey
   links, left-aligned columns. Applies to every mega panel except Categories
   (#blaq-mega-menu), which has its own markup and styles above. */
.mega-menu:not(#blaq-mega-menu) {
  background: #fff;
  padding: 28px 0 20px;
  border-top: 2px solid #cc1939;
  border-bottom: 1px solid #eee;
  box-shadow: 0 20px 45px rgba(0,0,0,.10);
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__group { margin: 0 0 10px; }
.mega-menu:not(#blaq-mega-menu) .mega-menu__heading {
  margin: 0 0 4px;
  font: 700 14px/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--mega-title-text, #1c1c1c);
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__heading a {
  font: 700 14px/1.4 var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--mega-title-text, #1c1c1c) !important;
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__list li { margin: 0 0 4px !important; font-size: 14px; line-height: 1.4; }
.mega-menu:not(#blaq-mega-menu) .mega-menu__list a,
.mega-menu:not(#blaq-mega-menu) .mega-menu__list:not(.mega-menu__list--sub) > li > a {
  font: 400 14px/1.4 var(--font-body);
  color: var(--mega-link-text, #555) !important;
  transition: color .15s, padding .15s;
}
/* A second-level item with no links under it reads as a plain link
   (like Books, Candles in Categories), not a bold title. */
.mega-menu:not(#blaq-mega-menu) .mega-menu__group > .mega-menu__heading:only-child { margin: 0 0 4px; }
.mega-menu:not(#blaq-mega-menu) .mega-menu__group--leaf { margin-bottom: 0; }
/* Plain-link columns sit level with the links under the headings next to them
   (one heading row = 14px * 1.4 line + 4px gap). */
.mega-menu:not(#blaq-mega-menu) .mega-menu__col--leaf { padding-top: 23.6px; }
.mega-menu:not(#blaq-mega-menu) .mega-menu__group > .mega-menu__heading:only-child,
.mega-menu:not(#blaq-mega-menu) .mega-menu__group > .mega-menu__heading:only-child a {
  font: 400 14px/1.4 var(--font-body);
  color: var(--mega-link-text, #555) !important;
}
@media (hover: hover) {
  .mega-menu:not(#blaq-mega-menu) .mega-menu__heading a:hover,
.mega-menu:not(#blaq-mega-menu) .mega-menu__list a:hover,
.mega-menu:not(#blaq-mega-menu) .mega-menu__list:not(.mega-menu__list--sub) > li > a:hover,
.mega-menu:not(#blaq-mega-menu) .mega-menu__group > .mega-menu__heading:only-child a:hover {
  color: #cc1939 !important;
  padding-left: 3px;
  transform: none;
}
}
/* Columns: equal widths; the last column is content-sized and flush right,
   its text right-aligned so it ends level with the BLOG link. */
.mega-menu:not(#blaq-mega-menu) .mega-menu__grid.is-rows {
  grid-template-columns: repeat(calc(var(--mega-cols, 5) - 1), minmax(0, 1fr)) max-content;
  column-gap: 32px;
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__grid.is-rows .mega-menu__col:last-child {
  justify-self: end;
  text-align: right;
}
@media (hover: hover) {
  .mega-menu:not(#blaq-mega-menu) .mega-menu__grid.is-rows .mega-menu__col:last-child .mega-menu__list a:hover,
.mega-menu:not(#blaq-mega-menu) .mega-menu__grid.is-rows .mega-menu__col:last-child .mega-menu__heading a:hover {
  transform: none;
  padding-left: 0;
  padding-right: 3px;
}
}

/* Brands (A–Z): equal-width columns; the last one is flush right (text right-aligned),
   ending level with the BLOG link. */
#blaq-brands-mega .mega-menu__grid.is-cols { justify-content: flex-start; gap: 32px; }
#blaq-brands-mega .mega-menu__grid.is-cols .mega-menu__col { flex: 1 1 0; }
#blaq-brands-mega .mega-menu__grid.is-cols .mega-menu__col.is-last { flex: 0 0 auto; text-align: right; margin-left: auto; }
@media (hover: hover) {
  #blaq-brands-mega .mega-menu__grid.is-cols .mega-menu__col.is-last .mega-menu__list a:hover { transform: none; padding-left: 0; padding-right: 3px; }
}

/* Nav bar: hovered / open items were dark red on the red bar (unreadable).
   Keep the text white and underline it, like the current page. */
.primary-nav li.menu-item-has-mega.is-open > a {
  color: var(--nav-text);
  border-bottom-color: var(--nav-text);
}
@media (hover: hover) {
  .primary-nav a:hover {
  color: var(--nav-text);
  border-bottom-color: var(--nav-text);
}
}
.primary-nav li.menu-item-has-mega.is-open > a::after {
  border-right-color: var(--nav-text);
  border-bottom-color: var(--nav-text);
}
@media (hover: hover) {
  .primary-nav li.menu-item-has-mega > a:hover::after {
  border-right-color: var(--nav-text);
  border-bottom-color: var(--nav-text);
}
}

/* Plain dropdowns (a menu item with simple children, e.g. Journaling): same
   look and rhythm as the mega menus — red top line, soft shadow, Montserrat
   13px, thin grey links, ~24px per row, red hover. */
.primary-nav ul.sub-menu {
  min-width: 200px;
  /* Same top/bottom padding as the mega panels (28px 0 20px) so the gap
     under the red nav bar matches. */
  /* !important: the generic `.primary-nav ul { padding: 0 !important }` rule
     above otherwise wins and flattens this to nothing. */
  padding: 28px 0 20px !important;
  background: #fff;
  border-top: 2px solid #cc1939;
  box-shadow: 0 20px 45px rgba(0,0,0,.10);
}
.primary-nav ul.sub-menu a {
  font: 400 13px/1.4 var(--font-body);
  color: var(--mega-link-text, #555) !important;
  padding: 2px 24px;
  background: none;
  transition: color .15s, padding .15s;
}
@media (hover: hover) {
  .primary-nav ul.sub-menu a:hover {
  background: none;
  color: #cc1939 !important;
  padding-left: 27px;
}
}

/* Between the 860px mobile cutoff above (where the whole nav-strip is
   replaced by the hamburger drawer) and a full desktop viewport, the
   12 primary-nav items at their default 15px font + 1.25em gaps need
   roughly 1100px of unbroken width to lay out in one nowrap row. On
   tablet widths (e.g. iPad Pro at ~1024–1200px) that's more room than
   the row actually has, so the tail end of the menu (e.g. "BRANDS")
   was being pushed past the right edge of the screen — not wrapped,
   not scrollable, just inaccessible. Tightening the type size and
   gaps in this range is enough for every item to fit on one line
   again without shrinking anything on a full desktop screen, where
   this rule doesn't apply. */
@media (min-width: 861px) and (max-width: 1300px) {
  .primary-nav ul { gap: 0.5em; }
  .primary-nav a { font-size: 12px; }
}

@media (max-width: 860px) {
  /* The red nav-strip (primary nav + categories mega-menu) is fully
     replaced on mobile by the .mobile-menu-drawer opened from the
     .menu-toggle hamburger now living in .header-main — see header.php.
     Everything below this point in the old rule set only mattered for
     styling that strip's own inline mobile toggle, which no longer
     runs (see assets/js/main.js), so the strip itself is simply
     hidden rather than restyled. */
  .nav-strip { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Mobile menu drawer — full-screen off-canvas panel opened from the
   .header-main hamburger on screens ≤860px (see header.php's
   blaq_render_mobile_menu_drawer() and assets/js/main.js). Same
   fixed/overlay/slide-in-panel structure as .cart-drawer above, so it
   shares its z-index tier and transition timing.
   ========================================================================== */

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
}
.mobile-menu-drawer.is-open { visibility: visible; }

.mobile-menu-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.mobile-menu-drawer.is-open .mobile-menu-drawer__overlay { opacity: 1; }

.mobile-menu-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--mm-bg, #fff);
  display: flex;
  flex-direction: column;
  /* Pushes the close (X) down to where the hamburger sits when the
     header is below the top of the viewport (admin bar / topbar). Set
     precisely by main.js on open; the admin-bar values are the no-JS
     fallback. */
  padding-top: var(--blaq-drawer-offset, 0px);
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
}
body.admin-bar .mobile-menu-drawer { --blaq-drawer-offset: 32px; }
@media (max-width: 782px) {
  body.admin-bar .mobile-menu-drawer { --blaq-drawer-offset: 46px; }
}
.mobile-menu-drawer.is-open .mobile-menu-drawer__panel { transform: translateX(0); }

.mobile-menu-drawer__header {
  /* Horizontal inset matches .header-main__inner's padding
     (var(--gutter)) so the close button lands exactly where the
     hamburger sits in the header — .menu-toggle itself carries no
     horizontal padding of its own, so var(--gutter) is its whole
     left offset too. A fixed "1.3em" here used to drift from that
     at the in-between viewport widths where --gutter's clamp() is
     between its floor and ceiling.

     Vertical offset reconstructs the hamburger's own stack the same
     way: .header-main__inner's "1.1em" top padding is relative to
     the page's base font-size (var(--step-0), since that <div>
     doesn't override it), but .menu-toggle's own "0.8em" top padding
     is relative to a *button's* font-size — the generic `button {
     font-size: var(--step--1) }` rule earlier in this file applies
     to it (and to .mobile-menu-drawer__close below), and that's a
     different, smaller size than var(--step-0). A plain "1.2em" here
     mixed neither of those contexts, so it drifted from the
     hamburger's true position — this multiplies each term by the
     actual variable its source rule uses instead of guessing one
     shared em. (Assumes .header-topbar is hidden, i.e. ≤600px — the
     dark topbar's own height would need adding above 600px, up to
     this drawer's 860px ceiling, for the same exact match.) */
  flex: 0 0 auto;
  display: flex;
  padding: calc( 1.1 * var(--step-0) + 0.8 * var(--step--1) ) var(--gutter) 0.2em;
}
.mobile-menu-drawer__close {
  background: none;
  border: none;
  padding: 0.3em;
  margin: -0.3em;
  color: var(--mm-text, #222222) !important;
  cursor: pointer;
  display: inline-flex;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.mobile-menu-drawer__close:focus,
.mobile-menu-drawer__close:active { background: none !important; }
.mobile-menu-drawer__close:focus-visible { outline: 2px solid #222222; outline-offset: 2px; }
.mobile-menu-drawer__close:active { transform: scale(0.85); }

.mobile-menu-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.6em var(--gutter) 1.4em;
  padding-bottom: calc(1.4em + env(safe-area-inset-bottom, 0px));
}

.mobile-menu-drawer__shop-link {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mm-text, #222222) !important;
  text-decoration: none;
  padding-bottom: 0.9em;
  margin-bottom: 0.3em;
  border-bottom: 1px solid var(--mm-head-line, #E5CFC6);
}

.mobile-menu-accordion__row + .mobile-menu-accordion__row { border-top: 1px solid var(--mm-line, #efefef); }

.mobile-menu-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  background: none !important;
  border: none;
  padding: 0.9em 0;
  font-family: var(--font-body);
  font-size: var(--step--1);
  line-height: inherit; /* buttons default to "normal", which made expandable rows shorter than plain-link rows */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mm-text, #222222) !important;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
/* Some mobile browsers paint a default active/focus fill on plain
   <button>s (seen as a solid gold highlight on the expanded row) —
   this is normally invisible, harmless UI chrome, but it's jarring
   against this drawer's plain white rows, so it's suppressed here in
   favor of a plain focus outline instead. */
.mobile-menu-accordion__trigger:focus,
.mobile-menu-accordion__trigger:active {
  background: none !important;
}
.mobile-menu-accordion__trigger:focus-visible {
  outline: 2px solid #222222;
  outline-offset: -2px;
}
.mobile-menu-accordion__trigger--plain { display: block; }

.mobile-menu-accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--mm-text, #222222);
}
.mobile-menu-accordion__icon svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.mobile-menu-accordion__icon-minus { opacity: 0; }
.mobile-menu-accordion__trigger[aria-expanded="true"] .mobile-menu-accordion__icon-plus { opacity: 0; }
.mobile-menu-accordion__trigger[aria-expanded="true"] .mobile-menu-accordion__icon-minus { opacity: 1; }

/* Touch effect: a row that is open — or being pressed — turns dark red
   (label + the − / + icon), on every level of the mobile menu. */
.mobile-menu-accordion__trigger,
.mobile-menu-accordion__icon {
  transition: color .2s ease;
}
.mobile-menu-accordion__trigger[aria-expanded="true"],
.mobile-menu-accordion__trigger[aria-expanded="true"] .mobile-menu-accordion__icon,
.mobile-menu-accordion__trigger:active,
.mobile-menu-accordion__trigger:active .mobile-menu-accordion__icon {
  color: var(--mm-open-text, #B01430) !important;
}

.mobile-menu-accordion__panel { padding: 0 0 1em; }

/* Nested levels (level 2, 3, 4…): same +/- rows as the top level, shown
   inside a tinted box that alternates grey / white per level so it is
   clear how deep you are. Top-level rows keep their original look. */
.mobile-menu-accordion__panel--d1,
.mobile-menu-accordion__panel--d3 {
  background: var(--mm-sub1-bg, #f1f1f1);
  border-radius: 6px;
  padding: 0.1em 1em;
  margin-bottom: 1em;
}
.mobile-menu-accordion__panel--d2,
.mobile-menu-accordion__panel--d4 {
  background: var(--mm-sub2-bg, #ffffff);
  padding: 0 0.9em 0 0.9em; /* right padding keeps the + / − icons a bit in from the box edge */
  margin-bottom: 0.4em;
}
/* 3rd-level grey box: left edge lines up with the row text above/below it ("Brushes and Tools", "Combo Sets"), right edge with the + icons */
.mobile-menu-accordion__panel--d3 {
  margin-left: 0;
}
.mobile-menu-accordion__panel--d1 .mobile-menu-accordion__row + .mobile-menu-accordion__row,
.mobile-menu-accordion__panel--d3 .mobile-menu-accordion__row + .mobile-menu-accordion__row {
  border-top-color: var(--mm-sub-line, #dedede);
}
.mobile-menu-accordion__panel .mobile-menu-accordion__trigger {
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.8em 0;
}
.mobile-menu-accordion__panel .mobile-menu-accordion__icon {
  width: 12px;
  height: 12px;
}
.mobile-menu-accordion__panel .mobile-menu-accordion__row > .mobile-menu-accordion__panel {
  padding-top: 0;
}

.mobile-menu-accordion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
}

.mobile-menu-pill {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--btn-blush, #fff3ef);
  border-radius: 5px;
  min-height: 44px;
  padding: 0.35em 1em 0.35em 0.4em;
  text-decoration: none;
  color: var(--btn-blush-text, #222222) !important;
}
.mobile-menu-pill__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mobile-menu-pill__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-menu-pill__initial { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--brand-red); }
.mobile-menu-pill__label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }

/* Lives at the end of .mobile-menu-drawer__body, so it scrolls with
   the category list instead of being pinned to the panel bottom. The
   horizontal padding is the body's now, hence 0 here; the top margin
   keeps it off the last accordion row's border. */
.mobile-menu-drawer__footer {
  padding: 0;
  margin-top: 1.1em;
}
.mobile-menu-drawer__utility {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: var(--btn-blush, #fff3ef);
  color: var(--btn-blush-text, #222222) !important;
  text-decoration: none;
  padding: 0.85em var(--gutter);
  margin: 0.6em calc(-1 * var(--gutter)) 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-menu-drawer__utility svg { flex-shrink: 0; }

body.mobile-menu-open { overflow: hidden; }

/* ==========================================================================
   HERO (front page)
   Full-bleed: the slider/video/photo from the BLAQ Theme dashboard
   spans the whole section with no tint or gradient over it — clean
   photography. The copy lives in its own solid card, pinned to the
   right, right-aligned, so it reads as a distinct panel sitting on
   the photo rather than text washed over the top of it.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  /* Fills exactly what's left of the first screen below the header,
     so header + hero together make a true full-page hero instead of
     leaving a strip of the next section visible on load. 100dvh
     (not 100vh) so mobile browsers' address-bar show/hide doesn't
     make the hero taller than the actual visible viewport.
     --site-header-total-height is measured live in main.js since the
     header's real height differs by breakpoint (topbar + nav strip
     on desktop, just the logo/search rows on mobile) — the 90px
     fallback only applies for the instant before that JS runs. */
  min-height: calc(100vh - var(--site-header-total-height, 90px));
  min-height: calc(100dvh - var(--site-header-total-height, 90px));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Two .hero__media blocks are always in the markup — .hero__media--desktop
   and .hero__media--mobile (front-page.php) — and only one is ever shown at
   a time. Desktop wins by default; the max-width: 780px rule further down
   (next to the rest of the hero's mobile-layout overrides) flips it so the
   mobile one shows instead. Pure CSS, so resizing the viewport never needs
   a JS re-render or causes a layout jump. */
.hero__media--mobile { display: none; }
/* Whatever blaq_render_hero_media() outputs (slider, video, or the
   fallback placeholder gallery) fills that layer edge to edge and
   crops to cover it — no tint, no gradient, just the photo. */
.hero__media .hero-slider,
.hero__media .hero-video,
.hero__media .hero__gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.hero__media .hero-slider__slide img,
.hero__media .hero-video video {
  object-fit: cover;
}
/* Fallback placeholder shows only its first image full-bleed here,
   rather than the old two-photo mosaic which doesn't suit a
   background layer. */
.hero__media .hero__gallery { display: block; }
.hero__media .hero__gallery img { display: none; }
.hero__media .hero__gallery img:first-child {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero__row {
  position: relative;
  z-index: 1;
  width: 100%; /* .hero is a flex container, so without an explicit
    width this (also a .container, normally centered via block-layout
    width:auto + margin:auto) shrinks to fit its child's content
    instead of stretching to --content-max — which made "align right"
    only push the card right within that shrunk box, not to the
    container's true right edge. */
  display: flex;
  justify-content: flex-end;
  /* Right edge stays at the container's normal gutter inset (the
     inherited "padding: 0 var(--gutter)" from .container) so the card
     lines up with the header's cart/account icons, which sit inside
     .header-main__inner's own var(--gutter) padding — not flush
     against the true viewport edge. */
}

.hero__content {
  background: rgba(255, 243, 239, 0.7); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--hero-card-bg, #FFF3EF) 70%, transparent); /* Theme colors → Home hero card, at 70% so the photo shows through */
  border-radius: 0; /* square corners */
  padding: clamp(1.75rem, 3vw, 2.5rem);
  width: min(30rem, 100%); /* wide enough that the content (icon +
    3-line heading + paragraph + link) actually fits inside a true
    square at this width — at the previous 26rem it needed more
    height than that width allowed, so the box grew taller than it
    was wide despite aspect-ratio: 1/1, and ended up not square. */
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.hero__content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25em;
}
.hero__content-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.hero__content-title {
  font-family: var(--font-body); /* Montserrat */
  font-size: calc(var(--step-2) * var(--heading-scale, 1));
  line-height: 1.08;
  text-transform: uppercase;
  font-weight: 700; /* Bold */
  letter-spacing: -0.01em;
  max-width: none;
  margin-bottom: 0.6em;
  color: var(--hero-card-title, #222222);
}
.hero__content-link {
  display: inline-block;
  margin-top: 1.25em;
  font-weight: 700;
  color: var(--hero-card-link, var(--brand-red));
  text-decoration: underline;
}
@media (hover: hover) {
  .hero__content-link:hover { color: var(--hero-card-link-hover, var(--brand-red-deep)); }
}
.hero__lede { font-size: var(--step-0); line-height: 1.3; color: var(--hero-card-text, var(--ink-soft)); max-width: 40ch; }

/* --- Hero image slider (Admin → BLAQ Theme → Hero display mode) ---
   Slides are stacked absolutely and cross-faded via opacity so the
   layout never jumps; hero-slider.js just toggles .is-active. The
   5 animation variants below are selected via a modifier class on
   the root (.hero-slider--fade/slide/zoom/slide-up/flip), set from
   the "Transition animation" dropdown on the BLAQ Theme dashboard —
   each just swaps what .hero-slider__slide's resting/active
   transform+opacity are, so the same is-active toggle in JS drives
   all 5 without any script changes. */
.hero-slider__track { position: relative; width: 100%; height: 100%; perspective: 1200px; }
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease, clip-path 0.8s ease, filter 0.8s ease;
}
.hero-slider__slide.is-active { opacity: 1; }

/* Fade (default) — plain cross-fade, no movement. */
.hero-slider--fade .hero-slider__slide { transform: none; }

/* Slide — incoming slide moves in from the right; outgoing moves out
   to the right as it loses .is-active (both slides share the same
   resting position, which keeps this a simple 2-rule variant rather
   than needing per-slide direction tracking in JS). */
.hero-slider--slide .hero-slider__slide { transform: translateX(6%); }
.hero-slider--slide .hero-slider__slide.is-active { transform: translateX(0); }

/* Zoom — incoming slide scales down into place from slightly larger. */
.hero-slider--zoom .hero-slider__slide { transform: scale(1.08); }
.hero-slider--zoom .hero-slider__slide.is-active { transform: scale(1); }

/* Slide up — incoming slide rises into place from just below. */
.hero-slider--slide-up .hero-slider__slide { transform: translateY(4%); }
.hero-slider--slide-up .hero-slider__slide.is-active { transform: translateY(0); }

/* Flip — a light 3D tilt rather than a full cube flip (stacking 4+
   absolutely-positioned slides makes a true flip unreliable), using
   the perspective set on .hero-slider__track above. */
.hero-slider--flip .hero-slider__slide {
  transform: rotateY(12deg) scale(0.96);
  transform-origin: 50% 50%;
}
.hero-slider--flip .hero-slider__slide.is-active { transform: rotateY(0) scale(1); }

/* Slide: left → right — a genuine directional carousel push rather
   than a cosmetic nudge. Both the entering and exiting slide stay
   fully opaque and visible for the whole transition (opacity 1
   throughout, active slide on top via z-index) so it reads as one
   slide physically pushing the other off screen. Needs hero-slider.js
   to tag the outgoing slide with .is-prev (see show() above) so it
   knows which side to exit toward, rather than both slides resting
   in the same spot. */
.hero-slider--slide-ltr .hero-slider__slide,
.hero-slider--slide-rtl .hero-slider__slide {
  opacity: 1;
  z-index: 1;
}
.hero-slider--slide-ltr .hero-slider__slide.is-active,
.hero-slider--slide-rtl .hero-slider__slide.is-active {
  z-index: 2;
}
.hero-slider--slide-ltr .hero-slider__slide { transform: translateX(-100%); }
.hero-slider--slide-ltr .hero-slider__slide.is-prev { transform: translateX(100%); }
.hero-slider--slide-ltr .hero-slider__slide.is-active { transform: translateX(0); }

.hero-slider--slide-rtl .hero-slider__slide { transform: translateX(100%); }
.hero-slider--slide-rtl .hero-slider__slide.is-prev { transform: translateX(-100%); }
.hero-slider--slide-rtl .hero-slider__slide.is-active { transform: translateX(0); }

/* Wipe — a left-to-right reveal via clip-path rather than movement. */
.hero-slider--wipe .hero-slider__slide {
  opacity: 1;
  z-index: 1;
  clip-path: inset(0 100% 0 0);
}
.hero-slider--wipe .hero-slider__slide.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
}

/* Rotate — a light spin-and-scale entrance. */
.hero-slider--rotate .hero-slider__slide { transform: rotate(-6deg) scale(0.92); }
.hero-slider--rotate .hero-slider__slide.is-active { transform: rotate(0) scale(1); }

/* Blur — comes into focus rather than moving. */
.hero-slider--blur .hero-slider__slide { filter: blur(14px); }
.hero-slider--blur .hero-slider__slide.is-active { filter: blur(0); }

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slider__dots {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5em;
  z-index: 2;
}
.hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #D9D9D9;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
@media (hover: hover) {
  .hero-slider__dot:hover { background: var(--brand-red); }
}
.hero-slider__dot.is-active { background: #fff; }

/* --- Hero video (Admin → BLAQ Theme → Hero display mode) --- */
.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-video--embed { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-video--embed .hero-video__poster {
  /* Sits behind the iframe (z-index below, painted first) and fills
     the box the same way the slider images do — this is what shows
     during the moment the embed is still connecting/loading, instead
     of a blank/black flash. Once the iframe's own video paints over
     it, it's fully covered and never needs to be hidden via JS. */
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video--embed iframe {
  z-index: 1;
  /* Sized well past the container on both axes (assuming a 16:9
     source, YouTube/Vimeo's default) and centered, the same trick
     used for full-bleed background video embeds — an iframe can't
     take object-fit, so this oversizes it until it's guaranteed to
     cover the box in both dimensions, then crops via the wrapper's
     overflow: hidden. Matches how the image/self-hosted-video hero
     modes cover their box instead of letterboxing. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16 / 9 */
  min-height: 100%;
  min-width: 177.78%; /* 16 / 9 as a percentage */
  transform: translate(-50%, -50%);
  border: 0;
  /* No hover interaction at all — with controls already off, this is
     what stops YouTube from still showing its title bar / play-pause
     button chrome when the cursor moves over the video. It's a
     decorative background, not something visitors click. */
  pointer-events: none;
}

@media (max-width: 780px) {
  .hero {
    min-height: calc(100vh - var(--site-header-total-height, 140px));
    min-height: calc(100dvh - var(--site-header-total-height, 140px));
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }
  .hero__row { justify-content: center; padding-right: var(--gutter); }
  /* The icon/heading/paragraph/"All Products" card now shows on mobile
     too, sized down to fit a phone. Switch it off from Admin → BLAQ
     Theme → Hero text → "Show on mobile" — that adds
     .hero--no-mobile-card, which hides it so the photo runs full-bleed. */
  /* True square on phones: width is capped, height comes from
     aspect-ratio: 1/1 (set on the base rule), and every inside size is
     in cqw (% of the card's own width) so icon, title, body and link
     scale together and always fit the square. The rem values first are
     the fallback for browsers without container query units. */
  .hero__content {
    width: min(100%, 19rem);
    padding: 1.3rem; /* ~7% of the card; cqw can't be used on the container itself */
    container-type: inline-size;
  }
  .hero__content-icon {
    width: 40px;
    height: 40px;
    width: 13cqw;
    height: 13cqw;
    margin-bottom: 0.7em;
  }
  .hero__content-icon img,
  .hero__content-icon svg { width: 100%; height: 100%; }
  .hero__content-title {
    font-size: 1.2rem;
    font-size: calc(6.6cqw * var(--heading-scale, 1));
    line-height: 1.1;
    margin-bottom: 0.5em;
  }
  .hero__lede {
    font-size: 0.9rem;
    font-size: 4.8cqw;
    line-height: 1.3;
  }
  .hero__content-link {
    margin-top: 0.8em;
    font-size: 0.95rem;
    font-size: 5cqw;
  }
  .hero--no-mobile-card .hero__content { display: none; }
  /* Swap in the mobile hero (Admin → BLAQ Theme → Hero display mode —
     Mobile), a vertical 4:5 crop instead of the desktop hero's ~9:11
     crop — see .hero__media--mobile above. */
  .hero__media--desktop { display: none; }
  .hero__media--mobile { display: block; }
}

/* ==========================================================================
   SECTIONS / CATEGORY STRIP
   ========================================================================== */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5em;
  margin-bottom: 1.75em;
  padding-bottom: 1em;
}
.section__head a { font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--brand-red); transition: color 0.15s ease; }
@media (hover: hover) {
  .section__head a:hover { color: var(--brand-red-deep); }
}
.section__head h2 { font-size: calc(30px * var(--heading-scale, 1)); }
@media (max-width: 480px) {
  .section__head h2 { font-size: calc(22px * var(--heading-scale, 1)); }
}

/* Title centered, "View all →" (or any second element) stacked
   underneath and centered too — used by the blog section and the
   customer reviews section instead of the usual title-left/link-right
   layout above. */
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5em;
}

/* A white bordered card wrapping a per-category product section (header +
   grid together), sitting on top of the page background. */
.category-section {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.category-section .section__head { margin-bottom: 1.5em; }

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.category-strip a {
  background: var(--paper-raised);
  padding: 1.75em 1.25em;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  text-align: center;
}
@media (hover: hover) {
  .category-strip a:hover { background: var(--marigold); color: var(--ink); }
}

/* --- Scrolling marquee bar (homepage, below hero) ---
   4 identical copies of the item list sit side by side in
   .marquee__track (see blaq_render_marquee() in functions.php) —
   enough that even on very wide monitors there's always a full set of
   items filling the screen, so the loop never shows a gap of bare
   black before repeating. Animating the track from translateX(0) to
   translateX(-25%) moves exactly one full copy's width off-screen, so
   the moment it resets to 0 the visible content is identical — a
   seamless, gapless, genuinely-never-ending loop with no JS required. */
.marquee {
  background: var(--brand-black);
  overflow: hidden;
  white-space: nowrap;
  /* Same fixed height as the nav-strip bar above (see --bar-height /
     .nav-strip__inner) so the two bars visually match. Flex + center
     so the scrolling text sits vertically centered in that height
     regardless of its own padding. */
  display: flex;
  align-items: center;
  min-height: var(--bar-height);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: blaq-marquee 56s linear infinite;
}
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .marquee:hover .marquee__track {
  animation-play-state: paused;
}
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
.marquee__item {
  display: inline-block;
  /* Vertical padding kept modest (and line-height explicit) so this
     stays shorter than --bar-height — same reasoning as .primary-nav a
     above: the shared bar-height variable governs the bar's actual
     height, this just centers inside it. Generous horizontal padding
     replaces the old bullet-dot separator — items are told apart by
     whitespace alone. */
  padding: 0.4em 2.5em;
  line-height: 1.3;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
@keyframes blaq-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

/* --- Category icon circles (homepage "Shop by category") --- */
.section--category-circles {
  padding-top: clamp(5rem, 9vw, 7rem);
  /* No bottom padding here — the "Recently added" section right
     after it already adds its own top padding, so keeping both
     doubled up the gap between the circles grid and that heading. */
  padding-bottom: 0;
  /* .section's own base rule ("padding: clamp(...) 0") is a shorthand,
     so its trailing 0 sets left/right padding too — and since this
     selector has the same specificity as .section but loads later, it
     wins the cascade outright, silently zeroing out the horizontal
     gutter that .container was supposed to contribute. That let the
     circles grid run edge-to-edge, clipping labels like "WATERCOLOR"
     and "ACCESSORIES" flush against the screen on mobile. Restoring
     it explicitly here (rather than reordering the stylesheet) keeps
     the fix local to the section that actually needs it. */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.category-circles {
  display: grid;
  /* Column counts come from the BLAQ Theme admin screen (Category
     circles section) as inline custom properties on this element;
     the numbers here are just the fallback if that's ever missing. */
  grid-template-columns: repeat(var(--cat-cols-desktop, 8), 1fr);
  gap: 3em 1.5em;
}
.category-circles__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  min-width: 0;
}
.category-circles__icon {
  /* --cat-circle-preferred and --cat-circle-max come from the BLAQ
     Theme admin screen (Category circles → Icon size) as inline custom
     properties on .category-circles.
     Auto mode: preferred is a % of the icon's own grid column, so
     since the grid's columns are equal (1fr) fractions of the row,
     fewer columns (wider column) naturally makes bigger circles and
     more columns (narrower column) naturally makes smaller ones —
     no separate per-breakpoint math needed. --cat-circle-max still
     caps how big that's ever allowed to get.
     Fixed mode: preferred is pinned to that same max, in px, so the
     size stops tracking column width and stays constant.
     78%/170px are just the fallbacks if either is ever missing. */
  --circle-size: clamp(60px, var(--cat-circle-preferred, 78%), var(--cat-circle-max, 170px)) !important;
  width: var(--circle-size) !important;
  min-width: var(--circle-size) !important;
  max-width: var(--circle-size) !important;
  /* Height is intentionally NOT set from --circle-size: that clamp()
     contains a % (from the admin "Icon size" option), and % resolves
     against a different basis for width vs. height. .category-circles__item
     has no explicit height, so a %-based height falls back to being
     driven by content instead of matching the width — that's what was
     producing the egg/oval icons instead of circles. aspect-ratio locks
     height to the (reliably-computed) width instead. */
  aspect-ratio: 1 / 1;
  height: auto !important;
  border-radius: 50%;
  background: var(--cat-circle-bg, var(--paper-raised));
  --glyph-size: var(--cat-glyph-desktop, 100%);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transform-origin: 50% 50%;
  /* No will-change / backface-visibility here: they promote the circle to
     its own GPU layer, which the browser rasterizes once and can then
     resample (soft/blurry SVG line-art), especially at fractional sizes
     from the % based circle width. Without them the SVG is re-rendered
     crisp at its exact on-screen size. */
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.12s ease-out,
              background 0.12s ease-out;
}
.category-circles__icon img {
  width: var(--glyph-size, 100%) !important;
  height: var(--glyph-size, 100%) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  transform: none !important;
}
/* Icon recoloured from Admin > Category circles > Colors: the image is used as a mask. */
.category-circles__glyph {
  display: block;
  width: var(--glyph-size, 100%);
  height: var(--glyph-size, 100%);
  background-color: var(--cat-icon-color, currentColor);
  -webkit-mask: var(--glyph-url) center / contain no-repeat;
  mask: var(--glyph-url) center / contain no-repeat;
}
@media (hover: hover) {
  .category-circles__item:hover .category-circles__icon {
  box-shadow: none;
  background: var(--cat-circle-bg, var(--paper-raised));
  transform: scale(1.07);
}
}
.category-circles__item:active .category-circles__icon {
  transform: scale(0.96);
  transition-duration: 0.06s;
}
.category-circles__label {
  transition: color 0.12s ease-out;
}
@media (hover: hover) {
  .category-circles__item:hover .category-circles__label {
  color: var(--brand-red);
}
}
.category-circles__initial {
  transition: color 0.12s ease-out;
}
@media (hover: hover) {
  .category-circles__item:hover .category-circles__initial {
  color: var(--ink);
}
}
.category-circles__initial {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--cat-icon-color, var(--ink));
  text-transform: uppercase;
}
.category-circles__label {
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 1024px) {
  .category-circles {
    grid-template-columns: repeat(var(--cat-cols-mobile, 4), 1fr);
    /* Tighter gap than the desktop 1.5em column-gap — with the section's
       side gutters now restored (see .section--category-circles above),
       4 columns need a smaller gap to leave enough room per column for
       the circle plus its label instead of crowding/clipping text. */
    gap: 2.25em 0.75em;
  }
  .category-circles__label {
    /* Slightly smaller than the shared --step--1 token used everywhere
       else, just for this grid on mobile — with 4 narrow columns the
       label can otherwise feel cramped/large next to the icon. */
    font-size: 0.65rem;
    letter-spacing: 0.01em;
  }
  /* Icon size set independently for mobile (Admin → BLAQ Theme →
     Category circles → Icon size — Mobile) — same clamp() approach as
     the desktop rule above, just reading the "-mobile" custom
     properties instead so a phone-width visitor isn't stuck with a
     size tuned for the wider desktop column count. Needs !important
     here too, to win over the desktop rule's !important at equal
     selector specificity. */
  .category-circles__icon {
    --circle-size: clamp(60px, var(--cat-circle-preferred-mobile, 78%), var(--cat-circle-max-mobile, 110px)) !important;
    --glyph-size: var(--cat-glyph-mobile, 100%);
  }
}

/* Expand/collapse wrapper (Admin → BLAQ Theme → Category circles →
   "Expand / collapse"). The grid's own max-height is set inline by
   assets/js/category-circles-collapse.js — plain CSS has no way to
   clip to "2 rows" when the column count is an arbitrary admin-set
   number, so this rule only supplies the transition + overflow guard;
   the actual pixel height comes from JS. If JS never runs, no inline
   max-height is ever set and every category just shows, same as the
   feature being off — see the PHP doc comment on
   blaq_render_category_circles(). */
.category-circles-wrap.is-collapsible .category-circles {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
  will-change: max-height;
  overflow-anchor: none; /* stops the browser nudging the scroll position while the grid resizes */
  /* Breathing room inside the clip box so a circle that grows on hover
     (scale 1.07) isn't cut off at the top / sides / bottom edge. The
     negative margin cancels the padding, so the layout doesn't move. */
  padding: 14px;
  margin: -14px;
}
.category-circles-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  width: auto;
  margin: 2em auto 0;
  padding: 0.55em 1.4em;
  background: none !important;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink) !important;
  font-family: var(--font-body);
  /* Matched to .section__head a ("View all →") rather than kept as its
     own bigger, bolder, uppercase+underlined treatment — same size,
     weight and un-decorated style as every other "see more"-style link
     on the homepage. */
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  cursor: pointer;
  touch-action: manipulation;              /* no 300 ms tap delay / double-tap zoom wait */
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap */
  user-select: none;
  -webkit-user-select: none;
}
.category-circles-wrap { text-align: center; }
/* display:inline-flex above beats the [hidden] attribute's UA display:none,
   so the JS (which sets btn.hidden when everything already fits in
   2 rows desktop / 3 rows mobile) was never actually hiding the button. */
.category-circles-expand[hidden] { display: none !important; }
/* Hover fill only on devices that really hover — on a phone :hover sticks
   after a tap and left the button stuck black. Touch gets a quick press
   effect instead. */
@media (hover: hover) {
  .category-circles-expand:hover {
    color: #fff !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
  }
}
.category-circles-expand:active {
  color: #fff !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  transform: scale(0.96) !important;
}
@media (prefers-reduced-motion: reduce) {
  .category-circles-wrap.is-collapsible .category-circles { transition: none; }
}
.category-circles-expand__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.category-circles-wrap.is-expanded .category-circles-expand__arrow {
  transform: rotate(180deg);
}


/* --- Pastel category promo tiles --- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
}
.category-tiles__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.9em;
  padding: 2.5em 2em;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  min-height: 160px;
}
.category-tiles__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
}
.category-tiles__cta {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   PROMOTIONAL BANNER SECTION (homepage, "Home page sections")
   1–4 photo tiles in a row — column count and every tile's image/title/
   subtitle/link configured from Admin → BLAQ Theme → Home page sections.
   ========================================================================== */
.promo-banner-section__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: calc(var(--step-2) * var(--heading-scale, 1));
  font-weight: 700;
  margin: 0 0 1.2em;
}
.promo-banner-grid {
  display: grid;
  grid-template-columns: repeat(var(--banner-cols, 2), 1fr);
  gap: 1.5em;
}
.promo-banner-item {
  position: relative;
  display: block;
  /* --banner-height is only printed on .promo-banner-grid when the
     admin sets a fixed tile height. Unset, height stays auto and the
     16:9 aspect-ratio below determines it instead; once height is a
     definite length, aspect-ratio no longer has anything left to fill
     in (width's already definite from the grid), so the two never
     fight over the tile's size. */
  height: var(--banner-height, auto);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--charcoal);
  text-decoration: none;
  /* Tiles with no configured image still show as a plain charcoal
     card with text on top (see blaq_render_banner_section()), so a
     text-only promo isn't blocked on having a photo. */
}
/* The photo lives on its own layer, separate from .promo-banner-item
   itself, so hover can affect just the image without dragging the
   overlaid text along with it. */
.promo-banner-item__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.15s ease-out;
}
/* Hover effect for the whole tile (image + button together) —
   admin-picked per banner row via the "Button hover effect" field on
   Admin → BLAQ Theme → Home page sections, applied as a class on
   .promo-banner-grid (see blaq_render_banner_section()) so one choice
   covers every tile in that row, not just its button. */
a.promo-banner-item {
  cursor: pointer;
}
/* Bottom-up gradient removed per request — text legibility over
   bright/light photos now relies on the text-shadow on the title/
   subtitle below instead of dimming the image. */
.promo-banner-item__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.1em, 2.5vw, 1.8em);
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.promo-banner-item__title {
  font-family: var(--font-display);
  font-size: calc(var(--step-2) * var(--heading-scale, 1));
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.promo-banner-item__subtitle {
  font-size: var(--step--1);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
/* Optional per-tile button (blaq_render_banner_section()'s
   button_text) — decorative, sits inside the same click area as the
   rest of the tile rather than being its own link. Styled to match
   the site's other CTA buttons (cart drawer, category tiles). */
.promo-banner-item__button {
  display: inline-block;
  box-sizing: border-box;
  width: 25%;
  min-width: 110px;
  text-align: center;
  margin-top: 0.3em;
  padding: 0.65em 1.4em;
  border-radius: var(--radius-sm, 4px);
  background: var(--brand-red);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: none;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}
/* Two independent hover controls, each admin-picked per banner row:
   "Tile hover effect" (this block) touches only the photo, and
   "Button hover effect" (further below) touches only the button —
   so a tile can e.g. scale on hover while its button stays put, or
   vice versa. */

/* darken (default, and this theme's original behavior) — photo dips
   in brightness. */
.promo-banner-grid--hover-darken .promo-banner-item:focus-visible .promo-banner-item__image {
  filter: brightness(0.82);
}
@media (hover: hover) {
  .promo-banner-grid--hover-darken .promo-banner-item:hover .promo-banner-item__image {
  filter: brightness(0.82);
}
}

/* scale — photo zooms in slightly, contained by the tile's own
   overflow:hidden so it never spills into a neighboring tile. */
.promo-banner-grid--hover-scale .promo-banner-item__image {
  transition: filter 0.15s ease-out, transform 0.25s ease-out;
}
.promo-banner-grid--hover-scale .promo-banner-item:focus-visible .promo-banner-item__image {
  transform: scale(1.06);
}
@media (hover: hover) {
  .promo-banner-grid--hover-scale .promo-banner-item:hover .promo-banner-item__image {
  transform: scale(1.06);
}
}

/* underline — an accent bar slides in along the tile's full bottom
   edge. */
.promo-banner-grid--hover-underline .promo-banner-item {
  position: relative;
}
.promo-banner-grid--hover-underline .promo-banner-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out;
}
.promo-banner-grid--hover-underline .promo-banner-item:focus-visible::after {
  transform: scaleX(1);
}
@media (hover: hover) {
  .promo-banner-grid--hover-underline .promo-banner-item:hover::after {
  transform: scaleX(1);
}
}

/* none — the photo stays exactly as-is on hover (no rules needed —
   this is what happens when none of the blocks above match). */

/* Button hover effect — separate from the tile effect above, applies
   to .promo-banner-item__button only. */
.promo-banner-grid--button-hover-darken .promo-banner-item:focus-visible .promo-banner-item__button {
  background: var(--brand-red-deep);
}
@media (hover: hover) {
  .promo-banner-grid--button-hover-darken .promo-banner-item:hover .promo-banner-item__button {
  background: var(--brand-red-deep);
}
}

.promo-banner-grid--button-hover-scale .promo-banner-item__button {
  transform-origin: center;
}
.promo-banner-grid--button-hover-scale .promo-banner-item:focus-visible .promo-banner-item__button {
  transform: scale(1.06);
  background: var(--brand-red-deep);
}
@media (hover: hover) {
  .promo-banner-grid--button-hover-scale .promo-banner-item:hover .promo-banner-item__button {
  transform: scale(1.06);
  background: var(--brand-red-deep);
}
}

.promo-banner-grid--button-hover-underline .promo-banner-item__button {
  position: relative;
}
.promo-banner-grid--button-hover-underline .promo-banner-item__button::after {
  content: '';
  position: absolute;
  left: 1.4em;
  right: 1.4em;
  bottom: 0.5em;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease-out;
}
.promo-banner-grid--button-hover-underline .promo-banner-item:focus-visible .promo-banner-item__button::after {
  transform: scaleX(1);
}
@media (hover: hover) {
  .promo-banner-grid--button-hover-underline .promo-banner-item:hover .promo-banner-item__button::after {
  transform: scaleX(1);
}
}

/* button-hover-none — button stays exactly as-is on hover (no rules
   needed). */

/* Below tablet width, every banner layout collapses to a single
   stacked column regardless of the configured desktop column count —
   3–4 tiles squeezed side by side on a phone screen stop being
   legible long before the grid itself would break. Height stays
   admin-controlled even in this stacked layout; --banner-height
   isn't touched here. */
@media (max-width: 700px) {
  .promo-banner-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VIDEO REEL SECTION (homepage, "Admired By Many")
   Configured entirely from Admin → BLAQ Theme → Video Reel.
   ========================================================================== */
.reel-section__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: calc(var(--step-2) * var(--heading-scale, 1)); /* a bit bigger */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.4em;
}
.section--reel {
  /* Less top padding than the theme's default .section spacing, so
     the title sits roughly centered in the whitespace between this
     section and the one above it, instead of hugging the grid below. */
  padding-top: clamp(0.5rem, 1.5vw, 1.1rem);
  /* .section's own base rule ("padding: clamp(...) 0") is a shorthand,
     so its trailing 0 sets left/right padding too — and since this
     selector has the same specificity as .section but loads later, it
     wins the cascade outright, silently zeroing out the horizontal
     gutter that .container was supposed to contribute. That let the
     reel cards (and the peeking edge of whichever card sits at the
     scroll boundary) run flush to the screen edge instead of stopping
     short of it. Restoring it explicitly here, same fix as
     .section--category-circles above. */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.reel-grid {
  display: flex;
  /* Cards keep a fixed, comfortable width (set on .reel-card below)
     instead of being divided evenly across however many tiles are
     configured — that equal-columns approach made every card shrink
     once a 5th tile was added. Anything that doesn't fit in the
     visible row is reached by mouse drag (assets/js/reel-slider.js)
     or, on touch, a plain finger swipe — overflow-x: auto already
     gives us that natively. */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  align-items: start;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: grab;
  /* Hide the scrollbar itself (Firefox + WebKit) — the row still
     scrolls, it just doesn't need a visible bar to look like a reel. */
  scrollbar-width: none;
}
.reel-grid::-webkit-scrollbar { display: none; }
.reel-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
/* Without this, starting a mouse-down on a photo/video inside a card
   kicks off the browser's own "drag this image" ghost instead of our
   scroll-drag in reel-slider.js — the two fight and neither wins. */
.reel-grid img,
.reel-grid video,
.reel-grid a {
  -webkit-user-drag: none;
  user-drag: none;
}
.reel-grid.is-dragging,
.reel-grid.is-dragging * {
  user-select: none; /* avoid selecting card text while dragging */
}
.reel-card {
  position: relative;
  background: var(--charcoal);
  flex: 0 0 auto;
  width: 22%; /* ~4 cards visible at once on desktop, with the next
                 one peeking at the edge as a hint that it scrolls */
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden; /* clips the media/overlay/cart corners to match */
}
/* The video/photo lives in its own wrapper so its 9:16 box stays exactly
   9:16. Add to Cart is a separate, normal-flow block that comes AFTER
   the wrapper entirely — nothing overlaps the media itself. */
.reel-card__media-wrap {
  position: relative;
}
/* 9:16 height via the classic padding-percentage technique instead of the
   `aspect-ratio` property: `aspect-ratio` on a grid item can still get
   stretched taller than that ratio by the grid's own row-sizing in some
   browsers. A real in-flow spacer sized purely from the wrapper's own
   width sidesteps that entirely and can't be stretched. */
.reel-card__media-wrap::before {
  content: '';
  display: block;
  padding-bottom: 177.78%; /* 16 / 9 */
}
.reel-card__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--charcoal);
}
.reel-card__media img,
.reel-card__media video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Show the full source, uncropped. The 9:16 box
                           itself is fixed by .reel-card__media-wrap::before
                           above, so a source that isn't natively 9:16
                           letterboxes on the charcoal background instead
                           of being cropped/zoomed to fill it. */
  display: block;
}
/* YouTube-link tiles.
   YouTube: a silent looping iframe sits underneath, and the tile's own
   link is transparent on top of it. The iframe ignores the pointer so a
   click or a mouse-drag lands on the link (quick view / drag-scroll),
   exactly like a photo or uploaded-video tile. */
.reel-card__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--charcoal);
}
.reel-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.reel-card__media--live { background: transparent; }
.reel-card__label {
  position: absolute;
  right: 0.9em;
  top: 0.9em;
  left: 0.9em;
  text-align: right;
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step--1);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  pointer-events: none;
}
/* Tint covers the full media (top to bottom), not just the bottom strip,
   so the color/opacity picked in Admin → BLAQ Theme → Video Reel tints
   the whole video/photo. The name + price footer still sits at the
   bottom — it's just flex-aligned there now instead of the overlay
   itself being bottom-only. No background by default — background-color/
   opacity is set inline per-tile (see blaq_render_reel_section()). */
.reel-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0.6em 0.8em;
  pointer-events: none; /* the tint now spans the full tile, so it must not
                            swallow clicks meant for the video link beneath
                            it — only the footer link re-enables clicks */
}
.reel-card__footer {
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: 100%;
  text-decoration: none;
  color: #fff;
  pointer-events: auto;
}
.reel-card__thumb {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.5);
}
.reel-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reel-card__name {
  font-size: var(--step--1);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-card__price {
  font-size: var(--step--1);
  color: #fff;
  font-weight: 700;
  opacity: 0.95;
}
.reel-card__cart {
  padding: 0;
  background: var(--brand-black);
}
.reel-card__cart .button,
.reel-card__cart a.button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--brand-black) !important;
  color: #fff !important;
  border: none;
  padding: 0.75em 1em;
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none !important; /* this card isn't inside a
    .woocommerce wrapper, so the theme's usual underline-reset for
    a.button doesn't reach it — set here instead */
  border-radius: 2px;
}
@media (hover: hover) {
  .reel-card__cart .button:hover,
.reel-card__cart a.button:hover {
  background: var(--brand-red) !important;
}
}
/* WooCommerce's default AJAX add-to-cart inserts a "View cart" link
   next to the button once the item's added, expanding the row — hidden
   everywhere it can appear (reel strip tiles and the main shop grid). */
.added_to_cart {
  display: none !important;
}
.reel-card__cart .add_to_cart_button.added::after {
  content: "✓";
  margin-left: 0.5em;
  font-weight: 700;
}
@media (max-width: 900px) {
  .reel-card { width: 32%; } /* ~3 visible, next one peeking */
}
@media (max-width: 600px) {
  .reel-card { width: 78%; } /* 1 card fully visible, next one peeking
                                 about a third of its width — was 46%
                                 (~2 cards + a peek), too cramped to
                                 read one video/photo properly */
}

/* Footer cart row: one full-width Add to Cart button. (Previously this
   row also held a slim chevron toggle that opened a quick-view modal
   side by side with it — removed in favour of a single button.) */
.reel-card__soldout {
  width: 100%;
  background: var(--brand-black) !important;
  color: #fff !important;
  border: none;
  padding: 0.75em 1em;
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 2px;
  cursor: not-allowed;
  opacity: 0.85;
}

/* ==========================================================================
   BLOG SECTION (homepage "From the Blog" carousel)
   See blaq_render_blog_section() in functions.php and
   assets/js/blog-carousel.js. One scrollable row of 5:4-image cards —
   cards-per-view follow the product grid (ul.products below: 4 across,
   3 at <=1100px, 2 at <=780px) down to a single card on phones
   (<=480px) — and it moves only when the visitor
   clicks an arrow or scrolls/swipes. No autoplay.
   ========================================================================== */
.blog-carousel {
  /* Cards sit flush against each other — no gap. Must stay "0px" (not a
     bare 0): --blog-gap is subtracted from 100% inside calc() below,
     and calc() rejects a unitless 0 next to a percentage. */
  --blog-gap: 0px;
  --blog-per-view: 4;
  position: relative;
}
.blog-carousel__track {
  display: flex;
  gap: var(--blog-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Tiny block padding so a focused card's outline isn't clipped by
     the overflow this row needs for scrolling. */
  padding: 2px 0;
}
.blog-carousel__track::-webkit-scrollbar { display: none; }
/* Click-and-drag with the mouse (see blog-carousel.js). */
.blog-carousel__track { cursor: grab; }
.blog-carousel.is-dragging .blog-carousel__track {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.blog-carousel__track img { -webkit-user-drag: none; }
.blog-carousel__slide {
  /* Exactly --blog-per-view cards fit the row, with the gaps between
     them accounted for, so a "page" of the carousel is a clean set of
     whole cards. */
  flex: 0 0 calc((100% - (var(--blog-per-view) - 1) * var(--blog-gap)) / var(--blog-per-view));
  min-width: 0;
  scroll-snap-align: start;
}
/* Flush cards: neighbouring borders would otherwise double up into a 2px
   line, so every card drops its left border and relies on the previous
   card's right one; the last card drops its right border too (nothing
   follows it), and the corner rounding goes since the cards now read as
   one continuous band. The two-class selector is needed to out-rank the
   plain .blog-card rule, which loads later. */
.blog-carousel .blog-carousel__slide {
  /* The card's own border is off: the border is drawn by the ::after
     below instead, so it sits ABOVE the photo and the dark text panel
     rather than beside them (where the panel's tint hid it). */
  border: 0;
  border-radius: 0;
}
.blog-carousel .blog-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  border: 1px solid var(--line);
  /* Cards sit flush, so the left border is dropped (the previous card's
     right border serves) to avoid a doubled 2px line between them. */
  border-left: 0;
  pointer-events: none;
}
.blog-carousel .blog-carousel__slide:first-child .blog-card__link::after {
  border-left: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .blog-carousel { --blog-per-view: 3; }
}
@media (max-width: 780px) {
  .blog-carousel { --blog-per-view: 2; }
}
@media (max-width: 480px) {
  /* Phones: 1 full card + a half-card peeking at the edge, rather than
     2 flush full cards — the partial second card is a visual hint that
     the row scrolls, which 2 evenly-flush cards didn't give. With
     --blog-gap:0 the flex-basis math (100% / --blog-per-view) at 1.5
     makes each card 66.67% wide, so exactly half of the second card
     shows in the remaining 33.33% of the row. */
  .blog-carousel { --blog-per-view: 1.5; }
}


/* PREV / NEXT buttons — small flat text tabs sitting on the row's left
   and right edges, vertically centred on the card photos.
   --blog-nav-top (set by blog-carousel.js) is the photo's centre line;
   30% is only the fallback before JS runs. Centred with a negative
   margin-top rather than transform: translateY(-50%) on purpose — the
   site-wide `button:active { transform: translateY(1px) }` rule
   (see the top of this file) out-ranks a single-class selector and
   would replace that transform on press, making the button jump down
   by half its own height. Colours use !important for the same reason
   the global `button` rule does (it sets color with !important). */
.blog-carousel__nav {
  position: absolute;
  top: var(--blog-nav-top, 30%);
  margin-top: -15px;
  z-index: 2;
  height: 30px;
  box-sizing: border-box;
  padding: 0 0.8em 0 0.95em;
  /* Same look as the shop's "Add to cart" buttons: blush fill, soft
     border, dark text — turning red on hover. */
  border: 1px solid #E5CFC6;
  border-radius: 2px;
  background: #fff3ef;
  color: var(--btn-blush-text) !important;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, visibility 0.15s ease;
}
.blog-carousel__nav:focus-visible {
  background: #dd183b;
  border-color: #dd183b;
  color: #fff !important;
}
@media (hover: hover) {
  .blog-carousel__nav:hover {
  background: #dd183b;
  border-color: #dd183b;
  color: #fff !important;
}
}
.blog-carousel__nav.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.blog-carousel__nav--prev { left: 0.9rem; }
.blog-carousel__nav--next { right: 0.9rem; }
/* Phones: a touch smaller and closer to the card edge. Sits AFTER the
   base .blog-carousel__nav rules on purpose — an earlier version put
   the phone override above them, and the base rule (same specificity,
   later in the file) silently won. */
@media (max-width: 480px) {
  .blog-carousel__nav {
    height: 28px;
    margin-top: -14px;
    font-size: 0.64rem;
  }
  .blog-carousel__nav--prev { left: 0.6rem; }
  .blog-carousel__nav--next { right: 0.6rem; }
}

/* Full-width section: the carousel runs edge to edge across the page
   instead of stopping at the .container's max-width. Same approach as
   .section--reviews below — max-width: none lifts the container cap, and
   the side padding .section's shorthand (`padding: clamp(...) 0`)
   already zeroes stays zero, so the cards reach the screen edges. The
   heading is the only thing that still needs breathing room, so it gets
   the gutter back on its own (it's centred, so it never needed the
   container's width — just space from the edge on a narrow screen). */
.section--blog,
.section.container.section--blog {
  /* The doubled selector out-ranks `.section.container` (which restores the
     gutter) so the carousel really does reach both screen edges. */
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section--blog > .section__head {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.blog-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Text-over-photo card: the 5:4 photo IS the card, and the date / title /
   excerpt / "Read more" sit on top of it along the bottom-left, over a
   dark fade so they stay legible on any photo (light or dark). The
   body is positioned against .blog-card__link, which is why that
   needs position: relative. */
.blog-card__link {
  display: block;
  position: relative;
  text-decoration: none !important;
  color: inherit;
}
.blog-card__image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.blog-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Two columns: date / title / excerpt stack on the left, and "Read
     more" sits on the right, lined up with the bottom line of the text. */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: repeat(3, auto);
  column-gap: 1em;
  row-gap: 0;
  align-items: end;
  /* Compact top padding keeps the flat black panel (10% opacity) short —
     just enough room around the text. */
  padding: 1.2em 1.4em 1.3em;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}
.blog-card__date {
  /* Same size and sentence-case style as the review card date
     (.review-card__date), just in white over the photo. */
  font-size: var(--step--1);
  color: #fff;
  grid-column: 1;
  margin-bottom: 0.4em;
}
.blog-card__title {
  grid-column: 1;
  /* Blog titles use the heading font (Sora by default) — Admin → BLAQ Theme → Typography. */
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: calc(1.5rem * var(--heading-scale, 1));
  line-height: 1.25;
  color: #fff;
  /* Clamped to 2 lines (like the excerpt below) so a long title can't
     grow the text block up over too much of the photo. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.92);
  grid-column: 1;
  margin-top: 0.4em;
  line-height: 1.5;
  /* Clamp to 2 lines so a long excerpt can't cover the photo. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__readmore {
  font-size: var(--step--1);
  font-weight: 600;
  color: #fff;
  /* Right column, spanning all rows and pinned to the bottom so it lines
     up with the last line of text on the left. */
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  white-space: nowrap;
}
@media (hover: hover) {
  .blog-card:hover .blog-card__readmore { text-decoration: underline; }
}
/* Cards are narrow at every width now that phones (≤480px) also show
   2-up instead of one full-width card — the excerpt would cover too
   much of a small photo at any of these sizes, so it's dropped
   everywhere except full desktop (4-up), which has room for it. */
@media (max-width: 1100px) {
  .blog-card__excerpt { display: none; }
}

/* Each grid cell (.blog-slot) can hold more than one card stacked on
   top of each other — see the round-robin split in
   blaq_render_customer_reviews_section() and assets/js/blog-grid-slider.js
   (the blog section itself is a manual carousel now, see .blog-carousel
   above; this stacking is only used by the reviews grid). Only
   the .is-active one sits in normal flow (so the slot's height
   follows whichever post is currently showing); the rest are
   absolutely layered underneath at opacity 0, ready to cross-fade in
   when their turn comes. A slot with only one post (small blogs, or
   any leftover slot once the pool doesn't divide evenly by 4) never
   gets the .blog-slide class at all — see blaq_render_customer_reviews_section()'s
   $is_animated flag — so it's just a plain static card with none of
   this stacking. */
.blog-slot {
  position: relative;
}
.blog-slot .blog-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.blog-slot .blog-slide.is-active {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   CUSTOMER REVIEWS SECTION (homepage "Customer Reviews" grid)
   Same grid mechanism as the blog grid above — a fixed grid of slots,
   each holding one or more reviews round-robin split (see
   blaq_render_customer_reviews_section() in functions.php), cross-fading
   in place via the shared .blog-slot/.blog-slide classes and
   assets/js/blog-grid-slider.js (which already looks for any
   [data-blaq-blog-grid] on the page, not just the blog section's) —
   same 4-column sizing/breakpoints as the blog carousel so the two sections
   read as the same visual language.
   ========================================================================== */
/* Full-bleed white band behind the section. The <section> element
   also carries the .container class (see blaq_render_customer_reviews_section()
   in functions.php), which is what was capping the white background
   at the container's max-width with pink showing on either side —
   so here the section is un-constrained back to full page width, and
   that same max-width/centering is re-applied to its direct children
   instead, keeping the heading and card grid lined up exactly as
   before while the white background now runs edge to edge.
   No side padding on the children — .container's own horizontal
   padding never actually applies here (the later, equal-specificity
   .section rule's shorthand `padding: ... 0` zeroes it out for every
   section on the site, blog included), so adding it back just for
   reviews would inset it further than the blog grid above it and
   break the edge alignment between the two sections. */
.section--reviews {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  /* No white background and no top/bottom border lines: the section sits
     on the page's own background. */
  background: none;
  border: 0;
}
.section--reviews > .section__head,
.section--reviews > .review-slider {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  /* Same gutter restoration the blog heading gets — the full-bleed white
     background stays edge-to-edge (that's .section--reviews' own
     zeroed padding, kept intentionally), but these children need the
     gutter back or their cards run flush to the screen edge on
     mobile, same bug as blog had. */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
/* --- Customer reviews slider -------------------------------------------
   4 cards on desktop, 3 / 2 / 1 on smaller screens. The track is a native
   scroll-snap strip; assets/js/review-slider.js drives the arrows, counter,
   progress bar and autoplay. Fonts: Sora (name, badge, counter) and
   Montserrat (everything else) only. */
.review-slider {
  --review-gap: clamp(1rem, 1.6vw, 1.4rem);
  --review-cols: 4;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.review-track {
  display: flex;
  gap: var(--review-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* room for the hover lift + shadow so they aren't clipped */
  padding: 12px 2px 28px;
  margin: -12px -2px -8px;
}
.review-track::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) { .review-slider { --review-cols: 3; } }
@media (max-width: 780px)  { .review-slider { --review-cols: 2; } }
@media (max-width: 480px)  { .review-slider { --review-cols: 1.15; } }

.review-card {
  flex: 0 0 calc((100% - (var(--review-cols) - 1) * var(--review-gap)) / var(--review-cols));
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(20, 15, 10, 0.06);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
@media (hover: hover) {
  .review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(20, 15, 10, 0.12);
}
}
.review-card__media {
  position: relative;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: #eee;
}
.review-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
  .review-card:hover .review-card__media img { transform: scale(1.045); }
}
.review-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 99px;
  background: rgba(255, 253, 249, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
/* No photo: the badge sits at the top of the text block instead. */
.review-card__badge--inline {
  position: static;
  align-self: flex-start;
  margin-bottom: 14px;
  background: #f1ece4;
}
.review-card__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
}
.review-card__quote-mark {
  position: absolute;
  right: 20px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1;
  color: #e8e2d9;
  pointer-events: none;
}
.review-card__text {
  margin: 0 0 24px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  line-height: 1.65;
  color: #393632;
  text-align: center;
  /* Long reviews are clipped so every card stays the same height. */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.5em;
}
.review-card__meta {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e9e4dc;
}
.review-card__who { min-width: 0; }
.review-card__author {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-card__date {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: #77736d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-card__stars {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #e5dfd6;
}
.review-card__star.is-filled { color: var(--brand-red); }

.review-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.review-counter {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #77736d;
}
.review-counter b { color: var(--ink); }
.review-buttons { display: flex; gap: 8px; }
/* The site-wide `button` rule sets color: var(--paper) !important plus
   padding — that made the old arrows paper-on-paper (invisible). These
   rules are scoped and !important on purpose to beat it. */
.review-slider .review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFDF9;
  color: var(--ink) !important;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.review-slider .review-btn svg { display: block; width: 18px; height: 18px; pointer-events: none; }
.review-slider .review-btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
  transform: translateY(-2px);
}
@media (hover: hover) {
  .review-slider .review-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
  transform: translateY(-2px);
}
}
.review-progress {
  height: 2px;
  margin-top: 22px;
  background: #e5e0d8;
  overflow: hidden;
}
.review-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand-red);
  transition: width 0.5s ease;
}
/* Everything fits on screen: nothing to page through. */
.review-slider.is-static .review-controls,
.review-slider.is-static .review-progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .review-card,
  .review-card__media img,
  .review-progress span { transition: none; }
}

/* ==========================================================================
   REEL QUICK-VIEW MODAL
   ========================================================================== */
.reel-quickview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-quickview[aria-hidden="true"] { display: none; }
.reel-quickview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,18,16,0.6);
}
.reel-quickview__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  background: var(--paper-raised, #fff);
  max-width: 780px;
  width: min(92vw, 780px);
  max-height: 86vh;
  overflow: auto;
  border-radius: 4px;
}
.reel-quickview__media {
  position: relative;
  flex: 0 0 50%;
  background: var(--charcoal, #222222);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.reel-quickview__media img,
.reel-quickview__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* YouTube player in the popup. */
.reel-quickview__media.is-embed { align-items: center; }
.reel-quickview__media iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  border: 0;
  background: #000;
}
.reel-quickview__mute {
  position: absolute;
  top: 0.7em;
  left: 0.7em;
  width: 36px;
  height: 36px;
  padding: 0; /* the theme's global button reset adds 0.85em/1.5em
                 padding to every <button>, which collapses a small
                 fixed-size icon button's content box and hides the
                 icon entirely — must be zeroed out here */
  border-radius: 50%;
  border: none;
  background: rgba(20,20,20,0.2);
  color: #fff !important; /* beats the global button rule's
                              `color: var(--paper) !important` */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
@media (hover: hover) {
  .reel-quickview__mute:hover { background: rgba(20,20,20,0.5); }
}
.reel-quickview__mute svg { display: block; flex-shrink: 0; }
.reel-quickview__body {
  flex: 1 1 50%;
  padding: 3.4em 2em 2.2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* product info + add-to-cart sit at the
                                 bottom of the panel */
  gap: 1.1em;
}
/* Small square thumbnail + name/price side by side — the reference
   layout, not a second full-size product photo (that was the old
   markup's .reel-quickview__media class name accidentally colliding
   with the left-hand video pane's styling). */
.reel-quickview__product {
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.reel-quickview__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--line, #E5CFC6);
}
.reel-quickview__info {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-width: 0;
}
.reel-quickview__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-0);
}
.reel-quickview__price {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 500;
}
.reel-quickview__form .button,
.reel-quickview__form .single_add_to_cart_button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--brand-black) !important;
  color: #fff !important;
  border: none;
  padding: 0.45em 1.4em; /* shorter button height */
  line-height: 1.6;
  font-size: 0.78em; /* smaller label */
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  text-decoration: none !important; /* the AJAX-loaded form sits
    outside any .woocommerce wrapper, so the theme's usual
    a.button underline-reset doesn't reach it — set here instead */
  border-radius: 6px;
}
@media (hover: hover) {
  .reel-quickview__form .button:hover,
.reel-quickview__form .single_add_to_cart_button:hover { background: var(--brand-red) !important; }
}
.reel-quickview__nav {
  position: fixed;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0; /* override the theme's global button padding — see note
                 on .reel-quickview__mute above */
  border-radius: 10px;
  border: none;
  background: rgba(20,20,18,0.55);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  top: 50%;
  transform: translateY(-50%);
}
@media (hover: hover) {
  .reel-quickview__nav:hover { background: rgba(20,20,18,0.8); }
}
.reel-quickview__nav svg { display: block; flex-shrink: 0; }
.reel-quickview__nav--prev { left: 2vw; }
.reel-quickview__nav--next { right: 2vw; }

/* Close button lives in the top-right corner of the dialog itself
   (over the white body panel) instead of the viewport corner. Same
   size and opacity treatment as the mute button for consistency. */
.reel-quickview__close {
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0; /* override the theme's global button padding — see note
                 on .reel-quickview__mute above */
  border-radius: 50%;
  border: none;
  background: rgba(20,20,18,0.2);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  top: 1em;
  right: 1em;
}
@media (hover: hover) {
  .reel-quickview__close:hover { background: rgba(20,20,18,0.5); }
}
.reel-quickview__close svg { display: block; flex-shrink: 0; width: 16px; height: 16px; }
.reel-quickview__loading { color: var(--muted, #888); padding: 2em 0; }
body.reel-quickview-open { overflow: hidden; }

/* ---- WooCommerce variation form, styled to match the reference
   "COLOR" swatch box + full-width black Add To Cart button, instead
   of WooCommerce's unstyled default table/select. ---- */
.reel-quickview__form table.variations {
  width: 100%;
  border: none;
  margin: 0 0 1em;
}
.reel-quickview__form table.variations tbody,
.reel-quickview__form table.variations tr {
  display: block;
  width: 100%;
}
.reel-quickview__form table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
}
.reel-quickview__form table.variations td.label {
  font-family: var(--font-display);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 0.5em;
}
.reel-quickview__form table.variations td.label label { margin: 0; }
.reel-quickview__form table.variations td.value {
  margin-bottom: 0.6em;
}
.reel-quickview__form table.variations select {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--line, #E5CFC6);
  background: #fafafa;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 0.95em;
  border-radius: 2px;
  appearance: auto;
}
.reel-quickview__form .reset_variations {
  display: inline-block;
  margin: 0.4em 0 0;
  font-size: 0.8em;
  color: var(--muted, #888);
}
.reel-quickview__form .woocommerce-variation-price,
.reel-quickview__form .woocommerce-variation-availability {
  display: none;
}
.reel-quickview__form .single_variation_wrap { display: block; }

@media (max-width: 700px) {
  .reel-quickview__dialog { flex-direction: column; width: 92vw; }
  .reel-quickview__media { min-height: 220px; }
  .reel-quickview__nav { display: none; }
  .reel-quickview__close { top: 3vw; right: 3vw; }
}

/* ==========================================================================
   PRODUCT GRID / CARDS
   ========================================================================== */

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(1.25rem, 3vw, 2rem) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* WooCommerce's own core CSS puts a float-era clearfix on this element:
     .woocommerce ul.products:before, ul.products:after { content:' '; display:table; }
   content:' ' makes those pseudo-elements generate real (invisible) boxes.
   Once this element is display:grid, the browser treats them as actual
   grid items — an empty one *before* the first real product (eating the
   first cell) and another *after* the last one. That's the blank card:
   a phantom child that never appears in the page's HTML because it's
   pure CSS-generated content, not markup. Neutralize it here. */
ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}
/* Belt-and-suspenders: if some other plugin (quick-view, compare,
   wishlist toolbars, WC Blocks helpers) ever injects a genuine
   non-product <li> into this list, don't let it claim a grid cell
   either. */
ul.products > li:not(.product) {
  display: none !important;
}
/* If anything other than a real product <li> ever ends up as a direct
   child of the grid (e.g. a hook-priority collision placing the
   infinite-scroll sentinel inside the <ul> before it closes), don't
   let it claim a grid cell. */
ul.products > *:not(li) {
  display: none !important;
}
@media (min-width: 1101px) {
}
@media (max-width: 1100px) {
  ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 780px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
/* WooCommerce's own frontend CSS sets a percentage width + float on each
   li (e.g. width:22%; float:left), which out-specifies a bare
   "ul.products li.product" rule and shrinks cards inside their grid
   track. Neutralize all of that so our grid controls sizing instead. */
.woocommerce ul.products li.product,
ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  border-radius: 0; /* square corners — also squares the product photo, which this card clips */
  background: var(--paper-raised);
  padding: 0 0 1.25em;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Skip layout/paint/style work for cards the user hasn't scrolled to
     yet — the browser only does full rendering work once a card nears
     the viewport, so long grids paint and scroll noticeably faster.
     contain-intrinsic-size reserves roughly a card's real height so
     the page doesn't jump once the browser renders it for real. */
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
}
ul.products li.product a { text-decoration: none; color: inherit; display: block; }
ul.products li.product a.woocommerce-LoopProduct-link {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
}
/* Every child of the card link (thumbnail, title, rating, price) gets
   its own full-width row by default... */
ul.products li.product a.woocommerce-LoopProduct-link > * {
  flex: 1 0 100% !important;
}
/* ...except price and rating, which share a row: price on the left,
   stars pinned to the right and vertically centered against it. Using
   `order` rather than relying on markup order means this holds even
   though WooCommerce prints the rating before the price. WooCommerce's
   current loop template outputs the star rating as a bare
   `.star-rating` element (no `.woocommerce-product-rating` wrapper
   div), so that's what's targeted here. `!important` throughout this
   block because WooCommerce's own plugin stylesheet also declares
   float/width/margin on `.star-rating` — those don't affect layout
   once it's a flex item, but its declarations still need to lose the
   flex/order/basis tug-of-war outright rather than relying on
   selector-specificity math holding up against a future plugin update. */
ul.products li.product a.woocommerce-LoopProduct-link > .price,
ul.products li.product a.woocommerce-LoopProduct-link > .star-rating {
  flex: 0 1 auto !important;
  align-self: center !important;
  /* The price span inherits the body's line-height, which pads a lot
     more empty space above/below its digits than the tightly-boxed
     (line-height: 1) star icons have — so even though both boxes get
     centered on the same row, the price's glyphs sit visibly lower
     than the stars' glyphs inside their own taller box. Tightening it
     to line-height: 1 removes that padding so the two actually land
     on the same visual line instead of just the same row. */
  line-height: 1 !important;
}
ul.products li.product a.woocommerce-LoopProduct-link > .price {
  order: 1 !important;
}
ul.products li.product a.woocommerce-LoopProduct-link > .star-rating {
  order: 2 !important;
  margin: 0 0 1em auto !important;
  float: none !important;
  /* Shrink the icon block itself (WooCommerce sizes it at a fixed
     5.4em) so the price+rating pair reliably fits on one line even in
     the narrowest grid column, instead of leaving that to chance. */
  font-size: 0.85em !important;
}
ul.products li.product .product-thumb-mask {
  border-radius: 0;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1em;
}
ul.products li.product .product-thumb-mask img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  /* Hover zoom: transform-only animation (no width/height changes) so
     the browser can run it on the compositor instead of relayouting —
     keeps the hover feeling instant even on long grids. The wrapper's
     own overflow:hidden clips the zoomed image to the image box, so it
     can never bleed into the title/price sitting below it. */
  transform: scale(1);
  transition: transform 0.22s ease-out;
  will-change: transform;
}
ul.products li.product a.woocommerce-LoopProduct-link:focus-visible .product-thumb-mask img {
  transform: scale(1.06);
}
@media (hover: hover) {
  ul.products li.product a.woocommerce-LoopProduct-link:hover .product-thumb-mask img {
  transform: scale(1.06);
}
}
@media (prefers-reduced-motion: reduce) {
  ul.products li.product .product-thumb-mask img { transition: none; }
  ul.products li.product a.woocommerce-LoopProduct-link:focus-visible .product-thumb-mask img {
    transform: none;
  }
@media (hover: hover) {
  ul.products li.product a.woocommerce-LoopProduct-link:hover .product-thumb-mask img {
    transform: none;
  }
  }
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: calc(16px * var(--heading-scale, 1)) !important;
  font-weight: 600;
  color: var(--ink);
  /* Flush with the product image's left edge (the image itself has no
     side padding/gutter), per request — was 1em, which is what created
     the visible indent between the image and the title/price text. */
  padding: 0 !important;
  margin: 0 0 0.3em !important;
  line-height: 1.35 !important;
  /* Fixed height for exactly 2 lines, whether the title needs one line
     or two, so the price row below starts at the same height on every
     card in a row no matter the title length. The +3px pads over
     rounding/font-metric slack between the line-height multiplier used
     here and the browser's actual rendered line-box height — without
     it the 2nd line's descenders were getting clipped by overflow:hidden
     mid-glyph instead of the box fitting both full lines cleanly.
     Plain block overflow:hidden (no -webkit-line-clamp) reliably cuts
     anything past that — trade-off: no ellipsis on truncated titles. */
  height: calc(1.35em * 2 + 3px);
  overflow: hidden;
}
/* Phones (2-column grid, ~125px-wide cards): the heading font is wide, so at
   16px most titles ran past the 2-line box and got cut off mid-name. Smaller
   type plus room for 3 lines (still one fixed height on every card, so the
   price rows stay level) shows the whole title; anything longer than 3 lines
   ends in an ellipsis instead of being chopped. */
@media (max-width: 600px) {
  ul.products li.product .woocommerce-loop-product__title {
    font-size: calc(12.5px * var(--heading-scale, 1)) !important;
    /* Regular on phones — lighter than the 600 (renders Bold) used on
       larger screens. */
    font-weight: 400;
    line-height: 1.3 !important;
    /* Exactly 3 lines (no extra px): the old +3px let the top of a 4th
       line peek out under the ellipsis and touch the price. */
    height: calc(1.3em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  /* Every product grid on phones (homepage sections, shop, categories,
     search, wishlist, related products): image, title, price and button
     centred on one axis. The image and button already span the card's
     full width, so what moves is the title and the price row (which sat
     flush left). "body" in front raises specificity above the base
     .price { text-align: left } rule further down the file. */
  body ul.products li.product {
    text-align: center;
  }
  body ul.products li.product a.woocommerce-LoopProduct-link {
    justify-content: center !important;
  }
  body ul.products li.product .woocommerce-loop-product__title,
  body ul.products li.product .price {
    text-align: center;
  }
  body ul.products li.product .product-thumb-mask,
  body ul.products li.product .button {
    margin-left: auto;
    margin-right: auto;
  }
}
ul.products li.product .price {
  /* Flush with the title (and the image) — see note above. */
  padding: 0 !important;
  margin: 0 0 1em !important;
  text-indent: 0 !important;
  font-family: var(--font-body);
  color: var(--price-now, var(--price-green)) !important;
  font-weight: 700;
  font-size: var(--step--1);
  text-align: left;
}
ul.products li.product .price,
ul.products li.product .price .woocommerce-Price-amount,
ul.products li.product .price bdi {
  font-weight: 700;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
ul.products li.product .price del { color: var(--price-old, #9D9D9D) !important; opacity: 1; text-decoration: line-through; font-weight: 400; }
ul.products li.product .price ins { color: var(--price-now, var(--price-green)) !important; text-decoration: none; font-weight: 700; }
/* Montserrat (--font-body) has no glyph for the Taka sign, so the
   browser silently falls back to a system font just for that
   character — and that fallback's "৳" glyph renders visually
   smaller than Montserrat's digits even at the same font-size, so
   font-size: 1em (tried above) was a no-op. Sizing it up and
   nudging it down slightly is what actually brings it level with
   the price digits next to it. */
ul.products li.product .price .woocommerce-Price-currencySymbol {
  font-size: 1em;
  font-weight: 800;
  vertical-align: 0;
}
ul.products li.product .button {
  display: flex;
  align-self: stretch;
  /* Pushed to the bottom of the (grid-stretched) card so it stays
     flush with the card edge regardless of how tall the reserved
     2-line title area or price row makes the content above it. */
  margin: auto 0 0;
  padding: 1em 1.4em;
  font-size: 0.8rem;
  width: auto;
  justify-content: center;
  text-align: center;
  background: var(--atc-bg) !important;
  color: var(--atc-text) !important;
  border: 1px solid var(--atc-border);
}
ul.products li.product .button:focus {
  background: var(--atc-hover-bg) !important;
  border-color: var(--atc-hover-bg);
  color: var(--atc-hover-text) !important;
}
@media (hover: hover) {
  ul.products li.product .button:hover {
  background: var(--atc-hover-bg) !important;
  border-color: var(--atc-hover-bg);
  color: var(--atc-hover-text) !important;
}
}
.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale {
  position: absolute !important;
  top: 1.25em !important;
  right: auto !important;
  left: 1em !important;
  margin: 0 !important;
  background: rgba(255, 243, 239, 0.9);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3em 0.7em;
  border-radius: var(--radius);
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* ==========================================================================
   SINGLE PRODUCT
   Two-column grid (gallery | summary) instead of WooCommerce's default
   float layout — keeps everything inside the page container at any
   width instead of relying on floats clearing correctly, and collapses
   cleanly to one column on mobile.
   ========================================================================== */

/* Breathing room below the nav bar — woocommerce.php has no banner
   header on single-product pages (unlike the shop archive, which gets
   .shop-banner above it), so without this the gallery/title sit flush
   against the nav with no gap at all. */
body.single-product main.site-main {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.woocommerce div.product div.images {
  grid-column: 1;
  width: 92% !important;
  max-width: 460px;
  margin: 0;
  float: none !important;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}
.woocommerce div.product div.summary {
  grid-column: 2;
  width: 100% !important;
  float: none !important;
  padding-left: 0;
}
@media (max-width: 780px) {
  .woocommerce div.product {
    /* minmax(0, 1fr), not a bare 1fr: a plain 1fr track's minimum
       size defaults to auto, so if the gallery's content ever bakes
       in a pixel width wider than the viewport (the same FlexSlider
       timing issue setUpGalleryHealthWatchdog (product-gallery-slider.js) corrects for), the
       track grows to fit it instead of clipping it — pushing the
       whole row, div.images included, wider than the page. Capping
       the minimum at 0 forces the column to respect the container's
       actual width and lets div.images's own overflow:hidden do its
       job, instead of the column blowing out around it. */
    grid-template-columns: minmax(0, 1fr);
  }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary { grid-column: 1; }
  /* div.images is 92% wide (max-width 460px) with margin: 0 above,
     which shrinks it below and misaligns it with the rest of the
     page's content edges (search bar, menu icon, cart icon all sit
     flush against .container's gutter). Filling the full width here
     lines the gallery up with those edges instead. */
  .woocommerce div.product div.images {
    width: 100% !important;
    max-width: none;
    margin: 0;
  }
  /* .flex-viewport is the actual masking window around the main image
     slide(s) — WooCommerce's own FlexSlider JS writes an inline pixel
     "width" onto it at runtime, computed from whatever it measures at
     init (see the matching !important override under the 781px+
     block below, and its comment, for the full explanation of why
     that inline style otherwise wins the cascade). That override was
     previously desktop-only, so on mobile this box was left to
     whatever FlexSlider happened to calculate — a timing-sensitive
     number that comes out slightly different per device/load, which
     is exactly what produced an inconsistent gap (sometimes a visible
     margin, sometimes the image overflowing flush past the edge)
     between otherwise-identical phone widths. Forcing it back to
     100% here, the same way the desktop rule does, makes it always
     match div.images regardless of what FlexSlider computed. */
  .woocommerce div.product div.images .flex-viewport {
    width: 100% !important;
    max-width: none !important;
  }
}

/* WooCommerce prints the tabs/accordion, up-sells, and related products
   AFTER div.summary but still INSIDE div.product (all hooked onto
   woocommerce_after_single_product_summary). Since div.product is a
   2-column grid and none of these three get an explicit grid-column,
   auto-placement drops them into whatever cell is next in reading
   order — tabs into column 1 of the next row, then related products
   into column 2 of that SAME row, so it renders beside the accordion
   instead of below it. Forcing full width here makes every row stack
   top-to-bottom as a normal single-product page should. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .upsells.products,
.woocommerce div.product .related.products {
  grid-column: 1 / -1;
}

/* Gallery thumbnails (WooCommerce's default flexslider nav), rebuilt
   as a real horizontal slider — assets/js/product-gallery-slider.js
   wraps this <ul> in .blaq-thumb-slider and adds the prev/next
   buttons below. The row itself never wraps; it scrolls sideways
   instead, one "page" of thumbs at a time. */
.blaq-thumb-slider { position: relative; margin: 0.8em 0 0; }
/* WooCommerce's core gallery stylesheet styles this same <ol> as
   ".flex-control-nav" — it carries both "flex-control-nav" and
   "flex-control-thumbs" classes together in WooCommerce's own markup.
   That core rule sets "position: absolute; bottom: -40px;
   text-align: center;" and gives every <li> "margin: 0 6px;
   display: inline-block;", all sized for a row of small pagination
   dots beneath a slider — not a real thumbnail strip. Since
   .blaq-thumb-slider above is position:relative, the list was being
   pulled out of normal flow and collapsing against that offset,
   which is what shrank every thumbnail down to a tiny dot. Reset it
   back to normal flow before any of our own sizing rules apply,
   matching the combined class for enough specificity to beat that
   core rule reliably. */
.woocommerce div.product .flex-control-nav.flex-control-thumbs {
  position: static !important;
  bottom: auto !important;
  text-align: left;
}
.woocommerce div.product .flex-control-nav.flex-control-thumbs li {
  margin: 0 !important;
}
.woocommerce div.product .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6em;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.woocommerce div.product .flex-control-thumbs::-webkit-scrollbar { display: none; }
/* Thumbnails size themselves to the row rather than a fixed pixel
   width: flex-grow divides the row evenly between however many
   thumbnails there are (so 3, 4, or 5 images always fill the row
   edge-to-edge with no leftover gap and no overflow — the exact "4
   images fit perfectly, no arrow" case). min-width is the floor that
   makes this stop working gracefully: once enough thumbnails are
   added that they'd have to shrink past it, the row genuinely
   overflows instead, which is what switches on real horizontal
   scrolling and brings the prev/next arrows in (see .blaq-thumb-slider
   above and product-gallery-slider.js's overflow check).
   !important on the sizing properties here (and on the img rule
   below) because WooCommerce's own flexslider JS — not just its
   CSS — writes inline width/height styles onto these exact elements
   at runtime when it initializes the gallery. An inline style always
   beats an external stylesheet rule no matter how specific the
   selector is, so a plain declaration here keeps losing that fight
   silently; !important is the only thing that reliably wins it. */
.woocommerce div.product .flex-control-thumbs li {
  flex: 1 1 0 !important;
  min-width: 64px !important;
  max-width: 100px !important;
  width: auto !important;
  height: auto !important;
}
.woocommerce div.product .flex-control-thumbs img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 1 !important;
  transition: border-color 0.15s ease;
}
.woocommerce div.product .flex-control-thumbs img.flex-active { border-color: var(--brand-red); }
@media (hover: hover) {
  .woocommerce div.product .flex-control-thumbs img:hover { border-color: var(--brand-red); }
}

/* Hard-lock the gallery flush against the page's left edge — the same
   edge the "SHOP" nav item and the logo sit on (both inherit
   var(--gutter) from .container; see the "site-header" comments
   above). WooCommerce's own gallery CSS ships a same-property rule at
   a HIGHER specificity than the plain ".woocommerce div.product
   .flex-control-thumbs" rule above — ".woocommerce div.product
   div.images .flex-control-thumbs" (note the extra "div.images"
   ancestor) — which quietly wins the cascade on shared properties
   regardless of source order. Matching that exact selector here is
   the only reliable way to guarantee OUR spacing/overflow always
   wins instead of occasionally losing to it. */
.woocommerce div.product div.images,
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .blaq-thumb-slider,
.woocommerce div.product div.images .flex-control-thumbs {
  margin-left: 0 !important;
  padding-left: 0 !important;
  left: 0 !important;
}
.woocommerce div.product div.images .flex-control-thumbs {
  overflow-x: auto !important;
  overflow-y: visible !important;
}
@media (min-width: 781px) {
  .woocommerce div.product div.images .flex-control-thumbs {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

/* 6+ thumbnails (product-gallery-slider.js adds this class in that
   case only): stop dividing width evenly among however many there
   are and instead size every thumbnail as if there were exactly
   PAGE_SIZE (5) of them — 4 gaps at the row's 0.6em gap, subtracted
   before dividing by 5. That locks the row to "5 fit, rest overflow"
   regardless of viewport width, instead of the plain rule above's
   width-driven cutoff. The overflow-x: auto already set on
   .flex-control-thumbs is what turns that overflow into the
   scroll/drag/arrow-button slider. !important to beat both the base
   li rule above and WooCommerce's inline flexslider widths, same
   reasoning as that rule. */
.woocommerce div.product .flex-control-thumbs.flex-control-thumbs--paged li {
  flex: 0 0 calc((100% - 4 * 0.6em) / 5) !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Phone layout: the thumbnail strip is swiped / dragged sideways
   (product-gallery-slider.js enableSwipe). pan-y leaves vertical
   gestures to the browser so the page still scrolls normally when a
   finger starts on the strip; horizontal ones go to the script.
   overscroll-behavior-x stops a hard swipe at either end from
   triggering the browser's back/forward gesture. */
@media (max-width: 780px) {
  .woocommerce div.product .flex-control-thumbs.flex-control-thumbs--paged {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .woocommerce div.product .flex-control-thumbs.flex-control-thumbs--paged.is-dragging {
    cursor: grabbing;
  }
  .woocommerce div.product .flex-control-thumbs.flex-control-thumbs--paged img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }
}


/* Prev/next slider buttons — a soft circular button floating over the
   thumbnail row's edge, matching a typical product-gallery carousel
   control. Hidden entirely when there's nothing left to scroll to in
   that direction (.is-hidden, toggled by the JS on scroll/resize). */
.blaq-thumb-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222222 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  z-index: 2;
}
@media (hover: hover) {
  .blaq-thumb-slider__nav:hover { background: #fff; color: var(--brand-red) !important; }
}
/* Press feedback via background/shadow instead of transform, since
   transform is already spoken for by this button's own centering
   (translateX/translateY, set here and in the vertical-layout rules
   below) — a second transform on :active would replace that
   centering instead of combining with it. */
.blaq-thumb-slider__nav:active { background: #f4f4f4; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.blaq-thumb-slider__nav.is-hidden { opacity: 0; pointer-events: none; }
.blaq-thumb-slider__nav--prev { left: -4px; }
.blaq-thumb-slider__nav--next { right: -4px; }
.blaq-thumb-slider__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Main gallery image — WooCommerce's own markup has no size cap on the
   <img> itself, so full-resolution product photos were rendering at
   their native pixel dimensions and blowing out of the grid column
   (and the page) entirely. Lock every slide to a consistent square
   frame that fills the column instead. div.images already clips
   overflow (see above), so no radius/overflow needed on the img here. */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  display: block;
  /* Explicit positioning context for .woocommerce-product-gallery__trigger
     below — that button is positioned absolute against whichever
     ancestor is the nearest positioned one, and relying on
     WooCommerce core CSS to supply that silently is exactly how it
     drifted when the frame's size changed elsewhere (see the
     :only-child fix above). Setting it here directly means the
     button's top/right always resolve against this exact image box,
     never a size mismatch further up the tree. */
  position: relative;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}
/* Zoom-trigger magnifier button (wc-product-gallery-zoom) — keep it
   pinned inside the now fixed-ratio frame instead of drifting with
   whatever height the unconstrained image used to produce. */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  top: 0.9em;
  right: 0.9em;
  left: auto;
}

/* Mobile: shrink the circle + magnifier icon together and nudge the
   whole button closer to the image's top-right corner. transform-
   origin: top right anchors the shrink to that corner (instead of
   the button's center) so reducing scale doesn't also drag it away
   from the top/right values just set below — the two moves stack
   cleanly: top/right relocates the anchor point, scale shrinks the
   button around it. */
@media (max-width: 780px) {
  .woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    top: 0.5em;
    right: 0.5em;
    transform: scale(0.8);
    transform-origin: top right;
  }
}

/* ---- Desktop only: thumbnails move to a vertical column on the LEFT of
   the main image instead of a horizontal strip underneath it. Below the
   existing 780px breakpoint (where div.product already collapses to one
   column) this is left untouched — the original horizontal row from
   above still applies, since a side column doesn't have room on a phone
   screen. .blaq-thumb-slider is still built by
   assets/js/product-gallery-slider.js exactly the same way; only its
   layout axis changes here, and that script switches its own scroll
   axis (scrollLeft vs scrollTop) to match at this same 781px cutoff. */
@media (min-width: 781px) {
  .woocommerce div.product div.images {
    /* Capped to exactly what's inside it — --blaq-gallery-content-width
       is kept in sync by product-gallery-slider.js's
       setUpGalleryContentWidthSync() with the real combined width of
       the thumbnail column (if any) + the gap + the 560px-capped main
       image, on every product and at every screen width. Before this,
       div.images stayed 100% of its fluid grid column regardless of
       how much of that width the thumbnails + image actually used,
       leaving real empty space on the right whenever the column was
       wider than its content — which is also where the zoom-trigger
       button's `right: 0.9em` below measures from, so that empty space
       is exactly how far off the button drifted. The 560px default
       covers single-image products (no thumbnail column exists at all,
       so the sync function never runs and the var is simply never set)
       and is also the safe fallback for before JS runs / if it's
       unavailable. */
    max-width: var(--blaq-gallery-content-width, 560px) !important;
    width: 100% !important;
    display: flex;
    flex-direction: row; /* Normal order; visual left/right handled by `order` below instead of row-reverse. row-reverse + justify-content:flex-end only flushes left when the two children's combined width exactly fills the row — any underflow left a gap between the container's left edge and the thumb column. `order` pins the thumb column first regardless of how wide the main image ends up. */
    justify-content: flex-start !important;
    align-items: flex-start;
    gap: 1em;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  /* div.images is deliberately still full width here so .flex-viewport
     keeps growing to its 560px cap consistently for every product
     (two other approaches were tried and reverted: shrink-wrapping
     this box to content fights the CSS Grid default of stretching
     grid items to fill their track regardless of width:auto, and
     even worked around that fights flex-basis:0 giving an
     auto-sized flex container nothing to measure — both left
     single-image products with a visibly smaller photo than
     multi-image ones). On a single-image product (no
     .blaq-thumb-slider sibling — see product-gallery-slider.js) that
     means this row is wider than the flush-left 560px image sitting
     in it, by whatever's left of the row after the image — a leftover
     that changes with viewport width, since this row tracks a fluid
     grid column (minmax(0, 1.15fr)) while the image is capped at a
     fixed 560px. The zoom-trigger button positions itself against
     this same row (div.images carries WooCommerce's own
     "woocommerce-product-gallery" class, which is what WC core CSS
     puts `position: relative` on — not .woocommerce-product-gallery__image),
     so its `right: 0.9em` above measures from this wider, viewport-
     dependent edge instead of the image's real one.
     Because the leftover isn't a fixed number, no fixed calc() offset
     here can correct it at every screen width — assets/js/product-
     gallery-slider.js's setUpTriggerOffset() measures the actual gap
     between this row's right edge and the image's right edge (only
     when there's no thumb column) and writes it into the
     --blaq-gallery-trigger-offset custom property below, kept live
     via the same ResizeObserver pattern setUpHeightSync uses. On a
     multi-image product the image already grows flush to this row's
     edge on its own, so the measured gap — and this variable — is
     just 0 and the button's position here is unaffected. */
  .woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    right: calc(0.9em + var(--blaq-gallery-trigger-offset, 0px));
  }
  .woocommerce div.product div.images .flex-viewport {
    order: 2;
    flex: 1 1 0;
    /* !important on width/max-width: WooCommerce's own FlexSlider JS
       writes an inline "width" style directly onto .flex-viewport at
       runtime (same reason the thumbnail-sizing rules above need
       !important — see that comment). Without !important here, that
       inline style silently wins over this max-width the moment
       FlexSlider initializes, which is exactly how a single-image
       product's frame was still rendering ~700px+ wide even after
       removing the :only-child override: the override wasn't the
       only thing letting it grow. */
    width: auto !important;
    max-width: 560px !important;
    min-width: 0;
    margin-left: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-raised);
  }
  /* Products with only a featured image (no gallery) never get a
     .blaq-thumb-slider sibling built (see product-gallery-slider.js —
     it only wraps an actual .flex-control-thumbs list, which
     WooCommerce/FlexSlider only renders when there's more than one
     image). This used to let :only-child grow to max-width:none
     ("full width instead of staying capped at 560px") so it would
     fill the empty space where a thumbnail column would otherwise
     sit, making single-image products render a visibly bigger frame
     than every multi-image product on the same site. Capping
     .flex-viewport at 560px regardless fixed that inconsistent
     sizing — but NOT the zoom-trigger magnifier button drifting away
     from the image on single-image products: that button isn't
     inside this frame at all, it's appended as a sibling of
     .flex-viewport directly on div.images (see the width rules on
     div.images above), so capping this box's own width never
     touched the button's actual positioning ancestor. */
  /* Column width comes from --blaq-thumb-col-width, kept in sync with
     the thumbnails' own actual rendered size by product-gallery-slider.js
     (setUpThumbColumnWidthSync). A fixed 190px here used to leave real
     empty space inside the column: each thumbnail is a square sized off
     the column's HEIGHT (divided across up to 5 rows — see
     .flex-control-thumbs below), which at typical image heights comes
     out closer to ~100-110px, well short of 190px. justify-items: start
     (below) already flushes the thumbnails to the column's left edge,
     but the column itself stayed 190px wide regardless — so the main
     image, positioned right after this column, sat ~80px further right
     than the thumbnails it was supposed to line up next to. Sizing the
     column to the thumbnails' real width instead removes that dead
     space, so the image sits directly next to them. 190px is only the
     fallback for before JS runs / if it's unavailable. */
  .blaq-thumb-slider {
    order: 1; /* Renders first (left) regardless of DOM position — see the `order` note on div.images above. */
    flex: 0 0 var(--blaq-thumb-col-width, 190px) !important;
    width: var(--blaq-thumb-col-width, 190px) !important;
    margin: 0 !important;
    /* Height is set directly by product-gallery-slider.js
       (setUpHeightSync), which measures the main image's actual
       rendered height and applies it here as an inline px value, kept
       in sync via ResizeObserver. A pure CSS align-self: stretch
       approach was tried first but proved unreliable: WooCommerce's
       FlexSlider builds/resizes .flex-viewport with its own inline
       styles, which interfered with how the flex cross-axis stretch
       calculation resolved this column's height, so it kept sizing
       itself off its own width instead and overflowing past the
       image. align-self: stretch is left here as a harmless fallback
       for the moment before JS runs / if JS is unavailable. */
    align-self: stretch;
  }
  /* Vertical thumbnails divide the available column height evenly
     between however many images there are — exactly like the
     horizontal row's "flex-grow divides the row evenly" logic
     further up, just on the other axis. flex: 1 1 0 means "however
     tall the column is (set in px by JS, see .blaq-thumb-slider
     above), share it equally" — the count no longer matters,
     everything always fits inside exactly that height. min-height is
     only a floor for the pathological case of many thumbnails (so
     they don't get squeezed to nothing); overflow stays auto so THAT
     case scrolls instead of overflowing visibly.
     align-items: center keeps each square thumbnail centered in the
     column below, since width is now derived from the flexed height
     (see the li/img rules) rather than stretched to the column's
     full width. */
  /* Grid instead of flex for the vertical column. With
     grid-auto-rows: 1fr, each row's height is resolved by the grid
     track-sizing algorithm BEFORE its item is laid out — a genuinely
     definite height, unlike a flex column's flex-grow height (which
     is resolved together with, not before, cross-axis sizing). That's
     exactly the piece aspect-ratio needs: a definite one dimension to
     derive the other from. height: 100% makes the grid itself as
     tall as .blaq-thumb-slider (which JS now gives a real px height,
     see above), so 1fr rows divide that real height evenly among
     however many thumbnails there are. minmax(44px, 1fr) is the floor
     for many-thumbnail rows — below it rows stop shrinking and the
     list scrolls (overflow-y: auto) instead of squeezing thumbnails
     down to nothing. */
  .woocommerce div.product .flex-control-thumbs {
    display: grid;
    grid-template-columns: 1fr;
    /* Fixed at 1/5th of the column's height (4 row-gaps at 0.7em
       subtracted first) instead of minmax(44px, 1fr), which used to
       divide the column's full height evenly among however many
       thumbnails actually existed. That made each thumbnail balloon
       into a tall rectangle whenever there were only 2-4 images,
       since width stayed capped by max-width but height kept
       stretching to fill the leftover 1fr share. Using the same
       fixed row height regardless of count means 2 thumbnails render
       the same true-square size as 5 do — the column just ends up
       with empty space below them instead of stretching to fill it,
       matching the reference layout. align-content: start (below)
       keeps rows packed at the top rather than spread across that
       leftover space. */
    grid-auto-rows: minmax(44px, calc((100% - 4 * 0.7em) / 5));
    align-items: stretch;
    align-content: start;
    /* justify-items was "center": since each square thumbnail's width
       is DERIVED from the row height (aspect-ratio 1/1) rather than
       stretched to the column's own 190px width, centering left a
       real, visible gap — roughly (190px column − ~100px thumbnail)
       ÷ 2 ≈ 45px — between the column's true left edge (flush with
       the page container, same edge as the "SHOP" nav item) and the
       thumbnail image people actually see. "start" removes that gap
       so the visible thumbnails themselves sit flush left, not just
       their invisible column. */
    justify-items: start;
    height: 100%;
    gap: 0.7em;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* 6+ thumbnails: identical fixed-row sizing to the base rule above,
     kept as an explicit rule so a page's markup keeping this class
     from server-rendered HTML doesn't silently rely on the base rule
     matching it by coincidence. With exactly 5 rows at that height
     the column is filled edge-to-edge and nothing scrolls; a 6th+
     row pushes past the column's fixed height (see align-self:
     stretch on .blaq-thumb-slider above) and that overflow is what
     overflow-y: auto turns into the vertical slider. */
  .woocommerce div.product .flex-control-thumbs.flex-control-thumbs--paged {
    grid-auto-rows: calc((100% - 4 * 0.7em) / 5);
  }
  /* Vertical column needs full-width block items instead of the
     horizontal row's inline-block ones (position/margin reset for
     the shared WooCommerce "flex-control-nav" class already happens
     above, outside this media query). */
  .woocommerce div.product .flex-control-nav.flex-control-thumbs li {
    display: block;
  }
  /* Each thumbnail is a true 1:1 square: height fills its grid row
     (now definite, see above) and width derives FROM that height via
     aspect-ratio — the well-supported "one definite dimension, derive
     the other" case, same principle the horizontal row above uses in
     the opposite direction (width fixed, height derived). max-width
     caps it at the column's width for rows tall enough that the
     height-derived square would otherwise be wider than the column;
     justify-items: center (above) keeps it horizontally centered when
     that cap kicks in. */
  .woocommerce div.product .flex-control-thumbs li {
    width: auto !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .woocommerce div.product .flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }
  /* Prev/next buttons move from the row's left/right edges to the
     column's top/bottom edges, and their chevrons rotate 90° so "prev"
     points up and "next" points down instead of left/right. */
  .blaq-thumb-slider__nav--prev {
    top: -4px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .blaq-thumb-slider__nav--next {
    bottom: -4px;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .blaq-thumb-slider__nav--prev svg,
  .blaq-thumb-slider__nav--next svg {
    transform: rotate(90deg);
  }
}
/* Thumbnail sizing is handled by the flex min/max-width rules above;
   just tighten the floor a little further on small screens so more
   thumbnails can still fit before the row needs to scroll. */
@media (max-width: 480px) {
  .woocommerce div.product .flex-control-thumbs li { min-width: 52px; max-width: 80px; }
}

/* Sale badge — a soft cream box (matches the reference combo-set design)
   instead of the brand-red pill. */
.woocommerce div.product span.onsale {
  position: absolute !important;
  top: 1.4em !important;
  right: auto !important;
  left: 1.1em !important;
  margin: 0 !important;
  background: rgba(255, 243, 239, 0.9);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35em 0.8em;
  border-radius: var(--radius);
  min-height: auto;
  min-width: auto;
  line-height: 1.4;
}

/* Title — WooCommerce prints this as a plain <h1>, which otherwise
   inherits the site's hero-scale h1 (meant for the homepage/banners),
   making it far too large and heavy for a product page. */
.woocommerce div.product .product_title {
  font-size: calc(26px * var(--heading-scale, 1));
  /* Same weight as the product-card titles in the grids (600), so the
     single product title and the cards match. */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}
@media (max-width: 480px) {
  .woocommerce div.product .product_title {
    font-size: calc(21px * var(--heading-scale, 1));
  }
}
/* Lighter (Regular) on phones, same as the product-card titles there. */
@media (max-width: 600px) {
  .woocommerce div.product .product_title {
    font-weight: 400;
  }
}

/* Row-wrap layout with an explicit order per row — title, then
   rating, then price, then the short description, then the
   add-to-cart form + wishlist button sharing one row, then the
   SKU/category meta line at the bottom. This used to rely on the
   *default* flex order (0) for everything except price/rating, but
   flexbox sorts by that order value first — so price (order: 1) and
   rating (order: 2) were rendering AFTER every default-order (0)
   element (description, cart form, meta), no matter
   where WooCommerce/functions.php actually printed them in the
   markup. Giving every row its own explicit order fixes that
   regardless of hook order. Every row gets flex-basis: 100% (forcing
   a line break) EXCEPT form.cart, which keeps an auto basis so it
   doesn't stretch wider than the qty stepper + Add to Cart button
   + wishlist heart actually need. */
.woocommerce div.product .entry-summary {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
}
.woocommerce div.product .entry-summary > * {
  order: 0;
  flex: 1 0 100% !important;
}
.woocommerce div.product .entry-summary > .product_title { order: 0; }
.woocommerce div.product .entry-summary > .woocommerce-product-rating,
.woocommerce div.product .entry-summary > .star-rating {
  order: 1 !important;
  margin-bottom: 0.6em;
  float: none !important;
}
.woocommerce div.product .entry-summary > p.price {
  order: 2 !important;
  margin-bottom: 1em;
}
.woocommerce div.product .entry-summary > .woocommerce-product-details__short-description {
  order: 3 !important;
}
.woocommerce div.product .entry-summary > form.cart {
  order: 4 !important;
  flex: 0 1 auto !important;
}
.woocommerce div.product .entry-summary > form.cart {
  margin-right: 1em;
}
.woocommerce div.product .entry-summary > .product_meta {
  order: 5 !important;
  flex: 1 0 100% !important;
}
.woocommerce div.product p.price { font-size: var(--step-1); color: var(--price-now, var(--price-green)); font-weight: 700; font-family: var(--font-body); }
.woocommerce div.product p.price del { color: var(--price-old, #9D9D9D); opacity: 1; text-decoration: line-through; font-weight: 400; }
.woocommerce div.product p.price ins { color: var(--price-now, var(--price-green)); text-decoration: none; font-weight: 700; }
.woocommerce div.product p.price .woocommerce-Price-currencySymbol { font-size: 1em; font-weight: 800; vertical-align: 0; }
/* Stock availability line — given its own explicit row order (between
   the short description and the add-to-cart row) so it always renders
   in a predictable place regardless of where WooCommerce prints it in
   the markup, matching the pattern used for the rest of this layout
   above. In-stock uses the brand sage/green; out-of-stock/on-backorder
   switches to brand red so availability is unambiguous at a glance. */
.woocommerce div.product .entry-summary > .stock {
  order: 3 !important;
  flex: 1 0 100% !important;
}
.woocommerce div.product .stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--price-green);
  font-weight: 600;
  font-size: var(--step--1);
  margin: 0 0 1.2em;
}
.woocommerce div.product .stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.woocommerce div.product .stock.out-of-stock,
.woocommerce div.product .stock.available-on-backorder { color: var(--brand-red); }

/* Mobile only: move the short description below the Add to Cart form
   instead of between the price/stock line and the cart row. Desktop
   keeps the default order (short description before Add to Cart). */
@media (max-width: 780px) {
  .woocommerce div.product .entry-summary > .woocommerce-product-details__short-description {
    order: 5 !important;
  }
  .woocommerce div.product .entry-summary > .product_meta {
    order: 6 !important;
  }
}

/* "You may also like" heading (renamed from WooCommerce's default
   "Related products" via blaq_rename_related_products_heading() in
   functions.php) — otherwise inherits the site's large default h2
   size, matched down to the same size as the single-product title. */
.woocommerce div.product .related.products > h2 {
  font-size: calc(32px * var(--heading-scale, 1));
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (max-width: 480px) {
  .woocommerce div.product .related.products > h2 {
    font-size: calc(26px * var(--heading-scale, 1));
  }
}

/* Wrapper + link added by blaq_related_products_see_all_open()/
   _close() in functions.php — gives shoppers a way to browse the full
   category instead of just the 4 related picks. The wrapper spans
   both grid columns (same reason as .related.products above) and
   .related.products keeps its normal top margin, so position:relative
   here plus position:absolute on the link places "See all" right
   above the product grid, aligned with the "You may also like"
   heading's row. */
.blaq-related-wrap {
  grid-column: 1 / -1;
  position: relative;
}
.blaq-related-see-all {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--brand-red);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (hover: hover) {
  .blaq-related-see-all:hover { color: var(--brand-red-deep); }
}

/* Tags — hidden from the meta line. SKU / Categories / Brand still
   show; only the (often long, SEO-oriented) tag list is dropped. */
.woocommerce div.product .product_meta .tagged_as { display: none; }


/* Short description — merchant-entered bullet list (e.g. "Prevents
   Drying: ..."). Swap the browser-default disc bullets for a small
   red dot, matching the brand accent used everywhere else, with more
   breathing room between points. */
.woocommerce-product-details__short-description { margin: 0 0 1.6em; color: var(--charcoal); font-size: var(--step--1); font-weight: 400; }
/* Some merchants write the short description as plain paragraphs with
   a bold lead-in label (e.g. "7-Piece Value Set: ...") instead of a
   bullet list. Force every descendant back to the body's normal
   weight/size so bold labels don't stand out heavier or larger than
   the rest of the text. */
.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description strong,
.woocommerce-product-details__short-description b {
  font-weight: 400 !important;
  font-size: var(--step--1) !important;
}
.woocommerce-product-details__short-description p { margin: 0 0 0.5em; line-height: 1.15; }
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.woocommerce-product-details__short-description ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}
.woocommerce-product-details__short-description li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.2;
}
.woocommerce-product-details__short-description li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9D9D9D;
}

/* Quantity stepper — same pill design as the cart drawer/page/wishlist
   steppers (see blaq_qty_stepper_icon() in functions.php), added here
   via assets/js/product-quantity.js since WooCommerce's classic
   template only outputs a bare number input with no +/- buttons. The
   selector needs enough specificity to beat the site-wide generic
   `input[type="number"]` rule (padding/border/width:100%) further up
   this file — .woocommerce + .product + .quantity + input + .qty
   comfortably clears it without needing !important. */
.woocommerce div.product .quantity {
  display: inline-flex;
  align-items: stretch;
  height: var(--btn-height);
  border: 1px solid #E5CFC6;
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  background: var(--paper-raised);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce div.product .quantity:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200, 30, 40, 0.08);
}
.woocommerce div.product .quantity input.qty {
  width: 3.2em;
  min-width: 0;
  height: calc(var(--btn-height) - 2px);
  line-height: calc(var(--btn-height) - 2px);
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid #E5CFC6;
  border-right: 1px solid #E5CFC6;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  -moz-appearance: textfield;
  outline: none;
}
.woocommerce div.product .quantity input.qty:focus {
  outline: 2px solid var(--brand-red);
  outline-offset: -2px;
}
.woocommerce div.product .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.blaq-qty-btn {
  background: none !important;
  border: none;
  padding: 0 !important;
  margin: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a7568 !important;
  transition: background 0.15s ease, color 0.15s ease;
  /* Some mobile browsers (older Android WebView especially) keep a
     sliver of native button chrome — an invisible inset baked into
     the UA's own button rendering — even after border:none and
     padding:0 above, since those only reset the box model properties
     the UA stylesheet defines, not the platform-native "appearance"
     itself. That's what was nudging the minus button (the very first
     thing in the qty wrapper, so the only place this is visible) a
     couple of px off the wrapper's true left edge instead of sitting
     flush against it the way Add to Cart's own edge does. */
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) {
  .blaq-qty-btn:hover { background: var(--paper) !important; color: var(--brand-red) !important; }
}

/* Product-page stepper buttons scale up to fill the taller 52px
   wrapper set above (the shared .blaq-qty-btn default of 30px is used
   everywhere else — cart drawer, wishlist — so it's overridden here
   rather than changed globally). */
.woocommerce div.product .quantity .blaq-qty-btn {
  width: 42px;
  height: calc(var(--btn-height) - 2px);
}

/* The wishlist button now prints *inside* form.cart, right after the
   quantity stepper (see blaq_wishlist_single_button() in functions.php)
   instead of as a sibling after the whole form — that's what keeps it
   next to qty instead of getting pushed onto its own row below Add to
   Cart once the button wraps on narrower screens. Add to Cart itself
   is given flex-basis: 100% below so it always fills the full row
   width on whatever line it wraps to, instead of stopping at its
   340px min-width and leaving empty space beside it. */
.woocommerce div.product .entry-summary > form.cart {
  align-self: center !important;
}
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-bottom: 1.4rem;
}
/* WooCommerce's own core stylesheet (loaded separately from this
   theme) puts a float-era clearfix on form.cart — a ::before/::after
   with content:"" and display:table, meant to clear the floated
   .quantity + button layout it ships by default. Switching form.cart
   to display:flex above doesn't remove that content, so the browser
   still generates the pseudo-element — and inside a flex container a
   generated pseudo-element with real content becomes an actual
   (invisible, zero-size) flex item, not inert clearfix filler the
   way it was under the old float layout. That phantom item sits
   before .quantity in source order, and the row's own `gap` above
   still inserts its full 0.6em after it, which is exactly what was
   pushing the quantity box ~9.6px right of Add to Cart's left edge
   despite both having margin: 0. Removing the content neutralizes it
   back to occupying no flex slot at all. */
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
  content: none !important;
  display: none !important;
}
.woocommerce div.product form.cart .quantity {
  order: 0;
  /* WooCommerce's own core stylesheet floats div.quantity and gives it
     a small default margin (for its old non-flex cart-form layout),
     which was nudging it right of the true left edge that "In Stock"
     and Add to Cart both sit flush against. Zeroed out explicitly
     since form.cart is flex here, not float-based. */
  margin: 0 !important;
  float: none !important;
}
.woocommerce div.product form.cart > .wishlist-btn--labeled {
  order: 1;
  /* Adds a bit of breathing room beyond form.cart's own 0.6em row
     gap, on top of which this used to pull inward (-18px) to close
     the gap to ~0 — now doing the opposite: a small positive offset
     to open a visible gap between the qty box and the heart button. */
  margin-left: 8px;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  order: 2;
  flex: 1 1 100%;
}
.woocommerce div.product .single_add_to_cart_button.button {
  position: relative; /* anchor for the AJAX loading spinner below */
  height: var(--btn-height);
  padding: 0 2.4em;
  font-size: var(--step--1);
  width: 100%;
  min-width: 340px;
  justify-content: center;
  margin: 0;
  border-radius: 10px !important;
  background: var(--pdp-atc-bg) !important;
  border: 1px solid var(--pdp-atc-bg) !important;
  color: var(--pdp-atc-text) !important;
  /* Overrides the generic .btn transition (background + transform only)
     so color/border animate too — needed now that hover swaps to a
     light background with dark text, not just a darker red. */
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.1s ease !important;
}
.woocommerce div.product .single_add_to_cart_button.button:focus {
  background: var(--pdp-atc-hover-bg) !important;
  border-color: var(--pdp-atc-hover-bg) !important;
  color: var(--pdp-atc-text) !important;
}
@media (hover: hover) {
  .woocommerce div.product .single_add_to_cart_button.button:hover {
  background: var(--pdp-atc-hover-bg) !important;
  border-color: var(--pdp-atc-hover-bg) !important;
  color: var(--pdp-atc-text) !important;
}
}
.woocommerce div.product .single_add_to_cart_button.button.disabled,
.woocommerce div.product .single_add_to_cart_button.button:disabled {
  background: #cfcabf !important;
  border-color: #E5CFC6 !important;
  color: #fff !important;
}
/* AJAX in-flight state. WooCommerce adds .loading on click and removes
   it once the request resolves — previously this only dimmed the label
   (via WC core's own opacity rule) while the button stayed fully
   clickable, so a fast double-click could fire two add-to-cart
   requests at once: that's the "skit"/glitchy feeling. Locking pointer
   events during .loading, plus a matching spinner that's positioned
   absolutely (so it can't shove the label sideways and reflow the
   button), fixes both the double-submit and the visual jump. */
.woocommerce div.product .single_add_to_cart_button.button.loading {
  pointer-events: none;
  color: transparent !important;
}
/* Checkmark once the item's added — same treatment as the reel strip's
   .add_to_cart_button.added::after tick, just on the bigger button. */
.woocommerce div.product .single_add_to_cart_button.button.added::after {
  content: "✓";
  margin-left: 0.6em;
  font-weight: 700;
}
.woocommerce div.product .single_add_to_cart_button.button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: blaq-add-to-cart-spin 0.6s linear infinite;
}
@keyframes blaq-add-to-cart-spin {
  to { transform: rotate(360deg); }
}

/* Meta row (SKU / categories / tags) — muted, small, with a thin
   divider above it separating it from the wishlist button/add-to-cart
   area, instead of running straight into the previous element. */
.woocommerce div.product .product_meta {
  font-size: 0.8rem;
  color: #948f80;
  padding-top: 1.2em;
  margin-top: 0.4em;
  border-top: 1px solid var(--line);
}
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 0.3em; }
.woocommerce div.product .product_meta a { color: #948f80; text-decoration: underline; }
@media (hover: hover) {
  .woocommerce div.product .product_meta a:hover { color: var(--brand-red); }
}

/* ==========================================================================
   SINGLE PRODUCT — DESCRIPTION / PRODUCT DETAILS / REVIEWS ACCORDION
   WooCommerce's default tabs (a row of clickable labels with one panel
   visible at a time) are rebuilt here as a stacked +/- accordion by
   assets/js/product-tabs-accordion.js. The script reads each tab's
   label from the (now hidden) nav row, wraps every panel in its own
   .blaq-accordion-item with a clickable header, and opens one section
   at a time. See blaq_product_tabs() in functions.php for the
   "Product details" / "Shipping & returns" tab labels themselves.
   ========================================================================== */
.woocommerce-tabs {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.woocommerce-tabs .tabs { display: none; }
/* WooCommerce prints its own "Reviews (n)" heading inside the reviews
   panel — redundant once that same label is already the accordion
   header above it. */
.woocommerce-tabs .woocommerce-Reviews-title { display: none; }

.blaq-accordion-item { border-bottom: 1px solid var(--line); }
/* background/color forced with !important and repeated across every
   interaction state — something outside this theme (a plugin, page
   builder, or Customizer CSS) is painting an orange fill onto this
   <button>, and nothing in style.css or functions.php sets that
   color, so this is a defensive override rather than a normal rule. */
.blaq-accordion-header,
.blaq-accordion-header:focus,
.blaq-accordion-header:active,
.blaq-accordion-header:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.3em 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--charcoal) !important;
}
@media (hover: hover) {
  .blaq-accordion-header:hover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.3em 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--charcoal) !important;
}
}
.blaq-accordion-title {
  font-weight: 700;
  font-size: calc(var(--step--1) * var(--heading-scale, 1));
  color: inherit;
}
.blaq-accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.blaq-accordion-icon::before,
.blaq-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.blaq-accordion-icon::before { width: 12px; height: 2px; }
.blaq-accordion-icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Open state — red, per brand color, everywhere the orange leak was
   showing up (title text, icon, and any hover/focus while open). */
.blaq-accordion-item.is-open .blaq-accordion-header,
.blaq-accordion-item.is-open .blaq-accordion-header:focus {
  color: var(--brand-red) !important;
}
@media (hover: hover) {
  .blaq-accordion-item.is-open .blaq-accordion-header:hover {
  color: var(--brand-red) !important;
}
}
.blaq-accordion-item.is-open .blaq-accordion-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.blaq-accordion-panel {
  padding: 0 0 1.7em;
  color: var(--charcoal);
  line-height: 1.7;
  font-size: var(--step--1);
}
.blaq-accordion-panel table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}
.blaq-accordion-panel table.woocommerce-product-attributes th,
.blaq-accordion-panel table.woocommerce-product-attributes td {
  padding: 0.6em 0.8em 0.6em 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.blaq-accordion-panel table.woocommerce-product-attributes th { font-weight: 600; width: 35%; }

/* Description panel: hide WooCommerce's own big "Description" h2 — the
   accordion header above already carries that label. */
.woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce-Tabs-panel--description > h2:first-of-type { display: none !important; }

/* Full-width accordion text: the global `p { max-width: 62ch }` rule was
   squeezing Description / Product details / Shipping / FAQ text into a
   narrow column with empty space on the right. */
.blaq-accordion-panel,
.blaq-accordion-panel > *,
.blaq-accordion-panel p,
.blaq-accordion-panel ul,
.blaq-accordion-panel ol,
.blaq-accordion-panel li,
.woocommerce-tabs .woocommerce-Tabs-panel p,
.woocommerce-tabs .woocommerce-Tabs-panel ul,
.woocommerce-tabs .woocommerce-Tabs-panel ol {
  max-width: none !important;
}

/* Product FAQ section (inc/product-faq.php) */
.blaq-faq__item { padding: 0.9em 0; border-bottom: 1px solid var(--line); }
.blaq-faq__item:first-child { padding-top: 0; }
.blaq-faq__item:last-child { border-bottom: none; padding-bottom: 0; }
.blaq-faq__q {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  margin: 0 0 0.4em;
  color: var(--charcoal);
}
.blaq-faq__a p { margin: 0 0 0.6em; }
.blaq-faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--brand-black);
  color: var(--paper);
  margin-top: clamp(3rem, 6vw, 6rem);
}
.site-footer a { color: var(--paper); text-decoration: none; }
@media (hover: hover) {
  .site-footer a:hover { color: var(--marigold); }
}
/* Same bug as the header rows above: "0 2em" / "1.5em 0" zeroed out
   the horizontal padding these inherit from .container, so the footer
   content sat flush against the page edge instead of lining up with
   the nav strip's gutter-inset "SHOP" position above it. */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5em;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2em;
}
/* Reserves the room the now-absolutely-positioned .footer-logo needs
   above "Our Story" (see the comment there) — added on top of the
   grid's normal top padding so every column's heading shifts down by
   the same amount and stays aligned. */
.footer__grid { padding-top: calc(clamp(2.5rem, 5vw, 4rem) + 4rem); }
.footer__grid h4 {
  color: var(--paper);
  font-family: var(--font-body); /* Montserrat */
  font-size: calc(var(--step--1) * var(--heading-scale, 1));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
/* Footer logo — same source as the header's (blaq_render_footer_logo()
   in functions.php) but always grayscale, since the header's brand-red
   wordmark/uploaded logo would clash with the dark footer background.

   It sits above the "Our Story" heading, but as a normal in-flow
   element it pushed that heading down below where "Quick Links",
   "Become a Member", and "Customer Service" sit — those columns have
   nothing above their heading, so all four stopped lining up along the
   same top edge. Taking the logo out of flow (absolute) and reserving
   its space via .footer__grid's own top padding instead means every
   column's heading now starts from that same shared padding line. */
.footer__col--story { position: relative; }
.footer__grid h4.footer-logo {
  position: absolute;
  top: -4rem;
  left: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(var(--step-2) * var(--heading-scale, 1));
  font-weight: 700;
  color: rgba(246,240,228,0.92);
  text-transform: none;
}
.footer-logo__img {
  display: block;
  max-height: 32px;
  width: auto;
  filter: grayscale(100%);
}
/* "Social Media" icon row (blaq_render_social_links() in
   functions.php) — icons are whatever PNG/SVG the admin uploaded per
   link in Admin → BLAQ Theme → Social media, shown inside a small
   circular badge so mismatched source-icon sizes/colors still read as
   a consistent row. */
.footer-social { margin-top: 1.4em; }
.footer-social h4 { margin-bottom: 0.7em; }
.footer-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(246,240,228,0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}
@media (hover: hover) {
  .footer-social__list a:hover {
  border-color: var(--marigold);
  background: rgba(246,240,228,0.08);
}
}
.footer-social__list img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 0.6em; font-size: var(--step--1); }

/* "Our Story" column — blurb text + trailing inline "more" link.
   wpautop() wraps the theme_mod text in <p> tags, so trim their
   default browser margin and add our own tighter spacing instead. */
.footer-story__text { max-width: 34ch; color: rgba(246,240,228,0.75); font-size: var(--step--1); }
.footer-story__text p { margin: 0 0 0.9em; }
.footer-story__text p:last-of-type { display: inline; margin: 0; }

/* "Become a Member" column — blurb + inline WhatsApp-number form. */
.footer-member__text { max-width: 26ch; color: rgba(246,240,228,0.75); font-size: var(--step--1); margin: 0 0 1.1em; }
.footer-subscribe {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(246,240,228,0.35);
  border-radius: var(--radius);
  overflow: hidden;
  /* Mobile-first: fill whatever column width it's given (this is the
     size that actually needs to "fit" — the fixed 260px cap below only
     ever applies once there's a wide, roomy desktop column to cap).
     Previously this was capped at 260px by default and only widened
     back out to 100% inside the max-width:780px reflow query below —
     which left a gap between 780px and the point where the 4-column
     desktop grid actually gets that roomy: on those in-between widths
     (e.g. tablets, small laptops) the box stayed stuck at 260px inside
     a much wider "Become a Member" column instead of filling it. */
  width: 100%;
  max-width: 100%;
}
@media (min-width: 1000px) {
  .footer-subscribe { max-width: 260px; }
}
/* The global "input[type=tel]" rule (see base input styles near the top
   of this file) carries higher specificity than a single class, so it
   was winning over font-size below and forcing this field back up to
   --step-0 — visibly bigger than the "Be The First Person..." text and
   every other label in this footer column. Repeating the attribute
   selector here matches that specificity so our smaller size actually
   applies. */
input[type="tel"].footer-subscribe__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step--1);
  padding: 0.6em 0.75em;
}
.footer-subscribe__input::placeholder { color: rgba(246,240,228,0.55); }
.footer-subscribe__input:focus { outline: none; background: rgba(246,240,228,0.06); }
.footer-subscribe__btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  padding: 0.6em 0.9em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .footer-subscribe__btn:hover:not(:disabled) { background: transparent; color: var(--brand-red); }
}
.footer-subscribe__btn:disabled { opacity: 0.6; cursor: default; }
.footer-subscribe__msg { margin: 0.7em 0 0; font-size: var(--step--1); }
.footer-subscribe__msg.is-error { color: #ff9d9d; }
.footer-subscribe__msg.is-success { color: var(--paper); }

/* "Customer Service" column — phone + hours; social icons (see
   .footer-social above) render underneath via blaq_render_social_links(). */
.footer-cs__phone { font-size: var(--step--1); margin: 0 0 0.3em; }
.footer-cs__phone a { font-weight: 600; }
.footer-cs__hours { font-size: var(--step--1); color: rgba(246,240,228,0.6); margin: 0; }

/* This is the last column in .footer__grid, so its content is pinned
   to the right edge of the grid — the same right edge (.container's
   gutter) that the product grid's rightmost "Add to cart" column lines
   up against above it. Without this, the heading/phone/icons stay
   left-aligned inside their column and stop well short of that edge. */
.footer__col--cs { text-align: right; }
.footer__col--cs .footer-social__list { justify-content: flex-end; }

.footer__bottom {
  border-top: 1px solid rgba(246,240,228,0.15);
  padding: 1.5em var(--gutter);
  font-size: var(--step--1);
  color: rgba(246,240,228,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

/* Tablet and mobile (780px and down): the plain 2-up grid pairs
   Story+Links and Member+CS by DOM order alone, which squeezes Story
   and Links into narrow columns and leaves the subscribe box stuck
   at half-width next to Customer Service. Reflow to named areas
   instead, for the whole range — Our Story runs full width up top,
   Quick Links and Customer Service sit side by side underneath it,
   and Become a Member (with its now full-width subscribe box) spans
   full width below that. */
@media (max-width: 780px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "story  story"
      "links  cs"
      "member member";
  }
  .footer__col--story  { grid-area: story; }
  .footer__col--links  { grid-area: links; }
  .footer__col--cs     { grid-area: cs; }
  .footer__col--member { grid-area: member; }
  .footer-story__text { max-width: none; }
}
@media (max-width: 600px) {
  /* Scoped override, not a global redefinition — only shrinks type
     sizes for elements inside the footer that read these variables. */
  .site-footer {
    --step--1: 0.76rem;
    --step-0: 0.86rem;
    --step-1: 0.95rem;
    --step-2: 1.2rem;
  }
}

/* ==========================================================================
   MISC PAGE / SINGLE POST
   ========================================================================== */

.page-header { padding: 2.5em 0 1em; border-bottom: 1px solid var(--line); }
.entry-content { padding: 2.5em 0; max-width: 68ch; }
.entry-content > * { margin-left: auto; margin-right: auto; }

/* My Account (and any other WooCommerce shortcode page rendered through
   the generic page.php template, e.g. Cart/Checkout if set up the same
   way) is a functional dashboard, not long-form reading content — the
   68ch blog-width constraint above was squeezing the whole My Account
   grid down to a narrow, centered column. Exempt WooCommerce pages.
   Horizontal padding is deliberately left at 0 here (inherited from
   .entry-content above) to match the theme's own convention: every other
   .container-based region on the page (.page-header, .header-main__inner)
   also zeroes its own horizontal padding and relies purely on
   .container's max-width + margin:0 auto to center and align its left
   edge. What actually broke the alignment was max-width: none — with
   box-sizing:border-box, a capped max-width IS the box's rendered width
   (nothing left to center against), so margin:auto still lines this box
   up flush with .page-header's box. max-width:none instead lets the box
   fill 100% of its parent, so on any viewport wider than --content-max
   its left edge sits flush with the parent's edge instead — well left of
   the centered, width-capped page-header above it. Adding padding here
   instead of fixing max-width would have "solved" it by accident on one
   viewport width while staying wrong (and inconsistent with every other
   section) on every other.

   One thing that reasoning missed: .entry-content's own base rule above
   (padding: 2.5em 0) is a *shorthand* — it doesn't just leave left/right
   alone, it sets them to 0, wiping out .container's "padding: 0
   var(--gutter)" on the very same element (same specificity, but this
   rule loads later, so it wins for all four sides). The result: the
   billing/order-review cards on Checkout (and Cart, My Account) sat
   completely flush with the edges of this max-width box, while the
   header nav — never carrying .entry-content — kept its real gutter, so
   "SHOP"/"CATEGORIES" stayed visibly inset from where the cards below
   them started. Restoring the gutter here (not just the max-width) is
   what actually lines the two up. */
body.woocommerce-page .entry-content {
  max-width: var(--content-max);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
body.woocommerce-page .entry-content > * { margin-left: 0; margin-right: 0; }

.woocommerce-breadcrumb {
  font-size: var(--step--1);
  color: var(--ink-soft);
  padding: 1.25em 0 0;
}

/* ==========================================================================
   SHOP / CATEGORY PAGE LAYOUT (sidebar + product grid)
   ========================================================================== */

/* Shop / category archive: plain white page background instead of the
   warm paper tone used site-wide, per design update. */
body.blaq-shop-archive { background: #fff; }

/* Wishlist page: same plain-white treatment as the shop archive above. */
body.blaq-wishlist-page { background: #fff; }
body.woocommerce-cart { background: #fff; }

/* Single product page: same plain-white treatment — WooCommerce adds
   the `single-product` body class automatically, so this needed no
   PHP change, just the missing override. */
body.single-product { background: #fff; }

.shop-banner {
  background: var(--paper-light);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  text-align: center;
  margin-bottom: 0;
}
body.blaq-shop-archive .shop-banner { background: var(--paper-light); }
.shop-banner h1 {
  margin-bottom: 0.3em;
  text-align: center;
  font-family: var(--font-body); /* Montserrat */
  font-size: calc(clamp(1.1rem, 2vw, 1.5rem) * var(--heading-scale, 1));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.shop-banner .woocommerce-breadcrumb {
  padding: 0;
  font-size: var(--step--1);
  color: var(--brand-red);
}
.shop-banner .woocommerce-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}
@media (hover: hover) {
  .shop-banner .woocommerce-breadcrumb a:hover { color: var(--brand-red); }
}

.shop-layout {
  /* Shared with .shop-sidebar's own --filter-line below, so the
     toolbar's border-bottom (a sibling, not a descendant, of
     .shop-sidebar) can reference the same color instead of a
     hardcoded hex duplicated in two places. */
  --filter-line: #ececec;
  display: grid !important;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  transition: grid-template-columns 0.3s ease;
  /* .shop-layout carries the shared .container class, whose gutter
     (up to 3rem) is sized for the header. That's too much dead air
     next to a 260px sidebar card, so pull it in on this page only. */
  padding-left: clamp(0.75rem, 2vw, 1.5rem) !important;
  padding-right: clamp(0.75rem, 2vw, 1.5rem) !important;
}
.shop-content { min-width: 0; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SHOP SIDEBAR — card-style filter panel
   ========================================================================== */

.shop-sidebar {
  --filter-line: #ececec;
  --filter-border: #e2e2e2;
  --filter-text: #4d4d4d;
  --filter-text-soft: #8f8f8f;
  --filter-chip-bg: #f7f7f7;
  --filter-chip-border: #e4e4e4;
  --filter-accent: #171717;
  background: #fff;
  border: 1px solid var(--filter-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: sticky;
  top: calc(var(--site-header-height, 90px) + 20px);
}
@media screen and (min-width: 783px) {
  body.admin-bar .shop-sidebar { top: calc(var(--site-header-height, 90px) + 20px + 32px); }
}

/* Desktop: the panel scrolls internally within the sticky sidebar
   (Filters header stays put; Price/Categories/Brands/Availability
   scroll as one region beneath it), instead of relying on the whole
   page scrolling past a very tall sidebar. */
@media screen and (min-width: 901px) {
  .shop-sidebar__panel {
    max-height: calc(100vh - (var(--site-header-height, 90px) + 20px) - 56px - 20px);
    overflow-y: auto;
  }
  body.admin-bar .shop-sidebar__panel {
    max-height: calc(100vh - (var(--site-header-height, 90px) + 20px + 32px) - 56px - 20px);
  }
}

/* --- Header: "Filters" title + count + Reset all --- */
.shop-sidebar__head {
  height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  background: #fff;
  border-bottom: 1px solid var(--filter-line);
}
.shop-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: calc(0.9rem * var(--heading-scale, 1));
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Decorative icon square dropped to match the flat, text-only "FILTERS"
   header of the reference design — kept in markup for backward
   compatibility, just not shown. */
.shop-sidebar__title-icon { display: none; }
.shop-sidebar__reset {
  flex-shrink: 0;
  color: var(--brand-red);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .shop-sidebar__reset:hover { text-decoration: underline; }
}

/* The header close (X) button only ever shows inside the mobile
   off-canvas drawer — see the media query below. On desktop the
   sidebar has nothing to close, so it's hidden entirely. */
.shop-sidebar__toggle { display: none; }

/* --- Filter panel: plain, always fully visible on desktop --- */
.shop-sidebar__panel {
  padding: 4px 18px 8px;
}

/* --- Filter sections (Active Criteria / Price / Categories / Brands / Availability) --- */
.filter-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--filter-line);
}
.filter-section:first-child { padding-top: 18px; }
.filter-section:last-child { border-bottom: none; padding-bottom: 4px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.filter-section.is-collapsed .section-head { margin-bottom: 0; }
.section-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(0.78rem * var(--heading-scale, 1));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head__icon {
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--filter-text-soft);
}
@media (hover: hover) {
  .section-head:hover .section-head__icon { color: var(--ink); }
}
/* Section headers are <button> elements, so they'd otherwise pick up
   the global button:hover marigold background — not wanted here. */
@media (hover: hover) {
  .section-head:hover { background: none; border-color: transparent; }
}

/* Everything in a filter-section except its header collapses away —
   applies uniformly whether that content is a <ul> checklist, the
   price slider <form>, or the quick-price-range <div>, since they're
   all direct children of .filter-section. Toggled by main.js. */
.filter-section.is-collapsed > *:not(.section-head) { display: none; }

.section-head--price {
  gap: 0.6em;
}
.section-head--price small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--filter-text-soft);
  white-space: nowrap;
}

/* --- Sort By (moved here from the shop toolbar) ---
   Reuses WooCommerce's own .woocommerce-ordering form/select, just
   restyled to sit in the sidebar: full-width of the panel instead of
   the toolbar's fixed height, and visibly smaller/lighter than the
   toolbar version was. */
.filter-section--sort .woocommerce-ordering {
  float: none;
  margin: 0;
  clear: none;
  width: 100%;
}
.filter-section--sort .woocommerce-ordering select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4em 0.8em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
  accent-color: var(--ink);
}
.filter-section--sort .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.12);
}

/* --- Active criteria chips --- */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.8em;
  border: 1px solid var(--filter-chip-border);
  border-radius: 999px;
  background: var(--filter-chip-bg);
  color: var(--filter-text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.active-chip b {
  font-weight: 400;
  color: var(--filter-text-soft);
}
@media (hover: hover) {
  .active-chip:hover {
  background: #eee;
  border-color: #E5CFC6;
  color: var(--ink);
}
}

/* --- Price filter widget: hand-built vanilla-JS dual-handle slider
   (see main.js) — no jQuery UI. --- */
.price_slider_wrapper { position: relative; }
.price_slider {
  position: relative;
  height: 4px;
  background: #e2e2e2;
  border-radius: 999px;
  margin: 0.9em 0 0;
  cursor: pointer;
}
.price-slider__range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--filter-accent);
  border-radius: 999px;
  pointer-events: none;
}
.price-slider__handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  background: var(--filter-accent);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: grab;
  outline: none;
  box-shadow: 0 0 0 1px var(--filter-accent);
  touch-action: none;
  z-index: 1;
}
.price-slider__handle:focus-visible {
  box-shadow: 0 0 0 1px var(--filter-accent), 0 0 0 4px rgba(23, 23, 23, 0.15);
}
.price-slider__handle.is-dragging { cursor: grabbing; }

.blaq-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 1.1em;
}
.blaq-price-inputs__field {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--filter-chip-border);
  border-radius: 6px;
  background: #fff;
}
.blaq-price-inputs__field span {
  color: var(--filter-text-soft);
  font-size: 0.78rem;
}
.blaq-price-inputs__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 0 0 4px;
  color: var(--filter-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.price_slider_amount { margin: 0; }
.price_slider_amount .price_label { display: none !important; }
.price_slider_amount .button.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

/* --- Quick price presets --- */
.quick-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.9em;
}
.quick-price {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.55em 0.5em;
  border: 1px solid var(--filter-chip-border);
  border-radius: 6px;
  background: var(--filter-chip-bg);
  color: var(--filter-text-soft);
  font-family: var(--font-body);
  font-size: 0.68rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .quick-price:hover {
  background: #eee;
  border-color: #E5CFC6;
  color: var(--ink);
}
}

/* --- Taxonomy / availability checklists (Categories, Brands, Availability) --- */
.cat-checklist,
.cat-checklist__children { list-style: none; margin: 0; padding: 0; }
/* Sub-categories sit flush left, same indent as their parent — no
   nested offset/border, matching the reference design. */
.cat-checklist__children {
  margin: 0;
  padding: 0;
}
.cat-checklist__item { margin-bottom: 0; }
.cat-checklist__label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
}
/* Real checkbox stays in the accessibility tree (focusable, announced
   by screen readers) but is visually replaced by .cat-checklist__box. */
.cat-checklist__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
.cat-checklist__box {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #a8a8a8;
  border-radius: 4px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cat-checklist__checkbox:checked + .cat-checklist__box {
  background: var(--filter-accent);
  border-color: var(--filter-accent);
}
.cat-checklist__checkbox:checked + .cat-checklist__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cat-checklist__checkbox:focus-visible + .cat-checklist__box {
  outline: 2px solid var(--filter-accent);
  outline-offset: 2px;
}
.cat-checklist__name { flex: 1; }
.cat-checklist__count { font-size: 0.82rem; color: var(--ink); }
.cat-checklist__dash { color: var(--filter-text-soft); margin-left: -0.3em; }
@media (hover: hover) {
  .cat-checklist__label:hover .cat-checklist__name { color: var(--ink); }
}

/* --- Mobile: off-canvas drawer --- */
.shop-sidebar__mobile-trigger { display: none; }

@media (max-width: 900px) {
  .shop-sidebar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  .shop-layout.is-sidebar-open .shop-sidebar { transform: translateX(0); }
  .shop-sidebar__panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

  /* The close (X) button hidden on desktop reappears here, in the
     drawer's own header. */
  button.shop-sidebar__toggle,
  button.shop-sidebar__toggle:active,
  button.shop-sidebar__toggle:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transform: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
@media (hover: hover) {
  button.shop-sidebar__toggle:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transform: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  }
@media (hover: hover) {
  button.shop-sidebar__toggle:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
  }
  }

  .shop-sidebar__mobile-trigger {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0.75em auto;
    padding: 0.7em 1.1em;
    background: #fff;
    color: #222222 !important;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
  }
@media (hover: hover) {
  .shop-sidebar__mobile-trigger:hover { background: var(--paper); }
  }

  /* Dim the page behind the open drawer; body scroll lock stops the
     page scrolling underneath while it's open. */
  body.has-sidebar-open { overflow: hidden; }
  .shop-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 999;
  }
  .shop-layout.is-sidebar-open::before {
    opacity: 1;
    visibility: visible;
  }
}

/* --- Result count / sorting toolbar ---
   min-height:56px matches .shop-sidebar__head's own fixed height so
   this row's border-bottom lands on the exact same line as the
   filter card's header border-bottom, instead of drifting lower once
   padding-bottom was added on top of the text's own line-height.
   The border color is var(--filter-line), the same variable the
   sidebar header border uses, so the two lines match exactly rather
   than the toolbar using the page's warmer, darker --line tone. */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  min-height: 56px;
  margin: 0 0 1.5em;
  padding-bottom: 0;
  border-bottom: 1px solid var(--filter-line);
}
.shop-toolbar__right {
  display: flex;
  align-items: stretch;
  height: 42px;
  gap: 0.75em;
  margin-left: auto;
}
.woocommerce-result-count { float: none; margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.woocommerce-ordering {
  float: none; margin: 0; clear: none;
  display: flex;
  align-items: stretch;
  height: 100%;
  box-sizing: border-box;
}
.woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55em 1.1em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  background: #fff;
  color: var(--ink);
  height: 100%;
  box-sizing: border-box;
  /* Chromium/Edge use accent-color to tint the native dropdown's
     highlighted/selected row — this swaps that from browser-default
     blue to branded black. Firefox/Safari don't expose that hook, so
     there the open option list still falls back to OS styling. */
  accent-color: var(--ink);
}
.woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(33, 33, 33, 0.12);
}
.shop-content::after { content: ''; display: table; clear: both; }

/* --- 4 / 3 column grid-density toggle ---
   Sits in .shop-toolbar__right, just left of the sort dropdown. Pure
   CSS + main.js (localStorage) — no query string, no page reload.
   Grid already switches to 3 columns under 1100px on its own, so this
   toggle's "3" state is only meaningful — and only shown wired up —
   at desktop widths; see the ul.products.products--cols-3 override
   further down. */
.shop-view-toggle {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 2px;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--filter-line);
  border-radius: var(--radius);
  padding: 3px;
  background: #fff;
}
.shop-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  /* The global button rule (line ~145) sets color: var(--paper)
     !important — without matching !important here these icons
     silently inherit that pale, near-invisible color instead of ours. */
  color: var(--ink) !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .shop-view-toggle__btn:hover { color: var(--ink) !important; background: #f7f7f7; }
}
.shop-view-toggle__btn.is-active { background: var(--ink); color: #fff !important; }
.shop-view-toggle__btn svg { display: block; flex-shrink: 0; }

@media (max-width: 1100px) {
  /* Both states render 3 columns below this breakpoint anyway. */
  .shop-view-toggle { display: none; }

  /* With the result count removed and the view toggle hidden here,
     .shop-toolbar has no visible children left below this breakpoint
     — collapse it instead of leaving its min-height/margin/border as
     dead empty space above the product grid. */
  .shop-toolbar {
    display: none;
  }
}

@media (min-width: 1101px) {
  ul.products.products--cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* --- Infinite scroll (replaces numbered "Pages" pagination) --- */
.infinite-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 2.5em 0 1em;
}
.infinite-scroll__loader { display: none; gap: 6px; }
.infinite-scroll.is-loading .infinite-scroll__loader { display: flex; }
.infinite-scroll__loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red, #dd183b);
  animation: blaq-is-loading-bounce 1s infinite ease-in-out both;
}
.infinite-scroll__loader span:nth-child(2) { animation-delay: 0.15s; }
.infinite-scroll__loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blaq-is-loading-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
.infinite-scroll__end {
  display: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.infinite-scroll.is-done .infinite-scroll__end { display: block; }

@media (max-width: 480px) {
  .shop-toolbar { align-items: flex-start; }
}

/* ==========================================================================
   Shared toast panel — see assets/js/toast.js. Used for the "added to
   cart" confirmation (assets/js/cart-toast.js) and the checkout
   required-fields warning (assets/js/checkout-toast.js). Both use the
   same red icon circle; only the icon glyph and message text change.
   ========================================================================== */

.blaq-toast {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 10000;
  width: min(320px, calc(100vw - 40px));
  background: var(--brand-black, #222);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.blaq-toast.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.blaq-toast__close {
  position: absolute;
  top: 0.5em;
  right: 0.6em;
  background: none !important;
  border: none;
  padding: 0.2em !important;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: pointer;
}
@media (hover: hover) {
  .blaq-toast__close:hover { color: #fff !important; }
}

.blaq-toast__content {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 1.1em 2em 1.1em 1.2em;
}
.blaq-toast__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blaq-toast__message { margin: 0; font-size: 0.88rem; font-weight: 600; color: #fff; line-height: 1.35; }

.blaq-toast__progress { height: 3px; background: rgba(255, 255, 255, 0.15); }
.blaq-toast__progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand-red);
  transform-origin: left;
  animation: blaq-toast-shrink 4s linear forwards;
}
.blaq-toast.is-visible .blaq-toast__progress > span { animation-play-state: running; }

@keyframes blaq-toast-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .blaq-toast { left: 20px; right: 20px; width: auto; top: 76px; }
}

/* ==========================================================================
   MY ACCOUNT PAGE
   Overrides woocommerce/myaccount/*.php templates (navigation, dashboard,
   orders, my-address, form-edit-account). Two-column layout — sticky
   sidebar nav + content — collapsing to horizontal scroll-tabs on mobile.
   Card/hairline-border language matches the product grid above rather
   than introducing a new visual style just for this page.
   ========================================================================== */

body.woocommerce-account {
  background: #FFFFFF;
}

body.woocommerce-account .page-header {
  display: none;
}

body.woocommerce-account main.site-main {
  padding-top: 2.5em;
}

/* Two-column layout, keyed to WooCommerce's own semantic classes
   (.woocommerce-MyAccount-navigation / .woocommerce-MyAccount-content)
   rather than child position. A plain "1st child / 2nd child" grid
   breaks the instant WooCommerce (or a plugin/notice hook) inserts an
   extra sibling — e.g. an empty .woocommerce-notices-wrapper — into
   this container: the column math shifts and everything collapses
   into one narrow stacked strip. Flexbox targeting the real classes
   is immune to that, and any stray sibling just won't be sized as a
   column at all. */

.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 260px;
  max-width: 260px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 0%;
  min-width: 0;
}

/* ---- Sidebar navigation ----
   position:sticky lives on the INNER .blaq-account-nav__sticky wrapper,
   not on the <nav> itself, since some browsers mis-place a sticky
   element's flex sizing once it becomes "stuck" mid-scroll — the flex
   item itself stays a plain non-sticky box and only its child
   scrolls-with-stick. */

.blaq-account-nav { min-width: 0; }

.blaq-account-nav__sticky {
  position: sticky;
  top: clamp(1rem, 3vw, 2rem);
  background: transparent;
  border-right: 1px solid var(--line);
  padding-right: 1.5em;
}

.blaq-account-nav__profile {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0 0 1.4em;
  margin-bottom: 0.6em;
}
.blaq-account-nav__profile-text { display: flex; flex-direction: column; min-width: 0; gap: 0.25em; }
.blaq-account-nav__profile-text small { color: var(--ink); font-size: var(--step--1); font-weight: 400; }
.blaq-account-nav__profile-text strong {
  font-size: var(--step-0);
  font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.blaq-account-nav__profile-tagline { color: var(--ink); font-size: 0.82rem; line-height: 1.35; }

.blaq-account-nav ul { list-style: none; margin: 0; padding: 0; }
.blaq-account-nav ul li { margin: 0; border-bottom: 1px solid var(--line); }
.blaq-account-nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 0.9em;
  margin: 0 -0.9em;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .blaq-account-nav ul li a:hover { background: var(--paper); }
}
.blaq-account-nav ul li.is-active a { background: var(--paper); color: var(--brand-red); }
.blaq-account-nav__badge {
  margin-left: auto;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3em 0.55em;
  border-radius: 999px;
}
.blaq-account-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.blaq-account-nav ul li:last-child { border-bottom: none; }

/* ---- Avatar ---- */

.blaq-account-avatar { position: relative; display: inline-flex; border-radius: 50%; overflow: visible; flex: 0 0 auto; }
.blaq-account-avatar__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}
.blaq-account-avatar--sm { width: 52px; height: 52px; }
.blaq-account-avatar--lg { width: 72px; height: 72px; }

/* ---- Dashboard ---- */

.blaq-account-dashboard { display: flex; flex-direction: column; gap: 1.5rem; }

.blaq-account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.blaq-stat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25em 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.blaq-stat-card__value { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); line-height: 1; }
.blaq-stat-card__label { font-size: 0.8rem; color: #7a7568; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.blaq-account-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.3em 1.4em;
}
.blaq-account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1em;
}
.blaq-account-panel__head h3 { margin: 0; font-size: calc(var(--step-1) * var(--heading-scale, 1)); }
.blaq-account-panel__link { font-size: var(--step--1); font-weight: 600; color: var(--cobalt); text-decoration: none; }
@media (hover: hover) {
  .blaq-account-panel__link:hover { text-decoration: underline; }
}

.blaq-quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9em; }
.blaq-quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6em;
  padding: 1em;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  font-size: var(--step--1);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .blaq-quick-action:hover { border-color: var(--sage); transform: translateY(-2px); }
}
.blaq-quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

/* ---- Order cards + stepper ---- */

.blaq-order-list { display: flex; flex-direction: column; gap: 1em; }
.blaq-order-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2em 1.3em;
}
.blaq-order-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.blaq-order-card__top strong a { color: var(--ink); text-decoration: none; }
@media (hover: hover) {
  .blaq-order-card__top strong a:hover { text-decoration: underline; }
}
.blaq-order-card__date, .blaq-order-card__count { display: block; color: #7a7568; font-size: 0.8rem; margin-top: 0.1em; }
.blaq-order-card__count::before { content: "•"; margin: 0 0.4em; }
.blaq-order-card__total { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); white-space: nowrap; }
.blaq-order-card__cancelled {
  margin-top: 1em;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-red-deep);
  background: rgba(221,24,59,0.08);
  padding: 0.35em 0.75em;
  border-radius: 999px;
}
.blaq-order-card__actions { display: flex; gap: 0.7em; margin-top: 1.1em; flex-wrap: wrap; }
.blaq-order-card__actions .btn,
.blaq-order-card__actions .btn-outline { padding: 0.55em 1.1em; font-size: 0.82rem; }

/* Progress reads left → right: the connector *leading into* a step is
   filled once that step has been reached, so the red line always shows
   exactly how far the order has gotten. Steps already passed get a
   solid dot with a checkmark ("done"); the step the order is on right
   now ("is-current") gets a larger ringed dot so it reads as "you are
   here" instead of blending in with completed steps; anything still
   ahead stays a plain hollow dot. */

.blaq-order-stepper {
  display: flex;
  list-style: none;
  margin: 1.2em 0 0;
  padding: 0;
}
.blaq-order-stepper li {
  flex: 1;
  min-width: 0;
  position: relative;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: #b3ab99;
  padding: 0 0.3em;
}
.blaq-order-stepper li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.blaq-order-stepper li:first-child::before { display: none; }
.blaq-order-stepper li.is-active::before { background: var(--brand-red); }
.blaq-order-stepper li.is-active { color: var(--ink); }
.blaq-order-stepper li.is-current { color: var(--brand-red-deep); }

.blaq-order-stepper__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 auto 0.45em;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--line);
  position: relative;
  z-index: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Completed step: solid red dot with a white checkmark. */
.blaq-order-stepper li.is-active .blaq-order-stepper__dot {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.blaq-order-stepper li.is-active .blaq-order-stepper__dot::after {
  content: "";
  width: 5px;
  height: 8px;
  margin-top: -1px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
/* Current step ("you are here"): bigger dot, red ring, solid center —
   no checkmark, since it isn't done yet. */
.blaq-order-stepper li.is-current .blaq-order-stepper__dot {
  width: 20px;
  height: 20px;
  background: var(--brand-red);
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--brand-red);
}
.blaq-order-stepper li.is-current .blaq-order-stepper__dot::after {
  width: 7px;
  height: 7px;
  margin-top: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  transform: none;
}
.blaq-order-stepper__label { display: block; line-height: 1.25; word-break: break-word; }
.blaq-order-stepper li.is-current .blaq-order-stepper__label { font-weight: 700; }

.blaq-account-empty {
  text-align: center;
  padding: 3em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  color: #7a7568;
}
.blaq-account-empty__icon { color: var(--line); }
.blaq-account-empty p { margin: 0; max-width: 32ch; }

.blaq-account-pagination { display: flex; justify-content: center; gap: 0.8em; margin-top: 1.2em; }

/* ---- Address book ---- */

.blaq-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2em; }
.blaq-address-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.3em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}
.blaq-address-card__head { display: flex; align-items: center; gap: 0.6em; }
.blaq-address-card__head h3 { margin: 0; font-size: calc(var(--step-0) * var(--heading-scale, 1)); }
.blaq-address-card__icon { color: #222; display: inline-flex; }
html[data-theme="dark"] .blaq-address-card__icon { color: #fff; }
.blaq-address-card address { font-style: normal; color: var(--charcoal); font-size: var(--step--1); line-height: 1.6; flex: 1; }
.blaq-address-card__edit { align-self: flex-start; padding: 0.5em 1.1em; font-size: 0.82rem; }

/* ---- Account details form ---- */

.blaq-account-form .blaq-account-panel {
  margin-bottom: 1.3em;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(22, 33, 62, 0.05);
}
.blaq-account-form .blaq-account-panel__head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.blaq-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2em; }
.blaq-form-grid .form-row,
.blaq-form-grid .woocommerce-form-row { width: 100%; float: none; margin: 0 0 1.1em; }
.blaq-form-grid .form-row-wide,
.blaq-form-grid .woocommerce-form-row--wide { grid-column: 1 / -1; }
.blaq-form-grid__fieldset {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1em 1.2em 0.2em;
  margin: 0.3em 0 1em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2em;
}
.blaq-form-grid__fieldset legend {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7568;
  padding: 0 0.4em;
}
.blaq-form-grid__fieldset .form-row-wide { grid-column: 1 / -1; }
.blaq-account-form__submit { display: flex; align-items: center; gap: 1em; }

/* Modern, slightly tighter type for labels/inputs/helper text — this
   form previously fell back to plain browser label/em styling, which
   read noticeably less polished than the rest of the account area. */
.blaq-account-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a7568;
  margin-bottom: 0.55em;
}
.blaq-account-form label .required { color: var(--brand-red); font-weight: 700; }
.blaq-account-form input[type="text"],
.blaq-account-form input[type="email"],
.blaq-account-form input[type="tel"],
.blaq-account-form input[type="password"] {
  font-size: 0.92rem;
  padding: 0.75em 1em;
  border-radius: 7px;
  border-color: var(--line-dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.blaq-account-form input:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(52, 87, 213, 0.12);
  outline: none;
}
.blaq-account-form .woocommerce-form-row em {
  display: inline-block;
  margin-top: 0.4em;
  font-size: 0.78rem;
  font-style: normal;
  color: #948f80;
}

.blaq-avatar-field { display: flex; align-items: center; gap: 1.3em; flex-wrap: wrap; }
.blaq-avatar-field__controls { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5em; }
.blaq-avatar-field__upload { cursor: pointer; padding: 0.55em 1.2em; font-size: 0.82rem; }
.blaq-avatar-field__remove { display: flex; align-items: center; gap: 0.4em; font-size: 0.8rem; color: #7a7568; cursor: pointer; }
.blaq-avatar-field small { color: #a19a89; font-size: 0.75rem; }

/* ---- Dashboard feature cards (My Orders / Buy Again / Wishlist / My Account) ---- */

.blaq-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; }
.blaq-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1em 1.2em;
  text-decoration: none;
  color: var(--charcoal);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .blaq-feature-card:hover { border-color: var(--ink); transform: translateY(-2px); }
}
.blaq-feature-card__icon { display: inline-flex; margin-bottom: 0.5em; color: var(--ink); }
.blaq-feature-card h3 { margin: 0 0 0.25em; font-size: calc(var(--step--1) * var(--heading-scale, 1)); color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.blaq-feature-card p { margin: 0; font-size: 0.78rem; color: #7a7568; line-height: 1.4; max-width: 30ch; }

/* ---- Buy Again tab ---- */

.blaq-buyagain-intro { color: #7a7568; font-size: var(--step--1); margin: 0 0 1.4em; max-width: 60ch; }
.blaq-wishlist-intro { color: #7a7568; font-size: var(--step--1); margin: 0 0 1.4em; max-width: 60ch; }

/* ---- Order detail (view-order) ----
   Black bar bookends — status banner up top, grand total at the
   bottom — with the itemised table and totals summary sandwiched
   between in one continuous card, matching the paper/ink/sage-green
   language used everywhere else in the account area. */

.blaq-order-detail { display: flex; flex-direction: column; gap: 1.5rem; }

.blaq-order-banner {
  background: var(--brand-black);
  color: var(--paper);
  padding: 1em 1.3em;
  border-radius: 6px;
  font-size: var(--step--1);
}
.blaq-order-banner strong { color: var(--price-green); }

.blaq-order-card-detail {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.blaq-order-items__row {
  display: grid;
  grid-template-columns: 1fr 90px 130px;
  gap: 1em;
  align-items: center;
  padding: 0.9em 1.3em;
  border-bottom: 1px solid var(--line);
}
.blaq-order-items__row:last-child { border-bottom: none; }
.blaq-order-items__row--head {
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a7568;
}
.blaq-order-items__product { display: flex; align-items: center; gap: 0.8em; min-width: 0; }
.blaq-order-items__thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--paper); }
.blaq-order-items__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blaq-order-items__name { font-size: var(--step--1); font-weight: 600; line-height: 1.3; }
.blaq-order-items__qty { text-align: center; color: #7a7568; }
.blaq-order-items__price { text-align: right; font-weight: 700; color: var(--price-green); }
.blaq-order-items__row--head .blaq-order-items__qty,
.blaq-order-items__row--head .blaq-order-items__price { color: inherit; font-weight: 700; }

.blaq-order-summary {
  padding: 1em 1.3em;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.blaq-order-summary__row { display: flex; justify-content: space-between; gap: 1em; font-size: var(--step--1); }
.blaq-order-summary__value { font-weight: 600; }

.blaq-order-total-bar {
  background: var(--brand-black);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.3em;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.blaq-order-total-bar strong { color: var(--price-green); font-size: var(--step-2); }

.blaq-order-detail__addresses { margin-top: 0; }
.blaq-address-card__contact { display: flex; align-items: center; gap: 0.5em; margin: 0; font-size: var(--step--1); color: #7a7568; }
.blaq-address-card__contact svg { flex: 0 0 auto; color: var(--sage-deep); }

/* ---- Responsive: stack sidebar above content, nav becomes a scroll strip ----
   Breakpoint kept narrow (560px, phone-width) rather than tablet-width —
   the full sidebar (icons, profile, wishlist badge) reads fine down to
   phone widths, so it stays for tablets like a 790px iPad-portrait view
   and only switches to the compact pill strip once there's genuinely not
   room for it. */

@media (max-width: 560px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { flex-basis: 100%; max-width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-content { flex-basis: 100%; }

  .blaq-account-nav__sticky { position: static; border-right: none; padding-right: 0; }
  .blaq-account-nav__profile { display: none; }
  .blaq-account-nav ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.6em;
    gap: 0.3em;
  }
  .blaq-account-nav ul li { flex: 0 0 auto; border-bottom: none; }
  .blaq-account-nav ul li a { white-space: nowrap; margin: 0; border-radius: 5px; }
  .blaq-account-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  .blaq-account-stats { grid-template-columns: 1fr; }
  .blaq-form-grid,
  .blaq-form-grid__fieldset { grid-template-columns: 1fr; }

  .blaq-feature-grid { grid-template-columns: 1fr; }

  .blaq-order-items__row { grid-template-columns: 1fr; gap: 0.4em; }
  .blaq-order-items__row--head { display: none; }
  .blaq-order-items__qty, .blaq-order-items__price { text-align: left; }
  .blaq-order-summary__row { flex-direction: column; gap: 0.1em; }
}

/* ==========================================================================
   CHECKOUT PAGE (WooCommerce's default woocommerce/checkout/*.php — no
   template override, styled purely off core's markup/classes) so it reads
   as one family with the My Account page above: white cards on a white
   page, hairline borders, 6–10px radii, uppercase micro-labels, cobalt
   focus rings — rather than WooCommerce's stock purple button / plain
   boxes / blue coupon banner.
   ========================================================================== */

body.woocommerce-checkout {
  background: #FFFFFF;
}

body.woocommerce-checkout .page-header {
  display: none;
}

body.woocommerce-checkout main.site-main {
  padding-top: 2.5em;
  padding-bottom: 4em;
  /* Checkout is a normal WP Page routed through page.php, which wraps
     content in .entry-content (see the body.woocommerce-page.entry-content
     fix above). That fix should already match the header nav's gutter,
     but this makes it explicit and non-negotiable right on the checkout
     page's own main wrapper too — same max-width and side padding as
     .nav-strip__inner — so "Billing details" / "Your order" can't read
     wider than the SHOP...CATEGORIES row above them, cached CSS or rule
     order notwithstanding. */
  max-width: var(--content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
  box-sizing: border-box !important;
}

/* Single flattened grid for the whole checkout area (was two nested grids:
   an outer one for notices/form.checkout/login-coupon, and an inner one
   inside form.checkout for customer_details/order_review). With two grids,
   the coupon box's vertical position was tied to the OUTER row's total
   height — i.e. to whichever column (billing fields vs. order review) was
   taller. When billing ran long (shipping-to-different-address, order
   notes, etc.), the coupon box landed below the bottom of the *billing*
   column instead of directly under Place Order.
   Fix: form.checkout contributes no box of its own (display: contents), so
   #customer_details, the order-review heading/table/payment card, and the
   coupon box are all direct items of ONE grid, each in its own row of
   column 2 — independent of column 1's height. #customer_details spans
   every one of those rows plus a trailing 1fr "slack" row, so if billing
   content is the taller column, the leftover height collects invisibly
   *after* the coupon box instead of as a gap above it. */
/* :not(.woocommerce-order-received) — is_checkout() (and therefore this
   body class) is also true on the order-received endpoint, which uses
   its own full template override (see checkout/thankyou.php +
   .blaq-order-received rules below) and must NOT be pulled into this
   grid, or its single wrapper div gets treated as one grid item: squeezed
   into the 30% first column, with the do_action('woocommerce_thankyou_*')
   markup that follows it (e.g. the COD instructions text) falling into
   the second column, and the leftover grid-template-rows 1fr row showing
   as blank space underneath. */
.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
  /* row1 notices, row2 order-review heading, row3 order-review table+
     payment, row4 coupon box (now right under Place Order), row5
     returning-customer/login prompt (empty on most sites), row6
     invisible flexible slack row. */
  grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 0;
  align-items: start;
}
.woocommerce-checkout .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  grid-row: 1;
  order: 1;
}
.woocommerce-checkout .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-checkout .woocommerce-notices-wrapper:not(:empty) { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* form.checkout no longer draws a box — its children become direct
   siblings of the coupon/login items in the grid above. */
.woocommerce-checkout form.checkout { display: contents; }

.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 2 / 7;
  order: 1;
}
.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 2;
  order: 2;
}
.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 3;
  order: 3;
}
/* Returning-customer login prompt: plain text between Place Order and
   the coupon box (no pill/card styling — see .woocommerce-form-login-toggle
   override below). */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login {
  grid-column: 2;
  grid-row: 4;
  order: 4;
}
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-login {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
/* Coupon box: right after the returning-customer line (row 5), still
   directly under Place Order — independent of how tall the billing
   column is. */
.woocommerce-checkout .checkout_coupon {
  grid-column: 2;
  grid-row: 5;
  order: 5;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 900px) {
  .woocommerce-checkout:not(.woocommerce-order-received) .woocommerce {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .checkout_coupon,
  .woocommerce-checkout .woocommerce-form-login-toggle,
  .woocommerce-checkout .woocommerce-form-coupon-toggle,
  .woocommerce-checkout .woocommerce-form-login {
    grid-column: 1;
    grid-row: auto;
  }
  .woocommerce-checkout #customer_details { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
}

/* ---- Coupon banner ----
   WC's default markup is a <p class="woocommerce-info"> with a form
   nested inside it that's hidden until the toggle link is clicked;
   restyle the banner as a soft card instead of the stock blue-bordered
   notice box. */
.woocommerce-checkout .woocommerce-info {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1em 1.3em;
  margin: 0 0 0.5em;
  color: var(--charcoal);
  font-size: var(--step--1);
  list-style: none;
}
.woocommerce-checkout .woocommerce-info::before { display: none; }
.woocommerce-checkout .showcoupon { color: var(--cobalt); font-weight: 600; text-decoration: underline; }

/* Return-customer login prompt. WC's markup nests the actual text in a
   CHILD element — <div class="woocommerce-form-login-toggle"><p
   class="woocommerce-info">...</p></div> — not on the same tag, so the
   card background/border (from .woocommerce-info, the same class the
   coupon banner uses) lives on that inner <p>, not on the outer
   .woocommerce-form-login-toggle div. Overriding only the outer div (as
   before) never touched it. Target the inner element directly here. */
.woocommerce-checkout .woocommerce-form-login-toggle {
  flex: 1 1 260px;
  font-size: 0.82rem;
  margin: 0 !important;
  margin-top: clamp(1.5rem, 3vw, 2.5rem) !important; /* keep the gap below Place Order */
}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle p {
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.woocommerce-checkout .woocommerce-form-login-toggle a { color: var(--cobalt); font-weight: 600; text-decoration: underline; }

/* "Have a coupon?" click-to-reveal pill is gone — the coupon field
   below is always visible now, so there's nothing left to toggle open. */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}

.woocommerce-checkout .woocommerce-form-login {
  flex: 1 1 100%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4em 1.5em;
  margin: 0 0 0.5em;
}

/* ---- Coupon field ----
   Always-visible bordered box with a "Coupon" heading and the input +
   Apply button merged into one connected control (shared border, no
   gap between them) — matching the requested reference design, rather
   than WC's default click-to-reveal pill + separately-rounded button. */
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  display: flex !important; /* overrides WC's inline style="display:none" */
  flex-wrap: wrap;
  flex: 1 1 100%;
  gap: 0;
  margin: 0 !important;
  margin-top: clamp(1.5rem, 3vw, 2.5rem) !important; /* the gap under Place Order */
  padding: 0 !important;
  /* !important because WooCommerce's own stylesheet styles this same
     element (it carries both "checkout_coupon" and "woocommerce-form-coupon")
     as a bordered, padded card — that rule was winning over the plain
     selector below and is what put the outer box/border around the whole
     "Coupon" card in the reference screenshot. */
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
/* Decorative "Coupon" heading. WC's real <label class="screen-reader-text">
   next to the input stays screen-reader-only — this is purely the visual
   heading from the reference, forced onto its own full-width line above
   the input/button row via flex-basis: 100%. */
.woocommerce-checkout .checkout_coupon::before {
  content: "Coupon";
  flex: 1 0 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink);
  margin-bottom: 0.6em;
}
.woocommerce-checkout .checkout_coupon .form-row {
  margin: 0;
  padding: 0;
}
.woocommerce-checkout .checkout_coupon .form-row-first { flex: 1 1 auto; }
.woocommerce-checkout .checkout_coupon .form-row-last { flex: 0 0 auto; }
.woocommerce-checkout .checkout_coupon .form-row-first .input-text {
  box-sizing: border-box;
  width: 100%;
  /* Matched to the "Apply coupon" button's height (var(--btn-height))
     since the two are a flush joined pill — border-radius connects
     them on one side, so they'd visibly step out of alignment if only
     the button were resized. */
  height: var(--btn-height);
  padding: 0 1em;
  border: 1px solid var(--line-dark);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.86rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce-checkout .checkout_coupon .form-row-first .input-text:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(52, 87, 213, 0.12);
  outline: none;
  position: relative;
  z-index: 1;
}
.woocommerce-checkout .checkout_coupon .form-row-last button.button {
  height: var(--btn-height);
  box-sizing: border-box;
  padding: 0 1.6em;
  border: 1px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: var(--ink);
  color: var(--paper-raised);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  .woocommerce-checkout .checkout_coupon .form-row-last button.button:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
}
.woocommerce-checkout .checkout_coupon .clear { display: none; }

/* ---- Coupon card, moved ABOVE "Your order" ----
   Same card look as the Your order box below it (white, 1px --line
   border, 10px radius) and the same fixed side gutter (--co-pad), so the
   "Coupon" title, input and button line up with the order card's content.
   Desktop rows: 2 coupon, 3 order heading, 4 order table + payment,
   5 login prompt (row numbers set in the min-width block below). */
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem) !important;
  padding: 1.3rem var(--co-pad) 1.5rem !important;
  background: var(--paper-raised) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-sizing: border-box;
  order: 2;
}
.woocommerce-checkout .checkout_coupon::before {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
/* Lay the coupon out as an explicit 2-column grid (input | button) under
   the title. WooCommerce wraps the input and button in floated,
   percentage-width <p class="form-row-first/last"> elements, which let the
   input collapse or leave a gap before the button. display: contents drops
   those wrappers so the input and button are direct grid items: the input
   fills the row and the button hugs its own width, joined flush. */
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0;
  align-items: start;
}
.woocommerce-checkout .checkout_coupon::before { grid-column: 1 / -1; }
.woocommerce-checkout .checkout_coupon .form-row-first,
.woocommerce-checkout .checkout_coupon .form-row-last { display: contents !important; }
.woocommerce-checkout .checkout_coupon .form-row-first .input-text {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  min-width: 0;
  border-radius: 8px 0 0 8px;
}
.woocommerce-checkout .checkout_coupon .form-row-last button.button {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  border-radius: 0 8px 8px 0;
}
.woocommerce-checkout #order_review_heading { order: 3; }
.woocommerce-checkout #order_review { order: 4; }
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-login { order: 5; }

@media (min-width: 901px) {
  .woocommerce-checkout .checkout_coupon.woocommerce-form-coupon { grid-column: 2; grid-row: 2; }
  .woocommerce-checkout #order_review_heading { grid-row: 3; }
  .woocommerce-checkout #order_review { grid-row: 4; }
  .woocommerce-checkout .woocommerce-form-login-toggle,
  .woocommerce-checkout .woocommerce-form-login,
  .woocommerce-checkout .woocommerce-form-coupon-toggle { grid-row: 5; }
}

/* ---- Two-column shell: billing/shipping details (left) + order review
   & payment (right), just re-carded. Column widths/placement are set on
   form.checkout above (grid); these just keep the cards from overflowing
   their grid track. ---- */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  min-width: 0;
}

.woocommerce-checkout h3 {
  font-family: var(--font-body);
  font-size: calc(var(--step-1) * var(--heading-scale, 1));
  font-weight: 700;
  margin: 0 0 0.9em;
}

/* ---- Billing/shipping card ---- */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4em 1.5em;
  margin-bottom: 1.5em;
}
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 { margin-top: 0; }

.woocommerce-checkout .form-row { margin: 0 0 1.1em; }
.woocommerce-checkout .form-row-last,
.woocommerce-checkout .form-row-first { width: calc(50% - 0.6em); }

.woocommerce-checkout .form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #222222;
  margin-bottom: 0.5em;
}
.woocommerce-checkout .form-row label .required { color: var(--brand-red); text-decoration: none; }

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single {
  box-sizing: border-box;
  height: 40px;
  padding: 0 1em;
  border-radius: 7px;
  border-color: var(--line-dark);
  font-size: 0.86rem;
  line-height: 38px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  line-height: normal;
}
.woocommerce-checkout .select2-container .select2-selection__rendered {
  line-height: normal;
  padding-left: 0;
}
.woocommerce-checkout .select2-container .select2-selection__arrow {
  height: 38px;
}
/* Order notes / any multi-line field stays its own height, just matched
   in radius/border/font to the single-line fields above. */
.woocommerce-checkout .form-row textarea {
  box-sizing: border-box;
  /* Stay inside the card: full width of the field, and resize only
     downward (vertical) so dragging the handle never pushes it past the
     card's right edge. */
  display: block;
  width: 100%;
  max-width: 100%;
  resize: vertical;
  border-radius: 7px;
  border-color: var(--line-dark);
  font-size: 0.86rem;
  padding: 0.65em 1em;
  height: auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(52, 87, 213, 0.12);
  outline: none;
}

/* Full Address (billing_address_1 / shipping_address_1) is rendered as a
   textarea (see functions.php) instead of a one-line input, so a full
   house/road/area/district address has room to wrap. Taller starting
   height than the generic .form-row textarea rule above, and an explicit
   vertical resize handle so it can be dragged open further — a "note
   field" feel rather than a cramped single line. Shipping mirrors billing
   exactly here. */
.woocommerce-checkout #billing_address_1,
.woocommerce-checkout #shipping_address_1 {
  min-height: 90px;
  resize: vertical;
}
.woocommerce-checkout #order_comments {
  min-height: 110px;
}

.woocommerce-checkout #ship-to-different-address {
  font-weight: 700;
  margin-bottom: 1em;
}

/* WC's own stylesheet floats #customer_details' two inner columns
   (.col-1 = billing, .col-2 = "ship to a different address?" + order
   notes) side by side at ~48% each. Stack them instead so the
   ship-to-different-address toggle and order notes card sit full-width
   below the billing details card, not next to it. */
.woocommerce-checkout #customer_details .col2-set {
  width: 100%;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
}

/* ---- Order review card ----
   #order_review_heading, the table, and #payment are three separate
   elements (see the grid above), but they should read as one enclosed
   card — the same way .woocommerce-billing-fields is one bordered box
   on the left. Rather than only carding the table, give the heading a
   matching background/border with rounded top corners and no bottom
   border, let the table continue with side borders only (no radius,
   no top/bottom border), and let #payment close the box with rounded
   bottom corners — the three pieces share one seam-free outline. */
.woocommerce-checkout {
  /* One fixed horizontal gutter shared by the heading, table rows, total
     row and payment box so their left edges (and the Subtotal column's
     left edge) line up exactly — em-based padding drifted because each
     of those elements has a different font-size. */
  --co-pad: 1.5rem;
}
.woocommerce-checkout #order_review_heading {
  margin: 0;
  padding: 1.3rem var(--co-pad) 0.8rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
  background: #222222;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 0.8rem var(--co-pad);
  border: none;
}
/* Subtotal column header: right-align to match the right-aligned price
   values in that column below it (the product-name column stays left). */
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th:last-child {
  text-align: right;
}
/* Qty column: added by the checkout/review-order.php override so each
   item's quantity gets its own cell instead of being appended to the
   product name as "Product name × 4". Kept narrow and centered so it
   reads as a single small number between the (wide) product name and
   the (right-aligned) subtotal. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-qty,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-qty {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}
.blaq-item-qty {
  font-weight: 600;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table th {
  border-top: 1px solid var(--line);
  border-left: none;
  border-right: none;
  padding: 0.85rem var(--co-pad);
  vertical-align: middle;
  /* Matches the 0.86rem used by the billing form's inputs on the left
     (see .woocommerce-checkout .form-row input.input-text above), so the
     order-review card doesn't read at a visibly larger scale than the
     billing details next to it. The order-total row below still gets a
     deliberately larger, bolder size for emphasis — left as-is. */
  font-size: 0.86rem;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .shipping th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .shipping td {
  font-weight: 600;
}
/* Delivery Charge row: Base charge / Extra weight charge / Total
   Delivery Charge breakdown (see blaq_delivery_shipping_method_full_label()
   in inc/delivery-zones.php). Each row is its own flex line so the label
   stays left and the amount stays right, independent of the price
   column's usual text-align: right on the cell itself. */
.blaq-shipping-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}
.blaq-shipping-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 400;
  color: #6b6558;
}
.blaq-shipping-breakdown__row--total {
  margin-top: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.blaq-shipping-breakdown__row--total .woocommerce-Price-amount {
  color: var(--price-green);
}
/* Subtotal column: every row's price cell (product line, Subtotal,
   Delivery Charge, Total) right-aligns to match the "SUBTOTAL" header
   above it — the price column reads as one flush-right edge top to
   bottom. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table td:last-child {
  text-align: right;
}
/* Delivery Charge row: the default WooCommerce markup splits every
   totals row into a <th> (label) + <td> (price) pair, sized to fit
   the product row's long name and short prices. That squeezes the
   Base charge / Extra weight charge / Total Delivery Charge breakdown
   into the same narrow right-hand price column, with a big empty gap
   in front of it. woocommerce/cart/cart-shipping.php is overridden to
   render this row as a single <td colspan="2"> instead, so the
   breakdown can use the row's full width — this just styles that
   cell's own row label to match the bold "Subtotal"/"Total" labels
   (those still come from a real <th>, which is bold by default) and
   removes the top padding above the breakdown so it sits right under
   the label instead of leaving a matching top gap. */
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.blaq-shipping-totals-row td {
  text-align: left;
}
.blaq-shipping-row-label {
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td {
  font-family: var(--font-body); /* Montserrat */
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total bdi,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-currencySymbol {
  font-family: var(--font-body);
  font-weight: 700;
}

/* ---- Payment methods card ---- */
.woocommerce-checkout #payment {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-top: 0;
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0.3rem var(--co-pad);
}
.woocommerce-checkout #payment ul.payment_methods li {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.9em 0;
  margin: 0;
}
.woocommerce-checkout #payment ul.payment_methods li:last-of-type { border-bottom: none; }
.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 600;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.woocommerce-checkout #payment ul.payment_methods li img { max-height: 20px; vertical-align: middle; }
.woocommerce-checkout #payment .payment_box {
  background: var(--paper);
  border: none;
  border-radius: 7px;
  margin: 0.6em 0 0.8em;
  padding: 0.9em 1.1em;
  font-size: var(--step--1);
  color: var(--charcoal);
}
.woocommerce-checkout #payment .payment_box::before { display: none; }

/* Full-bleed to match the black PRODUCT/QTY/SUBTOTAL header bar above
   it (edge to edge against the card's own border) instead of sitting
   inset inside the payment card's usual side padding. */
.woocommerce-checkout #payment .place-order {
  padding: 1.2rem 0 1.4rem;
}
.woocommerce-checkout #payment #place_order {
  width: 100%;
  justify-content: center;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper) !important;
  padding: 0.65em 1.5em;
  line-height: 1.3;
  font-size: var(--step-0);
  border-radius: 0;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  font-size: 0.78rem;
  color: #7a7568;
  margin-bottom: 1em;
  padding: 0 var(--co-pad);
}
@media (hover: hover) {
  .woocommerce-checkout #payment #place_order:hover {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}
}

/* ---- "I agree to..." checkbox, just above the Confirm button ----
   !important throughout this block: WooCommerce's own bundled
   stylesheet (loaded separately by the plugin, not from this theme)
   applies some generic spacing to its own
   ".woocommerce-form__label-for-checkbox" / ".form-row" classes that
   this markup reuses, which is what was nudging the box out of line
   with the payment method radios above it — this forces our own
   flush-left spacing to win regardless of what that stylesheet sets. */
.woocommerce-checkout #payment .blaq-checkout-terms-wrapper {
  padding: 0 var(--co-pad) !important;
  margin: 0.2em 0 1em !important;
  text-indent: 0 !important;
}
.woocommerce-checkout #payment .blaq-checkout-terms {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  text-indent: 0 !important;
}
/* WooCommerce's bundled stylesheet also puts its own left inset directly
   on ".woocommerce-form__label-for-checkbox" (the label itself, not just
   the wrapper/row) — that class is still on our label, so its rule was
   still winning here even with the wrapper reset above. Zero it out on
   this specific label so the checkbox's left edge lands exactly at the
   card's shared --co-pad gutter, flush with the payment radios above it. */
.woocommerce-checkout #payment .blaq-checkout-terms label.woocommerce-form__label-for-checkbox {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
.woocommerce-checkout #payment .blaq-checkout-terms label.checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1.3;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  float: none !important;
}
/* appearance: none + a fully custom-drawn box, rather than the native
   OS checkbox — the native control doesn't actually fill the width/
   height/margin we give it, so its real edges (and any focus ring/
   outline drawn around it) sit at slightly different spot than our
   layout box, which is what was throwing off the left alignment and
   making the red invalid state look like a mis-placed second box. */
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--paper-raised);
  position: relative !important;
  left: auto !important;
  top: auto !important;
  float: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 0.32em;
  top: 0.08em;
  width: 0.28em;
  height: 0.5em;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.woocommerce-checkout #payment .blaq-checkout-terms a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover) {
  .woocommerce-checkout #payment .blaq-checkout-terms a:hover { color: var(--brand-red); }
}
/* The unchecked box should look identical whether or not the form has
   been submitted — no red border/outline on the "invalid" state.
   Browsers (and WooCommerce's own bundled CSS) draw their own red
   glow/outline on an unchecked required checkbox by default, which is
   what was making it look bigger/thicker than the normal box; these
   resets strip that so the box never changes appearance. */
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:invalid,
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:focus,
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:required,
.woocommerce-checkout #payment .blaq-checkout-terms.woocommerce-invalid input.input-checkbox {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox:checked {
  border-color: var(--ink) !important;
}

@media (max-width: 780px) {
  .woocommerce-checkout .form-row-last,
  .woocommerce-checkout .form-row-first { width: 100%; }
}

/* ==========================================================================
   ORDER RECEIVED / "THANK YOU" PAGE (checkout/order-received endpoint) —
   full template override (woocommerce/checkout/thankyou.php), not a
   restyle of core markup: reproduces the client-supplied preview
   exactly — success banner, single "Order summary" card, and an
   address-card sidebar — under its own `.blaq-order-received` /
   `.page` / `.card` etc. class names. Every selector below is scoped
   under `.blaq-order-received` because several of those names
   (`.product`, `.summary`, `.page`) are already used elsewhere in
   this stylesheet for unrelated things.
   Colours, spacing, radii and the Inter font stack are copied as
   given rather than mapped onto this theme's own tokens (--brand-red,
   --ink, --font-body, etc.), so this page intentionally reads as its
   own design rather than matching the rest of the site 1:1. Inter
   isn't enqueued anywhere in this theme (only Sora + Montserrat,
   see wp_enqueue_scripts above), so text here falls back through the
   rest of that font stack (-apple-system / Segoe UI / sans-serif) —
   add an Inter <link> alongside the existing Google Fonts import if
   true Inter rendering is wanted.
   ========================================================================== */

.blaq-order-received *,
.blaq-order-received *::before,
.blaq-order-received *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* No background/border-top here: those were copied from the standalone
   preview's own <body> rule, but this div sits inside the theme's real
   page body, which already has its own red nav bar above and white
   background — repeating them here just added a second red rule below
   the header and an off-white patch that didn't match the rest of the
   site. */
.blaq-order-received {
  font-family: var(--font-body);
  color: #222222;
  padding: 40px 24px 70px;
}

.blaq-order-received .page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* =========================
   SUCCESS MESSAGE
========================= */

.blaq-order-received .success {
  background: #fff;
  border: 1px solid #E5CFC6;
  border-radius: 14px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.blaq-order-received .success-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #DD183B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.blaq-order-received .success-text {
  font-size: 13px;
  font-weight: 600;
}

/* Failed / invalid-order variant — not part of the original preview
   (which only covers the success state); kept in the same visual
   language so a declined payment or a stale link doesn't fall back
   to an unstyled page. */
.blaq-order-received .success.is-error .success-icon {
  background: #DD183B;
}
.blaq-order-received .failed-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}
.blaq-order-received .failed-actions a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #222222;
}
.blaq-order-received .failed-actions .btn-pay {
  background: #DD183B;
  border-color: #DD183B;
  color: #fff;
}
.blaq-order-received .failed-actions .btn-account {
  background: #fff;
  color: #222222;
}


/* =========================
   MAIN LAYOUT
========================= */

.blaq-order-received .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}


/* =========================
   CARD
========================= */

.blaq-order-received .card {
  background: #fff;
  border: 1px solid #E5CFC6;
  border-radius: 16px;
  overflow: hidden;
}


/* =========================
   ORDER HEADER
========================= */

.blaq-order-received .order-header {
  padding: 24px;
  border-bottom: 1px solid #E5CFC6;
}

.blaq-order-received .order-title {
  font-size: calc(18px * var(--heading-scale, 1));
  font-weight: 700;
  letter-spacing: -0.3px;
}

.blaq-order-received .order-subtitle {
  margin-top: 5px;
  color: #8a817a;
  font-size: 12px;
}


/* =========================
   ORDER META
========================= */

.blaq-order-received .order-meta {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  border-bottom: 1px solid #E5CFC6;
}

.blaq-order-received .meta {
  padding: 19px 20px;
}

.blaq-order-received .meta:first-child {
  border-right: 1px solid #E5CFC6;
}

.blaq-order-received .meta-label {
  color: #918981;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px;
}

.blaq-order-received .meta-value {
  font-size: 13px;
  font-weight: 600;
}


/* =========================
   PAYMENT
========================= */

.blaq-order-received .payment {
  padding: 17px 24px;
  background: #fffaf7;
  border-bottom: 1px solid #E5CFC6;

  display: flex;
  align-items: center;
  gap: 12px;
}

.blaq-order-received .payment-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  border-radius: 9px;
  background: #f2e5dd;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.blaq-order-received .payment-label {
  color: #8d857e;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.blaq-order-received .payment-method {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
}

.blaq-order-received .payment-note {
  margin-left: auto;
  padding-left: 16px;
  color: #8d857e;
  font-size: 11px;
  font-style: italic;
  text-align: right;
}

.blaq-order-received .payment-note p {
  margin: 0;
}


/* =========================
   ORDER DETAILS
========================= */

.blaq-order-received .order-content {
  padding: 24px;
}

.blaq-order-received .section-title {
  font-size: calc(14px * var(--heading-scale, 1));
  font-weight: 700;
  margin-bottom: 14px;
}

.blaq-order-received .product {
  padding: 16px 0;

  border-top: 1px solid #E5CFC6;
  border-bottom: 1px solid #E5CFC6;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blaq-order-received .product-name {
  color: #37322e;
  font-size: 13px;
}

.blaq-order-received .product-price {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}


/* =========================
   PRICE SUMMARY
========================= */

.blaq-order-received .summary {
  padding-top: 7px;
}

.blaq-order-received .summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 9px 0;

  font-size: 12px;
}

.blaq-order-received .summary-row > span:first-child {
  color: #77706a;
}

.blaq-order-received .summary-row strong {
  font-weight: 600;
}

.blaq-order-received .shipping-info {
  color: #99918b;
  font-size: 10px;
  margin-left: 4px;
}

.blaq-order-received .total-row {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #dcd3ca;
}

.blaq-order-received .total-row > span:first-child {
  color: #222222;
  font-weight: 700;
}

.blaq-order-received .total-row strong,
.blaq-order-received .total-row strong .woocommerce-Price-amount,
.blaq-order-received .total-row strong .woocommerce-Price-amount bdi,
.blaq-order-received .total-row strong .woocommerce-Price-currencySymbol {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 20px;
  font-weight: 700;
}


/* =========================
   ADDRESS CARDS
========================= */

.blaq-order-received .address-card {
  padding: 20px;
}

.blaq-order-received .address-card + .address-card {
  margin-top: 16px;
}

.blaq-order-received .address-title {
  font-size: calc(12px * var(--heading-scale, 1));
  font-weight: 700;
  margin-bottom: 12px;
}

.blaq-order-received .address-box {
  display: block;
  border: 1px solid #E5CFC6;
  border-radius: 9px;
  padding: 13px;

  color: #77706a;
  font-size: 10px;
  line-height: 1.7;
}

/* WC's own get_formatted_billing_address()/get_formatted_shipping_address()
   returns "Name<br/>Company<br/>Address..." as one block — bolding
   just its first rendered line (the name) via ::first-line reproduces
   the preview's separate bold .address-name line without having to
   pull the customer's name out of that string by hand. */
.blaq-order-received .address-box::first-line {
  color: #292522;
  font-weight: 700;
}

.blaq-order-received .address-phone,
.blaq-order-received .address-email {
  color: #938b84;
}


/* =========================
   RESPONSIVE
========================= */

/* Gateway-level thank-you note (e.g. WC_Gateway_COD::thankyou_page()),
   printed via do_action('woocommerce_thankyou_{method}') right after
   .blaq-order-received, as a bare <p> with no class of its own — hence
   the tag selector, scoped to the order-received body class only. */
body.woocommerce-order-received .woocommerce > p {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 24px;
  color: #77706a;
  font-size: 12px;
  font-family: var(--font-body);
}

@media (max-width: 850px) {

  .blaq-order-received .layout {
    grid-template-columns: 1fr;
  }

  .blaq-order-received .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .blaq-order-received .address-card + .address-card {
    margin-top: 0;
  }
}


@media (max-width: 600px) {

  .blaq-order-received {
    padding: 25px 14px 50px;
  }

  .blaq-order-received .sidebar {
    grid-template-columns: 1fr;
  }

  .blaq-order-received .payment {
    padding: 16px 20px;
  }

  .blaq-order-received .order-content,
  .blaq-order-received .order-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}


@media (max-width: 450px) {

  .blaq-order-received .order-meta {
    grid-template-columns: 1fr;
  }

  .blaq-order-received .meta:first-child {
    border-right: 0;
    border-bottom: 1px solid #E5CFC6;
  }

  .blaq-order-received .meta {
    padding: 16px 18px;
  }

  .blaq-order-received .success {
    padding: 15px;
  }
}

/* ==========================================================================
   LOGIN / REGISTER PAGE (woocommerce/myaccount/form-login.php)
   Split-screen sign-in: branded panel + email/phone/Google forms.
   Uses the same design tokens as the rest of the theme (see :root above)
   rather than its own palette, so it stays in sync with brand changes.
   ========================================================================== */

.blaq-login {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.blaq-login__banner {
  max-width: 1280px;
  margin: 0 auto 1.5em;
  padding: 0.9em 1.2em;
  background: #FDECEC;
  border: 1px solid #F3C6C6;
  color: #B01430;
  border-radius: 8px;
  font-size: 13px;
}

.blaq-login__card {
  width: min(600px, 100%);
  height: auto;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border-radius: 27px;
  overflow: hidden;
  display: block;
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}

/* ---- Left: brand panel ---- */
.blaq-login__brand {
  position: relative;
  overflow: hidden;
  background: #f7f6f3;
  padding: 52px 62px;
}

.blaq-login__logo {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -2.6px;
  line-height: 1;
  color: var(--ink);
}
.blaq-login__logo-dot { color: var(--brand-red); }

.blaq-login__brand-copy {
  position: absolute;
  left: 62px;
  top: 50%;
  transform: translateY(-48%);
}

.blaq-login__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #666b72;
  margin-bottom: 38px;
}

.blaq-login__brand-copy h1 {
  font-size: calc(68px * var(--heading-scale, 1));
  line-height: .91;
  letter-spacing: -4px;
  margin-bottom: 28px;
  color: var(--ink);
  font-weight: 800;
}

.blaq-login__accent-dot { position: relative; }
.blaq-login__accent-dot:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-red);
  right: -18px;
  bottom: 4px;
}

.blaq-login__brand-copy p {
  color: #777d86;
  font-size: 15px;
  line-height: 1.7;
  max-width: 340px;
}

.blaq-login__features {
  position: absolute;
  left: 62px;
  bottom: 48px;
  display: flex;
  gap: 45px;
}
.blaq-login__feature b { display: block; font-size: 11px; margin-bottom: 5px; color: var(--ink); }
.blaq-login__feature span { color: #7c8189; font-size: 10px; }

/* ---- Right: form panel ---- */
.blaq-login__panel {
  display: flex;
  align-items: center;
  padding: 60px;
  box-sizing: border-box;
}
.blaq-login__panel > div[data-blaq-login-panel] { width: 100%; max-width: 460px; margin: auto; }

.blaq-login__panel h2 { font-size: calc(37px * var(--heading-scale, 1)); letter-spacing: -2px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.blaq-login__sub { color: var(--charcoal); font-size: 14px; line-height: 1.5; margin-bottom: 34px; }
.blaq-login__form { border: none !important; padding: 0 !important; box-shadow: none !important; background: none !important; float: none !important; width: 100% !important; clear: both !important; box-sizing: border-box; }

.blaq-field { margin-bottom: 18px; }
.blaq-field label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
/* Repeats the type attribute alongside .blaq-input so this reliably beats
   the earlier global "input[type=text], input[type=email], … , textarea,
   select { padding:0.7em 0.9em; font-size:var(--step-0); border:1px solid
   var(--line-dark); border-radius:var(--radius); background:var(--paper-raised); }"
   rule near the top of this file. That rule's selector (element + type
   attribute) is MORE specific than a single ".blaq-input" class, so it was
   silently winning padding/font-size/border/radius/background on every
   .blaq-input field sitewide (login, checkout, contact, artwork-submission,
   account forms) — only the handful of properties re-declared elsewhere
   with an extra scoping class (e.g. .blaq-contact-form .blaq-input's
   font-size) ever actually took effect. The visible symptom: uneven
   padding and a squeezed text/placeholder that looked clipped against the
   top of the box, since the winning 0.7em vertical padding + this rule's
   own fixed 48px height (box-sizing:border-box sitewide) left barely
   enough room for a line of text. Matches the fix already used for
   .footer-subscribe__input above. The bare .blaq-input selector at the
   end is a fallback for any input type not listed (e.g. type="url"). */
input[type="text"].blaq-input,
input[type="email"].blaq-input,
input[type="tel"].blaq-input,
input[type="password"].blaq-input,
input[type="number"].blaq-input,
input[type="search"].blaq-input,
input[type="date"].blaq-input,
input[type="file"].blaq-input,
textarea.blaq-input,
select.blaq-input,
.blaq-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  padding: 0 15px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #222222;
  background: #fff;
  transition: .2s;
}
.blaq-input::placeholder { color: #9297a0; font-size: 13px; }
.blaq-input:focus { border-color: #222222; box-shadow: 0 0 0 3px rgba(0,0,0,.045); }

.blaq-input-icon,
.blaq-password { position: relative; display: block; }

.blaq-login__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 23px;
}
.blaq-remember { display: flex; align-items: center; gap: 7px; color: #6d7279; font-size: 11px; font-weight: 700; }
.blaq-remember input { width: 14px; height: 14px; accent-color: #222222; }
.blaq-login__options a { color: #222222; text-decoration: none; font-size: 11px; font-weight: 800; }

.blaq-btn {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box;
  float: none !important; position: static !important; clear: both !important;
  height: var(--btn-height);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-body);
  margin-bottom: 0.6em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: .2s;
}
.blaq-btn--primary { background: #222222; color: #fff !important; }
@media (hover: hover) {
  .blaq-btn--primary:hover { background: var(--brand-red-deep) !important; border-color: var(--brand-red-deep) !important; transform: translateY(-1px); }
}
.blaq-btn__arrow { font-size: 1em; line-height: 1; }
.blaq-btn--google {
  background: #fff;
  border: 1px solid var(--line);
  color: #222222 !important;
  font-size: 12px;
}
@media (hover: hover) {
  .blaq-btn--google:hover { border-color: #222222; background: #fafafa; }
}
.blaq-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.blaq-login__google-icon { width: 19px; height: 19px; display: flex; }
.blaq-login__google-icon svg { width: 100%; height: 100%; display: block; }

.blaq-login__divider {
  display: flex !important; align-items: center; gap: 12px;
  width: 100% !important; box-sizing: border-box;
  float: none !important; position: static !important; clear: both !important;
  color: #a0a3a8; font-size: 10px;
  margin: 26px 0;
}
.blaq-login__divider:before, .blaq-login__divider:after { content: ""; height: 1px; flex: 1 1 0%; min-width: 0; background: #e5e5e5; }

.blaq-login__switch { display: block !important; width: 100% !important; float: none !important; position: static !important; clear: both !important; box-sizing: border-box; margin-top: 26px; padding-top: 23px; border-top: 1px solid #ededed; text-align: center; color: #999; font-size: 12px; }
.blaq-link-btn { border: 0; background: none; color: #222222 !important; font-weight: 800; cursor: pointer; padding: 0; font-family: var(--font-body); margin-left: 4px; }
@media (hover: hover) {
  .blaq-link-btn:hover { color: var(--brand-red) !important; background: none !important; border-color: transparent !important; }
}
.blaq-login__note { font-size: 0.8rem; color: var(--charcoal); opacity: 0.65; margin-bottom: 1em; }

@media (max-width: 900px) {
  .blaq-login__card { border-radius: 16px; }
  .blaq-login__panel { padding: 48px 35px; }
}

@media (max-width: 520px) {
  .blaq-login__panel { padding: 38px 22px; }
  .blaq-login__panel h2 { font-size: calc(32px * var(--heading-scale, 1)); }
}


/* ==========================================================================
   Blog page — magazine layout (template-parts/blog-magazine.php)
   Left: image card · Centre: Top Story + "Create with BLAQ" box ·
   Right: category box, Recent Reads, "Share your artwork" box.
   Headings use Anton Regular (loaded with the theme fonts).
   ========================================================================== */
body.blaq-blog-mag { background: #fff; }
/* Single posts use the same grey as the blog panels (--mag-panel). */
body.single-post { background: #edebec; }

.blog-mag {
  --mag-accent: var(--cart-gold);   /* "Top Story" tag + title hover highlight + button hover — same yellow as the cart */
  --mag-panel: #edebec;    /* grey panels: frames, categories, recent reads, boxes */
  --mag-ink: #222222;
  --mag-muted: #6b6b6b;
  --mag-rule: #808080;
  --mag-display: var(--font-display);
  padding-top: 26px;
  padding-bottom: 72px;
  color: var(--mag-ink);
}
/* The Blog page itself has more air above the layout than the archive /
   single-post pages, where only the category strip sits up there. */
.blog-mag--page { padding-top: clamp(28px, 3vw, 56px); }
.blog-mag a { color: inherit; text-decoration: none; }
.blog-mag :where(h1, h2, h3) { margin: 0; font-weight: 700; text-wrap: balance; }
.blog-mag :where(p) { max-width: none; }
.blog-mag__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-mag__ph  { display: block; width: 100%; height: 100%; background: #dcdcdc; }
.blog-mag__empty { text-align: center; padding: 4em 0; }

/* ---- Category strip (category / tag / author / date archives and single posts) ---- */
.blog-mag__cats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4em 1.5rem;
  margin-bottom: 26px;
}
.blog-mag__cat {
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mag-ink);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* Current category (and hover) get the same tan bar as the title hover. */
.blog-mag__cat:focus-visible,
.blog-mag__cat.is-current {
  background: linear-gradient(transparent calc(77% - 0.5em), var(--mag-accent) calc(77% - 0.5em), var(--mag-accent) 77%, transparent 77%);
}
@media (hover: hover) {
  .blog-mag__cat:hover {
  background: linear-gradient(transparent calc(77% - 0.5em), var(--mag-accent) calc(77% - 0.5em), var(--mag-accent) 77%, transparent 77%);
}
}
/* The strip on archives and single posts, above the page header. */
.blog-mag--strip { padding-bottom: 0; }
.blog-mag--strip .blog-mag__cats { margin-bottom: 0; }

/* Single posts: the category strip now spans the same full container
   width as every other page's menu (was previously narrowed to match
   the reading column below it). */
body.single-post .blog-mag--strip {
  padding-top: clamp(20px, 2.5vw, 32px);
}
body.single-post .blog-mag--strip .blog-mag__cats {
  justify-content: space-between;
  align-items: center;
  gap: 0.35em 1.1rem;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* Neutralises the inline variant's own right-align margin (used on the
   category archive pages) so it spreads evenly across the reading column
   here instead. */
body.single-post .blog-mag--strip .blog-mag__cats--inline { margin: 0; }
body.single-post .blog-mag--strip .blog-mag__cat {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding-bottom: .3em;
  border-bottom: 1px solid transparent;
}
body.single-post .blog-mag--strip .blog-mag__cat:focus-visible,
body.single-post .blog-mag--strip .blog-mag__cat.is-current {
  background: none;
  color: var(--mag-ink);
  border-bottom-color: currentColor;
}
@media (hover: hover) {
  body.single-post .blog-mag--strip .blog-mag__cat:hover {
  background: none;
  color: var(--mag-ink);
  border-bottom-color: currentColor;
}
}
@media (max-width: 640px) {
  body.single-post .blog-mag--strip .blog-mag__cats { justify-content: center; }
}

/* ---- Three columns ---- */
.blog-mag__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.23fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Grey picture frame (left card + Top Story) */
.blog-mag__frame { display: block; padding: 20px; background: var(--mag-panel); }
.blog-mag__pic { display: block; overflow: hidden; background: #dcdcdc; }
.blog-mag__pic--portrait  { aspect-ratio: 306 / 392; }
.blog-mag__pic--landscape { aspect-ratio: 729 / 575; }

/* Left: image card */
.blog-mag__left { display: flex; flex-direction: column; gap: 34px; }
.blog-mag__card-body { padding: 13px 4px 0 0; }
.blog-mag__card-cat {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9375rem;
  text-transform: uppercase;
  line-height: 1.4;
}
.blog-mag__card-title {
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(clamp(1.2rem, 1.56vw, 1.56rem) * var(--heading-scale, 1));
  line-height: 1.2;
  color: var(--mag-ink);
}
.blog-mag__meta { display: block; margin-top: 0; font-size: 0.9375rem; color: var(--mag-muted); }

/* Centre: Top Story */
.blog-mag__feature { text-align: center; }
.blog-mag__tag {
  position: relative;
  display: block;
  width: fit-content;
  margin: -1.72em auto 0; /* one full tag-height up: the tag sits on the bottom edge of the grey frame */
  padding: 0.26em 0.75em;
  background: var(--mag-accent);
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: 1.6rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-mag__feature-title {
  margin: 0.4em 0 0.3em;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(clamp(1.9rem, 3.1vw, 3.1rem) * var(--heading-scale, 1));
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-mag__feature-title span {
  background: none;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 0.06em;
}
/* Every title on the page (Top Story, image card, Recent Reads) gets a yellow
   bar behind the lower part of its lines on hover / keyboard focus. */
.blog-mag__feature-title a:focus-visible span,
.blog-mag__card-title a:focus-visible,
.blog-mag__recent-post a:focus-visible {
  background: linear-gradient(transparent calc(77% - 0.5em), var(--mag-accent) calc(77% - 0.5em), var(--mag-accent) 77%, transparent 77%);
}
@media (hover: hover) {
  .blog-mag__feature-title a:hover span,
.blog-mag__card-title a:hover,
.blog-mag__recent-post a:hover {
  background: linear-gradient(transparent calc(77% - 0.5em), var(--mag-accent) calc(77% - 0.5em), var(--mag-accent) 77%, transparent 77%);
}
}
.blog-mag__card-title a,
.blog-mag__recent-post a {
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.blog-mag__feature-excerpt {
  margin: 0 0 0.5em;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mag-muted);
  text-align: justify;
  text-align-last: center; /* last line stays centred, like the Create with BLAQ box */
}
.blog-mag__author {
  display: block;
  margin-top: 1.5rem; /* nudge author + date down, away from the excerpt */
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #292929;
}
.blog-mag__feature-date { display: block; margin-top: 0.2em; font-size: 0.9375rem; color: var(--mag-muted); }

/* Solid black call-to-action button (Create with BLAQ + Share your artwork) */
.blog-mag__btn {
  display: block;
  height: 40px;
  padding: 0 1em;
  background: var(--mag-ink);
  color: #fff !important;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: 1.0625rem;
  line-height: 40px;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}
.blog-mag__btn:focus-visible { background: var(--mag-accent); color: var(--mag-ink) !important; }
@media (hover: hover) {
  .blog-mag__btn:hover { background: var(--mag-accent); color: var(--mag-ink) !important; }
}

/* Centre: promotional Top Story (uploaded image + heading + text + button) */
/* Feature text: trimmed to 150 words in the template (blog-magazine.php); no line limit. */

/* Centre: Create with BLAQ */
.blog-mag__promo {
  margin-top: 36px;
  padding: 26px 24px 30px;
  background: var(--mag-panel);
  text-align: center;
}
.blog-mag__promo-title {
  margin-bottom: 19px;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(clamp(2rem, 3.75vw, 3.75rem) * var(--heading-scale, 1));
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-mag__promo-text {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.32;
  color: var(--mag-muted);
  text-align: justify;
  text-align-last: center;
}
.blog-mag__promo-btn { width: 44%; min-width: 200px; margin: 0 auto; }

/* Right column */
.blog-mag__right { display: flex; flex-direction: column; gap: 16px; margin-top: -3px; }

/* Right: category box — 3 columns (left / centre / right aligned) */
.blog-mag__catbox { padding: 18px 26px 26px; background: var(--mag-panel); }
.blog-mag__catbox-label {
  display: block;
  margin-bottom: 13px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}
.blog-mag__catbox-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 6px;
}
.blog-mag__catbox .blog-mag__cat {
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  justify-self: start;
}
.blog-mag__catbox .blog-mag__cat:nth-child(3n + 2) { justify-self: center; }
.blog-mag__catbox .blog-mag__cat:nth-child(3n)     { justify-self: end; }

/* Contents box: grey panel with a stroke matching the underlines in Latest
   Posts (1px, --mag-rule), black text. The current / hovered category keeps
   the yellow highlight bar. */
.blog-mag__catbox {
  border: 1px solid var(--mag-rule);
}

/* Left: "Latest keywords" box — same panel + stroke as Contents. */
.blog-mag__kw {
  padding: 18px 26px 26px;
  background: var(--mag-panel);
  border: 1px solid var(--mag-rule);
}
.blog-mag__kw-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px 22px;
}
.blog-mag__kw .blog-mag__cat { font-size: clamp(1.15rem, 1.35vw, 1.35rem); }
@media (min-width: 1001px) {
  /* Sits at the bottom of the left column, level with "Create with BLAQ" in the
     centre column; main.js matches its height to that box so tops and bottoms
     line up exactly. */
  .blog-mag__kw { flex: 0 0 auto; margin-top: auto; }
}

/* Right: Recent Reads */
.blog-mag__recent-box { padding: 20px 32px 35px 26px; background: var(--mag-panel); }
.blog-mag__recent-title {
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(clamp(1.25rem, 1.6vw, 1.6rem) * var(--heading-scale, 1));
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-mag__recent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 20px;
  align-items: center;
  padding: 15px 0 11px;
  border-bottom: 1px solid var(--mag-rule);
}
.blog-mag__recent-text { padding-top: 14px; }
.blog-mag__recent-cat { display: block; font-size: 0.75rem; text-transform: uppercase; line-height: 1.5; }
.blog-mag__recent-post {
  margin: 1px 0 3px;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: 0.94rem;
  line-height: 1.34;
  color: var(--mag-ink);
}
.blog-mag__recent .blog-mag__meta { font-size: 0.9375rem; }
.blog-mag__recent-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dcdcdc; }

/* Right: Share your artwork */
.blog-mag__share {
  margin-top: 20px;
  padding: 15.5px 20px 19px;
  text-align: center;
  /* 1px dashed outline with long 7px dashes (a plain CSS dashed border draws
     3px dots at this thickness) — drawn as four gradient strips on the grey. */
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, #222222 7px, transparent 7px) top left / 14px 1px repeat-x,
    linear-gradient(90deg, #222222 7px, transparent 7px) bottom left / 14px 1px repeat-x,
    linear-gradient(180deg, #222222 7px, transparent 7px) top left / 1px 14px repeat-y,
    linear-gradient(180deg, #222222 7px, transparent 7px) top right / 1px 14px repeat-y,
    var(--mag-panel);
  background-origin: border-box;
  background-clip: border-box;
}
.blog-mag__share-title {
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(clamp(2rem, 3.75vw, 3.75rem) * var(--heading-scale, 1));
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-mag__share-pic { margin: 0 0 14px; aspect-ratio: 5 / 4; overflow: hidden; background: #dcdcdc; }
.blog-mag__share-text,
.blog-mag__share-note,
.blog-mag__share-terms {
  margin: 0 -9px 6px;   /* a little wider than the picture, like the design */
  font-size: 0.75rem;
  line-height: 1.17;
  color: var(--mag-ink);
}
.blog-mag__share-note { font-weight: 500; text-decoration: underline; }
.blog-mag__share-btn { margin-top: 12px; }

/* ---- Narrower desktops: the columns shrink with the window, so tighten the
   right-hand column's padding to keep Recent Reads titles on two lines. ---- */
@media (min-width: 1001px) and (max-width: 1599px) {
  .blog-mag__catbox { padding-left: 18px; padding-right: 18px; }
  .blog-mag__recent-box { padding: 18px 18px 28px; }
  .blog-mag__recent { grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; }
  .blog-mag__recent .blog-mag__meta { font-size: 0.8125rem; }
  .blog-mag__share { padding-left: 14px; padding-right: 14px; }
}

/* ---- Tablet / mobile ---- */
@media (max-width: 1000px) {
  .blog-mag__grid { grid-template-columns: 1fr; }
  .blog-mag__center { order: 1; }
  .blog-mag__left   { order: 2; }
  .blog-mag__right  { order: 3; }
  .blog-mag__feature-title { font-size: calc(clamp(2rem, 5vw, 3.1rem) * var(--heading-scale, 1)); }
  .blog-mag__promo-title { font-size: calc(clamp(2.2rem, 5.5vw, 3.75rem) * var(--heading-scale, 1)); }
  .blog-mag__share-title { font-size: calc(clamp(2rem, 5vw, 3.75rem) * var(--heading-scale, 1)); }
  /* the single image card sits image-left / text-right */
  .blog-mag__card {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .blog-mag__card-body { padding-top: 0; }
  .blog-mag__right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .blog-mag__catbox { grid-column: 1 / -1; }
  .blog-mag__catbox .blog-mag__cat { font-size: 1.35rem; }
  .blog-mag__recent-title { font-size: calc(1.6rem * var(--heading-scale, 1)); }
  .blog-mag__recent-post { font-size: 1rem; }
  .blog-mag__share { margin-top: 0; }
  .blog-mag__cats   { justify-content: flex-start; gap: 0.4em 1.6rem; }
}
@media (max-width: 640px) {
  .blog-mag__card { display: block; }
  .blog-mag__card-body { padding-top: 13px; }
  .blog-mag__right { grid-template-columns: 1fr; }
  .blog-mag__tag  { font-size: 1.3rem; }
  .blog-mag__author { font-size: 1.05rem; }
  .blog-mag__promo-text { text-align: center; }
  .blog-mag__promo-btn { width: 100%; }

  /* Mobile: the Contents box (categories + blog search) comes first, above the
     Top Story. The right column's boxes become grid items of the page grid so
     they can be ordered individually. */
  .blog-mag__right { display: contents; }
  .blog-mag__catbox      { order: 0; }
  .blog-mag__center      { order: 1; }
  .blog-mag__left        { order: 2; }
  .blog-mag__recent-box  { order: 3; }
  .blog-mag__share       { order: 4; }

  /* Mobile: a more compact Contents box (smaller text, tighter spacing). */
  .blog-mag__catbox { padding: 12px 18px 16px; }
  .blog-mag__catbox-label { margin-bottom: 8px; font-size: 0.6875rem; }
  .blog-mag__catbox-list { gap: 8px 6px; }
  .blog-mag__catbox .blog-mag__cat { font-size: 1.05rem; }
  .blog-mag__catbox .blog-search { margin-top: 12px; }
}

/* ---- Desktop: line the three columns up on one bottom edge.
   - "Create with BLAQ" sits closer to the Top Story date (was 36px gap) and is a
     little tighter, so it no longer runs below the left/right columns.
   - The columns stretch to the row height; the promo box and the dashed
     "Share your artwork" box grow to fill, so both bottoms land on the same
     line as the left card's last line of text. ---- */
@media (min-width: 1001px) {
  .blog-mag__grid { align-items: stretch; }
  .blog-mag__center { display: flex; flex-direction: column; }
  .blog-mag__promo {
    flex: 0 0 auto; /* natural height — don't stretch to the row height */
    margin-top: auto; /* sit at the bottom of the column, on the same line as the share box */
    padding: 20px 24px 24px;
  }
  .blog-mag__center .blog-mag__feature { margin-bottom: 8px; } /* minimum gap above the promo box */
  .blog-mag__share { flex: 1 1 auto; }

  /* Left column: a divider line under every card except the last card. */
  .blog-mag__card:not(:last-of-type) {
    padding-bottom: 18px;
    border-bottom: 2px solid var(--mag-ink);
  }
}

/* ==========================================================================
   Blog reading page (single.php, posts only) — a centred, narrow reading
   column: category label, Anton title, byline, image, justified text.
   ========================================================================== */
.blog-single {
  max-width: calc(720px + 2 * var(--gutter));
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: 72px;
}
.blog-single__header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.blog-single__cat {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #222222);
  text-decoration: none;
}
.blog-single__cat:focus-visible {
  background: linear-gradient(transparent calc(77% - 0.5em), #FFDB00 calc(77% - 0.5em), #FFDB00 77%, transparent 77%);
}
@media (hover: hover) {
  .blog-single__cat:hover {
  background: linear-gradient(transparent calc(77% - 0.5em), #FFDB00 calc(77% - 0.5em), #FFDB00 77%, transparent 77%);
}
}
.blog-single__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: calc(clamp(2.2rem, 5vw, 3.6rem) * var(--heading-scale, 1));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: #222222;
}
.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  max-width: none;
  font-size: 0.8125rem;
  color: #6b6b6b;
}
.blog-single__author { font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #222222; }
.blog-single__image { margin: 28px 0 0; }
.blog-single__image img { display: block; width: 100%; height: auto; }
.blog-single .artwork-detail { margin-top: 24px; }

.blog-single__content { max-width: none; padding: 28px 0 0; }
.blog-single__content > * { margin-left: 0; margin-right: 0; }
.blog-single__content p,
.blog-single__content li {
  font-size: 1.0625rem;
  line-height: 1.4;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: none;
}
.blog-single__content p { margin: 0 0 1.05em; }
.blog-single__content :where(h2, h3, h4) {
  margin: 1.6em 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: left;
  color: #222222;
}
.blog-single__content h2 { font-size: calc(clamp(1.7rem, 3.4vw, 2.3rem) * var(--heading-scale, 1)); }
.blog-single__content h3 { font-size: calc(clamp(1.4rem, 2.6vw, 1.75rem) * var(--heading-scale, 1)); }
.blog-single__content img,
.blog-single__content figure { max-width: 100%; height: auto; }
.blog-single__content figure { margin: 1.8em 0; }
.blog-single__content figcaption { margin-top: 8px; font-size: 0.8125rem; color: #6b6b6b; text-align: left; }
.blog-single__content blockquote {
  margin: 1.8em 0;
  padding-left: 1.2em;
  border-left: 3px solid #222222;
  font-style: italic;
  text-align: left;
}

/* ==========================================================================
   GALLERY — artist grid (category-gallery.php) + artwork detail strip
   (single.php) + submission form (template-parts/submit-artwork.php,
   inc/gallery-artwork.php's [blaq_artwork_submission_form] shortcode).
   Reuses the existing .blaq-field / .blaq-input / .blaq-btn / .blaq-form-grid
   tokens from the login/account forms so it matches site-wide.
   ========================================================================== */

/* Gallery page header: title + tagline + Submit button on the left, category
   menu inline on the right — same layout as the category archive pages
   (archive.php's .blog-cats__archive-head), reusing its classes so both
   match exactly. */
.artwork-archive-head { padding-top: clamp(16px, 2vw, 28px); margin-bottom: 8px; }

/* "← Back" link at the start of the inline category menu (used on every
   category archive page, including Gallery) — icon lines up with the text. */
.blog-mag__cat--home { display: inline-flex; align-items: center; gap: .35em; margin-right: .75rem; }
.blog-mag__cat-icon { flex: 0 0 auto; }

/* White ground for the Gallery page and each artwork page. Top spacing
   matches .blog-cats--archive's own grid gap (28px), so the distance from
   the menu to the content below it is the same on every category page. */
body.blaq-gallery-page,
body.blaq-artwork-single { background: #fff; }
body.blaq-gallery-page .site-main.section { padding-top: 28px; }

/* GALLERY — wall (category-gallery.php). Same look as the reference
   exhibition wall: every block is the same height — one tall tile, or two
   wide tiles stacked — so the wall is flush top and bottom. Sizes are worked
   out here from the wall's own width (container query units), so it needs no
   script and stays exact at any screen size.

   Tile maths:  wide picture  = width / --land
                tall picture  = 2 x wide picture + caption + gap
   so a tall tile is exactly as high as a stacked pair.                     */
.artwork-wall { container-type: inline-size; }
.artwork-masonry {
  --land: 1.8087;   /* wide tile picture, width / height (reference: 416 x 230) */
  --cols: 3;
  --gap: 17px;
  --cap: 5.25rem;   /* fixed caption height under every tile */
  --w: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));  /* one tile's width */
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
  margin-top: 1.5em;
}
@container (max-width: 639px)  { .artwork-masonry { --cols: 2; --gap: 12px; } }
@container (min-width: 1400px) { .artwork-masonry { --cols: 4; } }

.artwork-block { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.artwork-card { display: flex; flex-direction: column; min-width: 0; }
.artwork-card__frame { display: block; }
.artwork-card__pic {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f3f3f3;
}
.artwork-card.is-wide .artwork-card__pic { aspect-ratio: var(--land); }
.artwork-card.is-tall .artwork-card__pic { height: calc(2 * var(--w) / var(--land) + var(--cap) + var(--gap)); }
.artwork-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.artwork-card__frame:focus-visible .artwork-card__img { transform: scale(1.03); }
@media (hover: hover) {
  .artwork-card__frame:hover .artwork-card__img { transform: scale(1.03); }
}
.artwork-card__ph { display: block; width: 100%; height: 100%; background: #e9e9e9; }

/* Caption: artist name large on the left; artwork name + date small on the right. */
.artwork-card__body {
  height: var(--cap);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6em;
  padding-top: .8rem;
}
.artwork-card__artist {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(.82rem, calc(var(--w) * .052), 1.45rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #222222;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.artwork-card__artist a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .artwork-card__artist a:hover { color: var(--brand-red); }
}
.artwork-card__meta {
  flex: 0 1 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3em;
  text-align: right;
}
.artwork-card__title,
.artwork-card__date {
  margin: 0;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.artwork-card__title {
  font-size: calc(clamp(.6rem, calc(var(--w) * .03), .82rem) * var(--heading-scale, 1));
  font-weight: 700;
  color: #222222;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.artwork-card__date {
  font-size: clamp(.58rem, calc(var(--w) * .028), .78rem);
  color: #767676;
}
@media (prefers-reduced-motion: reduce) {
  .artwork-card__img { transition: none; }
@media (hover: hover) {
  .artwork-card__frame:hover .artwork-card__img { transform: none; }
  }
}

/* GALLERY — single artwork page (template-parts/single-artwork.php).
   Exhibition-style: full-width image, big uppercase name, facts on the right,
   artist under a rule, post text in the right-hand half. */
.artwork-single__hero {
  margin: clamp(16px, 2.5vw, 32px) 0 0;
  background: #fff;
  display: flex;
  justify-content: center;
}
.artwork-single__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(84vh, 920px);
  object-fit: contain;
}
.artwork-single__info {
  max-width: calc(720px + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.artwork-single__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5em 2em;
  padding-bottom: 1.1em;
  border-bottom: 1px solid var(--line-dark);
}
.artwork-single__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(clamp(1.9rem, 1.2rem + 3vw, 3.4rem) * var(--heading-scale, 1));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.artwork-single__facts {
  flex: 0 0 auto;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5em;
  text-align: right;
}
.artwork-single__pill {
  display: inline-block;
  padding: .12em .8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.5;
}
.artwork-single__date {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.artwork-single__artist {
  margin: 1.1em 0 1.6em;
  font-size: clamp(1.15rem, .9rem + 1.2vw, 1.75rem);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}
.artwork-single__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6em 2.5em; }
.artwork-single__links a {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.artwork-single__links a::before { content: "\2192"; display: inline-block; margin-right: .6em; }
@media (hover: hover) {
  .artwork-single__links a:hover { color: var(--brand-red); }
}

.artwork-single__text { max-width: 720px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; }
.artwork-single__text p,
.artwork-single__text li { font-size: var(--step-0); line-height: 1.7; }
.artwork-single__text :where(h2, h3, h4) {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.4em 0 .6em;
}
.artwork-single__text h2 { font-size: calc(clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem) * var(--heading-scale, 1)); }
.artwork-single__text h3 { font-size: calc(clamp(1.25rem, 1.1rem + .8vw, 1.6rem) * var(--heading-scale, 1)); }
.artwork-single__text img,
.artwork-single__text figure { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .artwork-single__head { flex-direction: column; }
  .artwork-single__facts { max-width: 100%; align-items: flex-start; text-align: left; }
}

.artwork-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em 2.5em;
  margin: 0 0 2em;
  padding: 1em 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.artwork-detail dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; margin: 0 0 .25em; }
.artwork-detail dd { margin: 0; font-size: var(--step-0); color: var(--ink); }

.artwork-form__header { text-align: center; }
.artwork-form__intro { max-width: 640px; margin: .5em auto 0; color: #666; }
.artwork-form__intro a { font-weight: 700; margin-left: .35em; }
.artwork-form__main { max-width: 760px; }

.artwork-form__success {
  background: #EEF7F0;
  border: 1px solid #C9E6D0;
  color: #2C6B3F;
  border-radius: 10px;
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
}
.artwork-form__success p { margin: .3em 0 0; }

.artwork-form__errors {
  background: #FDECEC;
  border: 1px solid #F3C6C6;
  color: #B01430;
  border-radius: 10px;
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
}
.artwork-form__errors ul { margin: 0; padding-left: 1.2em; }

.artwork-form textarea.blaq-input { height: auto; padding: 12px 15px; resize: vertical; }
.artwork-form input[type="file"].blaq-input { padding: 10px 15px; line-height: 1.4; }
/* Same fix already applied to the contact form (.blaq-contact-form) below —
   this form was missed. .blaq-input's global font-size is 14px; iOS Safari
   zooms the whole page in when a field under 16px is focused, then zooms
   back out on blur, which feels broken on a form this long. 16px on phones
   avoids that; a taller minimum height keeps the tap target comfortable
   with the bigger text (was the plain 48px from the base .blaq-input rule). */
@media (max-width: 780px) {
  /* Repeats each type attribute (matching the base .blaq-input rewrite
     above) so this reliably outranks it — a bare ".artwork-form .blaq-input"
     here would tie on class-count with that rule's own type-qualified
     selectors and lose on element-count, silently reverting to 14px. */
  .artwork-form input[type="text"].blaq-input,
  .artwork-form input[type="date"].blaq-input,
  .artwork-form input[type="file"].blaq-input,
  .artwork-form textarea.blaq-input { font-size: 16px; }
  .artwork-form input[type="date"].blaq-input,
  .artwork-form input[type="text"].blaq-input { min-height: 48px; }
}

.artwork-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  font-size: var(--step--1);
  color: var(--ink);
  margin: .5em 0 1.4em;
  cursor: pointer;
}
.artwork-form__checkbox input { margin-top: .25em; width: 15px; height: 15px; accent-color: #222222; flex-shrink: 0; }

/* Honeypot — invisible to real visitors, still reachable/skippable by
   screen readers thanks to the label, and never shown visually. */
.artwork-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 780px) {
  .artwork-form__main { max-width: 100%; }
}


/* ==========================================================================
   BLOG PAGE — CATEGORY SECTIONS (Art / Craft / Journal)
   Rows of four latest posts under the magazine grid.
   ========================================================================== */
.blog-cats { margin-top: clamp(40px, 5vw, 72px); }
.blog-cats__section + .blog-cats__section { margin-top: clamp(44px, 5vw, 72px); }

.blog-cats__head {
  display: flex;
  align-items: baseline;
  gap: 0.4em 1.1rem;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mag-ink);
}
.blog-cats__name {
  margin: 0;
  font-family: var(--mag-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-cats__tagline {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--mag-muted);
}
.blog-cats__all {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mag-ink);
  border-bottom: 1px solid transparent;
}
.blog-cats__all:focus-visible { border-bottom-color: var(--mag-ink); }
@media (hover: hover) {
  .blog-cats__all:hover { border-bottom-color: var(--mag-ink); }
}

.blog-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin-top: 22px;
}
.blog-cats__card { min-width: 0; display: flex; flex-direction: column; } /* equal-height cards so author/date line up across a row */
.blog-cats__card > * { flex-shrink: 0; }
.blog-cats__pic {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mag-panel);
}
.blog-cats__img,
.blog-cats__pic .blog-mag__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-cats__cat {
  display: block;
  margin-top: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mag-muted);
}
.blog-cats__title {
  margin: 6px 0 8px;
  font-family: var(--mag-display);
  font-size: calc(1.375rem * var(--heading-scale, 1));
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--mag-ink);
}
.blog-cats__title a { color: inherit; }
.blog-cats__title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .blog-cats__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.blog-cats__excerpt {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mag-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;   /* body text: 3 lines max */
  line-clamp: 3;
  overflow: hidden;
}
.blog-cats__author {
  display: block;
  margin-top: auto;        /* pins author + date to the bottom of the card */
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mag-muted);
}
.blog-cats__date {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--mag-ink);
}
@media (max-width: 1024px) {
  .blog-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .blog-cats__grid { grid-template-columns: 1fr; }
  .blog-cats__tagline { flex-basis: 100%; order: 3; }
}

/* Post archives: heading + tagline above the card grid (see archive.php) */
.blog-cats--archive { margin-top: 0; padding-top: clamp(16px, 2vw, 28px); } /* same top spacing as the Gallery page header */
.blog-cats__archive-head { margin-bottom: 8px; }
.blog-cats__archive-head .blog-cats__name { font-size: clamp(2rem, 4vw, 3rem); }
.blog-cats__archive-tagline {
  max-width: 60ch;
  margin: 10px 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--mag-ink);
}
.blog-cats--archive .blog-cats__grid { margin-top: 28px; }
.blog-cats--archive .pagination { margin-top: 48px; }

/* "Nothing found" empty state (archive.php / index.php) */
.blog-cats__empty {
  margin: 0;
  padding: clamp(48px, 10vw, 96px) 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--mag-muted, #767676);
}

/* Archive heading row: title + tagline left, small category links right */
.blog-cats__archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.blog-cats__archive-intro { flex: 1 1 320px; min-width: 0; }
.blog-mag__cats--inline {
  flex: 1 1 auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.3em 1.25rem;
  margin: 0;
  padding-top: 6px;
  width: 100%;
  max-width: 100%;
}
.blog-mag__cats--inline .blog-mag__cat {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  padding-bottom: .3em;
  border-bottom: 1px solid transparent;
}
.blog-mag__cats--inline .blog-mag__cat:focus-visible,
.blog-mag__cats--inline .blog-mag__cat.is-current {
  background: none;
  color: var(--mag-ink);
  border-bottom-color: currentColor;
}
@media (hover: hover) {
  .blog-mag__cats--inline .blog-mag__cat:hover {
  background: none;
  color: var(--mag-ink);
  border-bottom-color: currentColor;
}
}
@media (max-width: 720px) {
  /* On phones this row wraps to 2 lines, and flex-start left every line
     hug the edge — with a different number of links per line (however
     they happen to wrap) that reads as ragged, uneven columns rather
     than a tidy block. Center it as a whole instead so both wrapped
     lines sit balanced under each other. */
  .blog-mag__cats--inline { justify-content: center; flex-basis: 100%; text-align: center; }
}

/* Blog page: "Search the blog" box inside the Contents panel (AJAX, posts only) */
.blog-search { position: relative; margin-top: 18px; }
.blog-search__form { position: relative; margin: 0; }
.blog-search__input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--mag-ink);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  color: var(--mag-ink);
  -webkit-appearance: none;
          appearance: none;
}
.blog-search__input:focus { outline: 2px solid var(--mag-accent); outline-offset: 0; }
.blog-search__icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--mag-ink);
  pointer-events: none;
}
.blog-search__results {
  position: absolute;
  z-index: 200;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--mag-ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.blog-search__results[hidden] { display: none; }
.blog-search__empty { padding: 14px; font-size: 0.875rem; color: var(--mag-muted); }
.blog-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--mag-ink);
  text-decoration: none;
}
.blog-search__item + .blog-search__item { border-top: 1px solid #e5e5e5; }
.blog-search__item:focus-visible { background: var(--mag-panel); }
@media (hover: hover) {
  .blog-search__item:hover { background: var(--mag-panel); }
}
.blog-search__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 60px;
  overflow: hidden;
  background: var(--mag-panel);
}
.blog-search__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-search__info { min-width: 0; }
.blog-search__title {
  display: block;
  font-weight: 700;
  font-family: var(--mag-display);
  font-size: calc(1rem * var(--heading-scale, 1));
  line-height: 1.2;
  text-transform: uppercase;
}
.blog-search__meta { display: block; margin-top: 3px; font-size: 0.75rem; color: var(--mag-muted); }

/* Search box: black stroke, transparent (no white fill), smaller text.
   Doubled selector so it wins over the theme's global input styles. */
.blog-mag .blog-search .blog-search__input {
  height: 38px;
  border: 1px solid #222222;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8125rem;
  color: #222222;
}
.blog-mag .blog-search .blog-search__input::placeholder {
  font-size: 0.8125rem;
  color: #222222;
  opacity: 0.7;
}
.blog-mag .blog-search .blog-search__input:focus { border-color: #222222; outline: 2px solid var(--mag-accent); }

@media (max-width: 640px) {
  /* compact search box on mobile (after the base rule so it wins) */
  .blog-mag .blog-search .blog-search__input { height: 34px; font-size: 0.75rem; }
  .blog-mag .blog-search .blog-search__input::placeholder { font-size: 0.75rem; }
}

/* Tablet (e.g. iPad Pro 11"): the image cards sit in two columns instead of
   one full-width image-left / text-right row each. */
@media (min-width: 641px) and (max-width: 1000px) {
  .blog-mag__left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
    align-items: start;
  }
  .blog-mag__left .blog-mag__card { display: block; }
  .blog-mag__left .blog-mag__card-body { padding-top: 13px; }
  .blog-mag__left > .blog-mag__kw { grid-column: 1 / -1; }
}

/* Tablet: the Contents box (categories + blog search) goes to the very top,
   like on phones. The right column's boxes become items of the page grid so
   they can be ordered; Latest Posts and Share stay side by side underneath. */
@media (min-width: 641px) and (max-width: 1000px) {
  .blog-mag__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-mag__right { display: contents; }
  .blog-mag__catbox     { order: 0; grid-column: 1 / -1; }
  .blog-mag__center     { order: 1; grid-column: 1 / -1; }
  .blog-mag__left       { order: 2; grid-column: 1 / -1; }
  .blog-mag__recent-box { order: 3; grid-column: 1; }
  .blog-mag__share      { order: 4; grid-column: 2; }
}

/* Submit Artwork page: white background + Anton heading */
body.blaq-submit-artwork { background: #fff; }
body.blaq-submit-artwork .artwork-form__header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* Policy pages (Terms, Privacy, Exchange & Return): white background, centred
   title, centred justified reading column */
body.blaq-policy-page { background: #fff; }
body.blaq-policy-page .page-header { text-align: center; }
body.blaq-policy-page .entry-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter, 20px);
  padding-right: var(--gutter, 20px);
}
body.blaq-policy-page .entry-content > * { max-width: none; margin-left: 0; margin-right: 0; }
body.blaq-policy-page .entry-content p,
body.blaq-policy-page .entry-content li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
body.blaq-policy-page .entry-content :where(h2, h3, h4) { text-align: left; }

/* ==========================================================================
   ABOUT US + CONTACT PAGES
   Templates: page-templates/about.php, page-templates/contact.php
   (template-parts/about-page.php, template-parts/contact-page.php).
   White ground, Sora headings, Montserrat for everything else, black
   buttons; brand red for small accents. Anton is used ONLY for the phone
   numbers (.blaq-contact__phone, .blaq-about__phone).
   ========================================================================== */
body.blaq-about-page,
body.blaq-contact-page { background: #fff; }

.blaq-eyebrow {
  display: inline-block;
  margin-bottom: 1em;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.blaq-display {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: #222222;
  margin: 0 0 .5em;
}
h1.blaq-display { font-size: calc(clamp(2.3rem, 5.2vw, 4.1rem) * var(--heading-scale, 1)); }
h2.blaq-display { font-size: calc(clamp(1.75rem, 3.3vw, 2.6rem) * var(--heading-scale, 1)); }

/* Shared button (About + Contact) */
.blaq-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: .55em 1.9em;
  border: 1px solid #222222;
  border-radius: 10px;
  background: #222222;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}
@media (hover: hover) {
  .blaq-about__btn:hover { background: var(--brand-red-deep); border-color: var(--brand-red-deep); transform: translateY(-1px); }
}
.blaq-about__btn--ghost { background: transparent; color: #222222 !important; }
@media (hover: hover) {
  .blaq-about__btn--ghost:hover { color: #fff !important; }
}
.blaq-about__btn--small { letter-spacing: .03em; text-transform: none; font-size: 13px; }

/* Social pills */
.blaq-social { list-style: none; margin: 1em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6em; }
.blaq-social li { margin: 0; }
.blaq-social__link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .6em 1.1em;
  border: 1px solid #222222;
  border-radius: 999px;
  color: #222222;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
@media (hover: hover) {
  .blaq-social__link:hover { background: #222222; color: #fff; }
}

/* ---------- About ---------- */
.blaq-about { color: #222222; }
.blaq-about p { max-width: none; }

.blaq-about__hero {
  text-align: center;
  padding-top: clamp(3rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.blaq-about__hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.blaq-about__hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: .45em auto 0;
  background: var(--brand-red);
}
.blaq-about__lead {
  max-width: 680px !important;
  margin: 0 auto 1.1em;
  font-size: var(--step-0);
  line-height: 1.75;
  color: #444;
}
.blaq-about__lead--quiet { color: #777; font-size: var(--step--1); }

.blaq-about__section { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.blaq-about__section--tint { background: var(--paper-light); }
.blaq-about__section--tint > .container { padding-left: var(--gutter); padding-right: var(--gutter); }
.blaq-about__center-title { text-align: center; margin-bottom: 1.2em; }

.blaq-about__split {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.blaq-about__split-head { margin-bottom: 1.4rem; }
.blaq-about__split-head h2 { margin-bottom: 0; }
.blaq-about__split-body p { font-size: var(--step-0); line-height: 1.85; color: #222222; }
.blaq-about__split-body p { margin-left: auto; margin-right: auto; }
.blaq-about__split-body p:last-child { margin-bottom: 0; }

.blaq-about__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.blaq-about__card {
  padding: 1.7rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid #E5CFC6;
  border-radius: 14px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .blaq-about__card:hover { transform: translateY(-4px); border-color: #222222; box-shadow: 0 14px 30px rgba(0,0,0,.07); }
}
.blaq-about__card-num {
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--brand-red);
}
.blaq-about__card h3 {
  margin: 0 0 .6em;
  font-family: var(--font-body);
  font-size: calc(13px * var(--heading-scale, 1));
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #222222;
}
.blaq-about__card p { margin: 0; font-size: 14px; line-height: 1.75; color: #555; }

.blaq-about__philosophy {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--brand-black);
  color: #d6d6d6;
  text-align: center;
}
.blaq-about__philosophy .blaq-display { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.blaq-about__philosophy p { max-width: 620px; margin: 0 auto 1em; font-size: var(--step-0); line-height: 1.8; }
.blaq-about__steps {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.2rem) auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.blaq-about__steps li {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.22);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.35;
  color: #fff;
  text-align: center;
}
.blaq-about__steps li span {
  display: block;
  margin-bottom: .55rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--marigold);
}

.blaq-about__makers { text-align: center; }
.blaq-about__makers p,
.blaq-about__more p { max-width: 680px !important; margin-left: auto; margin-right: auto; font-size: var(--step-0); line-height: 1.85; color: #222222; }
.blaq-about__pull {
  margin-top: 1.6rem !important;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em;
  color: #222222 !important;
}
.blaq-about__pull em { display: block; font-style: italic; color: var(--brand-red); }

.blaq-about__more { text-align: center; }
.blaq-about__more-intro { margin-bottom: .4em !important; font-weight: 600; }
.blaq-about__moments { list-style: none; margin: 0 auto 1.6em; padding: 0; max-width: 620px; }
.blaq-about__moments li {
  padding: .85em 0;
  border-bottom: 1px solid #E5CFC6;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: #222222;
}
.blaq-about__moments li:first-child { border-top: 1px solid #ece3d9; }

.blaq-about__cta {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--paper);
  text-align: center;
}
.blaq-about__cta p { max-width: 560px; margin: 0 auto 1em; font-size: var(--step-0); line-height: 1.9; color: #222222; }
.blaq-about__welcome { font-weight: 800 !important; letter-spacing: .04em; color: #222222 !important; }
.blaq-about__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }

.blaq-about__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.blaq-about__service-col + .blaq-about__service-col::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 2.2rem;
  background: var(--line);
}
.blaq-about__service-col h3 {
  margin: 0 0 .7em;
  font-family: var(--font-body);
  font-size: calc(12px * var(--heading-scale, 1));
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #222222;
}
.blaq-about__phone { margin: 0 0 .2em; font-weight: 700;
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.blaq-about__phone a { color: #222222; text-decoration: none; }
@media (hover: hover) {
  .blaq-about__phone a:hover { color: var(--brand-red-deep); }
}
.blaq-about__hours { margin: 0; color: #666; }
.blaq-about__service .blaq-social { margin-top: 0; justify-content: center; }

/* ---------- Contact ---------- */
.blaq-contact { color: #222222; }
.blaq-contact p { max-width: none; }
.blaq-contact__hero {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.blaq-contact__hero h1 { margin-bottom: .35em; }
.blaq-contact__hero p { max-width: 640px !important; margin: 0 auto .9em; font-size: var(--step-0); line-height: 1.75; color: #555; }

.blaq-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "call form" "more form";
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.blaq-contact__call { grid-area: call; }
.blaq-contact__form-wrap { grid-area: form; }
.blaq-contact__more { grid-area: more; display: flex; flex-direction: column; gap: 1.25rem; }

.blaq-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid #E5CFC6;
  border-radius: 16px;
}
.blaq-card > :last-child { margin-bottom: 0; }
.blaq-card p { font-size: 14px; line-height: 1.75; color: #555; }
.blaq-card--tint { background: var(--paper-light); }
.blaq-card--dark { background: var(--brand-black); border-color: var(--brand-black); }
.blaq-card--dark p { color: #cfcfcf; }
.blaq-card__title {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-size: calc(clamp(1.3rem, 2.1vw, 1.65rem) * var(--heading-scale, 1));
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #222222;
}
.blaq-card--dark .blaq-card__title { color: #fff; }
.blaq-card .blaq-about__btn { margin-top: .4em; }

.blaq-contact__phone {
  display: block;
  margin: .1em 0 .1em;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: var(--marigold);
  text-decoration: none;
}
@media (hover: hover) {
  .blaq-contact__phone:hover { color: #fff; }
}
.blaq-contact__hours { margin: 0 0 1em !important; font-weight: 700; color: #fff !important; }

.blaq-contact__form-intro { margin-bottom: 1.5em !important; }
.blaq-contact-form textarea.blaq-input { height: auto; padding: 12px 15px; resize: vertical; line-height: 1.6; }
.blaq-contact-form .blaq-field label { font-size: 11px; letter-spacing: .04em; }
.blaq-contact-form__submit { text-transform: uppercase; letter-spacing: .1em; margin-top: .4em; }
.blaq-contact__form-wrap { scroll-margin-top: 90px; }
.blaq-contact__form-wrap.is-nudged { animation: blaq-nudge 1.4s ease; }
@keyframes blaq-nudge {
  0%   { box-shadow: 0 0 0 0 rgba(221,24,59,0); }
  20%  { box-shadow: 0 0 0 4px rgba(221,24,59,.35); }
  100% { box-shadow: 0 0 0 0 rgba(221,24,59,0); }
}

.blaq-contact__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25em;
  padding-top: 1rem;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
  color: #666;
  font-size: 13px;
}
.blaq-contact__sign-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: .16em;
  color: #222222;
}
.blaq-contact__tagline {
  margin-top: .9em;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #222222;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .blaq-about__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .blaq-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "call" "form" "more";
    grid-template-rows: none;
  }
}
@media (max-width: 720px) {
  .blaq-about__steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blaq-about__cards { grid-template-columns: 1fr; }
  .blaq-about__actions .blaq-about__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .blaq-contact__form-wrap.is-nudged { animation: none; }
  .blaq-about__card,
  .blaq-about__btn { transition: none; }
@media (hover: hover) {
  .blaq-about__card:hover,
  .blaq-about__btn:hover { transform: none; }
  }
}

/* ==========================================================================
   FOOTER — Our Story justified; "Become a Member" signup fixes for phones
   ========================================================================== */
.footer-story__text,
.footer-story__text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Honeypot for the signup form (real visitors never see it). */
.footer-subscribe__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Chrome/Android autofill paints the number field pale blue with dark text,
   which looks broken on the black footer — keep it dark. */
.footer-subscribe__input:-webkit-autofill,
.footer-subscribe__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  -webkit-box-shadow: 0 0 0 1000px var(--brand-black) inset !important;
  box-shadow: 0 0 0 1000px var(--brand-black) inset !important;
  transition: background-color 9999s ease-out 0s;
}
@media (hover: hover) {
  .footer-subscribe__input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--paper);
  caret-color: var(--paper);
  -webkit-box-shadow: 0 0 0 1000px var(--brand-black) inset !important;
  box-shadow: 0 0 0 1000px var(--brand-black) inset !important;
  transition: background-color 9999s ease-out 0s;
}
}

.footer-subscribe__btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Phones: iOS Safari zooms the page in when a field under 16px is focused,
   then zooms back out when you tap away — the layout shifts under your finger
   and the first tap on "Subscribe" often misses. 16px stops the zoom; the
   taller field + button give a proper tap target (was ~32px high). */
@media (max-width: 780px) {
  input[type="tel"].footer-subscribe__input {
    font-size: 16px;
    min-height: 46px;
  }
  .footer-subscribe__btn {
    min-height: 46px;
    min-width: 108px;
    font-size: 14px;
  }
}

/* Visually hidden text for screen readers (WooCommerce's stylesheet normally
   supplies this; defined here so labels like the footer signup's never show
   if that stylesheet isn't loaded). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Contact form fields — the global input rule (input[type="text"] … , textarea
   { font-size: var(--step-0) }) outranks the single-class .blaq-input, so typed
   text was ~18px next to 13px placeholders. Scoped here to bring it to 14px.
   Repeats each type used in this form (text/tel/email/textarea) alongside
   both classes: ".blaq-contact-form .blaq-input" alone is 2 classes (0,2,0),
   which the base .blaq-input rule's own type-qualified selectors — e.g.
   "input[type="text"].blaq-input" (0,2,1) — now outrank on element-count,
   so the plain 2-class form was silently losing this font-size battle too. */
.blaq-contact-form input[type="text"].blaq-input,
.blaq-contact-form input[type="tel"].blaq-input,
.blaq-contact-form input[type="email"].blaq-input,
.blaq-contact-form textarea.blaq-input { font-size: 14px; }
/* Chrome/Android autofill paints these fields pale blue — keep them white. */
.blaq-contact-form .blaq-input:-webkit-autofill,
.blaq-contact-form .blaq-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #222222;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
@media (hover: hover) {
  .blaq-contact-form .blaq-input:-webkit-autofill:hover {
  -webkit-text-fill-color: #222222;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}
}
/* Phones: 16px minimum, otherwise iPhones zoom the page in when a field is tapped. */
@media (max-width: 780px) {
  .blaq-contact-form input[type="text"].blaq-input,
  .blaq-contact-form input[type="tel"].blaq-input,
  .blaq-contact-form input[type="email"].blaq-input,
  .blaq-contact-form textarea.blaq-input { font-size: 16px; }
}

/* Contact form — attachment picker (image / media) */
.blaq-attach__optional { font-weight: 500; color: #888; letter-spacing: 0; }
.blaq-attach__drop { display: none; }
/* Native input stays visible without JS; once the script runs it is hidden and
   the styled drop area (a label for the same input) takes over. */
.blaq-attach.is-enhanced .blaq-attach__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.blaq-attach.is-enhanced { position: relative; }
.blaq-field .blaq-attach__drop,
.blaq-attach .blaq-attach__drop {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #444;
}
.blaq-attach.is-enhanced .blaq-attach__drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.1rem 1rem;
  background: #fff;
  border: 1.5px dashed #cdbfae;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.blaq-attach.is-enhanced .blaq-attach__drop strong { font-weight: 800; color: #222222; }
.blaq-attach.is-enhanced .blaq-attach__drop.is-dragover { border-color: #222222; background: var(--paper-light); }
@media (hover: hover) {
  .blaq-attach.is-enhanced .blaq-attach__drop:hover { border-color: #222222; background: var(--paper-light); }
}
.blaq-attach.is-enhanced .blaq-attach__input:focus-visible + .blaq-attach__drop { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.blaq-attach.is-enhanced .blaq-attach__drop.is-full { opacity: .55; }
.blaq-attach__input { font-size: 13px; }

.blaq-attach__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.blaq-attach__list:not(:empty) { margin-top: .7rem; }
.blaq-attach__list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .55rem;
  background: #fff;
  border: 1px solid #E5CFC6;
  border-radius: 10px;
}
.blaq-attach__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1ebe4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
}
.blaq-attach__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blaq-attach__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.blaq-attach__name { font-size: 13px; font-weight: 600; color: #222222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blaq-attach__size { font-size: 12px; color: #888; }
/* The theme's global button rule sets padding, a dark fill and a !important
   colour, so all of it is reset here. */
.blaq-attach .blaq-attach__remove {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666 !important;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
@media (hover: hover) {
  .blaq-attach .blaq-attach__remove:hover { background: #f1ebe4; color: #222222 !important; transform: none; }
}
.blaq-attach__error { margin: .6rem 0 0 !important; font-size: 12.5px !important; line-height: 1.5 !important; color: #B01430 !important; }
.blaq-attach__error:empty { display: none; }
.blaq-attach__hint { margin: .6rem 0 0 !important; font-size: 12px !important; line-height: 1.5 !important; color: #888 !important; }
@media (hover: none) { .blaq-attach__drop-alt { display: none; } } /* no drag-and-drop on touch screens */


/* ---- Delivery area rate table (checkout, under billing fields) ---- */
.blaq-delivery-rates { margin-top: 1.5rem; }
.blaq-delivery-rates__title {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #6b6b6b;
  color: #fff;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-body);
  font-size: calc(0.95rem * var(--heading-scale, 1));
  font-weight: 700;
  letter-spacing: 0.02em;
}
.blaq-delivery-rates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid #6b6b6b;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #fff;
}
.blaq-delivery-rates__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.blaq-delivery-rates__list li:first-child { border-top: none; }
.blaq-delivery-rates__list strong { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
/* Row for the delivery area currently chosen above */
.blaq-delivery-rates__list li.is-selected { background: #8f8f8f; color: #fff; }
.blaq-delivery-rates__list li.is-selected strong,
.blaq-delivery-rates__list li.is-selected .woocommerce-Price-amount,
.blaq-delivery-rates__list li.is-selected .woocommerce-Price-currencySymbol { color: #fff; }
.blaq-delivery-rates__note {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.85rem;
  background: #f4efe8;
  border-left: 3px solid #6b6b6b;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* Note under the Delivery area select (always visible) */
.woocommerce-checkout .blaq-delivery-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2b2822;
}

/* Delivery area dropdown — custom control (assets/js/delivery-select.js)
   replacing the native popup, so no browser-blue highlight anywhere. The
   real <select> stays in the DOM, visually hidden, as the form value. */
.blaq-select { position: relative; }
.blaq-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden;
}
.blaq-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 1.1em;
  background: #8f8f8f !important;
  border: 1px solid #8f8f8f !important;
  border-radius: 7px;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.blaq-select__button:focus-visible,
.blaq-select.is-open .blaq-select__button {
  background: #a0a0a0 !important;
  border-color: #a0a0a0 !important;
  color: #fff !important;
  outline: none;
}
.blaq-select__button:focus-visible { box-shadow: 0 0 0 3px rgba(143, 143, 143, 0.35); }
.blaq-select__chevron { display: inline-flex; flex-shrink: 0; transition: transform 0.15s ease; }
.blaq-select.is-open .blaq-select__chevron { transform: rotate(180deg); }
.blaq-select__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #6b6b6b;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  max-height: 260px;
  overflow-y: auto;
}
.blaq-select__list[hidden] { display: none; }
.blaq-select__option {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.blaq-select__option.is-selected { font-weight: 600; }
.blaq-select__option.is-active {
  background: #8f8f8f;
  color: #fff;
}

/* ---- Checkout terms checkbox: hardened override ----
   Belt-and-suspenders fix appended last in the file (wins any specificity
   tie by source order) plus a higher-specificity selector chain (body
   class + compound classes on the label) than a single-class rule from
   WooCommerce's bundled/blocks stylesheet could realistically use. If the
   checkbox still isn't flush with the payment-method radios after this
   file is actually live on the site (hard-refresh / clear any page or
   CDN cache), the remaining offset is coming from a plugin or
   page-builder stylesheet outside this theme, not from style.css. */
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper,
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms {
  padding-left: var(--co-pad) !important;
  padding-right: var(--co-pad) !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms {
  padding-left: 0 !important;
}
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms label.woocommerce-form__label-for-checkbox.checkbox {
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
}
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms input.woocommerce-form__input-checkbox {
  margin-left: 0 !important;
}

/* ---- FINAL, decisive fix for the checkout terms checkbox ----
   Everything above this point was class-based and, per screenshots,
   still wasn't reliably winning. #terms is an ID selector — its
   specificity (1,0,0) outranks any class-based rule WooCommerce's
   bundled/blocks stylesheet could realistically use, and this block
   is the last thing in the file, so it also wins any exact-specificity
   tie by source order. This fully re-declares the checkbox's look
   (not just alignment) in one place so nothing partial can slip
   through from earlier, weaker rules. */
#payment #terms {
  all: revert !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  min-width: 1.15em !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--line) !important;
  border-radius: 3px !important;
  background-color: var(--paper-raised) !important;
  background-image: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}
#payment #terms:checked {
  background-color: var(--ink) !important;
  border-color: var(--ink) !important;
}
#payment #terms:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 0.32em !important;
  top: 0.08em !important;
  width: 0.28em !important;
  height: 0.5em !important;
  border: solid var(--paper) !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}
#payment #terms:focus,
#payment #terms:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
@media (hover: hover) {
  #payment #terms:hover {
  outline: none !important;
  box-shadow: none !important;
}
}
/* Alignment: the label/wrapper chain reset to zero indent, with the
   wrapper alone carrying the shared --co-pad gutter so the checkbox's
   left edge lands exactly where the payment-method radios above it
   sit — same ID-strength approach as the checkbox itself. */
#payment .blaq-checkout-terms-wrapper {
  padding: 0 var(--co-pad) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-indent: 0 !important;
}
#payment .blaq-checkout-terms-wrapper p.blaq-checkout-terms {
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
}
/* :has() covers modern browsers; the plain class rule right after it
   is the fallback for anything that doesn't support :has() yet — both
   say the same thing, so there's no conflict either way. */
#payment .blaq-checkout-terms-wrapper label.checkbox:has(#terms),
#payment .blaq-checkout-terms-wrapper label.checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 0.6em !important;
  padding: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  float: none !important;
}

/* ==========================================================================
   Brands page (page-templates/brands.php)
   ========================================================================== */
body.blaq-brands-page { background: #fff; }
.brands-page { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.brands-az {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.brands-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border: 1px solid #e6e0dc;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  .brands-az a:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
}
.brands-group { scroll-margin-top: 110px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.brands-group__letter {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-red);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--brand-red);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0.75rem;
  border: 1px solid #efe9e5;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .brand-card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
}
.brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
}
.brand-card__img { max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
.brand-card__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-red);
}
.brand-card__name {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-card__count { font-size: 0.78rem; color: #777; }
@media (hover: hover) {
  .brand-card:hover .brand-card__name { color: var(--brand-red); }
}
.brands-page__empty { text-align: center; padding: 3rem 0; }
@media (max-width: 480px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card__logo { height: 70px; }
  .brand-card__img { max-height: 70px; }
}


/* --- Product page "Shipping & returns" accordion: Exchange & Return Policy --- */
.blaq-shipping-returns { max-width: 760px; }
.blaq-shipping-returns h3 {
  margin: 0 0 0.2em;
  font-size: calc(var(--step-0) * var(--heading-scale, 1));
  font-weight: 700;
}
.blaq-shipping-returns h4 {
  margin: 1.4em 0 0.4em;
  font-size: calc(var(--step--1) * var(--heading-scale, 1));
  font-weight: 700;
  color: #222222;
}
.blaq-shipping-returns p { margin: 0 0 0.8em; }
.blaq-shipping-returns ul { margin: 0 0 0.8em; padding-left: 1.2em; }
.blaq-shipping-returns li { margin-bottom: 0.3em; }
.blaq-shipping-returns__updated { color: #6b6b6b; font-size: var(--step--1); }
.blaq-shipping-returns a { text-decoration: underline; }
.blaq-shipping-returns__full { font-weight: 600; }

/* ==========================================================================
   VARIATION SWATCHES (Size / Colour / custom option buttons)
   Driven by assets/js/variation-swatches.js; the real <select> stays in
   the DOM (visually hidden) so WooCommerce still swaps image/price/stock.
   ========================================================================== */
.blaq-sw-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.variations_form table.variations td.value { position: relative; }
/* Stack label above swatches, everything left-aligned (WooCommerce's table
   layout pushed the label to the middle and left a big gap below). */
.variations_form table.variations,
.variations_form table.variations tbody,
.variations_form table.variations tr,
.variations_form table.variations th,
.variations_form table.variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; background: none; }
.variations_form table.variations { margin: 0 0 1em; }
.variations_form table.variations tr { margin: 0 0 0.9em; }
.variations_form table.variations td.label,
.variations_form table.variations th.label { margin: 0 0 0.4em; }
.variations_form table.variations td.label label { display: inline; margin: 0; text-align: left; }
.variations_form .single_variation_wrap { margin-top: 0; }
.variations_form .reset_variations { display: none !important; }
.variations_form .blaq-swatches { justify-content: flex-start; }
/* Swatch text: black (white only on the selected, dark swatch; muted grey
   stays for out-of-stock / unavailable). !important beats the theme's global
   button colour rules that were washing the label out. */
.woocommerce div.product .variations_form .blaq-swatch:not(.is-selected):not(.is-oos):not(.is-unavailable) {
  color: #222222 !important;
  -webkit-text-fill-color: #222222;
}
@media (hover: hover) {
  .woocommerce div.product .variations_form .blaq-swatch:not(.is-selected):not(.is-oos):not(.is-unavailable):hover {
  color: #222222 !important;
  -webkit-text-fill-color: #222222;
}
}
.woocommerce div.product .variations_form .blaq-swatch.is-selected { color: #fff !important; -webkit-text-fill-color: #fff; }
.variations_form .blaq-swatch { border-radius: 10px !important; }
.variations_form .blaq-swatch.has-thumb img { border-radius: 7px; }
.variations_form .blaq-swatch.is-oos,
.variations_form .blaq-swatch.is-unavailable { color: #8a8a8a; }
.variations_form .blaq-swatch.is-oos.is-selected { color: #fff; }
/* Out-of-stock / unavailable swatch text: black. The rule above that sets
   black on normal swatches excludes these two states, so the theme's global
   button colour (white) was winning and the label vanished on the white
   swatch. The diagonal strike + light border still mark it as sold out. */
.woocommerce div.product .variations_form .blaq-swatch.is-oos:not(.is-selected),
.woocommerce div.product .variations_form .blaq-swatch.is-unavailable:not(.is-selected) {
  color: #222222 !important;
  -webkit-text-fill-color: #222222;
  opacity: 1;
}
@media (hover: hover) {
  .woocommerce div.product .variations_form .blaq-swatch.is-oos:not(.is-selected):hover,
.woocommerce div.product .variations_form .blaq-swatch.is-unavailable:not(.is-selected):hover {
  color: #222222 !important;
  -webkit-text-fill-color: #222222;
  opacity: 1;
}
}

/* Variable products: qty + wishlist sit in .woocommerce-variation-add-to-cart
   (inside form.cart), which wasn't a flex row, so Add to cart butted up
   against them with no gap. Same row/gap behaviour as simple products. */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .quantity { order: 0; margin: 0 !important; float: none !important; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .wishlist-btn--labeled { order: 1; margin: 0; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button { order: 2; flex: 1 1 100%; margin: 0; }
.blaq-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.35em 0 0.2em; }
.blaq-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--charcoal, #222222);
  background: #fff;
  color: var(--charcoal, #222222);
  font: inherit;
  font-size: 0.88em;
  line-height: 1.2;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  .blaq-swatch:hover { border-color: var(--brand-red, #B01430); }
}
.blaq-swatch:focus-visible { outline: 2px solid var(--brand-red, #B01430); outline-offset: 2px; }

/* Fresher, more compact size/variation swatches: smaller label, lighter
   border, tighter padding and gaps. Selected/hover colours are set elsewhere. */
.woocommerce div.product .variations_form .blaq-swatches { gap: 6px; }
.woocommerce div.product .variations_form .blaq-swatch {
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  min-height: 32px;
  padding: 5px 12px;
  gap: 6px;
  border-width: 1px;
  border-color: rgba(34, 34, 34, 0.28);
}
.woocommerce div.product .variations_form .blaq-swatch.is-selected { border-color: var(--charcoal, #222222); }
.woocommerce div.product .variations_form .blaq-swatch.has-thumb { padding: 3px 10px 3px 3px; }
.woocommerce div.product .variations_form .blaq-swatch.has-thumb img { width: 24px; height: 24px; }
@media (max-width: 480px) {
  .woocommerce div.product .variations_form .blaq-swatch { font-size: 12.5px !important; padding: 5px 11px; }
}
/* Size/variation swatch hover: soft theme blush fill + red outline instead of
   the global button:hover solid red, which made the dark label unreadable.
   Selected swatch keeps its dark fill; works in night mode too because
   --btn-blush is redefined there. */
@media (hover: hover) {
  .woocommerce div.product .variations_form .blaq-swatch:not(.is-selected):hover {
    background-color: var(--btn-blush, #FFF3EF) !important;
    border-color: var(--brand-red, #DD183B) !important;
  }
}
.blaq-swatch.is-selected { background: var(--charcoal, #222222); color: #fff; border-color: var(--charcoal, #222222); }
.blaq-swatch.has-thumb { padding: 4px 12px 4px 4px; }
.blaq-swatch.has-thumb img { width: 28px; height: 28px; object-fit: cover; border-radius: 2px; display: block; }
.blaq-swatch.is-oos,
.blaq-swatch.is-unavailable { color: #8a8a8a; border-color: #cfcfcf; background-image: linear-gradient(to top right, transparent calc(50% - 1px), #bdbdbd, transparent calc(50% + 1px)); }
.blaq-swatch.is-oos.is-selected { background-color: #6b6b6b; color: #fff; }
.blaq-swatch.is-unavailable { opacity: 0.5; }
.blaq-sw-current { font-weight: 400; text-transform: none; letter-spacing: 0; }
/* "Clear" link removed — click the selected swatch to deselect. */
.variations_form .reset_variations { display: none !important; }
/* Selected option next to the label: "SIZE: A5", same look as the label. */
/* Label row: "SIZE" immediately followed by ": A6" (colon drawn here, text set by JS). */
.variations_form table.variations td.label label { display: inline-flex !important; align-items: baseline; gap: 0; }
.variations_form table.variations td.label label .blaq-sw-current { display: inline !important; font: inherit !important; color: inherit !important; text-transform: none; letter-spacing: 0; margin: 0 !important; padding: 0 !important; }
.variations_form table.variations td.label label .blaq-sw-current:not(:empty)::before { content: ":"; margin-right: 0.35em; }
/* Variation price now lives in the main price slot under the title. */
.variations_form.blaq-price-synced .woocommerce-variation-price { display: none !important; }
.variations_form.blaq-price-synced .woocommerce-variation.single_variation { margin: 0 0 0.6em; }

/* ==========================================================================
   Primary nav — animated hover (desktop)
   The underline is a ::before bar that wipes in from the left on hover /
   focus / open and wipes out to the right on leave, instead of the old
   instant border-bottom swap. The chevron keeps its own ::after.
   ========================================================================== */
@media (min-width: 861px) {
  .primary-nav > ul > li > a {
    position: relative;
    border-bottom-color: transparent !important; /* bar below replaces it */
    transition: color .25s ease, letter-spacing .3s cubic-bezier(.22,.61,.36,1);
  }
  .primary-nav > ul > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--nav-text);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
  }
  .primary-nav > ul > li > a:focus-visible::before,
  .primary-nav > ul > li:focus-within > a::before,
  .primary-nav > ul > li.is-open > a::before,
  .primary-nav > ul > li.current-menu-item > a::before {
    transform: scaleX(1);
    transform-origin: left center;
  }
@media (hover: hover) {
  .primary-nav > ul > li > a:hover::before,
  .primary-nav > ul > li:hover > a::before {
    transform: scaleX(1);
    transform-origin: left center;
  }
  }
  /* Soft lift on hover, chevron gets a small bounce. */
@media (hover: hover) {
  .primary-nav > ul > li > a:hover { transform: translateY(-1px); }
  }
  .primary-nav > ul > li > a { transition: color .25s ease, transform .25s ease; }
@media (hover: hover) {
  .primary-nav > ul > li.menu-item-has-children:hover > a::after,
  .primary-nav > ul > li.menu-item-has-mega:hover > a::after {
    margin-left: 0.55em;
  }
  }
  .primary-nav > ul > li.menu-item-has-children > a::after,
  .primary-nav > ul > li.menu-item-has-mega > a::after {
    transition: transform .15s ease, border-color .15s ease, margin-left .25s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav > ul > li > a,
  .primary-nav > ul > li > a::before,
  .primary-nav > ul > li > a::after { transition: none !important; }
@media (hover: hover) {
  .primary-nav > ul > li > a:hover { transform: none; }
  }
}

/* Primary-menu mega panels: "Category: <name>" header row, matching the
   Categories panel's "Explore Categories" row (title left, link right,
   hairline underneath). */
.mega-menu:not(#blaq-mega-menu) .mega-menu__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #eee;
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__top-title {
  margin: 0; font: 700 18px/1.3 var(--font-body); color: #161616;
  text-transform: none; letter-spacing: normal;
}
.mega-menu:not(#blaq-mega-menu) .mega-menu__top-link {
  font: 700 11px var(--font-body); color: #cc1939 !important; letter-spacing: .4px; text-decoration: none;
}

/* Flat mega panels (one-level menu items such as Journaling): the links
   flow top-to-bottom in four balanced columns under the "Category:" header.
   Explicit widths + !important because the generic .primary-nav ul rules
   (flex, shrink-to-fit) also match these nested lists. */
.mega-menu--flat .mega-menu__grid { display: block !important; width: 100%; -webkit-column-count: auto !important; column-count: auto !important; }
.mega-menu--flat .mega-menu__group { display: block; width: 100%; margin: 0; }
.mega-menu--flat .mega-menu__list {
  display: block !important;
  width: 100% !important;
  -webkit-column-count: 4;
  column-count: 4;
  -webkit-column-gap: 32px;
  column-gap: 32px;
}
.mega-menu--flat .mega-menu__list li {
  display: block;
  width: 100% !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.mega-menu--flat .mega-menu__list li a { white-space: nowrap; }

/* Blog home: category menu row above the magazine grid. Spacing copies the
   category pages: same top padding under the nav bar (.blog-cats--archive),
   and 8px + 28px (head margin + grid gap) between the row and the content. */
.blog-mag--page.blog-mag--has-cats { padding-top: clamp(16px, 2vw, 28px); }
.blog-mag__home-cats { margin-bottom: 36px; }


/* Empty shop / category / filter result — no notice box, just the message
   in the brand colour. It sits inside .shop-content (the column beside the
   filter sidebar on desktop, the full width on mobile), so it is a plain
   flex box filling that column and centring its text both ways. No absolute
   positioning, so it behaves the same at every screen width. */
.shop-content .blaq-no-products,
.blaq-no-products {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: none; /* global p { max-width: 62ch } would otherwise cap the box */
  min-height: 50vh;
  margin: 0 !important;
  padding: 0 1rem;
  border: 0;
  background: none;
  text-align: center;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-red) !important;
}
.blaq-no-products::before { display: none !important; }

/* Desktop: the message is centred on the whole page (under the page title),
   not just the column beside the sidebar. The sidebar width (260px) plus the
   grid gap are pulled back in with a negative left margin, so the box spans
   the full layout width. pointer-events:none keeps the sidebar clickable. */
@media (min-width: 901px) {
  .shop-content .blaq-no-products,
  .blaq-no-products {
    width: calc(100% + 260px + clamp(2rem, 4vw, 3.5rem));
    margin-left: calc(-1 * (260px + clamp(2rem, 4vw, 3.5rem))) !important;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .shop-content .blaq-no-products,
  .blaq-no-products { min-height: 40vh; }
}

/* ==========================================================================
   MOBILE PRODUCT CARD TWEAKS (phones, <= 600px)
   1. Home page only: product images a bit bigger — the white "category-section"
      card, its page gutter and the grid gap all take less room, so each
      2-column product cell (and the image filling it) gets wider.
   2. All pages: Add to Cart / Stock Out button now as wide as the image (the
      old auto side-margins let it shrink to its text) and shorter in height.
   3. All pages: price and Add to Cart text a bit smaller.
   ========================================================================== */
@media (max-width: 600px) {
  /* 1. Home only — bigger images */
  body.home .section.container:has(> .category-section) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  body.home .category-section {
    padding: 0.9rem 0.6rem;
  }
  body.home .category-section ul.products {
    gap: 0.6rem !important;
  }

  /* 2. All product-card grids — full-width, shorter button */
  body ul.products li.product .button,
  body ul.products li.product a.button {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: stretch;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    min-height: 0 !important;
    padding: 0 0.5em !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  /* 3. Smaller price text (sale price, struck-through price, taka sign) */
  body ul.products li.product .price,
  body ul.products li.product .price .woocommerce-Price-amount,
  body ul.products li.product .price bdi,
  body ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 0.78rem;
  }
  body ul.products li.product .price del,
  body ul.products li.product .price del .woocommerce-Price-amount,
  body ul.products li.product .price del bdi {
    font-size: 0.72rem;
  }

  /* "Admired by many" reel cards use the same button/price styling */
  .reel-card__price { font-size: 0.78rem; }
  .reel-card__cart .button,
  .reel-card__cart a.button {
    height: 32px;
    padding: 0 0.5em;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Phones: "Admired By Many" section heading a bit smaller */
@media (max-width: 600px) {
  body .reel-section__title {
    font-size: calc(1.3rem * var(--heading-scale, 1));
    letter-spacing: 0.03em;
    margin-bottom: 1.1em;
  }
}

/* Section titles on the home page ("Recently added", "Paint", other category
   sections, etc.) — Montserrat SemiBold instead of the serif display font. */
body .section__head h2 {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ==========================================================================
   PRODUCT TITLES — DM Sans (loaded in blaq_google_fonts_url()).
   Product cards in every grid, the single product page title, the "Admired
   by many" reel cards and the cart / wishlist drawers.
   ========================================================================== */
body ul.products li.product .woocommerce-loop-product__title,
body .woocommerce div.product .product_title,
body .reel-card__name,
body .cart-drawer__item-title,
body .cart-drawer__item-title a,
body .wishlist-drawer__item-title,
body .wishlist-drawer__item-title a {
  font-family: var(--font-display);
}

/* ==========================================================================
   SEO archive text — kept in the page HTML (and editable in the backend
   under Products → Categories / the Shop page) so search engines still
   read it, but visually hidden from shoppers. Uses the clip technique
   rather than display:none so it stays in the accessibility/crawl tree.
   ========================================================================== */
.woocommerce .term-description,
.woocommerce .page-description,
.woocommerce-products-header .term-description,
.woocommerce-products-header .page-description,
.shop-content .term-description,
.shop-content .page-description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Crisp category icons: render the (SVG) artwork at its exact size. */
.category-circles__icon img {
  /* Line-art recoloured from black to gray (#6b6b6b). */
  filter: brightness(0) invert(0.42);
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   TOUCH FEEDBACK (phones / tablets)
   Replaces the browser's default tap look — the blue text-selection box
   over the logo / links, the grey tap flash and the long-press callout —
   with a clean, modern press effect: a quick soft shrink + fade while the
   finger is down, then a spring back. Only on touch screens, so desktop
   mouse hover is unchanged. Body text and form fields stay selectable.
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
  html { -webkit-tap-highlight-color: transparent; }

  /* No blue selection box / callout on tappable UI */
  a, button, [role="button"], summary, label[for],
  .site-branding, .site-branding *,
  .category-circles__item, .category-circles__item *,
  ul.products li.product, ul.products li.product *,
  .reel-card, .reel-card *,
  .blog-card, .blog-card *,
  .mobile-menu-accordion__trigger {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  img, svg { -webkit-user-drag: none; }

  /* Press effect */
  .site-branding a,
  .category-circles__item,
  ul.products li.product,
  .reel-card,
  .blog-card,
  .header-main .cart-toggle,
  .header-main a[class*="cart"],
  .menu-toggle {
    transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
    touch-action: manipulation;
  }
  .site-branding a:active,
  .header-main .cart-toggle:active,
  .header-main a[class*="cart"]:active {
    transform: scale(.94);
    opacity: .75;
  }
  .category-circles__item:active { transform: scale(.94); opacity: .85; }
  ul.products li.product:active,
  .reel-card:active,
  .blog-card:active { transform: scale(.985); opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .site-branding a, .category-circles__item, ul.products li.product,
  .reel-card, .blog-card, .menu-toggle { transition: none !important; }
}


/* ==========================================================================
   FONT LOCK — Sora (headings / order-received Total) + Montserrat (everything else)
   Safety net so no plugin, WooCommerce block or browser default can render
   any other typeface on the front end. Form controls and WooCommerce/plugin
   markup don't inherit fonts by default, so they are forced here. Headings
   and the order-received Total use Sora; all other text uses Montserrat.
   ========================================================================== */
body,
button, input, select, textarea, optgroup,
.select2-container, .select2-results__option, .select2-selection__rendered {
  font-family: var(--font-body);
}
h1, h2, h3, h4, h5, h6,
.blaq-order-received .total-row strong {
  font-family: var(--font-display);
}


/* ---- Checkout payment instructions: "Copy" button (bKash / Nagad number) ----
   Text-only "Copy" link: no border, no background, no icon. Dark text so it
   stays readable on the light instruction card, gray on hover. The account
   number next to it is shown borderless too. */
.woocommerce-checkout #payment .payment_box button:not(#place_order),
.woocommerce-checkout #payment .payment_box .button:not(#place_order),
.woocommerce-checkout #payment .payment_box [class*="copy"] {
  color: #222222 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 0 6px !important;
  font-family: var(--font-body) !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  text-decoration: underline;
  cursor: pointer;
}
/* Remove the copy icon (inline svg / img / icon font / pseudo-element). */
.woocommerce-checkout #payment .payment_box button:not(#place_order) svg,
.woocommerce-checkout #payment .payment_box button:not(#place_order) img,
.woocommerce-checkout #payment .payment_box button:not(#place_order) i,
.woocommerce-checkout #payment .payment_box button:not(#place_order) .dashicons,
.woocommerce-checkout #payment .payment_box [class*="copy"] svg,
.woocommerce-checkout #payment .payment_box [class*="copy"] img,
.woocommerce-checkout #payment .payment_box [class*="copy"] i,
.woocommerce-checkout #payment .payment_box [class*="copy"] .dashicons,
.woocommerce-checkout #payment .payment_box button:not(#place_order)::before,
.woocommerce-checkout #payment .payment_box button:not(#place_order)::after,
.woocommerce-checkout #payment .payment_box [class*="copy"]::before,
.woocommerce-checkout #payment .payment_box [class*="copy"]::after {
  display: none !important;
  content: none !important;
}
@media (hover: hover) {
  .woocommerce-checkout #payment .payment_box button:not(#place_order):hover,
.woocommerce-checkout #payment .payment_box .button:not(#place_order):hover,
.woocommerce-checkout #payment .payment_box [class*="copy"]:hover {
  color: #6b6b6b !important;
  background: transparent !important;
  border: 0 !important;
}
}
/* Account number: no box around it. */
.woocommerce-checkout #payment .payment_box input[readonly],
.woocommerce-checkout #payment .payment_box code,
.woocommerce-checkout #payment .payment_box kbd,
.woocommerce-checkout #payment .payment_box output {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  font: inherit !important;
  font-weight: 700 !important;
  color: inherit !important;
}

/* ---- Payment method description box (Cash on delivery, bKash, ...) ----
   Same warm beige as the delivery note ("After 0.5 kg ... will be added")
   instead of WooCommerce's default lavender-gray. The little pointer
   triangle on top is recoloured to match. !important + the div selector
   beat WooCommerce's own #payment div.payment_box rule. */
body.woocommerce-checkout #payment div.payment_box,
body.woocommerce-checkout #payment .payment_box {
  background: #f4efe8 !important;
  background-color: #f4efe8 !important;
  color: var(--ink);
}
body.woocommerce-checkout #payment div.payment_box::before,
body.woocommerce-checkout #payment .payment_box::before {
  display: block !important;
  border-bottom-color: #f4efe8 !important;
}

/* ---- Payment methods in ONE ROW ----
   Each <li> is dissolved (display: contents) so its radio + label become
   items of the flex row, and the open description box drops to its own
   full-width line underneath. The radio is visually hidden and the label
   is the clickable pill, with a custom dot that shows the selection. */
body.woocommerce-checkout #payment ul.payment_methods {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem var(--co-pad) 0.4rem !important;
}
body.woocommerce-checkout #payment ul.payment_methods li {
  display: contents !important;
  border: none !important;
}
body.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  opacity: 0;
}
body.woocommerce-checkout #payment ul.payment_methods li > label {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.6em 1em;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-raised);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
body.woocommerce-checkout #payment ul.payment_methods li > label::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1.5px solid #8a857a;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
@media (hover: hover) {
  body.woocommerce-checkout #payment ul.payment_methods li > label:hover {
  border-color: var(--ink);
}
}
body.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"]:checked + label {
  border-color: var(--ink);
  background: var(--paper);
}
body.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"]:checked + label::before {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px);
}
body.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.woocommerce-checkout #payment ul.payment_methods li > .payment_box {
  order: 2;
  flex: 0 0 100%;
  margin: 0.2em 0 0.6em !important;
}
body.woocommerce-checkout #payment ul.payment_methods li > .payment_box::before {
  display: none !important;
}

/* ---- Payment row: stretch edge-to-edge, slimmer pills ---- */
body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 !important;
  padding: 1rem var(--co-pad) 0.4rem !important;
  width: 100%;
  box-sizing: border-box;
  justify-content: stretch;
}
body.woocommerce-checkout #payment ul.payment_methods::before,
body.woocommerce-checkout #payment ul.payment_methods::after {
  display: none !important;
}
body.woocommerce-checkout #payment ul.payment_methods li > label {
  flex: 1 1 0;
  min-width: max-content;
  justify-content: center;
  margin: 0 !important;
  padding: 0.4em 0.9em !important;
  line-height: 1.3;
}

/* WooCommerce adds empty clearfix pseudo-elements (li::before / li::after)
   to every payment <li>. Because each <li> is display: contents, those
   became 8 invisible flex items, each adding a gap, which pushed the row
   ~76px in from the left. Removing them lets the row start flush. */
body.woocommerce-checkout #payment ul.payment_methods li::before,
body.woocommerce-checkout #payment ul.payment_methods li::after {
  display: none !important;
  content: none !important;
}

/* ---- Payment method icons ----
   Drawn as a background image on label::after and placed between the
   radio dot and the name. Matched by the gateway id in the label's
   "for" attribute (payment_method_cod / ...bkash / ...nagad / ...rocket).
   These are simple stand-in icons: to use the official logos instead,
   swap the url(...) of the matching rule below for the image file. */
body.woocommerce-checkout #payment ul.payment_methods li > label::before { order: -2; }
body.woocommerce-checkout #payment ul.payment_methods li > label::after {
  order: -1;
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat;
  display: none;
}
body.woocommerce-checkout #payment ul.payment_methods li > label[for*="cod" i]::after {
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='5.5' width='21' height='13' rx='2.5' fill='%232e9b5f'/%3E%3Ccircle cx='12' cy='12' r='3.2' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Ccircle cx='5.5' cy='12' r='1.1' fill='%23fff'/%3E%3Ccircle cx='18.5' cy='12' r='1.1' fill='%23fff'/%3E%3C/svg%3E");
}
body.woocommerce-checkout #payment ul.payment_methods li > label[for*="bkash" i]::after {
  display: block;
  background-image: url("assets/images/bkash.png");
}
body.woocommerce-checkout #payment ul.payment_methods li > label[for*="nagad" i]::after {
  display: block;
  background-image: url("assets/images/nagad.svg");
}
body.woocommerce-checkout #payment ul.payment_methods li > label[for*="rocket" i]::after {
  display: block;
  background-image: url("assets/images/rocket.svg");
  width: 34px;
  height: 22px;
}


/* ==========================================================================
   Checkout — touch + mobile pass
   ========================================================================== */

/* Hover effects only where a real hover exists, so they don't "stick" after a
   tap on touch screens. */
@media (hover: hover) {
  .blaq-select__button:hover {
    background: #a0a0a0 !important;
    border-color: #a0a0a0 !important;
    color: #fff !important;
  }
  .blaq-select__option:hover { background: #8f8f8f; color: #fff; }
  body.woocommerce-checkout #payment ul.payment_methods li > label:hover { border-color: var(--ink); }
}
/* On touch screens, drop the sticky hover border the earlier rule would leave. */
@media (hover: none) {
  body.woocommerce-checkout #payment ul.payment_methods li > label:hover { border-color: var(--line); }
  body.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"]:checked + label:hover { border-color: var(--ink); }
}

/* Faster taps (no 300ms delay / double-tap zoom) and no grey flash. */
.blaq-select__button,
.blaq-select__option,
body.woocommerce-checkout #payment ul.payment_methods li > label,
.woocommerce-checkout #payment .blaq-checkout-terms label,
.woocommerce-checkout #place_order {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* "I agree to…" checkbox: top-aligned with the first line of text. */
#payment .blaq-checkout-terms-wrapper label.checkbox:has(#terms),
#payment .blaq-checkout-terms-wrapper label.checkbox,
.woocommerce-checkout #payment .blaq-checkout-terms label.checkbox {
  align-items: flex-start !important;
}
#payment .blaq-checkout-terms-wrapper label.checkbox #terms,
.woocommerce-checkout #payment .blaq-checkout-terms input.input-checkbox {
  margin-top: 0.08em !important;
}

@media (max-width: 900px) {
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading { min-width: 0; max-width: 100%; }
}

@media (max-width: 600px) {
  .woocommerce-checkout { --co-pad: 1rem; }

  /* 16px inputs stop iOS from zooming the page when a field is focused. */
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout textarea,
  .woocommerce-checkout select,
  .woocommerce-checkout .blaq-select__button { font-size: 16px; }
  .blaq-select__option { font-size: 0.95rem; padding: 0.85rem 0.9rem; min-height: 44px; box-sizing: border-box; }

  /* ---- Order summary: stacked rows instead of a 3-column table ---- */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  /* Column headings are replaced by per-row labels below. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  /* Product rows: name on top, "Qty: n" left, price right. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: center;
    padding: 0.9rem var(--co-pad);
    border-top: 1px solid var(--line);
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
    grid-column: 1 / -1;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-qty {
    grid-column: 1;
    text-align: left;
    white-space: normal;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-qty::before {
    content: "Qty: ";
    font-weight: 400;
    color: #6b6558;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
    grid-column: 2;
    text-align: right;
    white-space: nowrap;
  }
  /* Totals rows: label left, amount right. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.8rem var(--co-pad);
    border-top: 1px solid var(--line);
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr th,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr td { text-align: right; }
  /* Delivery Charge row keeps its own full-width breakdown. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.blaq-shipping-totals-row { display: block; }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.blaq-shipping-totals-row td {
    width: 100%;
    text-align: left;
  }
  .blaq-shipping-breakdown__row { flex-wrap: wrap; }
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
  .woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td { font-size: 1.1rem; }

  /* ---- Payment methods: one per row, left-aligned ---- */
  body.woocommerce-checkout #payment ul.payment_methods {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  body.woocommerce-checkout #payment ul.payment_methods li > label {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    min-height: 46px;
  }
  body.woocommerce-checkout #payment ul.payment_methods li > .payment_box {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .woocommerce-checkout #place_order { min-height: 48px; width: 100%; }
}


/* ==========================================================================
   Checkout — "Step 1 / Billing details" card
   Markup: woocommerce/checkout/form-billing.php + form-shipping.php
   Behaviour: assets/js/checkout-billing.js

   The whole left column (#customer_details) is ONE card: billing fields,
   the "Ship to a different address" box and "Additional information".
   The three inner WooCommerce wrappers lose their own card styling.
   Values follow the approved checkout preview.
   ========================================================================== */

body.woocommerce-checkout #customer_details {
  background: #fff;
  border: 1px solid #e7e2df;
  border-radius: 12px;
  padding: 32px;
  box-sizing: border-box;
  line-height: normal;
  --blaq-bill-red: #d7193f;
  --blaq-bill-border: #e7e2df;
  --blaq-bill-input: #dcd8d5;
}

/* inner WooCommerce wrappers: no card of their own any more */
body.woocommerce-checkout #customer_details .woocommerce-billing-fields,
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* ---- Heading ---- */
body.woocommerce-checkout #customer_details .blaq-billing__heading { margin-bottom: 28px; }
body.woocommerce-checkout #customer_details .blaq-billing__heading h3 {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}
body.woocommerce-checkout #customer_details .blaq-billing__heading p {
  margin: 7px 0 0;
  font-size: 13px;
  color: #777;
}

/* ---- Fields (shared by billing, shipping and order notes) ---- */
body.woocommerce-checkout #customer_details .form-row {
  float: none;
  width: 100%;
  margin: 0 0 21px;
  padding: 0;
}
body.woocommerce-checkout #customer_details .form-row label:not(.checkbox) {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #292929;
}
body.woocommerce-checkout #customer_details .form-row label .req,
body.woocommerce-checkout #customer_details .form-row label .required { color: var(--blaq-bill-red); text-decoration: none; }
body.woocommerce-checkout #customer_details .form-row label small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #999;
}
body.woocommerce-checkout #customer_details .woocommerce-input-wrapper { display: block; width: 100%; }

body.woocommerce-checkout #customer_details .form-row input.input-text,
body.woocommerce-checkout #customer_details .form-row textarea,
body.woocommerce-checkout #customer_details .form-row select {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--blaq-bill-input);
  border-radius: 7px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: normal;
  color: #292929;
  outline: 0;
  box-shadow: none;
}
body.woocommerce-checkout #customer_details .form-row textarea {
  display: block;
  min-height: 92px;
  resize: vertical;
}
body.woocommerce-checkout #customer_details .form-row input.input-text:focus,
body.woocommerce-checkout #customer_details .form-row textarea:focus,
body.woocommerce-checkout #customer_details .form-row select:focus {
  border-color: var(--blaq-bill-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 63, 0.07);
}
body.woocommerce-checkout #customer_details .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout #customer_details .form-row.woocommerce-invalid textarea,
body.woocommerce-checkout #customer_details .form-row.woocommerce-invalid .blaq-phone {
  border-color: var(--blaq-bill-red);
}

/* ---- Phone + email row ---- */
body.woocommerce-checkout #customer_details .blaq-billing__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
body.woocommerce-checkout #customer_details .blaq-billing__row > .form-row { min-width: 0; }

body.woocommerce-checkout #customer_details .blaq-phone {
  display: flex;
  border: 1px solid var(--blaq-bill-input);
  border-radius: 7px;
  overflow: hidden;
}
body.woocommerce-checkout #customer_details .blaq-phone__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f7f5f3;
  font-size: 13px;
  font-weight: 600;
  color: #292929;
}
body.woocommerce-checkout #customer_details .blaq-phone input.input-text {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
}
body.woocommerce-checkout #customer_details .blaq-phone:focus-within {
  border-color: var(--blaq-bill-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 63, 0.07);
}
body.woocommerce-checkout #customer_details .blaq-phone input.input-text:focus { box-shadow: none; }

/* ---- Delivery area cards ---- */
body.woocommerce-checkout #customer_details .blaq-delivery { margin-top: 25px; }
body.woocommerce-checkout #customer_details .blaq-delivery__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.woocommerce-checkout #customer_details .form-row label.blaq-delivery__option {
  position: relative;
  display: flex;
  align-items: flex-start;          /* tick sits on the area-name line */
  gap: 10px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--blaq-bill-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-transform: none;             /* title case, not ALL CAPS */
  letter-spacing: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) {
  body.woocommerce-checkout #customer_details .blaq-delivery__option:not(.active):hover {
  border-color: #dccfc9;
  background: #fdf6f7;              /* very light tint of the brand red */
}
}
@media (hover: hover) {
  body.woocommerce-checkout #customer_details .blaq-delivery__option:not(.active):hover .blaq-delivery__dot { border-color: #e48a9c; }
}
body.woocommerce-checkout #customer_details .blaq-delivery__option.active {
  border-color: var(--blaq-bill-red);
  background: #fff8fa;
  box-shadow: 0 0 0 1px var(--blaq-bill-red) inset;
}
body.woocommerce-checkout #customer_details .blaq-delivery__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
body.woocommerce-checkout #customer_details .blaq-delivery__option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(215, 25, 63, 0.18);
}
/* Check-circle instead of a ring: empty circle -> red circle with a white tick */
body.woocommerce-checkout #customer_details .blaq-delivery__dot {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid #cdc6c1;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.woocommerce-checkout #customer_details .blaq-delivery__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
body.woocommerce-checkout #customer_details .blaq-delivery__option.active .blaq-delivery__dot {
  border-color: var(--blaq-bill-red);
  background: var(--blaq-bill-red);
}
body.woocommerce-checkout #customer_details .blaq-delivery__option.active .blaq-delivery__dot::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}
body.woocommerce-checkout #customer_details .blaq-delivery__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
body.woocommerce-checkout #customer_details .blaq-delivery__info strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;                /* same height as the tick */
  color: #222;
}
body.woocommerce-checkout #customer_details .blaq-delivery__info span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #8a8480;
}
body.woocommerce-checkout #customer_details .blaq-delivery__price {
  align-self: flex-start;           /* price lines up with the area name */
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #222;
  white-space: nowrap;
}
body.woocommerce-checkout #customer_details .blaq-delivery__price .woocommerce-Price-amount { font-weight: inherit; }
body.woocommerce-checkout #customer_details .blaq-delivery__note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f3ee;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}

body.woocommerce-checkout #customer_details .blaq-delivery__note > span:first-child {
  flex: none;
  font-size: 17px;
  line-height: 18px;
  color: #777;
}

/* ---- Full address ---- */
body.woocommerce-checkout #customer_details .blaq-field__hint {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.5;
  color: #999;
}

/* ---- Ship to a different address ---- */
body.woocommerce-checkout #customer_details #ship-to-different-address {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid var(--blaq-bill-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
}
body.woocommerce-checkout #customer_details #ship-to-different-address label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  width: 100%;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
body.woocommerce-checkout #customer_details #ship-to-different-address input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;                        /* box top = first line of the text */
  box-sizing: border-box;
  border: 1.5px solid #cdc6c1;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) {
  body.woocommerce-checkout #customer_details #ship-to-different-address input[type="checkbox"]:hover { border-color: var(--blaq-bill-red); }
}
body.woocommerce-checkout #customer_details #ship-to-different-address input[type="checkbox"]:checked {
  background: var(--blaq-bill-red);
  border-color: var(--blaq-bill-red);
}
body.woocommerce-checkout #customer_details #ship-to-different-address input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
body.woocommerce-checkout #customer_details #ship-to-different-address input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(215, 25, 63, 0.18);
}
body.woocommerce-checkout #customer_details .blaq-different__text { display: flex; flex-direction: column; gap: 3px; }
body.woocommerce-checkout #customer_details .blaq-different__text strong { font-size: 14px; font-weight: 700; line-height: 18px; color: #292929; }
body.woocommerce-checkout #customer_details .blaq-different__text span { font-size: 12px; font-weight: 400; line-height: 1.4; color: #8a8480; }
body.woocommerce-checkout #customer_details .shipping_address { margin-bottom: 4px; }

/* ---- Additional information ---- */
body.woocommerce-checkout #customer_details .woocommerce-additional-fields {
  border-top: 1px solid var(--blaq-bill-border);
  padding-top: 24px;
}
body.woocommerce-checkout #customer_details .woocommerce-additional-fields > h3 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}
body.woocommerce-checkout #customer_details .woocommerce-additional-fields .form-row:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  body.woocommerce-checkout #customer_details .blaq-billing__row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  body.woocommerce-checkout #customer_details { padding: 19px; }
  /* 16px stops iOS Safari zooming into the field on focus. */
  body.woocommerce-checkout #customer_details .form-row input.input-text,
  body.woocommerce-checkout #customer_details .form-row textarea { font-size: 16px; }
}


/* Checkout: no dimmed overlay / spinner on the order summary while it
   refreshes (changing delivery area, etc.). WooCommerce blocks the order
   review table and payment box with a blockUI overlay during update_checkout;
   hide it so the totals just update in place. Placing the order is still
   guarded by WooCommerce's own "processing" check, so it can't double-submit. */
.woocommerce-checkout #order_review .blockUI,
.woocommerce-checkout #order_review .blockUI.blockOverlay,
.woocommerce-checkout #order_review .blockUI.blockOverlay::before {
  display: none !important;
  background: none !important;
}


/* Checkout: smaller "I agree to the Terms & Conditions..." line */
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms label.checkbox,
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms label.checkbox span,
body.woocommerce-checkout #payment .blaq-checkout-terms-wrapper .blaq-checkout-terms label.checkbox a {
  font-size: 11px !important;
  letter-spacing: 0.02em;
}


/* Mobile product cards: smaller SAVE badge, and the heart overlay hidden entirely. The single-product heart is untouched. */
@media (max-width: 767px) {
  ul.products li.product .onsale,
  .woocommerce ul.products li.product .onsale {
    top: 0.6em !important;
    left: 0.6em !important;
    font-size: 0.55rem;
    padding: 0.2em 0.5em;
    letter-spacing: 0.02em;
  }
  ul.products li.product .wishlist-btn:not(.wishlist-btn--labeled),
  ul.products li.product .wishlist-btn.is-active:not(.wishlist-btn--labeled) {
    display: none !important;
  }
}


/* Mobile product cards: tighter vertical gaps — price → button, below the
   button, and between grid rows. */
@media (max-width: 600px) {
  body ul.products li.product { padding-bottom: 0.5em; }
  body ul.products li.product .price { margin-bottom: 0.5em !important; }
  body ul.products li.product a.woocommerce-LoopProduct-link > .star-rating { margin-bottom: 0.5em !important; }
  body ul.products { row-gap: 0.5rem !important; }
}


/* ==========================================================================
   Wishlist quantity stepper — same look as the single-product page stepper
   (rounded-rectangle, --btn-height tall, 42px +/- cells, 3.2em value cell),
   used by both the wishlist drawer and the Wishlist page, desktop + mobile.
   ========================================================================== */
.wishlist-drawer__qty,
.blaq-wishlist-items__qty-stepper {
  height: var(--btn-height);
  border: 1px solid #E5CFC6;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-raised);
  width: fit-content;
  align-items: stretch;
}
.wishlist-drawer__qty .wishlist-drawer__qty-btn,
.blaq-wishlist-items__qty-stepper .blaq-wishlist-items__qty-btn {
  width: 42px;
  height: calc(var(--btn-height) - 2px);
}
.wishlist-drawer__qty .wishlist-drawer__qty-value,
.blaq-wishlist-items__qty-stepper .blaq-wishlist-items__qty-value {
  width: 3.2em;
  min-width: 0;
  height: calc(var(--btn-height) - 2px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  border-left: 1px solid #E5CFC6;
  border-right: 1px solid #E5CFC6;
}
/* Add to Cart / View Product are a compact 32px, vertically centred
   against the taller stepper. */
.wishlist-drawer__item-row .wishlist-drawer__add-to-cart,
.wishlist-drawer__item-row .wishlist-drawer__view,
.blaq-wishlist-items__actions .blaq-wishlist-items__add-to-cart,
.blaq-wishlist-items__actions .blaq-wishlist-items__view {
  height: 32px;
  min-height: 0;
  align-self: center;
}


/* Wishlist controls: stepper and Add to Cart share one compact 32px height. */
.wishlist-drawer__qty,
.blaq-wishlist-items__qty-stepper {
  height: 32px;
}
.wishlist-drawer__qty .wishlist-drawer__qty-btn,
.blaq-wishlist-items__qty-stepper .blaq-wishlist-items__qty-btn {
  width: 36px;
  height: 30px;
}
.wishlist-drawer__qty .wishlist-drawer__qty-value,
.blaq-wishlist-items__qty-stepper .blaq-wishlist-items__qty-value {
  width: 2.8em;
  height: 30px;
}


/* Cart drawer: quantity stepper matches the wishlist stepper (compact
   32px rounded rectangle), and the remove (X) icon is always visible. */
.cart-drawer__item-qty {
  height: 32px;
  border: 1px solid #E5CFC6;
  border-radius: 10px;
  background: var(--paper-raised);
}
.cart-drawer__item-qty .cart-drawer__qty-btn {
  width: 36px;
  height: 30px;
}
.cart-drawer__item-qty .cart-drawer__qty-value {
  width: 2.8em;
  min-width: 0;
  height: 30px;
  color: var(--charcoal);
  border-left: 1px solid #E5CFC6;
  border-right: 1px solid #E5CFC6;
}
.cart-drawer__item-remove {
  background: none !important;
  border: none !important;
  color: #222222 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em;
  align-self: flex-start;
  box-shadow: none;
}
.cart-drawer__item-remove svg { display: block; stroke: currentColor; }
@media (hover: hover) {
  .cart-drawer__item-remove:hover { background: none !important; color: var(--brand-red) !important; }
}


/* Cart drawer, small screens: price sits right next to the quantity
   stepper on the same line, and the remove (X) is pinned to the top-right
   corner of the item, level with the title. */
@media (max-width: 480px) {
  .cart-drawer__item {
    position: relative;
    grid-template-columns: 56px auto 1fr;
    gap: 0.3em 0.9em;
    align-items: center;
  }
  .cart-drawer__item-details { display: contents; }
  .cart-drawer__item-image { grid-column: 1; grid-row: 1 / span 3; align-self: flex-start; }
  .cart-drawer__item-title { grid-column: 2 / -1; grid-row: 1; padding-right: 1.8em; margin: 0; align-self: flex-start; }
  .cart-drawer__item-unit-price { grid-column: 2 / -1; grid-row: 2; margin: 0; align-self: flex-start; }
  .cart-drawer__item-qty { grid-column: 2; grid-row: 3; }
  .cart-drawer__item-total { grid-column: 3; grid-row: 3; padding-top: 0; align-self: center; justify-self: start; }
  .cart-drawer__item-remove { position: absolute; top: 0.9em; right: 0; }
}

.cart-drawer__item-remove { transition: color 0.15s ease, transform 0.15s ease; }
@media (hover: hover) {
  .cart-drawer__item-remove:hover { transform: scale(1.08); }
}


/* Delete (trash) buttons: cart drawer, wishlist drawer, wishlist page —
   one shared soft round button that turns red on hover. */
.cart-drawer__item-remove,
.wishlist-drawer__item-remove,
.blaq-wishlist-items__remove {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #f4f4f4 !important;
  border: none !important;
  color: #444 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: none;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .cart-drawer__item-remove:hover,
.wishlist-drawer__item-remove:hover,
.blaq-wishlist-items__remove:hover {
  background: #fdecef !important;
  color: var(--brand-red) !important;
  transform: none;
}
}
.cart-drawer__item-remove svg,
.wishlist-drawer__item-remove svg,
.blaq-wishlist-items__remove svg { display: block; }
.cart-drawer__item-title,
.wishlist-drawer__item-title { padding-right: 2.4em; }
@media (max-width: 480px) {
  .cart-drawer__item-remove,
  .wishlist-drawer__item-remove { top: 0.7em; right: 0; }
}


/* ==========================================================================
   Cart page — refined layout (desktop + mobile)
   Same stepper / trash-button / price language as the cart drawer and the
   wishlist, with a clean table-like row on desktop and a compact card row
   on phones.
   ========================================================================== */
.blaq-cart-items {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.blaq-cart-items__row {
  grid-template-columns: minmax(0, 1fr) 120px 140px 120px 40px;
  gap: 1.2em;
  padding: 1em 1.4em;
}
.blaq-cart-items__row--head { padding-top: 0.8em; padding-bottom: 0.8em; }
.blaq-cart-items__thumb { width: 64px; height: 64px; border-radius: 8px; }
.blaq-cart-items__product { gap: 1em; }
.blaq-cart-items__subtotal { font-size: 0.95rem; }
.blaq-cart-items__actions { justify-content: flex-end; }

/* Stepper — same compact rounded rectangle as the wishlist/cart drawer. */
.blaq-cart-items__qty-stepper {
  height: 32px;
  border-radius: 10px;
  align-items: stretch;
}
.blaq-cart-items__qty-stepper .blaq-cart-items__qty-btn { width: 36px; height: 30px; }
.blaq-cart-items__qty-stepper input.blaq-cart-items__qty-input {
  width: 2.8em;
  height: 30px;
  line-height: 30px;
}

/* Trash button — shared soft round style. */
.blaq-cart-items__remove {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #f4f4f4 !important;
  border: none !important;
  color: #444 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .blaq-cart-items__remove:hover { background: #fdecef !important; color: var(--brand-red) !important; }
}
.blaq-cart-items__remove svg { display: block; }

/* Totals card */
.blaq-cart-totals { border-radius: 12px; padding: 1.4em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); }
.blaq-cart-totals__coupon-row { align-items: stretch; }
.blaq-cart-totals__coupon-input { height: 40px; padding: 0 0.9em; box-sizing: border-box; }
.blaq-cart-totals__coupon-row .btn { height: 40px; padding: 0 1.2em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.blaq-cart-totals__checkout { border-radius: var(--radius); }

/* Tablet: keep the table, tighten the columns. */
@media (max-width: 900px) {
  .blaq-cart-items__row { grid-template-columns: minmax(0, 1fr) 100px 130px 100px 36px; gap: 0.9em; padding: 0.9em 1em; }
}

/* Phones: compact card rows —
   [thumb] name
           unit price
           [ - 1 + ]  line total                       [trash, top right] */
@media (max-width: 640px) {
  .blaq-cart-items__row {
    position: relative;
    grid-template-columns: 64px auto 1fr;
    gap: 0.35em 0.9em;
    align-items: center;
    padding: 1em 1em;
  }
  .blaq-cart-items__product { display: contents; }
  .blaq-cart-items__thumb { grid-column: 1; grid-row: 1 / span 3; align-self: flex-start; }
  .blaq-cart-items__name { grid-column: 2 / -1; grid-row: 1; padding-right: 2.6em; align-self: flex-start; }
  .blaq-cart-items__price { grid-column: 2 / -1; grid-row: 2; font-size: 0.82rem; font-weight: 600; color: #777; }
  .blaq-cart-items__price ins { color: var(--price-green); }
  .blaq-cart-items__qty { grid-column: 2; grid-row: 3; margin-top: 0.2em; }
  .blaq-cart-items__subtotal { grid-column: 3; grid-row: 3; justify-self: start; font-size: 0.95rem; margin-top: 0.2em; }
  .blaq-cart-items__actions { position: absolute; top: 0.8em; right: 1em; }
  .blaq-cart-totals { padding: 1.1em; }
  .cart-page__collaterals { margin-top: 1.2em; }
}


/* Cart page: unit price is black, light and smaller than the (green, bold)
   line total; the header cells all share one size. */
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__price {
  color: #222222;
  font-weight: 400;
  font-size: 0.82rem;
}
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__price ins,
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__price .amount {
  color: #222222;
  font-weight: 400;
}
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__price del,
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__price del .amount {
  color: #9D9D9D;
  font-weight: 400;
}
.blaq-cart-items__row--head .blaq-cart-items__price,
.blaq-cart-items__row--head .blaq-cart-items__qty,
.blaq-cart-items__row--head .blaq-cart-items__subtotal {
  font-size: 0.76rem;
  font-weight: 700;
  color: #7a7568;
}
.blaq-cart-items__row:not(.blaq-cart-items__row--head) .blaq-cart-items__subtotal { font-size: 0.95rem; font-weight: 700; }


/* ==========================================================================
   Rounded corners, one shape site-wide: buttons and option boxes use the
   same 10px radius as the quantity steppers and cards. (--radius itself is
   now 10px, so every .btn / .button that uses it follows.) Checkout parts
   that had their own hard-coded radius are lined up here.
   ========================================================================== */
.woocommerce-checkout #payment #place_order {
  border-radius: 10px;
  width: calc(100% - (var(--co-pad) * 2));
  margin-left: var(--co-pad);
  margin-right: var(--co-pad);
}
body.woocommerce-checkout #payment ul.payment_methods li > label { border-radius: 10px; }
.woocommerce-checkout #payment .payment_box,
body.woocommerce-checkout #payment .payment_box { border-radius: 10px; }
body.woocommerce-checkout #customer_details .blaq-delivery__note { border-radius: 10px; }
body.woocommerce-checkout #customer_details .blaq-delivery__option,
body.woocommerce-checkout #customer_details #ship-to-different-address { border-radius: 10px; }


/* ==========================================================================
   Touch responsiveness (v1.7.37)
   - touch-action: manipulation on everything tappable removes the double-tap
     zoom wait, so a single tap fires the click immediately. It does not
     affect scrolling or pinch-zoom, and changes no sizes or layout.
   - The marquee tickers are promoted to their own compositor layer so their
     endless animation never competes with taps on the main thread.
   ========================================================================== */
a, button, input, select, textarea, label, summary,
[role="button"], [role="tab"], [role="link"], [onclick],
.wishlist-btn, .add_to_cart_button, .single_add_to_cart_button,
.cart-drawer__qty-btn, .cart-drawer__item-remove,
.reel-card__media, .category-circles__item {
  touch-action: manipulation;
}
.header-topbar__marquee-track,
.marquee__track {
  will-change: transform;
}

/* ==========================================================================
   Chat bubble dead-zone fix (v1.7.38)
   The closed chat panel is only visibility:hidden, so it still takes up
   layout space and the fixed .chat-bubble wrapper stayed a tall invisible
   box over the bottom-right of the screen. On phones that box swallowed
   taps on anything in the right-hand product column (Add to cart, links,
   wishlist) while it scrolled past that area. The wrapper and the closed
   panel now ignore pointer events; only the real button and the open
   channel pills take taps.
   ========================================================================== */
.chat-bubble,
.chat-bubble__panel { pointer-events: none; }
.chat-bubble__trigger,
.chat-bubble.is-open .chat-bubble__panel,
.chat-bubble.is-open .chat-bubble__channel { pointer-events: auto; }

/* --- Smart search additions (inc/smart-search.php, assets/js/live-search.js) --- */
/* Results panel stays fully opaque while typing (no dimming / see-through);
   a thin shimmer line under the search bar shows that a search is running. */
.live-search__results { background: #fff; opacity: 1; }
.live-search.is-searching::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: blaq-search-line 0.9s ease-in-out infinite;
  pointer-events: none;
  z-index: 151;
}
@keyframes blaq-search-line {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .live-search.is-searching::after { animation: none; background-size: 100% 100%; opacity: 0.5; }
}
.live-search__heading {
  padding: 0.7em 0.8em 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #888);
}
.live-search__heading--row { display: flex; justify-content: space-between; align-items: center; }
.live-search__clear-recent {
  background: none !important;
  border: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brand-red);
  cursor: pointer;
}
.live-search__notice {
  padding: 0.6em 0.8em;
  font-size: var(--step--1);
  color: var(--muted, #888);
  border-bottom: 1px solid var(--line, #E5CFC6);
}
.live-search__notice strong { color: var(--charcoal, #222); }
.live-search__results mark {
  background: transparent;
  color: var(--brand-red);
  font-weight: 800;
}
.live-search__option.is-active { background: var(--paper); box-shadow: inset 3px 0 0 var(--brand-red); }
.live-search__cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 0.55em 0.7em;
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--charcoal, #222);
  font-size: var(--step--1);
  font-weight: 600;
}
@media (hover: hover) { .live-search__cat:hover { background: var(--paper); } }
.live-search__cat-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #888);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.1em 0.6em;
}
.live-search__badge {
  display: inline-block;
  margin-top: 0.15em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-red-deep);
  background: var(--btn-blush);
  border-radius: 4px;
  padding: 0.1em 0.5em;
}
.live-search__sku { display: block; margin-top: 0.1em; }
.live-search__chips { display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0.3em 0.8em 0.8em; }
.live-search__chip,
.search-suggestions__chip {
  display: inline-block;
  padding: 0.35em 0.9em;
  border: 1px solid var(--line, #E5CFC6);
  border-radius: 999px;
  background: #fff;
  color: var(--charcoal, #222);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
@media (hover: hover) {
  .live-search__chip:hover,
  .search-suggestions__chip:hover { background: var(--paper); border-color: var(--brand-red); }
}
.live-search__all {
  display: block;
  margin-top: 0.3em;
  padding: 0.75em 0.8em;
  border-top: 1px solid var(--line, #E5CFC6);
  text-align: center;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--brand-red) !important;
  text-decoration: none !important;
}
.search-correction { margin: 0 0 1.2em; font-size: var(--step-0); }
.search-correction a { color: var(--brand-red); font-weight: 600; }
.search-suggestions { margin-top: 2em; }
.search-suggestions p { font-weight: 700; margin-bottom: 0.6em; }
.search-suggestions__chips { display: flex; flex-wrap: wrap; gap: 0.6em; }

/* Recent-search chips and "Clear" are <button>s, so the site-wide button
   rule (light text on a dark fill, red on hover) was making their text
   invisible. Pin readable colours here. */
button.live-search__chip,
button.live-search__chip:focus {
  display: inline-block;
  background: #fff;
  color: var(--charcoal, #222) !important;
  border: 1px solid var(--line, #E5CFC6);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  height: auto;
}
button.live-search__chip.is-active { background: var(--paper); border-color: var(--brand-red); }
button.live-search__clear-recent,
button.live-search__clear-recent:focus {
  display: inline;
  background: none;
  color: var(--brand-red) !important;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
@media (hover: hover) {
  button.live-search__chip:hover {
    background: var(--paper);
    border-color: var(--brand-red);
    color: var(--charcoal, #222) !important;
  }
  button.live-search__clear-recent:hover {
    background: none;
    border: 0;
    color: var(--brand-red-deep) !important;
    text-decoration: underline;
  }
}

/* Smaller SKU line in the search dropdown */
.live-search__item .live-search__sku {
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Keep the dropdown's width steady as results change (no jump when the
   scrollbar appears), and don't scroll the page behind it. */
.live-search__results { scrollbar-gutter: stable; overscroll-behavior: contain; }

/* ---- Single product: trust / safety strip ----------------------------
   .entry-summary is a flex container with explicit row orders (see the
   block near "div.entry-summary > form.cart"), so this needs its own
   order: 7 — after the meta row (order 5 desktop / 6 mobile), so it
   lands below SKU and Category. Every label stays on ONE line. */
.woocommerce div.product .entry-summary > .trust-badges { order: 7 !important; flex: 1 0 100% !important; }
.trust-badges {
  list-style: none;
  margin: 4px 0 1.4rem;
  padding: 16px 8px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 10px;
  border: 0;
  color: var(--ink);
}
.trust-badges__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  margin: 0;
}
.trust-badges__icon {
  flex: none;
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 10px;
  border-radius: 50%;
  background: var(--btn-blush, #FFF3EF);
  color: var(--ink);
}
.trust-badges__label { font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
/* Mobile: still ONE row of four; labels wrap to two lines under each icon */
@media (max-width: 640px) {
  .trust-badges { grid-template-columns: repeat(4, 1fr); justify-content: stretch; gap: 4px; padding: 14px 2px; }
  .trust-badges__item { gap: 6px; }
  .trust-badges__icon { width: 20px; height: 20px; padding: 8px; }
  .trust-badges__label { font-size: 11px; line-height: 1.25; white-space: normal; }
}

/* ---- Review form: star rating picker ----------------------------------
   Replaces WooCommerce's icon-font stars with a softer, rounded star
   (CSS mask, so it takes the colour below) and makes them a bit smaller. */
.woocommerce #review_form p.stars { margin: 6px 0 0; }
.woocommerce #review_form p.stars span { display: inline-flex; gap: 5px; }
.woocommerce #review_form p.stars a {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  font-size: 0;
  text-indent: 0;
  overflow: hidden;
  color: var(--brand-red);
}
.woocommerce #review_form p.stars a::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  background: currentColor;
  font-family: inherit;
  text-indent: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='none' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='none' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* filled states (same logic WooCommerce uses for its glyph swap) */
.woocommerce #review_form p.stars:hover a::before,
.woocommerce #review_form p.stars.selected a.active::before,
.woocommerce #review_form p.stars.selected a:not(.active)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='%23000' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='%23000' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.woocommerce #review_form p.stars a:hover ~ a::before,
.woocommerce #review_form p.stars.selected a.active ~ a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='none' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.4l2.5 5.3 5.8.8-4.2 4.1 1 5.8L12 16.600 6.900 19.400l1-5.800-4.200-4.100 5.800-.8z' fill='none' stroke='%23000' stroke-width='1.800' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---- My Account → Reviews tab ---------------------------------------- */
.blaq-rv-tabs {
  display: flex; gap: 6px; margin: 0 0 1.4em; padding: 5px;
  background: var(--btn-blush, #FFF3EF); border-radius: 999px; width: fit-content; max-width: 100%;
}
.blaq-rv-tab {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  font-size: var(--step--1); color: var(--ink); background: transparent;
  padding: .65em 1.3em; border-radius: 999px; display: inline-flex; align-items: center; gap: .6em;
  transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.blaq-rv-tab:hover { background: rgba(0,0,0,.05); }
.blaq-rv-tab.is-active { background: var(--brand-black, #222); color: #fff; }
.blaq-rv-tab:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.blaq-rv-tab__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 22px;
  text-align: center; background: var(--brand-red); color: #fff;
}
.blaq-rv-tab.is-active .blaq-rv-tab__count { background: #fff; color: var(--brand-black, #222); }
.blaq-rv-panel[hidden] { display: none; }

.blaq-myreviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.blaq-myreviews__item {
  display: flex; align-items: center; gap: 18px; margin: 0;
  padding: 16px; background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: 12px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.blaq-myreviews__item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); border-color: var(--line-dark, #ddd); }
.blaq-myreviews__thumb { flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--paper); }
.blaq-myreviews__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blaq-myreviews__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.blaq-myreviews__name { font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.35; }
.blaq-myreviews__name:hover { color: var(--brand-red); }
.blaq-myreviews__stars { color: var(--brand-red); letter-spacing: 2px; font-size: 15px; line-height: 1; }
.blaq-myreviews__text { margin: 2px 0 0; font-size: var(--step--1); color: var(--ink); opacity: .85; }
.blaq-myreviews__meta { color: #7a7568; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blaq-myreviews__badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--btn-blush, #FFF3EF); color: var(--brand-red);
}
.blaq-myreviews__btn { flex: none; white-space: nowrap; }
.blaq-myreviews__empty {
  text-align: center; padding: 3em 1.5em; border: 1px dashed var(--line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: .7em; color: #7a7568;
}
.blaq-myreviews__empty svg { color: var(--line); }
.blaq-myreviews__empty p { margin: 0; max-width: 34ch; }
@media (max-width: 560px) {
  .blaq-rv-tabs { width: 100%; }
  .blaq-rv-tab { flex: 1; justify-content: center; padding: .65em .6em; }
  .blaq-myreviews__item { flex-wrap: wrap; gap: 14px; }
  .blaq-myreviews__thumb { width: 68px; height: 68px; }
  .blaq-myreviews__body { flex: 1 1 calc(100% - 90px); }
  .blaq-myreviews__btn { width: 100%; text-align: center; }
}

/* Reviews sub-tabs: force readable black text (theme's global button
   styles were washing out the inactive tab). */
.blaq-rv-tabs .blaq-rv-tab,
.blaq-rv-tabs .blaq-rv-tab:hover,
.blaq-rv-tabs .blaq-rv-tab:focus { color: #222 !important; background: transparent !important; opacity: 1 !important; }
.blaq-rv-tabs .blaq-rv-tab:hover { background: rgba(0,0,0,.06) !important; }
.blaq-rv-tabs .blaq-rv-tab.is-active,
.blaq-rv-tabs .blaq-rv-tab.is-active:hover { color: #fff !important; background: #222 !important; }
.blaq-rv-tabs .blaq-rv-tab .blaq-rv-tab__count { background: #DD183B !important; color: #fff !important; }
.blaq-rv-tabs .blaq-rv-tab.is-active .blaq-rv-tab__count { background: #fff !important; color: #222 !important; }
.blaq-myreviews__empty p,
.blaq-myreviews__meta { color: #222; }

/* Reviews page — Night mode: white text, light active pill */
html[data-theme="dark"] .blaq-rv-tabs { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab,
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab:focus { color: #fff !important; }
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab.is-active,
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab.is-active:hover { background: #fff !important; color: #222 !important; }
html[data-theme="dark"] .blaq-rv-tabs .blaq-rv-tab.is-active .blaq-rv-tab__count { background: #DD183B !important; color: #fff !important; }
html[data-theme="dark"] .blaq-myreviews__item { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .blaq-myreviews__name,
html[data-theme="dark"] .blaq-myreviews__text,
html[data-theme="dark"] .blaq-myreviews__meta,
html[data-theme="dark"] .blaq-myreviews__empty p { color: #fff !important; opacity: 1; }
html[data-theme="dark"] .blaq-myreviews__name:hover { color: #ff6b83 !important; }
html[data-theme="dark"] .blaq-myreviews__stars { color: #ff6b83; }
html[data-theme="dark"] .blaq-myreviews__empty { border-color: rgba(255,255,255,.25); }
html[data-theme="dark"] .blaq-myreviews__empty svg { color: rgba(255,255,255,.5); }
html[data-theme="dark"] .blaq-myreviews__badge { background: rgba(255,255,255,.12); color: #fff; }

/* ---- My Account notices (e.g. "Confirm your email address ...") --------
   WooCommerce's default blue info box with a floated button → brand card:
   paper ground, brand-red accent bar, text on one flowing line, and the
   action button in brand black. Success = sage accent, error = deep red. */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 0 0 1.4em;
  padding: 16px 18px 16px 20px;
  list-style: none;
  background: var(--btn-blush, #FFF3EF);
  color: #222;
  border: 1px solid var(--line, #E5CFC6);
  border-left: 4px solid var(--brand-red, #DD183B);
  border-top-color: var(--line, #E5CFC6);
  border-radius: 10px;
  font-size: var(--step--1, 14px);
  line-height: 1.5;
  width: auto;
}
.woocommerce-account .woocommerce-message { border-left-color: var(--sage, #3FA36B); }
.woocommerce-account .woocommerce-error { border-left-color: var(--brand-red-deep, #B01430); }
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before { display: none !important; }
.woocommerce-account .woocommerce-info > *,
.woocommerce-account .woocommerce-message > * { margin: 0; }
/* Notice text takes the remaining width; button sits to its right (or
   drops below on narrow screens) instead of floating inside the text. */
.woocommerce-account .woocommerce-info .woocommerce-Message,
.woocommerce-account .woocommerce-info p { flex: 1 1 240px; }
.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button,
.woocommerce-account .woocommerce-error .button,
.woocommerce-account .woocommerce-info a.woocommerce-Button {
  float: none !important;
  order: 2;
  flex: none;
  margin: 0 !important;
  background: #222 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: .7em 1.3em !important;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
.woocommerce-account .woocommerce-info .button:hover,
.woocommerce-account .woocommerce-message .button:hover,
.woocommerce-account .woocommerce-info a.woocommerce-Button:hover { background: var(--brand-red, #DD183B) !important; }
.woocommerce-account .woocommerce-info a:not(.button),
.woocommerce-account .woocommerce-message a:not(.button) { color: var(--brand-red, #DD183B); }
@media (max-width: 560px) {
  .woocommerce-account .woocommerce-info .button,
  .woocommerce-account .woocommerce-message .button,
  .woocommerce-account .woocommerce-info a.woocommerce-Button { width: 100%; text-align: center; }
}
/* Night mode */
html[data-theme="dark"] .woocommerce-account .woocommerce-info,
html[data-theme="dark"] .woocommerce-account .woocommerce-message,
html[data-theme="dark"] .woocommerce-account .woocommerce-error {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.14);
  border-left-color: #ff4d6a;
}
html[data-theme="dark"] .woocommerce-account .woocommerce-message { border-left-color: #5CC58A; }
html[data-theme="dark"] .woocommerce-account .woocommerce-info .button,
html[data-theme="dark"] .woocommerce-account .woocommerce-message .button,
html[data-theme="dark"] .woocommerce-account .woocommerce-info a.woocommerce-Button { background: #fff !important; color: #222 !important; }
html[data-theme="dark"] .woocommerce-account .woocommerce-info .button:hover,
html[data-theme="dark"] .woocommerce-account .woocommerce-info a.woocommerce-Button:hover { background: #DD183B !important; color: #fff !important; }
html[data-theme="dark"] .woocommerce-account .woocommerce-info a:not(.button),
html[data-theme="dark"] .woocommerce-account .woocommerce-message a:not(.button) { color: #ff8fa1; }

/* Night mode: the page is dark, so the toast flips to a light card with
   dark text — a black toast would vanish into the background. */
html[data-theme="dark"] .blaq-toast { background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .blaq-toast__message { color: #222; }
html[data-theme="dark"] .blaq-toast__close { color: #777 !important; }
html[data-theme="dark"] .blaq-toast__close:hover { color: #222 !important; }
html[data-theme="dark"] .blaq-toast__progress { background: #e8e8e8; }
.blaq-notice-moved { display: none !important; }

/* Night mode: password eye toggles + password-change labels in white */
html[data-theme="dark"] .woocommerce-account .show-password-input,
html[data-theme="dark"] .woocommerce .password-input .show-password-input {
  filter: invert(1) brightness(2);
  opacity: 1;
  color: #fff;
}
html[data-theme="dark"] .woocommerce-account .show-password-input::after { filter: invert(1) brightness(2); opacity: 1; }
html[data-theme="dark"] .woocommerce-account form.edit-account fieldset label,
html[data-theme="dark"] .woocommerce-account form.edit-account fieldset legend,
html[data-theme="dark"] .woocommerce-account fieldset label { color: #fff !important; }

/* ---- Photo reviews --------------------------------------------------- */
.comment-form-photos { margin: 0 0 1.2em; }
.blaq-photo-label { display: block; margin-bottom: 8px; }
.blaq-photo-label small { opacity: .7; }
.blaq-photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.blaq-photo-drop {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 18px; border: 1px dashed var(--line-dark, #bbb); border-radius: 10px;
  background: var(--btn-blush, #FFF3EF); color: #222; font-weight: 600; font-size: var(--step--1, 14px);
  transition: border-color .2s ease, background .2s ease;
}
.blaq-photo-drop:hover, .blaq-photo-input:focus-visible + .blaq-photo-drop { border-color: var(--brand-red); }
.blaq-photo-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.blaq-photo-preview { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.blaq-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blaq-photo-preview button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0 !important; border: 0;
  border-radius: 50%; background: rgba(0,0,0,.75) !important; color: #fff !important; font-size: 14px; line-height: 20px; cursor: pointer;
}
.blaq-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.blaq-review-photo { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.blaq-review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.blaq-review-photo:hover img { transform: scale(1.06); }
.blaq-lightbox {
  position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.blaq-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.blaq-lightbox__close {
  position: absolute; top: 14px; right: 18px; background: none !important; border: 0; color: #fff !important;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 0 !important;
}
html[data-theme="dark"] .blaq-photo-drop { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }
html[data-theme="dark"] .blaq-photo-preview,
html[data-theme="dark"] .blaq-review-photo { border-color: rgba(255,255,255,.2); }
