/* ============================================================================
   Lash Market — brand design system (hand-authored; no bundler by design).
   Dark editorial aesthetic built around the registered logo:
   charcoal ground, cream type, vermilion (#ee3a29) accent, halftone sphere.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --ink:        var(--wp--preset--color--ink, #1a1917);
  --surface:    var(--wp--preset--color--surface-dark, #2b2a28);
  --red:        var(--wp--preset--color--brand-red, #ee3a29);
  --red-deep:   var(--wp--preset--color--brand-red-deep, #cf2f20);
  --cream:      var(--wp--preset--color--cream, #f7f2ea);
  --white:      #ffffff;
  --muted:      var(--wp--preset--color--muted, #8a8580);
  --line:       var(--wp--preset--color--line, #ece7de);

  --font-display: var(--wp--preset--font-family--display, 'Playfair Display', Georgia, serif);
  --font-body:    var(--wp--preset--font-family--body, 'Manrope', system-ui, sans-serif);

  --maxw: 1180px;
  --wide: 1400px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(26,25,23,.35);
  --shadow-lg: 0 40px 90px -40px rgba(26,25,23,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
p  { margin: 0 0 1rem; }
ul { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--wide { max-width: var(--wide); }
.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.text-serif { font-family: var(--font-display); }

/* ---- Accessibility ------------------------------------------------------ */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ------------------------------------------------------------ */
.btn, .button, .single_add_to_cart_button, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .95rem 1.75rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.btn--primary, .button, .single_add_to_cart_button, .wc-block-components-button {
  background: var(--red); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(238,58,41,.6); }
.btn--primary:hover, .button:hover, .single_add_to_cart_button:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(247,242,234,.4); }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream) !important; }
.btn--dark:hover { background: #000; color: var(--cream); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1rem; }

/* ---- Announcement bar --------------------------------------------------- */
.topbar { background: var(--ink); color: var(--cream); font-size: .8rem; letter-spacing: .04em; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 40px; text-align: center; }
.topbar__inner strong { color: var(--red); font-weight: 700; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; opacity: .92; }
@media (max-width: 720px) { .topbar__item:not(:first-child) { display: none; } }

/* ---- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--cream);
  transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); background: rgba(26,25,23,.92); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; }
.site-branding img, .custom-logo { height: 60px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .site-branding img, .site-header.is-scrolled .custom-logo { height: 44px; }
@media (max-width: 600px) { .site-branding img, .custom-logo { height: 48px; } }
.site-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--cream); letter-spacing: .01em; }
.site-title span { color: var(--red); }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; color: var(--cream); font-weight: 600; font-size: .95rem; padding: .4rem 0; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right .3s var(--ease); }
.site-nav__list a:hover { color: var(--cream); }
.site-nav__list a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--cream); background: transparent; border: 0; cursor: pointer; position: relative; transition: background .2s var(--ease); }
.icon-btn:hover { background: rgba(247,242,234,.1); color: var(--cream); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); }
.site-nav__toggle { display: none; }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--ink);
    transform: translateX(100%); transition: transform .35s var(--ease); padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem; z-index: 120; box-shadow: var(--shadow-lg); margin: 0; }
  .site-header.is-nav-open .site-nav { transform: translateX(0); }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .site-nav__list a { font-size: 1.15rem; }
  .site-nav__toggle { display: inline-flex; }
  /* Off-canvas nav is position:fixed on mobile, so the desktop auto-margin
     that pushed content right is gone. Push the whole actions group right so
     the logo stays left and search/account/cart/menu sit on the right edge. */
  .header-actions { margin-inline-start: auto; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 110; }
  .site-header.is-nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 130% at 85% 0%, #34322f 0%, var(--ink) 55%); color: var(--cream); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; min-height: clamp(520px, 72vh, 760px); padding-block: clamp(3rem, 6vw, 5rem); }
.hero__title { color: var(--cream); margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--red); }
.hero__lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(247,242,234,.82); max-width: 46ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero__stat b { font-family: var(--font-display); font-size: 2rem; display: block; line-height: 1; }
.hero__stat span { font-size: .82rem; color: rgba(247,242,234,.6); letter-spacing: .04em; }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__sphere { width: min(74%, 420px); filter: drop-shadow(0 30px 60px rgba(238,58,41,.32)); animation: float 7s var(--ease) infinite; }
.hero__sphere img, .band__sphere img { width: 100%; height: auto; display: block; }
.hero__glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(238,58,41,.35), transparent 65%); filter: blur(40px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(247,242,234,.05) 1px, transparent 1px); background-size: 4px 4px; opacity: .5; pointer-events: none; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(2deg); } }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; min-height: auto; gap: 1rem; }
  .hero__lede { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__art { order: -1; }
  .hero__sphere { width: 210px; margin-top: 1rem; }
}

/* ---- Section heading ---------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: .5rem 0 0; max-width: 48ch; }
.section-link { font-weight: 700; color: var(--red-deep); display: inline-flex; align-items: center; gap: .4rem; }
.section-link:hover { gap: .7rem; color: var(--red); }

/* ---- Category grid ------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); overflow: hidden; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(238,58,41,.1); color: var(--red-deep); transition: background .35s var(--ease), color .35s var(--ease); }
.cat-card__icon svg { width: 30px; height: 30px; }
.cat-card:hover .cat-card__icon { background: var(--red); color: #fff; }
.cat-card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0; }
.cat-card__count { font-size: .82rem; color: var(--muted); }
.cat-card__arrow { position: absolute; top: 1.5rem; right: 1.5rem; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); color: var(--red); }
.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } .cat-card { padding: 1.25rem; } }

/* ---- Product grid / cards ---------------------------------------------- */
/* Uniform card: fixed-ratio media, 2-line-clamped title (reserves equal
   height so 1- and 2-line names align), price pinned to the body bottom,
   and the add-to-cart foot pinned to the card bottom — every card the same
   height with buttons on one baseline across the row. */
ul.products, .product-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); padding: 0; margin: 0; }
li.product, .product-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
li.product:hover, .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__link, li.product > a { color: inherit; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f4efe8; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
li.product:hover .product-media img, .product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
/* High specificity + !important on display: WooCommerce sets this element to
   `display: flow-root` at `.woocommerce ul.products li.product .woocommerce-
   loop-product__title` (higher specificity than a bare class), which silently
   overrode `-webkit-box` and broke the clamp (title rendered full, 3rd line
   bled through). Match/beat that selector so -webkit-box actually applies. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.product-grid li.product .woocommerce-loop-product__title,
.product-card__title {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 0;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price, .product-card__price { color: var(--red-deep) !important; font-weight: 800; font-size: 1.12rem; font-family: var(--font-body); margin-top: auto; }
.price del { color: var(--muted); font-weight: 500; font-size: .9em; margin-right: .4rem; }
.product-foot { padding: 0 1.15rem 1.15rem; }
.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--ink); color: var(--cream); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 8px; }
.product-badge--sale { background: var(--red); color: #fff; }
@media (max-width: 900px) { ul.products, .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { ul.products, .product-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } }

/* ---- Editorial / brand band -------------------------------------------- */
.band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.band__quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.25; }
.band__quote em { color: var(--red); font-style: italic; }
.band__sphere { width: 70%; margin-inline: auto; color: var(--red); opacity: .9; }
.band .eyebrow { color: var(--red); }
@media (max-width: 760px) { .band__inner { grid-template-columns: 1fr; } .band__art { display: none; } }

/* ---- Feature strip (USPs) ----------------------------------------------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-block: 1px solid var(--line); padding-block: 2rem; }
.usp__item { display: flex; gap: .9rem; align-items: flex-start; }
.usp__item svg { width: 26px; height: 26px; color: var(--red); flex: none; margin-top: 2px; }
.usp__item b { display: block; font-family: var(--font-body); font-weight: 700; font-size: .95rem; color: var(--ink); }
.usp__item span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (max-width: 460px) { .usp { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(247,242,234,.75); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin: 0 0 1.25rem; }
.site-footer a { color: rgba(247,242,234,.75); }
.site-footer a:hover { color: var(--red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.footer-brand img { height: 96px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; max-width: 30ch; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(247,242,234,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: rgba(247,242,234,.55); }
.pay-badges { display: flex; gap: .5rem; align-items: center; }
.pay-badges span { background: rgba(247,242,234,.08); border-radius: 6px; padding: .3rem .55rem; font-size: .72rem; letter-spacing: .05em; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---- WooCommerce shell -------------------------------------------------- */
.shop { padding-block: clamp(2rem, 4vw, 3.5rem); }
.shop__hero { background: var(--ink); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem); }
.shop__hero h1 { color: var(--cream); margin: 0; }
.shop__hero .woocommerce-breadcrumb { color: rgba(247,242,234,.6); font-size: .85rem; margin-bottom: .75rem; }
.shop__hero .woocommerce-breadcrumb a { color: rgba(247,242,234,.75); }
.woocommerce-result-count { color: var(--muted); font-size: .9rem; }
.woocommerce-ordering select { font-family: var(--font-body); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.woocommerce-products-header__title { font-family: var(--font-display); }

/* Single product */
.product-single { padding-block: clamp(2rem, 4vw, 3.5rem); }
.single-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.single-product .woocommerce-product-gallery { border-radius: var(--radius); overflow: hidden; }
.single-product .product_title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); }
.single-product .price { color: var(--red-deep); font-weight: 800; font-size: 1.6rem; font-family: var(--font-body); }
.single-product .woocommerce-product-details__short-description { color: #4a4640; }
.single-product form.cart { display: flex; gap: .75rem; align-items: center; margin-block: 1.5rem; flex-wrap: wrap; }
.single-product .quantity input { width: 72px; padding: .8rem; border: 1px solid var(--line); border-radius: 999px; text-align: center; font-family: var(--font-body); }
.single-product .product_meta { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
@media (max-width: 780px) { .single-product div.product { grid-template-columns: 1fr; } }

/* Cart/checkout (fallback templates render inside index.php's .site-main;
   scope inline padding + a clip backstop to the WC block wrappers only,
   never the shared .site-main — `clip` avoids establishing a scroll
   container, so it cannot break future position: sticky descendants). */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content { padding-inline: clamp(1rem, 4vw, 2rem); overflow-x: clip; }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content { max-width: var(--maxw); margin-inline: auto; padding-block: 2.5rem; }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius-sm); border-left: 4px solid var(--red); background: var(--white); box-shadow: var(--shadow); padding: 1rem 1.25rem; list-style: none; }

/* ---- WooCommerce specificity overrides (beat default WC/Blocks styles) --- */
/* Catalog grid: WooCommerce ships a float-based layout with per-item inline
   widths (`li.product { width: 22%; float: left }`) whose selector specificity
   (.woocommerce ul.products li.product) beats a bare `ul.products` rule — that
   is what collapsed the Shop into thin vertical strips. Re-assert the grid at
   matching specificity and neutralise the floats/widths. */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: clamp(1rem, 2vw, 1.75rem) !important;
  margin: 0 !important; padding: 0 !important; list-style: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product .product-media img { margin: 0 !important; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { margin: 0 !important; width: 100%; }
@media (max-width: 900px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 420px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr !important; gap: .75rem !important; } }

/* Pagination — branded pills. Covers WooCommerce (nav.woocommerce-pagination)
   AND WordPress core (nav.pagination, used by the search/blog loop). */
.woocommerce nav.woocommerce-pagination, nav.pagination { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; flex-wrap: wrap; gap: .4rem; border: 0 !important; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; margin: 0 !important; overflow: visible; }
nav.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers,
nav.pagination .page-numbers {
  min-width: 46px; height: 46px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line) !important; border-radius: 12px; background: var(--white); color: var(--ink) !important;
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
nav.pagination a.page-numbers:hover { border-color: var(--red) !important; color: var(--red) !important; background: var(--white); }
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current,
nav.pagination .page-numbers.current {
  background: var(--ink); color: var(--cream) !important; border-color: var(--ink) !important; }
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots,
nav.pagination .page-numbers.dots { border-color: transparent !important; background: transparent; min-width: auto; }
.woocommerce nav.woocommerce-pagination ul li a.next, .woocommerce nav.woocommerce-pagination ul li a.prev,
nav.pagination .page-numbers.next, nav.pagination .page-numbers.prev { color: var(--red) !important; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .single_add_to_cart_button,
.woocommerce a.added_to_cart, .wc-block-components-button, .wp-block-button__link {
  background: var(--red) !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; font-family: var(--font-body) !important; font-weight: 700 !important;
  padding: .9rem 1.6rem !important; box-shadow: 0 10px 24px -10px rgba(238,58,41,.55); transition: background .25s var(--ease), transform .25s var(--ease); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover, .wc-block-components-button:hover {
  background: var(--red-deep) !important; transform: translateY(-2px); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--red) !important; }

/* Prices — brand red everywhere (override WC defaults). */
.woocommerce div.product p.price, .woocommerce div.product span.price,
.woocommerce ul.products li.product .price, .price ins { color: var(--red-deep) !important; font-weight: 800; }
.woocommerce div.product p.price { font-size: 1.6rem; }

/* Single-product gallery fills its column. */
.woocommerce div.product .woocommerce-product-gallery { width: 100% !important; margin-bottom: 0; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { border-radius: var(--radius); overflow: hidden; background: #fff; }
.woocommerce div.product .woocommerce-product-gallery img { width: 100%; }

/* Product tabs. */
.woocommerce-tabs ul.tabs { border: 0 !important; padding: 0 !important; display: flex; gap: .5rem; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li { background: transparent !important; border: 1px solid var(--line) !important; border-radius: 999px !important; margin: 0 !important; }
.woocommerce-tabs ul.tabs li.active { background: var(--ink) !important; border-color: var(--ink) !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--cream) !important; }
.woocommerce-tabs ul.tabs li a { color: var(--ink); font-weight: 700; }
.woocommerce-tabs ul.tabs::before { display: none !important; }

/* Related/upsell products headings. */
.related > h2, .upsells > h2, .cross-sells > h2 { font-family: var(--font-display); }

/* Classic cart & checkout (shortcode pages — fully Ukrainian, better for the
   custom Nova Poshta / Monobank roadmap than the block versions). */
.woocommerce .cart-collaterals h2, .woocommerce-checkout h3, .woocommerce-checkout #order_review_heading,
.woocommerce-cart .cart_totals h2, .woocommerce-column__title { font-family: var(--font-display) !important; }
.woocommerce table.shop_table { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; border-collapse: separate !important; border-spacing: 0; background: var(--white); overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.woocommerce table.cart img { border-radius: 8px; }
.woocommerce a.remove { color: var(--red) !important; font-weight: 700; }
.woocommerce a.remove:hover { background: var(--red) !important; color: #fff !important; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce-checkout select, .woocommerce .select2-container .select2-selection--single {
  border: 1px solid var(--line) !important; border-radius: 12px !important; padding: .8rem 1rem !important; min-height: 48px;
  font-family: var(--font-body) !important; background: var(--white) !important; color: var(--ink) !important; box-shadow: none !important; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px; padding: 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--red) !important; outline: none; }
.woocommerce-checkout #order_review, .woocommerce-checkout .woocommerce-checkout-payment {
  background: var(--white) !important; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.woocommerce-checkout #payment { background: transparent !important; }
.woocommerce .cart_totals table, .woocommerce-checkout #order_review table { border: 0 !important; }
/* Kill the stray top border on WC notices (keep only the brand left accent). */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { border-top: 0 !important; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--red) !important; }

/* ---- Content pages: header + prose ------------------------------------- */
.page-header { background: radial-gradient(120% 140% at 85% 0%, #34322f 0%, var(--ink) 60%); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(247,242,234,.05) 1px, transparent 1px); background-size: 4px 4px; opacity: .5; }
.page-header .container { position: relative; z-index: 1; }
.crumbs { font-size: .85rem; color: rgba(247,242,234,.6); margin-bottom: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: rgba(247,242,234,.8); }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: rgba(247,242,234,.45); }
.page-header__title { color: var(--cream); margin: 0; }
.page-header__lede { color: rgba(247,242,234,.8); max-width: 60ch; margin: 1rem 0 0; font-size: 1.1rem; }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 2.5rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.25rem; margin-top: 1.75rem; }
.prose p, .prose li { color: #3f3b36; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.prose ol { list-style: decimal; }
.prose a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 1.25rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }

/* ---- About page --------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-intro__art { position: relative; display: grid; place-items: center; }
.about-intro__art img { width: min(80%, 360px); }
.about-intro__glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(238,58,41,.18), transparent 65%); filter: blur(30px); }
@media (max-width: 780px) { .about-intro { grid-template-columns: 1fr; } .about-intro__art { display: none; } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.value-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(238,58,41,.1); color: var(--red-deep); margin-bottom: 1rem; }
.value-card__icon svg { width: 28px; height: 28px; }
.value-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .5rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 780px) { .values { grid-template-columns: 1fr; } }

/* ---- Contacts page ------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.contact-card__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(238,58,41,.1); color: var(--red-deep); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-card span, .contact-card a { font-size: 1.05rem; color: var(--ink); }
.contact-card a:hover { color: var(--red); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-form h2 { font-family: var(--font-display); margin: 0 0 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-field label { font-weight: 600; font-size: .9rem; }
.form-field input, .form-field textarea { border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--ink); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row2 { grid-template-columns: 1fr; } }

/* ---- 404 ---------------------------------------------------------------- */
.error404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.error404__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--red); margin: 0; }
.error404 img { width: 120px; margin: 0 auto 1.5rem; }
.error404 p { color: var(--muted); max-width: 44ch; margin: .5rem auto 2rem; }

/* ---- Category tiles + category intro ------------------------------------ */
.cat-tiles { margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-tiles__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); margin: 0 0 1.25rem; }
.cat-card .product-media { aspect-ratio: 1 / 1; }
.cat-card__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); background: #f4efe8; }
.shop__intro { max-width: 72ch; color: #6f665c; font-size: 1.05rem; line-height: 1.65; margin: -0.25rem 0 1.9rem; }
.shop__intro p { margin: 0 0 .6rem; }

/* ---- Single product: tabs/reviews/related/upsells go full-width ---------- */
/* `.single-product div.product` is a 2-col grid (gallery + summary). Its later
   children (reviews, related, upsells) must span both columns, otherwise they
   are squeezed into half-width — which broke the related grid and its buttons. */
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .up-sells,
.single-product div.product > .upsells { grid-column: 1 / -1; }
.single-product div.product > .related,
.single-product div.product > .up-sells,
.single-product div.product > .upsells { margin-top: clamp(2rem, 4vw, 3.25rem); }

/* ---- Review (comment) form — brand styling ------------------------------ */
#respond .comment-form { max-width: 680px; }
#respond .comment-form p { margin: 0 0 1.1rem; }
#respond .comment-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
#respond .comment-form input[type="text"],
#respond .comment-form input[type="email"],
#respond .comment-form input[type="url"],
#respond .comment-form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .2s var(--ease); }
#respond .comment-form input[type="text"]:focus,
#respond .comment-form input[type="email"]:focus,
#respond .comment-form input[type="url"]:focus,
#respond .comment-form textarea:focus { border-color: var(--red); outline: none; }
#respond .comment-form textarea { min-height: 132px; resize: vertical; }
#respond p.comment-form-author, #respond p.comment-form-email { display: inline-block; width: calc(50% - .6rem); vertical-align: top; }
#respond p.comment-form-author { margin-right: 1rem; }
#respond .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: #6f665c; }
#respond .comment-form-cookies-consent input { width: auto; margin-top: .2rem; }
#respond .comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; }
@media (max-width: 480px) {
  #respond p.comment-form-author, #respond p.comment-form-email { display: block; width: 100%; margin-right: 0; }
}

/* ---- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
