/* ==========================================================================
   AIVELO — WooCommerce surfaces
   ========================================================================== */

.woocommerce-breadcrumb { display: none; }

/* ---------- notices ---------- */

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  margin: 0 0 var(--stack);
  padding: 1.1rem 1.35rem;
  font-size: var(--fs-small);
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.woocommerce-message { background: var(--camel-soft); border-left-color: var(--camel); }
.woocommerce-error { background: #f6ece7; border-left-color: #8c3b1c; }
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- single product ---------- */

.product-lead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
  padding-bottom: var(--block);
  align-items: start;
}

/* gallery: stacked and deliberately staggered */
.product-gallery { grid-column: 1 / span 7; display: grid; gap: clamp(1rem, 2vw, 2.25rem); }
.product-gallery figure { margin: 0; position: relative; }
.product-gallery img { width: 100%; object-fit: cover; background: var(--paper-2); }
.product-gallery figure:nth-child(1) img { aspect-ratio: 4 / 5; }
.product-gallery figure:nth-child(2) { width: 74%; margin-left: auto; }
.product-gallery figure:nth-child(2) img { aspect-ratio: 1 / 1; }
.product-gallery figure:nth-child(3) { width: 58%; }
.product-gallery figure:nth-child(3) img { aspect-ratio: 3 / 4; }
.product-gallery figcaption {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-top: 0.6rem;
}

.product-info {
  grid-column: 9 / span 4;
  position: sticky;
  top: 6.5rem;
}
.product-info__sku {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.9rem;
}
.product-info h1 { font-size: var(--fs-h2); margin-bottom: 0.45em; }
.product-info__price {
  font-size: var(--fs-lead);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}
.product-info__price del { color: var(--ink-40); margin-right: 0.55rem; }
.product-info__price ins { text-decoration: none; color: var(--camel-ink); font-weight: 500; }
.product-info__tax {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-55);
  margin-top: 0.35rem;
}
.product-info__short { font-size: var(--fs-small); color: var(--ink-70); margin-bottom: 1.75rem; }

@media (max-width: 1080px) {
  .product-gallery { grid-column: 1 / -1; }
  .product-info { grid-column: 1 / -1; position: static; margin-top: var(--stack); }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
  .product-gallery figure:nth-child(1) { grid-column: 1 / -1; }
  .product-gallery figure:nth-child(2),
  .product-gallery figure:nth-child(3) { width: 100%; margin: 0; }
}
@media (max-width: 560px) {
  .product-gallery { grid-template-columns: 1fr; }
}

/* add to cart */
.cart,
.variations_form.cart { margin: 0 0 1.5rem; }

.variations { width: 100%; margin-bottom: 1rem; }
.variations tr { display: block; margin-bottom: 1rem; }
.variations th,
.variations td { display: block; text-align: left; padding: 0; }
.variations th label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.55rem;
  display: block;
}
.reset_variations {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: var(--fs-micro);
  color: var(--ink-55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-variation-price { margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.woocommerce-variation-availability { font-size: var(--fs-small); margin-bottom: 0.75rem; }

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  margin-bottom: 1rem;
}
.quantity input[type='number'] {
  width: 4.5rem;
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 0.85rem 0.5rem;
  -moz-appearance: textfield;
}
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity label { display: none; }

.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.125rem;
  padding: 0.85rem 1.85rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--camel);
  color: var(--on-camel);
  font-family: var(--body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover { background: var(--camel-ink); color: var(--on-camel); }

.single_add_to_cart_button { width: 100%; }
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
  /* Not dimmed: a dimmed pill drops the label to ~1.8:1. This state keeps
     the label readable while clearly reading as unavailable. */
  background: var(--paper-2);
  color: var(--ink-55);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed;
}
.woocommerce button.button:disabled:hover,
.single_add_to_cart_button.disabled:hover {
  background: var(--paper-2);
  color: var(--ink-55);
}

.stock.out-of-stock { color: #8c3b1c; font-size: var(--fs-small); }
.stock.in-stock { color: var(--camel-ink); font-size: var(--fs-small); }

.product-info__assurance {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--ink-55);
}
.product-info__assurance li { margin-bottom: 0.5rem; }
.product-info__assurance a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- archive toolbar ---------- */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.woocommerce-result-count {
  margin: 0;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.woocommerce-ordering select { width: auto; min-width: 15rem; }

/* ---------- cart ---------- */

.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.shop_table th {
  text-align: left;
  font-family: var(--body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 0 0.85rem 1rem 0;
  border-bottom: 1px solid var(--ink);
}
.shop_table td {
  padding: 1.25rem 0.85rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.shop_table .product-thumbnail img { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; }
.shop_table .product-name a { font-family: var(--display); font-size: var(--fs-h4); }
.shop_table .product-remove a {
  display: inline-flex;
  width: 2rem; height: 2rem;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 1rem;
  line-height: 1;
}
.shop_table .product-remove a:hover { border-color: var(--ink); }
.shop_table td.actions { padding-top: 1.75rem; border-bottom: 0; }

.cart-collaterals { margin-top: var(--block); }
.cart_totals h2 { font-size: var(--fs-h3); }
.cart_totals table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.cart_totals th,
.cart_totals td { padding: 0.9rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.cart_totals td { text-align: right; font-variant-numeric: tabular-nums; }
.wc-proceed-to-checkout { padding-top: var(--stack); }
.wc-proceed-to-checkout .button { width: 100%; }
.coupon { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.coupon input { max-width: 16rem; }

.cart-empty-shell { padding-block: var(--block); text-align: center; }

/* ---------- checkout ---------- */

.woocommerce-checkout .checkout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
  row-gap: var(--stack);
}
#customer_details { grid-column: 1 / span 7; grid-row: 1 / span 2; }
#order_review_heading {
  grid-column: 9 / span 4;
  grid-row: 1;
  margin-bottom: 1rem;
  font-size: var(--fs-h4);
}
#order_review { grid-column: 9 / span 4; grid-row: 2; align-self: start; }

/* WooCommerce floats the two checkout halves; stack them instead so the
   fields get the full column width. */
#customer_details .col-1,
#customer_details .col-2 { width: 100%; float: none; }
#customer_details .col-2 { margin-top: var(--stack); }
#customer_details::after { content: ''; display: table; clear: both; }

@media (max-width: 1000px) {
  #customer_details,
  #order_review_heading,
  #order_review { grid-column: 1 / -1; grid-row: auto; }
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 { font-size: var(--fs-h4); margin-bottom: 1.25rem; }

.form-row { margin-bottom: 1.15rem; }
.form-row label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 0.55rem;
}
.form-row .required { color: var(--camel-ink); text-decoration: none; }
.woocommerce form .form-row-first,
.woocommerce form .form-row-last { width: calc(50% - 0.5rem); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .clear { clear: both; }

#order_review {
  background: var(--paper-2);
  padding: clamp(1.35rem, 1rem + 1.2vw, 2rem);
}
#order_review .shop_table th { border-bottom-color: var(--ink); }
#order_review .shop_table td { border-bottom-color: var(--line); text-align: right; font-variant-numeric: tabular-nums; }
#order_review .shop_table td.product-name { text-align: left; }
.wc_payment_methods { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.wc_payment_method label { font-size: var(--fs-small); text-transform: none; letter-spacing: 0; color: var(--ink); }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-micro); margin-bottom: 1.25rem; }
#place_order { width: 100%; }

/* ---------- my account ---------- */

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 var(--stack); padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.woocommerce-MyAccount-navigation a {
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.woocommerce-form-login,
.woocommerce-form-register { max-width: 32rem; }
.woocommerce-form-login__rememberme { font-size: var(--fs-small); }

/* ---------- related ---------- */

.related > h2,
.up-sells > h2 { font-size: var(--fs-h3); margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

/* price formatting everywhere */
.woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
.price del { color: var(--ink-40); }
.price ins { text-decoration: none; color: var(--camel-ink); }

/* ---------- cart collaterals: policies left, totals right ---------- */

.cart-collaterals {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
  row-gap: var(--stack);
  align-items: start;
}
.cart-aside { grid-column: 1 / span 6; }
.cart-collaterals .cart_totals { grid-column: 8 / span 5; width: auto; float: none; }

.cart-aside__list { margin: 0; }
.cart-aside__list dt {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.cart-aside__list dt a { text-decoration: underline; text-underline-offset: 3px; }
.cart-aside__list dd {
  margin: 0.4rem 0 1.25rem;
  font-size: var(--fs-small);
  color: var(--ink-70);
  max-width: 46ch;
}

@media (max-width: 1000px) {
  .cart-aside,
  .cart-collaterals .cart_totals { grid-column: 1 / -1; }
}

/* WooCommerce renders the shipping choices as a list; kill the bullets. */
#shipping_method,
.woocommerce-shipping-methods,
ul.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
#shipping_method li,
.woocommerce-shipping-methods li { margin: 0 0 0.35rem; }
.woocommerce-shipping-destination { font-size: var(--fs-micro); color: var(--ink-55); }
.shipping-calculator-button { text-decoration: underline; text-underline-offset: 2px; font-size: var(--fs-micro); }
.cart_totals .woocommerce-Price-amount { font-weight: 500; }
.cart_totals tr.order-total td { font-size: var(--fs-lead); }

/* cart table column rhythm */
.woocommerce-cart-form__contents { table-layout: fixed; }
.woocommerce-cart-form__contents th.product-remove,
.woocommerce-cart-form__contents td.product-remove { width: 3.25rem; }
.woocommerce-cart-form__contents th.product-thumbnail,
.woocommerce-cart-form__contents td.product-thumbnail { width: 6.5rem; }
.woocommerce-cart-form__contents th.product-price,
.woocommerce-cart-form__contents td.product-price,
.woocommerce-cart-form__contents th.product-subtotal,
.woocommerce-cart-form__contents td.product-subtotal { width: 8rem; text-align: right; }
.woocommerce-cart-form__contents th.product-quantity,
.woocommerce-cart-form__contents td.product-quantity { width: 9rem; }
.woocommerce-cart-form__contents td.product-name { padding-left: 0.25rem; }
.woocommerce-cart-form__contents td.product-name .variation {
  margin: 0.35rem 0 0;
  font-size: var(--fs-micro);
  color: var(--ink-55);
}
.woocommerce-cart-form__contents td.product-name .variation dt,
.woocommerce-cart-form__contents td.product-name .variation dd { display: inline; margin: 0; }
.shop_table td.actions { text-align: right; }
.shop_table td.actions .button { margin-left: auto; }
.cart-collaterals { margin-top: calc(var(--stack) * 1.5); }
