/* ==========================================================================
   WooCommerce — house-skinned shop chrome.
   Re-skin only what's needed; let WC do the heavy lifting underneath.
   ========================================================================== */

/* Wrapper rhythm */
.lbv-wc { background: var(--ivory); }

/* Breadcrumb */
.lbv-breadcrumb {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.lbv-breadcrumb a { color: var(--ink-soft); }
.lbv-breadcrumb a:hover { color: var(--gold-warm); }

/* Archive hero uses centered stack; match breadcrumb to the same axis. */
.lbv-wc:has(.woocommerce-products-header) .lbv-breadcrumb {
  text-align: center;
}

/* Sale / Edition Pricing pill */
.lbv-pill--sale {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
}

/* Product loop */
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-h);
}
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; gap: 32px; }
}

/* Single-item archives: avoid first-column “stub” on a 3-col grid; align with centered header. */
.products:has(> .product:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}
.products:has(> .product:only-child) > .product {
  width: 100%;
  max-width: min(100%, 420px);
  text-align: center;
}

.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 16px 0 4px;
  color: var(--ink);
}
.product .price {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 14px;
}
.product img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
}
/*
 * Loop add to cart: `woocommerce_loop_add_to_cart_args` adds .btn .btn--ink — let base.css drive chrome.
 * nowrap keeps “Add to cart” on one line inside narrow grid cells (avoids stacked letters).
 */
.product .button.btn {
  white-space: nowrap;
}

/*
 * AJAX add-to-cart (shop loop): WC adds .added + ::after checkmark and inserts a.added_to_cart.
 * Default WC buttons use --wc-secondary (grey); override so success state matches .btn--ink “filled” look.
 */
.lbv-wc ul.products li.product a.button.added {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.lbv-wc ul.products li.product a.button.added:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  filter: brightness(0.92);
}
.lbv-wc ul.products li.product a.button.added::after {
  font-family: inherit;
  font-weight: 600;
  content: "\2713";
  margin-left: 0.45em;
  vertical-align: middle;
  line-height: 1;
}
/* WC fades the whole control while loading; keep outline readable. */
.lbv-wc ul.products li.product a.button.loading {
  opacity: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--ink);
}
.lbv-wc ul.products li.product a.added_to_cart {
  padding-top: 0;
  margin-left: 1rem;
  vertical-align: middle;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.lbv-wc ul.products li.product a.added_to_cart:hover {
  color: var(--gold-warm);
}

/* Single product — editorial “mother” grid (see woocommerce/content-single-product.php) */
.single-product .woocommerce div.product {
  display: block;
}

.single-product .lbv-wc-product__gallery-col {
  position: relative;
  min-width: 0;
}

.single-product .lbv-wc-product__gallery-col .lbv-pill--sale {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
}

/*
 * Single product gallery — match Collective Porcelain media (gallery.css + collective.css
 * #porcelain-study): natural main image shadow, mother-style thumb tiles, no slider arrows.
 */
.single-product .lbv-wc-product__gallery-col figure.lbv-mother__media {
  margin: 0;
  /* Breathing room so editorial shadows aren’t clipped by the grid column edge. */
  padding: clamp(4px, 1vw, 12px) clamp(3px, 1vw, 10px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 18px);
}

/* Block layout only — FlexSlider + display:flex on this root has caused broken slide stacks in some cases. */
.single-product figure.lbv-mother__media > .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0;
  max-width: none !important;
  display: block !important;
}

/*
 * Never set overflow:visible on .flex-viewport / slides — FlexSlider requires overflow:hidden
 * so only one slide shows. Editorial shadow is on the viewport box + thumb tiles instead of img.
 *
 * Fixed 4:5 frame + cover — mixed image ratios/sizes no longer change viewport height (thumb “jump”).
 */
.single-product figure.lbv-mother__media .flex-viewport {
  margin: 0;
  background: transparent;
  width: 100% !important;
  aspect-ratio: 4 / 5;
  /* Beats FlexSlider / WC inline height() on first image — keeps stage height stable across slides */
  height: auto !important;
  box-shadow:
    0  2px  6px  rgba(40, 24,  6, 0.07),
    0  8px  28px rgba(40, 24,  6, 0.13),
    0 28px  72px rgba(40, 24,  6, 0.10);
}

.single-product figure.lbv-mother__media .flex-viewport ul.slides,
.single-product figure.lbv-mother__media .flex-viewport ul.slides > li {
  height: 100% !important;
}

.single-product figure.lbv-mother__media .flex-viewport .woocommerce-product-gallery__image {
  position: relative;
  height: 100% !important;
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

/* No FlexSlider (single image / slider off): shadow the wrapper instead */
.single-product figure.lbv-mother__media .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper {
  box-shadow:
    0  2px  6px  rgba(40, 24,  6, 0.07),
    0  8px  28px rgba(40, 24,  6, 0.13),
    0 28px  72px rgba(40, 24,  6, 0.10);
}

/* WooCommerce slider — arrows clash with Collective minimal strip; thumbnails change slide */
.single-product figure.lbv-mother__media ul.flex-direction-nav,
.single-product figure.lbv-mother__media .flex-direction-nav {
  display: none !important;
}

.single-product figure.lbv-mother__media .woocommerce-product-gallery__image {
  position: relative;
  overflow: hidden;
}

.single-product figure.lbv-mother__media .woocommerce-product-gallery__image > a {
  display: block;
  line-height: 0;
  height: 100%;
  flex: 1;
}

.single-product figure.lbv-mother__media .woocommerce-product-gallery__image img,
.single-product figure.lbv-mother__media .woocommerce-product-gallery__image--placeholder img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Shadow lives on .flex-viewport (clipping-safe); avoid double-stacking on the img */
  box-shadow: none;
}

.single-product figure.lbv-mother__media .woocommerce-product-gallery__trigger {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

/* Single image (no FlexSlider): same stable frame */
.single-product figure.lbv-mother__media .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.single-product figure.lbv-mother__media .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Thumbnail strip — tiles use li box-shadow (clipping-safe); img shadow would clip inside overflow:hidden li */
.single-product figure.lbv-mother__media .flex-control-thumbs,
.single-product figure.lbv-mother__media .woocommerce-product-thumbnails {
  list-style: none !important;
  margin: clamp(12px, 2vw, 18px) 0 0 !important;
  padding: clamp(6px, 1.2vw, 14px) clamp(4px, 1vw, 10px) clamp(14px, 2.2vw, 24px) !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: clamp(8px, 1.5vw, 12px) !important;
  box-sizing: border-box;
}

.single-product figure.lbv-mother__media .flex-control-thumbs li,
.single-product figure.lbv-mother__media .woocommerce-product-thumbnails li {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 2px solid transparent;
  border-radius: 2px;
  background: var(--cream);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition:
    border-color var(--dur-fast, 0.2s) var(--ease, ease),
    box-shadow var(--dur-fast, 0.2s) var(--ease, ease);
  box-shadow:
    0  1px  4px  rgba(40, 24,  6, 0.06),
    0  4px  14px rgba(40, 24,  6, 0.10),
    0 14px  36px rgba(40, 24,  6, 0.08);
}

.single-product figure.lbv-mother__media .flex-control-thumbs li:hover {
  border-color: rgba(17, 17, 17, 0.18);
}

.single-product figure.lbv-mother__media .flex-control-thumbs li:focus-within {
  outline: 2px solid var(--gold-warm);
  outline-offset: 2px;
}

.single-product figure.lbv-mother__media .flex-control-thumbs li.flex-active {
  border-color: var(--gold-warm);
  box-shadow:
    0  2px  8px  rgba(40, 24,  6, 0.10),
    0  6px  20px rgba(40, 24,  6, 0.14),
    0 18px  44px rgba(40, 24,  6, 0.11);
}

.single-product figure.lbv-mother__media .flex-control-thumbs li img,
.single-product figure.lbv-mother__media .woocommerce-product-thumbnails li img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  object-fit: cover;
  opacity: 1 !important;
  display: block;
  box-shadow: none;
}

.single-product .woocommerce div.product .summary,
.single-product.woocommerce-page div.product div.summary,
.woocommerce-page.single-product div.product div.summary,
.woocommerce-page.single-product #content div.product div.summary {
  width: auto !important;
  float: none !important;
  max-width: none !important;
}

/* Copy column — Collective Porcelain rhythm */
.single-product .woocommerce div.product .summary.lbv-mother__copy > .lbv-eyebrow.lbv-collective-product__eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  display: block;
  margin: 0 0 4px;
}

.single-product .woocommerce div.product .product_title.lbv-mother__display {
  margin-top: 0;
}

/* Italic lede (short description) — before price */
.single-product .woocommerce div.product .lbv-wc-product__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: none;
}

.single-product .woocommerce div.product .lbv-wc-product__lede p {
  margin: 0;
}

.single-product .woocommerce div.product .lbv-wc-product__lede p + p {
  margin-top: 0.85em;
}

/* WooCommerce may still output product-details wrapper via other paths */
.single-product .woocommerce div.product .woocommerce-product-details__short-description:not(.lbv-wc-product__lede) {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 22px;
  margin-bottom: 24px;
  max-width: none;
}

/* Centered buy stack (price, qty, CTA, stock) — matches Collective purchase block */
.single-product .woocommerce div.product .summary.lbv-mother__copy .woocommerce-product-rating {
  margin: 8px 0 20px;
  text-align: center;
}

.single-product .woocommerce div.product .summary.lbv-mother__copy p.price,
.single-product .woocommerce div.product .summary.lbv-mother__copy span.price {
  text-align: center;
}

.single-product .woocommerce div.product .summary.lbv-mother__copy > p.stock {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.single-product .woocommerce div.product form.cart.lbv-buy,
.single-product .woocommerce div.product form.cart.grouped_form {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.single-product .woocommerce div.product form.variations_form {
  margin-bottom: 12px;
}

.single-product .woocommerce div.product .woocommerce-variation-add-to-cart.variations_button {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.single-product .woocommerce div.product p.price,
.single-product .woocommerce div.product span.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 22px;
  display: block;
}

.single-product .woocommerce div.product p.price del,
.single-product .woocommerce div.product span.price del {
  color: var(--ink-soft);
  opacity: 0.85;
}

.single-product .woocommerce div.product form.cart .quantity input.qty {
  width: 64px;
  text-align: center;
  border: 1px solid var(--rule-strong);
  height: 52px;
  border-radius: 0;
  font-family: var(--font-display);
  background: transparent;
}

/* Ghost CTA: theme .btn.btn--ink (see add-to-cart template overrides; no WooCommerce .alt) */
.single-product .woocommerce div.product form.cart .button,
.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
.single-product .woocommerce div.product .single_add_to_cart_button.button {
  box-shadow: none !important;
  text-shadow: none !important;
}

.single-product .woocommerce div.product .stock {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--gold-warm);
  margin-bottom: 16px;
}

.single-product .woocommerce div.product form.variations_form table.variations {
  margin-bottom: 18px;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.single-product .woocommerce div.product form.variations_form table.variations label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 0.78rem;
}

.single-product .woocommerce div.product form.variations_form select {
  width: 100%;
  max-width: 28rem;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  padding: 10px 4px;
  font-family: var(--font-text);
}

.single-product .woocommerce div.product .woocommerce-variation-add-to-cart {
  margin-top: 8px;
}

.single-product .woocommerce div.product .product_meta {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  font-family: var(--font-text);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.single-product .woocommerce div.product .product_meta > span {
  display: block;
  padding: 4px 0;
}

/* Tabs (Description / Additional information / Reviews) — compact, gold-underline */
.woocommerce-tabs.wc-tabs-wrapper {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  gap: 32px;
  border: 0;
}
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 8px 0;
  display: inline-block;
  position: relative;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--gold-warm); }
.woocommerce-tabs ul.tabs li.active a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}

/* Cart page */
/*
 * Block cart — empty state (WC default “sad face” mask + generic link/button chrome).
 * Scoped to cart page so product grids elsewhere are unchanged.
 */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  padding-block: 8px 48px;
  max-width: 36rem;
  margin-inline: auto;
}
/* Replace emoji-style SVG mask with a thin gold rule */
body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  -webkit-mask-image: none;
  mask-image: none;
  background: var(--gold-warm);
  width: 56px;
  height: 1px;
  margin: 0 auto 1.75rem;
}
body.woocommerce-cart .wc-block-cart__empty-cart__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 auto 0.5rem;
  max-width: 22ch;
}
/* “Browse store” — primary CTA */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block p.has-text-align-center {
  margin: 0 0 1.75rem;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block p.has-text-align-center a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 16px 36px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-button);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block p.has-text-align-center a:hover {
  background: var(--ink);
  color: var(--ivory);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before {
  color: var(--gold-warm);
  font-size: 1.5rem;
  letter-spacing: 0.75em;
  padding-left: 0.75em;
}
/* “New in store” + product-new grid */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: var(--ink);
  margin: 48px 0 28px;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products:has(> .wc-block-grid__product:only-child) {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products:has(> .wc-block-grid__product:only-child) > .wc-block-grid__product {
  width: 100%;
  max-width: min(100%, 420px);
  text-align: center;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title a:hover {
  color: var(--gold-warm);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  font-family: var(--font-display);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
/* Block “Add to cart” — match .btn / loop (outline, not WP black fill) */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-button);
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  white-space: nowrap;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-button .wp-block-button__link:hover {
  background: var(--ink) !important;
  color: var(--ivory) !important;
}
/* Classic PHP empty cart template */
body.woocommerce-cart .wc-empty-cart-message {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}
body.woocommerce-cart .wc-empty-cart-message .woocommerce-info.cart-empty {
  background: transparent !important;
  border: 0 !important;
  padding: 0 0 24px !important;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
}
body.woocommerce-cart .wc-empty-cart-message .woocommerce-info.cart-empty::before {
  display: none;
}
body.woocommerce-cart .return-to-shop {
  text-align: center;
  margin-top: 8px;
}
body.woocommerce-cart .return-to-shop a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-button);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
}
body.woocommerce-cart .return-to-shop a.button:hover {
  background: var(--ink);
  color: var(--ivory);
}

.woocommerce-cart .cart_totals .checkout-button.button.alt {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 16px 36px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-button);
}
.woocommerce-cart .cart_totals .checkout-button.button.alt:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.woocommerce table.shop_table {
  border: 0;
  border-collapse: collapse;
  font-family: var(--font-text);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 18px 12px;
  border-top: 1px solid var(--rule);
  background: transparent;
}
.woocommerce table.shop_table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--cream) !important;
  color: var(--ink);
  border-top: 2px solid var(--gold);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  padding: 16px 20px 16px 3.25rem;
  font-family: var(--font-text);
  border-radius: 0;
  position: relative;
  list-style: none;
  margin: 0 0 1.5rem;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-error li + li,
.woocommerce-message li + li,
.woocommerce-info li + li {
  margin-top: 0.5rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: var(--gold-warm);
  position: absolute;
  left: 1rem;
  top: 1.125rem;
  line-height: 1;
}

/* Mini-cart in drawer — editorial row layout (grid + flex, no floats) */
.lbv-drawer .widget_shopping_cart_content {
  font-family: var(--font-text);
}
.lbv-drawer .woocommerce-mini-cart__total {
  border-top: 1px solid var(--rule-gold);
  padding-top: 1.35rem;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--ink);
}
.lbv-drawer .woocommerce-mini-cart__total .amount,
.lbv-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-weight: 500;
  color: var(--ink);
}
.lbv-drawer .woocommerce-mini-cart__buttons { display: none; }
.lbv-drawer ul.cart_list.woocommerce-mini-cart,
.lbv-drawer ul.woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lbv-drawer ul.cart_list li,
.lbv-drawer li.woocommerce-mini-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: auto;
  column-gap: 14px;
  row-gap: 6px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.lbv-drawer li.woocommerce-mini-cart-item:first-child {
  padding-top: 0;
}
.lbv-drawer li.woocommerce-mini-cart-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}
.lbv-drawer li.woocommerce-mini-cart-item .remove.remove_from_cart_button {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 50%;
  /* Clip real &times; text (Firefox still lays it out if only font-size:0). */
  text-indent: 200%;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
/* Vector X — no font metrics; masks center identically in Chrome/Firefox/Safari */
.lbv-drawer li.woocommerce-mini-cart-item .remove.remove_from_cart_button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  background-color: var(--ink-soft);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4L4 12' fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4L4 12' fill='none' stroke='%23fff' stroke-width='1.65' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  pointer-events: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.lbv-drawer li.woocommerce-mini-cart-item .remove.remove_from_cart_button:hover {
  border-color: var(--rule-strong);
  background: rgba(17, 17, 17, 0.04);
}
.lbv-drawer li.woocommerce-mini-cart-item .remove.remove_from_cart_button:hover::after {
  background-color: var(--ink);
}
.lbv-drawer li.woocommerce-mini-cart-item > a {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  padding-right: 4px;
}
.lbv-drawer li.woocommerce-mini-cart-item > a:hover {
  color: var(--gold-warm);
}
.lbv-drawer ul.cart_list li img,
.lbv-drawer li.woocommerce-mini-cart-item > a img {
  width: 72px !important;
  max-width: 72px;
  height: 72px !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: var(--cream);
  display: block;
}
.lbv-drawer li.woocommerce-mini-cart-item > dl.variation {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 0;
}
.lbv-drawer li.woocommerce-mini-cart-item > dl.variation dt {
  float: left;
  clear: left;
  margin: 0 0.35em 0 0;
  font-weight: 400;
  opacity: 0.85;
}
.lbv-drawer li.woocommerce-mini-cart-item > dl.variation dd {
  margin: 0 0 0.2em;
}
.lbv-drawer li.woocommerce-mini-cart-item > .quantity {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2px 0 0;
  font-family: var(--font-text);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.lbv-drawer li.woocommerce-mini-cart-item > .quantity .woocommerce-Price-amount {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}

/* Checkout */
.woocommerce-checkout #payment {
  background: var(--cream);
  border-radius: 0;
  padding: 24px;
}
.woocommerce-checkout #payment ul.payment_methods li {
  background: transparent;
  border: 0;
  padding: 8px 0;
}
.woocommerce-checkout-review-order-table {
  margin-bottom: 24px;
}
.woocommerce form .form-row label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  padding: 12px 4px;
}
