/* =============================================================================
   FunkyFoliageCo Bloom — WooCommerce
   Loaded on every page while WooCommerce is active, because product cards also
   render on the front page and in [products] shortcodes.
   ============================================================================= */

/* ─────────────────────────────────────────────
   0. DEFENSIVE RESETS

   functions.php removes woocommerce-layout.css and woocommerce-smallscreen.css,
   which is the real fix. These rules are a second line of defence for the case
   where a plugin, a WooCommerce update, or a caching plugin's combined CSS
   re-introduces the float grid.

   The selectors deliberately mirror WooCommerce's own specificity
   (.woocommerce ul.products li.product = 0,3,2) so they win the cascade rather
   than relying on source order. Without the .woocommerce prefix these would
   score 0,2,2 and silently lose — which is exactly the bug this guards against.
   ───────────────────────────────────────────── */

.woocommerce ul.products,
.woocommerce-page ul.products {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.images,
.woocommerce-page div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce #content div.product div.images,
.woocommerce div.product div.images img {
  width: 100%;
}

.woocommerce .col2-set,
.woocommerce-page .col2-set {
  display: grid;
  gap: var(--space-8);
  width: auto;
}

@media (min-width: 700px) {
  .woocommerce .col2-set,
  .woocommerce-page .col2-set {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
  float: none;
  width: auto;
}

/* WooCommerce's clearfix pseudo-elements become stray grid/flex items. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .col2-set::before,
.woocommerce .col2-set::after {
  content: none;
}

/* ─────────────────────────────────────────────
   1. SHOP HEADER & TOOLBAR
   ───────────────────────────────────────────── */

.woocommerce-main {
  padding-block: var(--space-10) var(--space-24);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.breadcrumb a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.woocommerce-products-header {
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.woocommerce-products-header__title,
.woocommerce-page .entry-title {
  font-size: var(--text-3xl);
}

.term-description,
.woocommerce-product-details__short-description {
  margin-top: var(--space-4);
  color: var(--fg-muted);
}

/* Toolbar: result count on the left, ordering on the right. */
.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-result-count {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select {
  width: auto;
  padding-right: var(--space-8);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  background: var(--white);
}

/* The toolbar row itself. WooCommerce outputs these as siblings, so grid them
   into place rather than adding wrapper markup. */
.woocommerce-main .woocommerce-result-count,
.woocommerce-main .woocommerce-ordering {
  display: inline-block;
  vertical-align: middle;
}

.woocommerce-main .woocommerce-result-count {
  float: left;
  line-height: 42px;
}

.woocommerce-main .woocommerce-ordering {
  float: right;
  margin-bottom: var(--space-8);
}

.woocommerce-main .products {
  clear: both;
}

/*
 * Shop layout: filters beside the listing.
 *
 * This wraps only the filters and the product listing, emitted by
 * ffb_shop_layout_open()/_close() in functions.php. The breadcrumb, page title
 * and notices stay above it at full width.
 *
 * An earlier version turned the page container itself into the two-column grid,
 * which meant every direct child — breadcrumb, title, notices — became a grid
 * item and got dealt into the columns. A dedicated wrapper keeps the column
 * layout to the two things that belong in it.
 */
.shop-layout {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 1000px) {
  /* Only make room for a filter column when filters actually exist. */
  .shop-layout:has(.shop-sidebar) {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
}

/* minmax(0,…) above lets this column shrink; without it the product grid's
   contents would force it wider than its share. */
.shop-main {
  min-width: 0;
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}


/* ─────────────────────────────────────────────
   2. PRODUCT GRID
   ───────────────────────────────────────────── */

/*
 * Explicit mobile-first column ladder.
 *
 * This replaced `repeat(auto-fill, minmax(240px, 1fr))`, which inverted on
 * phones: a 240px minimum meant a 430px-wide phone fitted only one column,
 * while a separate max-width:480px override forced two. The result was that
 * *wider* phones showed *fewer* products per row between 481px and ~740px.
 *
 * Two-up is the right default for a phone — one-up wastes half the screen and
 * turns browsing into endless scrolling, which is the main way a mobile
 * shopper gives up on a catalogue.
 */
ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8) var(--space-6);
  }
}

@media (min-width: 1100px) {
  ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Honour WooCommerce's columns-N only once there is room for it. */
  ul.products.columns-1 { grid-template-columns: minmax(0, 1fr); }
  ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Related products stay 2-up on phones rather than inheriting a wider count. */
@media (max-width: 699px) {
  .related ul.products,
  .upsells ul.products,
  .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  text-align: left;
}

/* ── Media box ────────────────────────────────────────────────────────────── */

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-4);
  background: var(--linen);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-card__media img,
ul.products li.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease);
}

ul.products li.product:hover .product-card__media img {
  transform: scale(1.05);
}

/* WooCommerce wraps the image and text in one <a>. Make that link the flex
   column rather than using display:contents, which drops the element from the
   accessibility tree in some browsers. */
ul.products li.product > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.badge {
  display: inline-block;
  padding: 4px var(--space-3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

.badge--sale {
  background: var(--banner);
}

.badge--featured {
  background: var(--accent);
  color: var(--white);
}

.badge--oos {
  background: var(--green-grey);
  color: var(--cream);
}

/* Hide WooCommerce's own sale flash — ours replaces it. */
ul.products li.product .onsale,
.single-product .onsale {
  display: none;
}

/* ── Card body ────────────────────────────────────────────────────────────── */

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-1);
}

.product-card__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-snug);
  padding: 0;
  margin: 0;
  transition: color var(--duration) var(--ease);
}

ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--accent);
}

ul.products li.product .price {
  margin: var(--space-1) 0 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
}

ul.products li.product .price del {
  margin-right: var(--space-2);
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration-thickness: 1px;
}

ul.products li.product .price ins {
  text-decoration: none;
  color: var(--error);
}

/* Star rating */
.star-rating {
  margin: var(--space-2) 0 0;
  font-size: 0.85em;
  color: var(--accent);
}

/* ── Add to cart ──────────────────────────────────────────────────────────── */

ul.products li.product .button,
ul.products li.product .added_to_cart {
  margin-top: var(--space-4);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

ul.products li.product .button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

ul.products li.product .button.loading {
  opacity: 0.7;
  pointer-events: none;
}

ul.products li.product .added_to_cart {
  margin-left: var(--space-2);
  border-color: var(--accent);
  color: var(--accent);
}


/* ─────────────────────────────────────────────
   3. SINGLE PRODUCT
   ───────────────────────────────────────────── */

.single-product div.product {
  display: grid;
  gap: var(--space-10) var(--space-16);
  margin-bottom: var(--space-20);
}

@media (min-width: 900px) {
  .single-product div.product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }

  /* Gallery on the left, summary on the right. */
  .single-product div.product .woocommerce-product-gallery {
    grid-column: 1;
  }

  /*
   * The summary scrolls with the page.
   *
   * It was previously `position: sticky`, pinning the title, price and buy
   * button while the gallery scrolled past. That is a common shop pattern, but
   * it only engaged above 900px, so desktop and mobile behaved differently for
   * no reason the shopper could see — and on a short summary it left the title
   * and category hanging in empty space beside the tabs below.
   *
   * Mobile keeps a buy affordance through the sticky add-to-cart bar, which is
   * where that need is real, so nothing is lost by letting this scroll.
   */
  .single-product div.product .summary {
    grid-column: 2;
    position: static;
  }

  /* Tabs, related products and upsells span the full width below. */
  .single-product div.product .woocommerce-tabs,
  .single-product div.product .related,
  .single-product div.product .upsells {
    grid-column: 1 / -1;
  }

  /*
   * Same rule again without the body-class dependency.
   *
   * The selectors above require `single-product` on <body>. WooCommerce adds it
   * on product pages, but a page builder, a shortcode-rendered product, or a
   * plugin that filters body_class can leave it off — and then the tabs lose
   * their span and drop into column 1, landing beside the summary instead of
   * below the product. The child combinator keeps this scoped to real product
   * wrappers rather than anything that happens to carry the class.
   */
  div.product > .woocommerce-tabs,
  div.product > .related,
  div.product > .upsells {
    grid-column: 1 / -1;
  }

  /*
   * Top-align the summary rather than letting it stretch to the gallery's
   * height, so the title sits level with the top of the product image.
   */
  .single-product div.product .summary {
    align-self: start;
  }
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */

.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--linen);
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
}

.woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  margin: 0;
}

.woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--accent);
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-size: 0;
}

.woocommerce-product-gallery__trigger::before {
  content: '⤢';
  font-size: 18px;
  color: var(--green-dark);
}

/* ── Summary ──────────────────────────────────────────────────────────────── */

.summary .product_title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.summary .price {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.summary .price del {
  margin-right: var(--space-2);
  font-weight: 400;
  color: var(--fg-muted);
}

.summary .price ins {
  text-decoration: none;
  color: var(--error);
}

.summary .woocommerce-product-details__short-description {
  margin-bottom: var(--space-6);
  color: var(--fg-muted);
  font-size: var(--text-lg);
}

.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.woocommerce-product-rating .woocommerce-review-link {
  color: var(--fg-muted);
  text-decoration: none;
}

/* ── Variations ───────────────────────────────────────────────────────────── */

.variations {
  width: 100%;
  margin-bottom: var(--space-5);
  border-collapse: collapse;
}

.variations th,
.variations td {
  padding: 0 0 var(--space-4);
  text-align: left;
  vertical-align: middle;
}

.variations th.label {
  padding-right: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.variations select {
  border-radius: var(--radius-pill);
  background: var(--white);
}

.reset_variations {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.woocommerce-variation-price {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: 600;
}

/* ── Quantity + add to cart ───────────────────────────────────────────────── */

.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.single-product form.variations_form {
  display: block;
}

.single-product form.variations_form .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quantity .qty {
  width: 76px;
  height: 100%;
  min-height: 52px;
  padding: 0 var(--space-2);
  text-align: center;
  border: 0;
  background: transparent;
  border-radius: 0;
  -moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
  opacity: 1;
  height: 32px;
}

.quantity .qty:focus {
  box-shadow: none;
}

.single-product form.cart .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: var(--cream);
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.single-product form.cart .single_add_to_cart_button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.single-product form.cart .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stock.in-stock {
  color: var(--success);
  font-size: var(--text-sm);
}

.stock.out-of-stock {
  color: var(--error);
  font-size: var(--text-sm);
}

/* ── Meta ─────────────────────────────────────────────────────────────────── */

.product_meta {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product_meta > span {
  display: block;
}

.product_meta a {
  color: var(--fg);
  text-decoration: none;
}

.product_meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Care facts & assurances ──────────────────────────────────────────────── */

/*
 * Fills the area below add-to-cart, which previously held only the category
 * line. Rendered by ffb_render_product_extras() at priority 45 on
 * woocommerce_single_product_summary.
 */
.product-extras {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.product-specs {
  margin: 0;
  border-top: 1px solid var(--border);
}

.product-spec {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.product-spec dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* The icon picks up the vertical's accent, so a pot page reads clay and a
   habitat page reads amber without any extra markup. */
.product-spec dt svg {
  flex: none;
  color: var(--accent);
}

.product-spec dd {
  margin: 0;
  font-size: var(--text-base);
}

/* Admin-only notice when the product has no vertical to draw specs from. */
.product-specs__hint {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--highlight);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.product-assurances {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5);
  list-style: none;
  background: var(--peach);
  border-radius: var(--radius-lg);
}

.product-assurance {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.product-assurance svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}

.product-assurance strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}

.product-assurance__text {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

@media (max-width: 699px) {
  /* Label above value — a 9.5rem label column leaves too little for the text. */
  .product-spec {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .product-assurances {
    padding: var(--space-4);
  }
}


/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.woocommerce-tabs {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
}

.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin: 0 0 var(--space-8);
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding-bottom: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: calc(var(--space-4) * -1 - 1px);
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.woocommerce-Tabs-panel {
  max-width: 68ch;
}

.woocommerce-Tabs-panel h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.woocommerce-Tabs-panel > * + * {
  margin-top: var(--space-4);
}

.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}

.shop_attributes th,
.shop_attributes td {
  padding: var(--space-3) 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.shop_attributes th {
  width: 30%;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop_attributes td p {
  margin: 0;
}

/* ── Reviews ──────────────────────────────────────────────────────────────── */

#reviews .commentlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: 0;
  list-style: none;
}

#reviews .comment_container {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
}

#reviews .comment_container img {
  border-radius: var(--radius-pill);
}

#reviews .comment-text {
  padding: 0;
  border: 0;
}

#reviews .meta {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}

#review_form .comment-form {
  display: grid;
  gap: var(--space-4);
  max-width: 40rem;
}

/*
 * Review submit button.
 *
 * WooCommerce renders this as a bare <input type="submit">, not the <button>
 * the blog comment form uses, and it carries none of the theme's button
 * classes — so without an explicit rule it falls back to the browser's default
 * grey chrome, which is what it was doing.
 *
 * The selectors mirror WooCommerce's own (`.woocommerce #respond input#submit`,
 * roughly 0,2,1,1) so this wins the cascade rather than depending on load order.
 */
.woocommerce #respond input#submit,
.woocommerce #review_form #respond .form-submit input[type="submit"],
#respond input#submit,
#review_form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  justify-self: start;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: var(--cream);
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.woocommerce #respond input#submit:hover,
.woocommerce #review_form #respond .form-submit input[type="submit"]:hover,
#respond input#submit:hover,
#review_form .form-submit input[type="submit"]:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.comment-form-rating .stars {
  display: inline-flex;
  gap: var(--space-1);
}

/* ── Related products ─────────────────────────────────────────────────────── */

.related,
.upsells {
  margin-top: var(--space-20);
  padding-top: var(--space-12);
  border-top: 1px solid var(--border);
}

.related > h2,
.upsells > h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}


/* ─────────────────────────────────────────────
   4. CART
   ───────────────────────────────────────────── */

.woocommerce-cart-form {
  margin-bottom: var(--space-10);
}

table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-8);
}

table.shop_table th {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

table.shop_table td {
  padding: var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.shop_table .product-thumbnail img {
  width: 84px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

table.shop_table .product-name a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-decoration: none;
}

table.shop_table .product-name a:hover {
  color: var(--accent);
}

table.shop_table .product-remove a.remove {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: var(--fg-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

table.shop_table .product-remove a.remove:hover {
  background: var(--error);
  color: var(--white);
}

.cart-collaterals {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 860px) {
  .cart-collaterals {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .cart-collaterals .cross-sells {
    grid-column: 1;
  }

  .cart-collaterals .cart_totals {
    grid-column: 2;
  }
}

.cart_totals {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.cart_totals h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
  border-bottom: 0;
  padding-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
}

.wc-proceed-to-checkout {
  margin-top: var(--space-6);
}

.wc-proceed-to-checkout .checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease);
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--accent);
}

.coupon {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.coupon input[type="text"] {
  flex: 1;
  min-width: 180px;
  border-radius: var(--radius-pill);
  padding-inline: var(--space-5);
}

.actions .button,
.coupon .button {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.actions .button:hover,
.coupon .button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

.cart-empty {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  text-align: center;
  padding-block: var(--space-12) var(--space-6);
}

.return-to-shop {
  text-align: center;
  padding-bottom: var(--space-16);
}


/* ─────────────────────────────────────────────
   5. CHECKOUT
   ───────────────────────────────────────────── */

.woocommerce-checkout form.checkout {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 900px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }

  .woocommerce-checkout #customer_details {
    grid-column: 1;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 2;
  }
}

.woocommerce-checkout h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.form-row.form-row-first,
.form-row.form-row-last {
  width: 100%;
}

@media (min-width: 560px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-wide {
    grid-column: 1 / -1;
  }
}

.form-row .required {
  color: var(--error);
  text-decoration: none;
}

.woocommerce-invalid input,
.woocommerce-invalid select {
  border-color: var(--error);
}

#order_review {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

#order_review table.shop_table th,
#order_review table.shop_table td {
  padding: var(--space-3) 0;
}

.woocommerce-checkout-payment {
  margin-top: var(--space-6);
}

.wc_payment_methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
  margin-bottom: var(--space-6);
}

.wc_payment_method label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.wc_payment_method input[type="radio"] {
  width: auto;
}

.payment_box {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--highlight);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.payment_box p:last-child {
  margin-bottom: 0;
}

#place_order {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

#place_order:hover {
  background: var(--accent);
}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}


/* ─────────────────────────────────────────────
   6. MY ACCOUNT
   ───────────────────────────────────────────── */

.woocommerce-account .woocommerce {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 860px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
}

.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
  background: var(--green-dark);
  color: var(--cream);
}

.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

/* Login / register */
.woocommerce-form-login,
.woocommerce-form-register {
  max-width: 26rem;
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
  background: var(--accent);
}

.woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.woocommerce-form-login__rememberme input {
  width: auto;
}


/* ─────────────────────────────────────────────
   7. NOTICES
   ───────────────────────────────────────────── */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
  background: var(--highlight);
  font-size: var(--text-base);
  list-style: none;
}

.woocommerce-message {
  border-left-color: var(--success);
}

.woocommerce-error {
  border-left-color: var(--error);
  background: rgba(179, 38, 30, 0.08);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: auto;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease);
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background: var(--accent);
}


/* ─────────────────────────────────────────────
   8. WIDGETS (shop filters)
   ───────────────────────────────────────────── */

.shop-sidebar .widget ul li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
}

.shop-sidebar .widget .count {
  color: var(--fg-muted);
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-pill);
}

.widget_price_filter .ui-slider .ui-slider-range {
  background: var(--accent);
}

.widget_price_filter .ui-slider .ui-slider-handle {
  width: 16px;
  height: 16px;
  top: -7px;
  background: var(--green-dark);
  border-radius: var(--radius-pill);
  cursor: grab;
}

.widget_price_filter .price_slider_amount {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}

.widget_price_filter .price_slider_amount .button {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}


/* ─────────────────────────────────────────────
   9. RESPONSIVE
   ───────────────────────────────────────────── */

@media (max-width: 767px) {
  /* Collapse the cart table into stacked rows — a 6-column table cannot
     work at this width. */
  table.shop_table thead {
    display: none;
  }

  table.shop_table,
  table.shop_table tbody,
  table.shop_table tr,
  table.shop_table td {
    display: block;
    width: 100%;
  }

  table.shop_table tr {
    position: relative;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--border);
  }

  table.shop_table td {
    padding: var(--space-1) 0;
    border: 0;
    text-align: left;
  }

  table.shop_table td::before {
    content: attr(data-title) ': ';
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-right: var(--space-2);
  }

  table.shop_table td.product-thumbnail::before,
  table.shop_table td.product-remove::before {
    content: none;
  }

  table.shop_table td.product-remove {
    position: absolute;
    top: var(--space-4);
    right: 0;
    width: auto;
  }

  /* Totals table keeps its label column. */
  .cart_totals table.shop_table tr {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
  }

  .cart_totals table.shop_table th {
    display: block;
    border: 0;
    padding: 0;
  }

  .cart_totals table.shop_table td::before {
    content: none;
  }

  .single-product form.cart .single_add_to_cart_button {
    min-width: 0;
  }

  .woocommerce-main .woocommerce-result-count,
  .woocommerce-main .woocommerce-ordering {
    float: none;
    display: block;
    line-height: inherit;
  }

  .woocommerce-main .woocommerce-ordering {
    margin-top: var(--space-3);
  }

  .woocommerce-ordering select {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────
   10. TOUCH & MOBILE
   ───────────────────────────────────────────── */

@media (max-width: 699px) {

  /* ── Product card ───────────────────────────────────────────────────────── */

  ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--text-base);
    line-height: 1.3;
  }

  ul.products li.product .price {
    font-size: var(--text-sm);
  }

  /* Full-width button so the tap target spans the card rather than sitting in
     a narrow pill that is easy to miss with a thumb. */
  ul.products li.product .button,
  ul.products li.product .added_to_cart {
    width: 100%;
    min-height: var(--tap);
    margin-top: var(--space-3);
    margin-left: 0;
    padding-inline: var(--space-2);
    align-self: stretch;
  }

  .product-card__eyebrow {
    font-size: 10px;
  }

  /* ── Single product ─────────────────────────────────────────────────────── */

  .single-product div.product {
    gap: var(--space-6);
    margin-bottom: var(--space-12);
  }

  .summary .product_title {
    font-size: var(--text-2xl);
  }

  .woocommerce-product-gallery__wrapper {
    border-radius: var(--radius-lg);
  }

  /* Thumbnails scroll horizontally instead of wrapping into rows that push the
     price and buy button below the fold. */
  .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
  }

  .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 64px;
    scroll-snap-align: start;
  }

  .woocommerce-product-gallery__trigger {
    width: var(--tap);
    height: var(--tap);
  }

  /* Quantity and buy button on one row, buy button taking the remaining space. */
  .single-product form.cart {
    gap: var(--space-2);
  }

  .quantity .qty {
    width: 64px;
    min-height: var(--tap);
  }

  .single-product form.cart .single_add_to_cart_button,
  .single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    min-width: 0;
    min-height: var(--tap);
    padding-inline: var(--space-4);
  }

  /* Tabs scroll rather than wrapping onto three lines. */
  .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-5);
  }

  .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
  }

  /* Reviews: a 56px avatar plus a 16px gap takes 72px off an already narrow
     column, squeezing the review text into a very short measure. Shrinking the
     avatar buys that width back for the words. */
  #reviews .comment_container {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--space-3);
  }

  #reviews .comment_container img {
    width: 40px;
    height: 40px;
  }

  .variations th.label {
    padding-right: var(--space-3);
  }

  /* ── Cart ───────────────────────────────────────────────────────────────── */

  table.shop_table .product-remove a.remove {
    width: var(--tap);
    height: var(--tap);
    font-size: 24px;
  }

  table.shop_table .product-thumbnail img {
    width: 64px;
    height: 78px;
  }

  .coupon input[type="text"],
  .actions .button,
  .coupon .button {
    width: 100%;
    min-height: var(--tap);
  }

  .cart_totals,
  #order_review {
    padding: var(--space-5);
  }

  /* ── Checkout ───────────────────────────────────────────────────────────── */

  #place_order,
  .wc-proceed-to-checkout .checkout-button,
  .woocommerce-form-login .button,
  .woocommerce-form-register .button {
    min-height: 52px;
  }

  .woocommerce-form-login,
  .woocommerce-form-register {
    padding: var(--space-5);
  }

  .wc_payment_method label {
    min-height: var(--tap);
  }

  /* ── Account ────────────────────────────────────────────────────────────── */

  /* Account nav becomes a horizontal scroller instead of a tall stack that
     buries the actual content. */
  .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
    border: 1px solid var(--border);
  }

  /* ── Notices ────────────────────────────────────────────────────────────── */

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    flex-direction: column;
    align-items: flex-start;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button {
    margin-left: 0;
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
  }
}


/* ─────────────────────────────────────────────
   11. MOBILE FILTER DRAWER

   The shop sidebar stacks above the grid on narrow screens, pushing every
   product below the fold. On mobile it collapses behind a toggle instead.
   ───────────────────────────────────────────── */

.filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--tap);
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
}

.filter-toggle[aria-expanded="true"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--cream);
}

/*
 * Collapsed state is driven by a class, not the [hidden] attribute. [hidden]
 * is honoured by the UA stylesheet at every width, so it would also hide the
 * sidebar on desktop where it should always be visible.
 */
@media (max-width: 999px) {
  .filter-toggle {
    display: flex;
  }

  .shop-sidebar {
    display: none;
    margin-bottom: var(--space-8);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .shop-sidebar.is-open {
    display: flex;
  }
}


/* ─────────────────────────────────────────────
   12. STICKY ADD TO CART (mobile)

   Once the real buy button scrolls out of view on a product page, a compact
   bar takes its place. On a phone the buy action is otherwise stranded above
   the description, tabs and related products.
   ───────────────────────────────────────────── */

.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-stickybar);

  display: flex;
  align-items: center;
  gap: var(--space-3);

  padding: var(--space-3) var(--gutter);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));

  background: var(--cream);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(6, 78, 59, 0.1);

  /* Hidden by default; JS adds .is-visible once the inline button leaves view.
     translate + opacity only, so showing it never triggers layout. */
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--duration) var(--ease),
    opacity var(--duration) var(--ease),
    visibility var(--duration) var(--ease);
}

.sticky-atc.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-atc__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sticky-atc__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.2;

  /* Long plant names must not wrap the bar to two lines. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-atc__price {
  font-size: var(--text-sm);
  font-weight: 600;
}

.sticky-atc__price del {
  margin-right: var(--space-1);
  font-weight: 400;
  color: var(--fg-muted);
}

.sticky-atc__price ins {
  text-decoration: none;
  color: var(--error);
}

.sticky-atc__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--green-dark);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.sticky-atc__btn:disabled {
  opacity: 0.5;
}

/* The bar would cover the footer's last row, so reserve space for it. */
body.has-sticky-atc .footer {
  padding-bottom: calc(var(--space-8) + 72px + env(safe-area-inset-bottom, 0px));
}

/* Desktop has the sticky summary column instead — the bar is phone-only. */
@media (min-width: 900px) {
  .sticky-atc {
    display: none;
  }

  body.has-sticky-atc .footer {
    padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  }
}
