/* =============================================================================
   GDS-Theme — WooCommerce styling
   Themes the storefront (shop, product, cart, checkout, account) to the
   "Modern Architectural Retreat" palette. Loaded only on store pages, after
   style.css, so it reuses the :root design tokens and overrides WooCommerce's
   default visual layer.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Page container + breadcrumb
   ------------------------------------------------------------------------- */
.wc-page.section { padding-top: 3rem; }

.woocommerce-breadcrumb,
.wc-breadcrumb {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--rgb-charcoal), 0.6);
  margin-bottom: 1.5rem;
}
.woocommerce-breadcrumb a,
.wc-breadcrumb a { color: var(--color-forest-700); }
.woocommerce-breadcrumb a:hover,
.wc-breadcrumb a:hover { color: var(--color-terracotta); }
.wc-breadcrumb__sep { margin: 0 0.5rem; color: rgba(var(--rgb-charcoal), 0.3); }

/* ----------------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.woocommerce-store-notice {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--rgb-black), 0.05);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-forest-600);
  list-style: none;
}
.woocommerce-error { border-left-color: var(--color-terracotta); }
.woocommerce-info { border-left-color: var(--color-forest-700); }
/* Hide WooCommerce's default notice icon (::before via the WC icon font). It
   renders as a stray glyph that overlaps the text; the left-border accent
   replaces it. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before,
.woocommerce-store-notice::before {
  content: none;
  display: none;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button { float: right; }

/* ----------------------------------------------------------------------------
   Buttons — map WooCommerce buttons onto the design system
   ------------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce .button,
.wc-block-components-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-forest-800);
  color: var(--color-alabaster);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
  line-height: 1.2;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce .button.disabled { opacity: 0.5; cursor: not-allowed; }

/* WooCommerce Blocks filled buttons (cart "Proceed to checkout", checkout
   "Place order"): the green bg came through but WC Blocks coloured the text
   green too (green-on-green) — force white. */
.wc-block-components-button.contained,
.wc-block-components-button.contained:hover,
.wc-block-components-button.contained:focus,
.wc-block-components-button.contained .wc-block-components-button__text,
.wc-block-cart__submit-button,
.wc-block-cart__submit-button .wc-block-components-button__text {
  color: var(--color-white) !important;
}

/* Secondary / ghost buttons (e.g. "Continue shopping", "Update cart") */
.woocommerce .cart .button[name="update_cart"],
.woocommerce a.button.wc-backward {
  background-color: var(--color-sandstone);
  color: var(--color-charcoal);
  box-shadow: none;
}
.woocommerce .cart .button[name="update_cart"]:hover,
.woocommerce a.button.wc-backward:hover {
  background-color: var(--color-forest-50);
  color: var(--color-charcoal);
}

/* ----------------------------------------------------------------------------
   Shop layout — filters sidebar + product grid
   ------------------------------------------------------------------------- */
/* Outline button variant (used by the filter UI) */
.btn--outline {
  background-color: transparent;
  color: var(--color-forest-800);
  border: 1.5px solid var(--color-forest-800);
}
.btn--outline:hover {
  background-color: var(--color-forest-800);
  color: var(--color-alabaster);
}

.shop-layout { display: block; }
.shop-main { min-width: 0; }

/* Mobile "Filter Plants" toggle button — hidden on desktop */
.shop-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.shop-filters-toggle__icon { font-size: 1rem; line-height: 1; }

/* On mobile the panel is collapsed until toggled open */
.shop-filters-panel { display: none; margin-bottom: 2rem; }
.shop-filters-panel.is-open { display: block; }

/* Filter sidebar card */
.shop-filters {
  background-color: var(--color-white);
  border: 1px solid rgba(var(--rgb-black), 0.06);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1.25rem 0.5rem;
  box-shadow: var(--shadow-sm);
}
.shop-filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.shop-filters__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-charcoal);
  margin: 0;
}
.shop-filters__clear {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  white-space: nowrap;
}
.shop-filters__clear:hover { text-decoration: underline; }

/* Product search box */
.shop-search {
  display: flex;
  align-items: stretch;
  margin: 0 0 1.25rem;
  background-color: rgba(var(--rgb-sandstone), 0.5);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.shop-search:focus-within { border-color: var(--color-terracotta); background-color: var(--color-white); }
.shop-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.62rem 0.4rem 0.62rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-charcoal);
}
.shop-search__input:focus { outline: none; }
.shop-search__input::placeholder { color: rgba(var(--rgb-charcoal), 0.45); }
.shop-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  border: none;
  background: transparent;
  color: var(--color-forest-800);
  cursor: pointer;
  transition: color 0.15s;
}
.shop-search__submit:hover { color: var(--color-terracotta); }
.shop-search__icon { display: block; }

/* Collapsible group */
.filter-group { border-bottom: 1px solid rgba(var(--rgb-black), 0.06); }
.filter-group:last-child { border-bottom: none; }
.filter-group__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  user-select: none;
}
.filter-group__summary::-webkit-details-marker { display: none; }
.filter-group__summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(var(--rgb-charcoal), 0.5);
  transition: transform 0.2s;
}
.filter-group[open] > .filter-group__summary::after { content: "\2212"; } /* minus */
.filter-group__badge {
  background-color: var(--color-forest-800);
  color: var(--color-alabaster);
  font-size: 0.625rem;
  font-weight: 800;
  min-width: 1.15rem;
  height: 1.15rem;
  line-height: 1.15rem;
  text-align: center;
  border-radius: 999px;
  padding: 0 0.35rem;
}

.filter-group__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.filter-group__list--scroll {
  max-height: 13.5rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}
.filter-group__list--scroll::-webkit-scrollbar { width: 6px; }
.filter-group__list--scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--rgb-charcoal), 0.2);
  border-radius: 999px;
}

/* One filter option (a toggle link styled as a checkbox row) */
.filter-option__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(var(--rgb-charcoal), 0.85);
  transition: background-color 0.15s, color 0.15s;
}
.filter-option__link:hover { background-color: rgba(var(--rgb-forest-50), 0.7); }
.filter-option__box {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(var(--rgb-charcoal), 0.25);
  border-radius: 0.3rem;
  position: relative;
  transition: background-color 0.15s, border-color 0.15s;
}
.filter-option.is-checked .filter-option__box {
  background-color: var(--color-forest-800);
  border-color: var(--color-forest-800);
}
.filter-option.is-checked .filter-option__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-option__name { flex: 1 1 auto; }
.filter-option.is-checked .filter-option__name { color: var(--color-charcoal); font-weight: 600; }
.filter-option__count {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(var(--rgb-charcoal), 0.45);
}

/* Price group */
.filter-price { padding: 0.25rem 0 1rem; }
.filter-price__row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; }
.filter-price__field {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  background-color: rgba(var(--rgb-sandstone), 0.5);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  border-radius: var(--radius-lg);
  padding: 0 0.5rem;
}
.filter-price__field:focus-within { border-color: var(--color-terracotta); background-color: var(--color-white); }
.filter-price__prefix { color: rgba(var(--rgb-charcoal), 0.5); font-weight: 600; font-size: 0.875rem; }
.filter-price__field input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.55rem 0.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-charcoal);
}
.filter-price__field input:focus { outline: none; }
.filter-price__dash { color: rgba(var(--rgb-charcoal), 0.4); }
.filter-price__apply {
  width: 100%;
  justify-content: center;
  padding: 0.55rem 1rem !important;
  font-size: 0.6875rem !important;
}

/* Categories group — hierarchical single-select links */
.filter-cats { list-style: none; margin: 0; padding: 0 0 0.75rem; }
.filter-cats--sub {
  padding: 0 0 0 0.6rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(var(--rgb-black), 0.08);
}
.filter-cat { margin: 0; }
.filter-cat__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(var(--rgb-charcoal), 0.85);
  transition: background-color 0.15s, color 0.15s;
}
.filter-cat__link:hover { background-color: rgba(var(--rgb-forest-50), 0.7); }
.filter-cat__name { flex: 1 1 auto; }
.filter-cat__count {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(var(--rgb-charcoal), 0.45);
}
/* "All Plants" reset row */
.filter-cat--all .filter-cat__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Ancestor of the active category — subtle emphasis */
.filter-cat.is-ancestor > .filter-cat__link { color: var(--color-charcoal); font-weight: 600; }
/* Active category — accent + bar */
.filter-cat.is-active > .filter-cat__link {
  background-color: rgba(var(--rgb-forest-50), 0.9);
  color: var(--color-forest-800);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--color-forest-800);
}
.filter-cat.is-active > .filter-cat__link .filter-cat__count { color: var(--color-forest-700); }

/* ----------------------------------------------------------------------------
   Shop archive header + toolbar
   ------------------------------------------------------------------------- */
.woocommerce-products-header.store-head {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}
.woocommerce-products-header__title.page-title { margin: 0; }

/* "30% cheaper than retail stores!" savings badge — shop header + product page. */
.gds-deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 1.125rem;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md);
}
.gds-deal-badge .gds-icon { flex-shrink: 0; }
/* Shop header: pinned to the right, never shrinking below its content. */
.store-head__deal { flex-shrink: 0; }
/* Single-product summary: sits just under the price. The summary column is
   narrow, so the text wraps — use a rounded rectangle (not a full pill) and
   align the icon to the first line so it reads as a tidy savings callout. */
.gds-deal-badge--summary {
  margin: 0.25rem 0 1.5rem;
  border-radius: var(--radius-xl);
  align-items: flex-start;
}
.gds-deal-badge--summary .gds-icon { margin-top: 0.125rem; }

.woocommerce .woocommerce-result-count {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--rgb-charcoal), 0.6);
  margin: 0 0 1.5rem;
}
.woocommerce .woocommerce-ordering { margin-bottom: 1.5rem; }
.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  background-color: rgba(var(--rgb-sandstone), 0.5);
  color: var(--color-charcoal);
}

/* ----------------------------------------------------------------------------
   Product grid — reuse .plant-card, lay ul.products out as a grid
   ------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0;
  text-align: left;
}
.woocommerce ul.products li.product::before { display: none; }

/* Product thumbnail crop + zoom. The selector is scoped to
   .woocommerce ul.products li.product (specificity 0,4,3) so it beats WC
   core's `.woocommerce ul.products li.product a img` (0,3,4), which otherwise
   forces height:auto + a 1em margin and defeats the object-fit crop. */
.woocommerce ul.products li.product .plant-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  margin: 0;
  box-shadow: none;
  transition: transform 0.8s var(--ease-reveal, cubic-bezier(0.16, 1, 0.3, 1));
}
.woocommerce ul.products li.product.group:hover .plant-card__media img { transform: scale(1.06); }

/* Loop title link + price */
.woocommerce ul.products li.product .plant-card__title a { color: inherit; }
.plant-card__price { display: block; }
.plant-card__price del {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 1;
  display: block;
  margin: 0;
}
.plant-card__price ins {
  text-decoration: none;
  color: var(--color-terracotta);
  font-weight: 800;
  background: transparent;
}
.plant-card__price .woocommerce-Price-amount { font-family: var(--font-heading); }

/* Loop add-to-cart already carries .add-to-cart (styled in style.css);
   ensure the "added / view cart" state stays on brand */
/* Match the homepage +Add to Bag button size (WC's .button padding is larger) */
.woocommerce ul.products li.product .plant-card__footer { flex-wrap: wrap; }
.woocommerce ul.products li.product .plant-card__footer .button.add-to-cart { padding: 0.625rem 1.25rem; }
.woocommerce ul.products li.product .added_to_cart {
  display: inline-block;
  flex-basis: 100%;   /* drop the "View cart" link to its own line */
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-700);
}
.woocommerce ul.products li.product .add-to-cart.loading::after { color: var(--color-alabaster); }

/* Onsale flash badge (single product corner + fallback) */
.woocommerce span.onsale {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  min-height: 0;
  min-width: 0;
  line-height: 1.6;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  border: 1px solid rgba(var(--rgb-black), 0.08);
  color: var(--color-charcoal);
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--color-forest-800);
  color: var(--color-alabaster);
  border-color: transparent;
}

/* ----------------------------------------------------------------------------
   Single product
   ------------------------------------------------------------------------- */
.single-product div.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}
/* Neutralise WooCommerce's float/48% sizing so the grid tracks control width
   (WC's `.woocommerce div.product div.images|div.summary { float; width:48% }`
   is 0,3,2 — match it here and win on load order). */
.woocommerce div.product .images,
.woocommerce div.product .summary {
  width: auto;
  float: none;
  clear: none;
  margin: 0;
}
.single-product div.product .woocommerce-product-gallery { margin-bottom: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: var(--radius-3xl); }
.single-product div.product .onsale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.single-product div.product .product_title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
}
.single-product div.product .price,
.single-product div.product p.price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-charcoal);
  margin-bottom: 1.25rem;
}
.single-product div.product .price del { color: #94a3b8; font-size: 1.125rem; font-weight: 500; }
.single-product div.product .price ins { color: var(--color-terracotta); text-decoration: none; }
/* Selected-variation price — match the main product price (it was inheriting an odd olive colour). */
.woocommerce div.product .woocommerce-variation-price .price,
.woocommerce div.product .woocommerce-variation-price .price .woocommerce-Price-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-charcoal);
}
.woocommerce div.product .woocommerce-variation-price .price del .woocommerce-Price-amount { color: #94a3b8; font-size: 1.125rem; }
.woocommerce div.product .woocommerce-variation-price .price ins .woocommerce-Price-amount { color: var(--color-terracotta); }
.single-product div.product .woocommerce-product-details__short-description {
  color: rgba(var(--rgb-charcoal), 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.single-product .stock.in-stock {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-700);
}
.single-product .stock.out-of-stock { color: var(--color-terracotta); }

/* Quantity + add-to-cart form */
/* Flex only simple-product add-to-cart; variable/grouped forms wrap a
   selection table and must keep normal block flow. */
.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.woocommerce div.product form.variations_form,
.woocommerce div.product form.grouped_form { margin-bottom: 1.5rem; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: stretch; }

/* Variable-product attribute selector (e.g. "Size") */
.woocommerce div.product form.cart .variations {
  border: none;
  margin: 0 0 1.25rem;
  width: auto;
}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
  border: none;
  padding: 0.35rem 0;
  vertical-align: middle;
  background: none;
}
.woocommerce div.product form.cart .variations th.label {
  text-align: left;
  padding-right: 1.25rem;
}
.woocommerce div.product form.cart .variations th.label label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  margin: 0;
}
.woocommerce div.product form.cart .variations select {
  min-width: 13rem;
  max-width: 100%;
  height: auto;
  min-height: 3rem;
  margin: 0;
  padding: 0.7rem 2.75rem 0.7rem 1rem;
  border: 1px solid rgba(var(--rgb-black), 0.12);
  border-radius: var(--radius-xl);
  background-color: rgba(var(--rgb-sandstone), 0.5);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.4;
  cursor: pointer;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Custom chevron (native arrow removed via appearance:none) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23181A1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color 0.2s, background-color 0.2s;
}
.woocommerce div.product form.cart .variations select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background-color: var(--color-white);
}
.woocommerce div.product form.cart .variations .reset_variations {
  display: inline-block;
  margin-left: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
}
.woocommerce div.product form.cart .variations .reset_variations:hover { color: var(--color-charcoal); }
.woocommerce .quantity .qty {
  width: 4.5rem;
  height: 100%;
  min-height: 3rem;
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  background-color: rgba(var(--rgb-sandstone), 0.5);
  font-family: var(--font-heading);
  font-weight: 700;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button { padding: 1rem 2rem; }

/* Meta (SKU, categories) */
.woocommerce div.product .product_meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--rgb-black), 0.08);
  font-size: 0.8125rem;
  color: rgba(var(--rgb-charcoal), 0.6);
}
.woocommerce div.product .product_meta a { color: var(--color-forest-700); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  border-bottom: 1px solid rgba(var(--rgb-black), 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--rgb-charcoal), 0.6);
  padding: 0.875rem 1rem;
  display: block;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding-top: 1.5rem;
  color: rgba(var(--rgb-charcoal), 0.85);
  line-height: 1.7;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* "Additional information" attributes table (plant specs) */
.woocommerce div.product .woocommerce-product-attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(var(--rgb-black), 0.08);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin: 0;
  font-size: 0.9375rem;
  background-color: var(--color-white);
}
.woocommerce div.product .woocommerce-product-attributes th,
.woocommerce div.product .woocommerce-product-attributes td {
  padding: 0.85rem 1.25rem;
  vertical-align: middle;
  border: none;
}
/* Row separators instead of WooCommerce's default zebra striping. */
.woocommerce div.product .woocommerce-product-attributes tr:not(:last-child) th,
.woocommerce div.product .woocommerce-product-attributes tr:not(:last-child) td {
  border-bottom: 1px solid rgba(var(--rgb-black), 0.06);
}
.woocommerce div.product .woocommerce-product-attributes tr:nth-child(even) th,
.woocommerce div.product .woocommerce-product-attributes tr:nth-child(even) td {
  background: none;
}
.woocommerce div.product .woocommerce-product-attributes th.woocommerce-product-attributes-item__label {
  width: 42%;
  text-align: left;
  background-color: rgba(var(--rgb-sandstone), 0.5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
}
.woocommerce div.product .woocommerce-product-attributes td.woocommerce-product-attributes-item__value {
  color: rgba(var(--rgb-charcoal), 0.85);
  font-weight: 500;
}
.woocommerce div.product .woocommerce-product-attributes td.woocommerce-product-attributes-item__value p {
  margin: 0;
  font-style: normal; /* WooCommerce italicises values by default */
}

/* Related / upsells */
.woocommerce .related, .woocommerce .upsells { grid-column: 1 / -1; margin-top: 3rem; }
.woocommerce .related > h2, .woocommerce .upsells > h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.875rem;
  color: var(--color-charcoal);
  margin-bottom: 2rem;
}

/* Star ratings */
.woocommerce .star-rating span { color: var(--color-terracotta); }
.woocommerce p.stars a { color: var(--color-terracotta); }

/* ----------------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------------- */
.woocommerce table.shop_table {
  border: 1px solid rgba(var(--rgb-black), 0.06);
  border-radius: var(--radius-2xl);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background-color: var(--color-white);
}
.woocommerce table.shop_table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--rgb-charcoal), 0.7);
  background-color: rgba(var(--rgb-sandstone), 0.4);
  padding: 1rem;
}
.woocommerce table.shop_table td { padding: 1rem; border-top: 1px solid rgba(var(--rgb-black), 0.05); vertical-align: middle; }
.woocommerce table.shop_table img { border-radius: var(--radius-lg); }
.woocommerce a.remove {
  color: var(--color-terracotta) !important;
  border: 1px solid rgba(var(--rgb-terracotta), 0.3);
  background: var(--color-white);
}
.woocommerce a.remove:hover { background-color: var(--color-terracotta) !important; color: var(--color-white) !important; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce .cart_totals h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.woocommerce-cart .wc-proceed-to-checkout { padding: 1rem 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; font-size: 0.875rem; padding: 1.125rem 1.5rem; }
.woocommerce .cart .coupon .input-text {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  padding: 0.75rem 1rem;
  background-color: rgba(var(--rgb-sandstone), 0.5);
}

/* ----------------------------------------------------------------------------
   Checkout
   ------------------------------------------------------------------------- */
.woocommerce-checkout h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  margin-bottom: 0.4rem;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce .select2-container--default .select2-selection--single {
  width: 100%;
  background-color: rgba(var(--rgb-sandstone), 0.5);
  border: 1px solid rgba(var(--rgb-black), 0.1);
  border-radius: var(--radius-xl);
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  color: var(--color-charcoal);
  height: auto;
  min-height: 3rem;
}
/* Re-center the dropdown caret against the taller field */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.5rem;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  background-color: var(--color-white);
}
.woocommerce-checkout #payment {
  background-color: rgba(var(--rgb-sandstone), 0.4);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(var(--rgb-black), 0.05);
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid rgba(var(--rgb-black), 0.05); }
.woocommerce-checkout #payment div.payment_box { background-color: var(--color-white); border-radius: var(--radius-lg); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--color-white); }
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order { width: 100%; padding: 1.125rem 1.5rem; font-size: 0.875rem; }
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table { margin-bottom: 1rem; }

/* ----------------------------------------------------------------------------
   My Account
   ------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column; /* vertical menu in the account sidebar column */
  gap: 0.25rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  color: var(--color-charcoal);
  display: block;
  transition: background-color 0.2s, color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background-color: var(--color-forest-800);
  color: var(--color-alabaster);
}

/* Account forms (login / register / lost password / edit account): WooCommerce
   lays each .form-row out as a horizontal flex/grid row — label beside input.
   Stack them so the label sits directly above a full-width input. */
.woocommerce-account .woocommerce form .form-row {
  display: block !important;
  margin: 0 0 1.25rem;
}
.woocommerce-account .woocommerce form .form-row > label {
  display: block;
  width: auto;
  float: none;
  margin: 0 0 0.4rem;
}
.woocommerce-account .woocommerce form .form-row .woocommerce-input-wrapper,
.woocommerce-account .woocommerce form .form-row .password-input {
  display: block;
  width: 100%;
}
/* "Remember me" is a checkbox label — keep the checkbox + text inline, not the
   uppercase field-label treatment. */
.woocommerce-account .woocommerce form .form-row label.woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}
.woocommerce-account .woocommerce-form-login__rememberme input { width: auto; margin: 0; }

/* Keep the login/register forms a comfortable reading width inside the column. */
.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  max-width: 32rem;
}

/* ----------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .single-product div.product { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .single-product div.product .woocommerce-tabs,
  .woocommerce .related,
  .woocommerce .upsells { grid-column: 1 / -1; }
  .woocommerce-cart-form { }
}
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce-cart .cart-collaterals .cart_totals { width: 40%; float: right; }
}

/* Shop layout: switch to sidebar + products on desktop. Below this, the
   sidebar collapses behind the "Filter Plants" toggle button. */
@media (min-width: 900px) {
  .shop-filters-toggle { display: none; }
  .shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .shop-filters-panel { display: block; margin-bottom: 0; }
  .shop-filters {
    position: sticky;
    top: 9rem; /* clear the ~7.5rem sticky header + a gap */
    max-height: calc(100vh - 10.5rem);
    overflow-y: auto;
  }
  /* The product area is narrower now — 2-up until there's room for 3. */
  .shop-layout .shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .shop-layout .shop-main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
