/*
 * WooCommerce styling.
 *
 * WooCommerce's own stylesheets stay loaded so nothing on an obscure screen is
 * left unstyled; this file layers the INORA design over them.
 */

.woo-wrap { padding-block: var(--section-y); }

/* ---- Notices ------------------------------------------------------------ */

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--c-cream);
  border: 0;
  border-left: 2px solid var(--c-gold);
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-size: var(--t-small);
  color: var(--c-ink);
  list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }

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

.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  background: var(--c-olive);
  color: var(--c-ivory);
  padding: 0.6rem var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* WooCommerce buttons inherit the theme button. */

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem var(--s-8);
  background: var(--c-olive);
  color: var(--c-ivory);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: 1;
  transition: background var(--dur) var(--ease);
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--c-olive-deep);
  color: var(--c-ivory);
}

/*
 * WooCommerce paints its primary buttons purple through selectors as specific
 * as these, so the overrides have to match them selector for selector rather
 * than rely on a shorter `.button.alt` rule.
 */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  background-color: var(--c-olive);
  color: var(--c-ivory);
  border-color: transparent;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
  background-color: var(--c-olive-deep);
  color: var(--c-ivory);
}

/* Disabled buttons must still read as buttons - the update-cart control sits
   disabled until a quantity changes, and an unlabelled grey slab looks broken. */
.woocommerce .button:disabled,
.woocommerce .button[disabled],
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled {
  padding: 0.95rem var(--s-8);
  background-color: var(--c-sand);
  color: var(--c-muted);
  opacity: 1;
  cursor: not-allowed;
}

/* ---- Product card -------------------------------------------------------- */

.product-card { position: relative; }

.product-card__media {
  position: relative;
  margin-bottom: var(--s-4);
  overflow: hidden;
}

.badges {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}

/* The add-to-cart button slides up over the image on hover, and is always
   visible on touch devices where hover does not exist. */

.product-card__action {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product-card:hover .product-card__action,
.product-card:focus-within .product-card__action {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .product-card__action { opacity: 1; transform: none; }
}

.product-card__action .button,
.product-card__action a.button,
.product-card__btn {
  display: flex;
  width: 100%;
  padding: 0.75rem var(--s-4);
  background: var(--c-ivory);
  color: var(--c-olive);
  font-size: var(--t-nano);
  letter-spacing: var(--ls-wide);
  box-shadow: var(--shadow-sm);
}

.product-card__action .button:hover,
.product-card__action a.button:hover {
  background: var(--c-olive);
  color: var(--c-ivory);
}

.product-card__action .added_to_cart { display: none; }

.product-card__body { text-align: center; }

.product-card__title {
  margin: 0 0 var(--s-1);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.4;
}

.product-card__price {
  font-family: var(--f-display);
  font-size: var(--t-body);
  color: var(--c-ink);
}

.product-card__price del {
  margin-right: var(--s-2);
  color: var(--c-faint);
  text-decoration-thickness: 1px;
}

.product-card__price ins {
  background: none;
  color: var(--c-sale);
  text-decoration: none;
}

/* ---- Wishlist -------------------------------------------------------------- */

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.wishlist-btn svg { transition: transform var(--dur) var(--ease-out); }

/* Icon form: floats over the product card image. */
.wishlist-btn--icon {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 3;
  width: 34px;
  height: 34px;
  background: rgba(250, 248, 243, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.wishlist-btn--icon .wishlist-btn__label { display: none; }
.wishlist-btn--icon:hover { color: var(--c-gold); }

/* Inline form: sits under the add-to-cart button on the product page. */
.wishlist-btn--inline {
  margin-bottom: var(--s-4);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.wishlist-btn--inline:hover { color: var(--c-gold); }

/* Saved state. The heart fills rather than just changing colour, so the
   difference is legible without relying on colour alone. */
.wishlist-btn.is-saved { color: var(--c-gold); }
.wishlist-btn.is-saved svg { fill: currentColor; transform: scale(1.08); }

.wishlist-count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold);
  color: var(--c-white);
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
}

.wishlist-count[hidden] { display: none; }
.icon-btn--wishlist { position: relative; }

.wishlist-empty { padding-block: var(--s-16); }
.wishlist-empty p { margin-bottom: var(--s-5); }

/* ---- Star ratings --------------------------------------------------------- */

.product-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
}

.woocommerce .star-rating {
  float: none;
  font-size: 0.8em;
  width: 5.4em;
  height: 1.4em;
  line-height: 1.4;
  color: var(--c-gold);
  overflow: hidden;
}

.woocommerce .star-rating::before { color: var(--c-line); }

.product-card__rating-count {
  font-family: var(--f-ui);
  font-size: var(--t-nano);
  color: var(--c-faint);
}

.woocommerce div.product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link {
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  color: var(--c-muted);
}

/* Reviews list and form */

.woocommerce #reviews #comments h2 {
  font-size: var(--t-h4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.woocommerce #reviews ol.commentlist { padding: 0; }

.woocommerce #reviews ol.commentlist li .comment-text {
  margin-left: 72px;
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.woocommerce #reviews ol.commentlist li img.avatar {
  width: 52px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: none;
}

.woocommerce #review_form .comment-form-rating label,
.woocommerce #review_form .comment-reply-title {
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

.stock-nudge {
  margin: var(--s-2) 0 0;
  font-family: var(--f-ui);
  font-size: var(--t-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-sale);
}

/* WooCommerce's own list wrapper becomes our grid. */

.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--s-8) var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

/* WooCommerce sets the column count as a class on the list. */
ul.products.columns-1 { --cols: 1; }
ul.products.columns-2 { --cols: 2; }
ul.products.columns-3 { --cols: 3; }
ul.products.columns-4 { --cols: 4; }
ul.products.columns-5 { --cols: 5; }
ul.products.columns-6 { --cols: 6; }

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Pagination. WooCommerce and paginate_links( 'list' ) both emit
   ul.page-numbers, which the theme's .pagination rules do not reach. */

.woocommerce nav.woocommerce-pagination,
.woo-wrap ul.page-numbers {
  margin-top: var(--s-12);
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
.woo-wrap ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin: var(--s-12) 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li,
.woo-wrap ul.page-numbers li {
  margin: 0;
  border: 0;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woo-wrap ul.page-numbers li a,
.woo-wrap ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-2);
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-size: var(--t-small);
  color: var(--c-muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woo-wrap ul.page-numbers li a:hover,
.woo-wrap ul.page-numbers li span.current {
  background: var(--c-olive);
  border-color: var(--c-olive);
  color: var(--c-ivory);
}

/* ---- Shop toolbar --------------------------------------------------------- */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-8);
  border-bottom: 1px solid var(--c-line);
}

.woocommerce .woocommerce-result-count {
  margin: 0;
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.woocommerce .woocommerce-ordering { margin: 0; }

.woocommerce .woocommerce-ordering select {
  width: auto;
  min-width: 210px;
  padding-block: 0.6rem;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Category / collection chips above the grid. */

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}

.shop-filters__chip {
  padding: 0.5rem var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  transition: all var(--dur-fast) var(--ease);
}

.shop-filters__chip:hover,
.shop-filters__chip.is-active {
  background: var(--c-olive);
  border-color: var(--c-olive);
  color: var(--c-ivory);
}

/* ---- Single product -------------------------------------------------------- */

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/*
 * WooCommerce floats the gallery and summary at 48% each for its own two-column
 * layout. The grid above already handles the columns, so both are reset to full
 * width. `div.images` is matched explicitly because WooCommerce's own selector
 * for it outranks a single class.
 */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.images {
  width: 100%;
  margin: 0;
  float: none;
}

.woocommerce div.product .summary,
.woocommerce div.product div.summary {
  width: 100%;
  margin: 0;
  float: none;
}

/* Tabs, related products and upsells sit below both columns. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.woocommerce div.product .product_meta { grid-column: 1 / -1; }

.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--radius); }

.woocommerce div.product .product_title {
  margin: 0 0 var(--s-2);
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.15;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 0 0 var(--s-4);
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 400;
  color: var(--c-ink);
}

.woocommerce div.product p.price del { color: var(--c-faint); font-size: 0.75em; }
.woocommerce div.product p.price ins { background: none; color: var(--c-sale); text-decoration: none; }

.woocommerce div.product .woocommerce-product-details__short-description {
  margin-bottom: var(--s-5);
  color: var(--c-muted);
  line-height: 1.85;
}

.lead-time,
.woocommerce div.product .lead-time {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-family: var(--f-ui);
  font-size: var(--t-small);
  color: var(--c-muted);
}

.lead-time svg { color: var(--c-gold); flex: none; }

/* Quantity stepper */

.qty,
.woocommerce div.product form.cart div.quantity {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  float: none;
  margin: 0;
}

.qty__btn {
  width: 40px;
  background: var(--c-cream);
  border: 0;
  color: var(--c-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease);
}

.qty__btn:hover { background: var(--c-sand); }

.woocommerce div.product form.cart div.quantity input.qty,
.qty__input {
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-family: var(--f-ui);
  font-size: var(--t-small);
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.woocommerce div.product form.cart .button {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding-block: 0;
}

.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: var(--s-4); width: 100%; }
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { padding: var(--s-2) 0; border: 0; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

/* Assurances */

.assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-4);
  margin: var(--s-5) 0;
  padding: var(--s-5) 0;
  border-block: 1px solid var(--c-line);
  list-style: none;
}

.assurances li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-family: var(--f-ui);
  font-size: var(--t-small);
  font-weight: 300;
  color: var(--c-muted);
}

.assurances svg { color: var(--c-gold); flex: none; }

/* Accordion */

.accordion { margin-top: var(--s-5); }

.accordion__item { border-bottom: 1px solid var(--c-line); }
.accordion__item:first-child { border-top: 1px solid var(--c-line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-4) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-ink);
}

.accordion__trigger svg {
  flex: none;
  color: var(--c-muted);
  transition: transform var(--dur) var(--ease);
}

.accordion__item.is-open .accordion__trigger svg { transform: rotate(180deg); }

.accordion__panel {
  padding-bottom: var(--s-4);
  font-size: var(--t-small);
  line-height: 1.8;
  color: var(--c-muted);
}

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

/* Meta, tabs, related */

.woocommerce div.product .product_meta {
  padding-top: var(--s-5);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  color: var(--c-muted);
}

.woocommerce div.product .woocommerce-tabs { margin-top: var(--s-16); }

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: var(--s-6);
  margin: 0 0 var(--s-6);
  padding: 0 0 var(--s-3);
  border-bottom: 1px solid var(--c-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 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 {
  padding: 0;
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--c-ink); }

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
  margin-bottom: var(--s-8);
  font-size: var(--t-h3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  text-align: center;
}

.woocommerce .related, .woocommerce .upsells { margin-top: var(--s-16); }

/* ---- Cart ------------------------------------------------------------------ */

.woocommerce table.shop_table {
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
}

.woocommerce table.shop_table th {
  padding: 0 var(--s-3) var(--s-3);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-ui);
  font-size: var(--t-nano);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

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

.woocommerce table.cart img,
.woocommerce-cart table.cart img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius);
}

.woocommerce a.remove {
  width: 26px;
  height: 26px;
  line-height: 24px;
  color: var(--c-muted) !important;
  font-weight: 300;
  border: 1px solid var(--c-line);
  border-radius: 50%;
}

.woocommerce a.remove:hover {
  background: var(--c-sale) !important;
  border-color: var(--c-sale);
  color: var(--c-white) !important;
}

.woocommerce-cart-form__cart-item .product-name a {
  font-family: var(--f-display);
  font-size: var(--t-lead);
}

/* Woo floats the totals panel at 48%; a flex row places it without the float. */
.woocommerce .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: var(--s-10);
}

.woocommerce .cart-collaterals .cross-sells { display: none; }

.woocommerce .cart_totals {
  float: none;
  width: min(440px, 100%);
  padding: var(--s-6);
  background: var(--c-cream);
  border-radius: var(--radius);
}

.woocommerce .cart_totals h2 {
  margin-bottom: var(--s-4);
  font-size: var(--t-h4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

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

.woocommerce .cart_totals .order-total .amount { font-size: var(--t-h4); }
.woocommerce .wc-proceed-to-checkout { padding-top: var(--s-5); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; }

.woocommerce .coupon { display: flex; gap: var(--s-2); }
.woocommerce .coupon #coupon_code { width: auto; min-width: 180px; }

/* Free-shipping progress */

.ship-progress {
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--c-cream);
  border-radius: var(--radius);
  font-family: var(--f-ui);
  font-size: var(--t-small);
  color: var(--c-ink);
}

.ship-progress p { margin: 0 0 var(--s-2); }
.ship-progress--met { color: var(--c-success); }

.ship-progress__bar {
  height: 4px;
  background: var(--c-sand);
  border-radius: 999px;
  overflow: hidden;
}

.ship-progress__bar span {
  display: block;
  height: 100%;
  background: var(--c-gold);
  transition: width var(--dur-slow) var(--ease);
}

/* ---- Mini cart (drawer) ------------------------------------------------------ */

/*
 * The theme supplies its own mini-cart markup (woocommerce/cart/mini-cart.php),
 * grouping each row into media / body / remove. WooCommerce's default emits
 * those parts as flat siblings arranged with floats, which collapses into an
 * unreadable pile at drawer width.
 */

.mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-cart__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 26px;
  gap: var(--s-4);
  align-items: start;
  margin: 0;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-line);
}

.mini-cart__media { display: block; }

.mini-cart__media img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  margin: 0;
  float: none;
  border-radius: var(--radius);
}

.mini-cart__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mini-cart__title {
  font-family: var(--f-display);
  font-size: var(--t-body);
  line-height: 1.35;
  color: var(--c-ink);
}

.mini-cart__title:hover { color: var(--c-gold); }

/* Item meta such as the dispatch estimate: one quiet line, not a table. */
.mini-cart__meta,
.mini-cart__meta p,
.mini-cart__meta dl,
.mini-cart__meta dt,
.mini-cart__meta dd {
  display: inline;
  margin: 0;
  padding: 0;
  float: none;
  font-family: var(--f-ui);
  font-size: var(--t-nano);
  line-height: 1.5;
  color: var(--c-faint);
}

.mini-cart__meta dt { font-weight: 400; }
.mini-cart__meta dt::after { content: ' '; }
.mini-cart__meta dd::after { content: ''; }

.mini-cart__qty {
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  color: var(--c-muted);
}

.mini-cart__remove.remove {
  width: 24px;
  height: 24px;
  line-height: 22px;
  font-size: 15px;
  justify-self: end;
}

.mini-cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin: 0;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

/* WooCommerce wraps the label in <strong> and the figure in .amount, so only
   the figure gets the display treatment - the label stays a quiet caption. */
.mini-cart__total strong {
  font-weight: 400;
  color: var(--c-muted);
}

.mini-cart__total .amount {
  font-family: var(--f-display);
  font-size: var(--t-h4);
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink);
}

/*
 * The drawer lives outside the .woocommerce wrapper, so WooCommerce's own
 * `.woocommerce .button` rules never reach it. These buttons are styled
 * directly rather than inheriting.
 */
.mini-cart__buttons {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
}

.mini-cart__buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem var(--s-6);
  border: 1px solid var(--c-olive);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-olive);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  line-height: 1;
  text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mini-cart__buttons .button:hover {
  background: var(--c-cream);
  color: var(--c-olive);
}

.mini-cart__buttons .button.checkout {
  background: var(--c-olive);
  border-color: var(--c-olive);
  color: var(--c-ivory);
}

.mini-cart__buttons .button.checkout:hover {
  background: var(--c-olive-deep);
  color: var(--c-ivory);
}

.mini-cart__empty {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-16) 0;
  text-align: center;
  color: var(--c-muted);
}

.mini-cart__empty svg { color: var(--c-line); }
.mini-cart__empty p { margin: 0; }

/* ---- Checkout ----------------------------------------------------------------- */

.woocommerce-checkout .woo-wrap > .container { max-width: var(--container); }

.woocommerce form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  /* Row 1 hugs the "Your order" heading. Without this the tall billing column
     spanning both rows inflates row 1 and drops the summary panel far down. */
  grid-template-rows: min-content auto;
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Explicit rows, otherwise the order summary heading and table land in
   different grid rows and a tall gap opens between them. */
.woocommerce form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}

.woocommerce form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
.woocommerce form.checkout #order_review { grid-column: 2; grid-row: 2; min-width: 0; }

/*
 * WooCommerce floats billing and shipping side by side at 48% each. Inside our
 * grid column that squeezes every field to a sliver, so the float layout is
 * unwound and the fields stack.
 */
.woocommerce form.checkout .col2-set { display: block; width: 100%; }

.woocommerce form.checkout .col2-set .col-1,
.woocommerce form.checkout .col2-set .col-2 {
  width: 100%;
  float: none;
  margin: 0 0 var(--s-8);
}

/* First/last name sit side by side via grid rather than Woo's 47% floats. */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-4);
}

.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; }

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  width: 100%;
  float: none;
  margin-right: 0;
}

.woocommerce-billing-fields__field-wrapper > .form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }

.woocommerce-billing-fields__field-wrapper > .form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }

.woocommerce form.checkout #order_review_heading {
  margin: 0 0 var(--s-4);
  font-size: var(--t-h4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.woocommerce form.checkout #order_review {
  padding: var(--s-6);
  background: var(--c-cream);
  border-radius: var(--radius);
}

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-shipping-fields h3 {
  margin-bottom: var(--s-4);
  font-size: var(--t-h4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.woocommerce form .form-row {
  margin: 0 0 var(--s-4);
  padding: 0;
}

.woocommerce form .form-row label {
  margin-bottom: var(--s-2);
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

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

.woocommerce .select2-container--default .select2-selection--single {
  height: auto;
  padding: 0.5rem var(--s-2);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: var(--f-ui);
  font-size: var(--t-small);
  line-height: 1.9;
  color: var(--c-ink);
}

.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 0;
  border-bottom: 1px solid var(--c-line);
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-bottom: var(--s-2);
  list-style: none;
  font-family: var(--f-ui);
  font-size: var(--t-small);
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--c-ivory);
  border-radius: var(--radius);
  font-size: var(--t-small);
  color: var(--c-muted);
}

.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--c-ivory); }
.woocommerce-checkout #payment div.form-row { padding: var(--s-5) 0 0; }
.woocommerce-checkout #payment #place_order { display: flex; width: 100%; }

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: var(--t-small);
  color: var(--c-muted);
}

/* Order received */

.woocommerce .woocommerce-order {
  max-width: 760px;
  margin-inline: auto;
}

.woocommerce ul.order_details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin: 0 0 var(--s-8);
  padding: var(--s-5);
  background: var(--c-cream);
  border-radius: var(--radius);
  list-style: none;
}

.woocommerce ul.order_details li {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--f-ui);
  font-size: var(--t-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

.woocommerce ul.order_details li strong {
  display: block;
  margin-top: var(--s-1);
  font-family: var(--f-display);
  font-size: var(--t-lead);
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-ink);
}

/* ---- My account ------------------------------------------------------------------ */

/*
 * Only the signed-in dashboard is a two-column layout. Scoped to the body
 * class rather than applied to every account view, because the sign-in screen
 * has no sidebar and would otherwise be squeezed into the 240px column.
 */
.is-account-dashboard .woocommerce {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/*
 * WooCommerce puts three children inside .woocommerce: the notices, the
 * navigation and the content. Without explicit placement the notices consume
 * the sidebar cell, the navigation slides into the content cell, and the
 * content is pushed onto a second row.
 */
.is-account-dashboard .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

/*
 * WooCommerce also sets width:30% / 68% and floats on these two for its own
 * layout. Inside a grid the floats are ignored but the widths are not, which
 * squeezes the sidebar to a third of its column and wraps every link.
 */
.is-account-dashboard .woocommerce-MyAccount-navigation {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  float: none;
}

.is-account-dashboard .woocommerce-MyAccount-content {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  float: none;
}

/* ---- Sign in / register ------------------------------------------------- */

.is-account-login .woocommerce { max-width: 940px; margin-inline: auto; }

.woocommerce #customer_login.col2-set,
.woocommerce-page #customer_login.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/*
 * Placed explicitly. WooCommerce emits a notices wrapper as the first child of
 * this container, which otherwise takes cell one and pushes Login into the
 * right column with Register onto a second row.
 */
.woocommerce #customer_login > .col-1,
.woocommerce #customer_login > .col-2 {
  width: 100%;
  float: none;
  margin: 0;
  grid-row: 2;
}

.woocommerce #customer_login > .col-1 { grid-column: 1; }
.woocommerce #customer_login > .col-2 { grid-column: 2; }

/* Anything else WooCommerce puts in here spans the full width above them. */
.woocommerce #customer_login > *:not(.col-1):not(.col-2) {
  grid-column: 1 / -1;
  grid-row: 1;
}

.woocommerce #customer_login h2 {
  margin-bottom: var(--s-5);
  font-size: var(--t-h4);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* When registration is switched off there is only one column to centre. */
.woocommerce #customer_login .col-2:empty { display: none; }

.woocommerce-account .woocommerce-form-login__rememberme,
.woocommerce-account .woocommerce-LostPassword {
  font-family: var(--f-ui);
  font-size: var(--t-small);
}

.woocommerce-account .woocommerce-LostPassword { margin-top: var(--s-3); }
.woocommerce-account .woocommerce-privacy-policy-text { font-size: var(--t-small); color: var(--c-muted); }

/* ---- Dashboard ----------------------------------------------------------- */

.account-hello {
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--c-line);
}

.account-hello h2 {
  margin-bottom: var(--s-2);
  font-size: var(--t-h3);
  font-weight: 300;
}

.account-hello p { margin: 0; color: var(--c-muted); }

.account-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-cream);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}

.account-tile:hover { background: var(--c-sand); color: var(--c-ink); }
.account-tile svg { color: var(--c-gold); }

.account-tile__title {
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.account-tile__meta { font-size: var(--t-small); color: var(--c-muted); }

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  border-bottom: 1px solid var(--c-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: var(--s-3) 0;
  font-family: var(--f-ui);
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--c-muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--c-ink); }

.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }

.woocommerce form.login,
.woocommerce form.register {
  padding: var(--s-6);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

/* ---- Sticky add-to-cart ------------------------------------------------------------- */

.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--c-ivory);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -6px 24px rgba(51, 58, 38, 0.08);
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease-out);
  padding-block: var(--s-3);
}

.sticky-atc[hidden] { display: none; }
.sticky-atc.is-visible { transform: translateY(0); }

.sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.sticky-atc__media {
  flex: none;
  width: 52px;
}

.sticky-atc__media .frame { --ratio: 1 / 1; }

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

.sticky-atc__title {
  font-family: var(--f-display);
  font-size: var(--t-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-atc__price { font-size: var(--t-small); color: var(--c-muted); }
.sticky-atc__price del { display: none; }

.sticky-atc__btn {
  flex: none;
  min-width: 190px;
}

.sticky-atc .added_to_cart { display: none; }

@media (max-width: 600px) {
  .sticky-atc__media { display: none; }
  .sticky-atc__btn { min-width: 0; flex: 1; }
  .sticky-atc__info { flex: 1; }
}

/* ---- Responsive --------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce ul.products { --cols: 3; }
}

@media (max-width: 900px) {
  .woocommerce form.checkout { grid-template-columns: 1fr; }
  .woocommerce form.checkout #customer_details,
  .woocommerce form.checkout #order_review_heading,
  .woocommerce form.checkout #order_review { grid-column: 1; }

  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .woocommerce ul.products { --cols: 2; gap: var(--s-6) var(--s-4); }
  .assurances { grid-template-columns: 1fr; }

  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td { text-align: right; }

  .woocommerce table.shop_table_responsive tr td.product-remove { text-align: left; }
  .shop-toolbar { gap: var(--s-3); }
  .woocommerce .woocommerce-ordering select { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .woocommerce div.product form.cart { flex-direction: column; align-items: stretch; }
  .woocommerce div.product form.cart .button { width: 100%; }
  .qty, .woocommerce div.product form.cart div.quantity { align-self: flex-start; }
}
