/* ============================================================
   SPINA × WooCommerce
   ============================================================
   WooCommerce's base stylesheet stays loaded — it carries the form,
   notice and my-account scaffolding that would otherwise have to be
   rebuilt from nothing. This sheet maps those components onto the SPINA
   palette and spacing, so the cart and checkout read as the same site
   as the rest of the store rather than as a plugin bolted on.

   Everything here is an override of a woo class. Anything SPINA owns
   outright lives in spina.css.
   ============================================================ */

/* ---------- buttons ---------- */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  background: var(--brand-deep);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
.woocommerce #respond input#submit:hover,
.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{
  background: var(--teal-600);
  color: var(--white);
  transform: translateY(-1px);
}
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled]{
  background: var(--sand-3);
  color: var(--muted);
  transform: none;
}

/* ---------- forms ---------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single{
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .8rem .9rem;
  height: auto;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.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(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.woocommerce form .form-row label{
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-2);
  margin-bottom: .35rem;
}
.woocommerce form .form-row .required{ color: var(--danger); text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text{
  border-color: var(--danger);
}

/* The select2 dropdown WooCommerce uses for country/state. */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 1.4; color: var(--ink); padding: 0;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow{
  inset-inline-end: .6rem; inset-inline-start: auto; height: 100%;
}

/* ---------- notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments{
  font-family: inherit;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-top-width: 3px;
  background: var(--sand);
  color: var(--ink-2);
  padding: 1rem 1.2rem;
}
.woocommerce-message{ border-top-color: var(--green); }
.woocommerce-info{ border-top-color: var(--teal-500); }
.woocommerce-error{ border-top-color: var(--danger); background: var(--danger-soft); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{ display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{ padding-inline-start: 1.2rem; }

/* ---------- cart page ---------- */
.woocommerce table.shop_table{
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.woocommerce table.shop_table th{
  background: var(--sand-2);
  color: var(--ink-2);
  font-weight: 700;
  font-size: .85rem;
  padding: .9rem 1rem;
}
.woocommerce table.shop_table td{
  padding: 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.woocommerce table.shop_table img{ width: 64px; border-radius: var(--r-sm); }
.woocommerce a.remove{
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.woocommerce a.remove:hover{ background: var(--danger); color: var(--white); }

.woocommerce .quantity .qty{
  width: 4.2rem;
  padding: .55rem .4rem;
  text-align: center;
  font: inherit;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
}

.cart_totals h2,
.woocommerce-checkout-review-order h2{ font-size: 1.15rem; margin-bottom: .8rem; }

/* ---------- shipping rates: the catalogue's two options ---------- */
#shipping_method{ list-style: none; margin: 0; padding: 0; }
#shipping_method li{
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--line);
}
#shipping_method li:last-child{ border-bottom: 0; }
#shipping_method label{ font-weight: 600; color: var(--ink); cursor: pointer; }
#shipping_method .amount{ margin-inline-start: auto; font-weight: 800; }
.ship-eta{
  display: block;
  font-weight: 400;
  font-size: .8rem;
  color: var(--ink-3);
}
.spina-pickup-note{
  margin: .4rem 0 0;
  font-size: .82rem;
  color: var(--ink-3);
  background: var(--sand-2);
  border-radius: var(--r-sm);
  padding: .55rem .7rem;
}

/* ---------- checkout ---------- */
.woocommerce-checkout .col2-set{ display: grid; gap: var(--sp-5); }
@media (min-width: 900px){
  .woocommerce-checkout .col2-set{ grid-template-columns: 1fr 1fr; }
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2{ width: auto; float: none; }

#order_review,
#customer_details{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
#order_review{ position: sticky; top: calc(var(--header-h, 72px) + 1rem); }
@media (max-width: 900px){ #order_review{ position: static; } }

.woocommerce-checkout #payment{
  background: transparent;
  border-radius: 0;
}
.woocommerce-checkout #payment ul.payment_methods{
  border-bottom: 1px solid var(--line);
  padding: 0 0 1rem;
}
.woocommerce-checkout #payment div.form-row{ padding: 1rem 0 0; }
.woocommerce-checkout #payment div.payment_box{
  background: var(--sand-2);
  color: var(--ink-2);
  font-size: .88rem;
  border-radius: var(--r-sm);
}
.woocommerce-checkout #payment div.payment_box::before{ display: none; }

/* The pre-order disclosure required before the buyer commits. */
.disclosure{
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.disclosure h3{ font-size: .95rem; margin: 0 0 .5rem; }
.disclosure ul{ margin: 0; padding-inline-start: 1.1rem; }
.disclosure li{ font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; line-height: 1.55; }

/* ---------- my account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation{ width: 100%; float: none; margin-bottom: var(--sp-5); }
.woocommerce-account .woocommerce-MyAccount-content{ width: 100%; float: none; }
@media (min-width: 900px){
  .woocommerce-account .woocommerce{ display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-6); }
  .woocommerce-account .woocommerce-MyAccount-navigation{ margin-bottom: 0; }
}
.woocommerce-MyAccount-navigation ul{ list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li{ border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a{
  display: block;
  padding: .75rem .2rem;
  color: var(--ink-2);
  font-weight: 600;
}
.woocommerce-MyAccount-navigation li.is-active a{ color: var(--teal-600); }

/* ---------- search results in the overlay ---------- */
.search-hit{
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .65rem .4rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.search-hit:last-child{ border-bottom: 0; }
.search-hit:hover{ background: var(--sand-2); border-radius: var(--r-sm); }
.search-thumb img{ width: 54px; height: 54px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.search-info b{ display: block; font-size: .95rem; }
.search-info small{ color: var(--ink-3); font-size: .8rem; }
.search-price{ font-weight: 800; white-space: nowrap; }
.search-note{ color: var(--ink-3); font-size: .9rem; padding: .6rem .4rem; }

/* ---------- things SPINA does without ---------- */
.woocommerce .star-rating,
.woocommerce .woocommerce-product-rating,
.woocommerce #reviews,
.woocommerce .comment-form-rating{ display: none !important; }

/* WooCommerce's own grid is dequeued, but a stray breadcrumb or result
   count from a plugin should not reintroduce one. */
.woocommerce .woocommerce-breadcrumb{ display: none; }

/* ---------- a busy add button ---------- */
button.add.is-busy{ opacity: .55; pointer-events: none; }

/* Cart, checkout and account pages sit in the full content width. */
.store-page{max-width:none}

/* WooCommerce wraps the sale price in <ins>; the struck "was" price beside
   it already says it's a discount, so no underline. */
.price ins, .pdp-price ins{ text-decoration: none; }

/* ---------- store card prices, from WooCommerce markup ----------
   get_price_html() writes <del>was</del> <ins>now</ins>. The static site
   writes now first, then was; order:-1 puts WooCommerce's sale price in
   the same place so the cards read identically. */
.prod .price{display:flex; align-items:baseline; gap:.5rem; flex-wrap:wrap}
.prod .price ins{order:-1; text-decoration:none; font-weight:900; font-size:1.35rem; color:var(--ink)}
.prod .price del{color:var(--muted); font-size:.9rem}
.prod .price > .amount, .prod .price > .woocommerce-Price-amount{font-weight:900; font-size:1.35rem}
@media(max-width:600px){
  .prod .price ins, .prod .price > .woocommerce-Price-amount{font-size:1.05rem}
  .prod .price del{font-size:.74rem}
}

/* wc_price() wraps the amount in its own spans; keep "עד ₪30" on one line
   inside the seal, as on the static site. */
.shero-seal b{white-space:nowrap}
.shero-seal .woocommerce-Price-amount, .shero-item .tag .woocommerce-Price-amount{font:inherit}

/* ---------- cart + order review on phones ----------
   WooCommerce's own small-screen sheet is not loaded (functions.php trims
   it), so on a phone the six-column cart table was wider than the screen.
   Each line becomes a card: image, name, remove; price; quantity, total. */
@media (max-width: 768px){
  .woocommerce-cart-form table.shop_table{ display: block; border: 0; border-radius: 0; overflow: visible; }
  .woocommerce-cart-form table.shop_table thead{ display: none; }
  .woocommerce-cart-form table.shop_table tbody{ display: block; }
  .woocommerce-cart-form tr.cart_item{
    display: grid; grid-template-columns: 72px minmax(0,1fr) auto;
    grid-template-areas: "thumb name remove" "thumb price price" "thumb qty sub";
    gap: .3rem .8rem; align-items: center;
    padding: .9rem; margin-bottom: .75rem; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-md);
  }
  .woocommerce-cart-form tr.cart_item td{ display: block; padding: 0; border: 0; text-align: start; min-width: 0; }
  .woocommerce-cart-form tr.cart_item td::before{ display: none; }
  .woocommerce-cart-form td.product-thumbnail{ grid-area: thumb; align-self: start; }
  .woocommerce-cart-form td.product-thumbnail img{ width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
  .woocommerce-cart-form td.product-name{ grid-area: name; font-weight: 700; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
  .woocommerce-cart-form td.product-name a{ color: var(--ink); text-decoration: none; }
  .woocommerce-cart-form td.product-remove{ grid-area: remove; align-self: start; }
  .woocommerce-cart-form td.product-price{ grid-area: price; color: var(--muted); font-size: .9rem; }
  .woocommerce-cart-form td.product-quantity{ grid-area: qty; }
  .woocommerce-cart-form td.product-subtotal{ grid-area: sub; font-weight: 800; }
  .woocommerce-cart-form table.shop_table tr:not(.cart_item){ display: block; }
  .woocommerce-cart-form td.actions{ display: block; padding: .4rem 0 0; border: 0; }
  .woocommerce-cart-form td.actions .coupon{ display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
  .woocommerce-cart-form td.actions .coupon .input-text{ flex: 1 1 140px; min-width: 0; }
  .woocommerce-cart-form td.actions .button{ width: 100%; }
  .cart-collaterals, .cart_totals{ width: 100%; float: none; }
  .cart_totals table.shop_table{ width: 100%; }
}
/* order review: never wider than its column */
.woocommerce-checkout-review-order-table{ width: 100%; table-layout: fixed; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td{ overflow-wrap: anywhere; }
.woocommerce-checkout-review-order-table .product-total{ width: 34%; }
@media (max-width: 400px){
  .woocommerce table.shop_table th, .woocommerce table.shop_table td{ padding: .75rem .6rem; }
}

/* ================================================================
   Purchase flow polish (pre-launch review, 25/10/2026)
   ================================================================ */
/* a sale price is not a link: <ins> must not be underlined */
.woocommerce ins, .price ins, .buybar-price ins{ text-decoration: none; }
.buybar-price del{ opacity: .6; font-size: .85em; }
.buybar-name{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* cart thumbnails: square, never stretched */
.woocommerce table.shop_table img{ width: 64px; height: 64px; object-fit: cover; }

/* coupon field matches the other inputs */
.woocommerce .coupon .input-text, #coupon_code{
  height: 48px; padding: 0 1rem; font: inherit; min-width: 0;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white);
}
.woocommerce .coupon .input-text:focus, #coupon_code:focus{ outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
@media (min-width: 769px){ .woocommerce .coupon{ display: flex; gap: .6rem; align-items: center; } .woocommerce .coupon .input-text{ width: 220px; } }

/* Israel only, two fixed rates: no calculator, no "options will be updated" note */
.woocommerce-shipping-calculator, .woocommerce-shipping-destination{ display: none !important; }

/* order review + cart totals: laid out as a grid, not a table. Each row is
   "label | amount"; the shipping row stacks its options under the label at
   full width, so they never squeeze into a one-letter-wide column. */
.woocommerce-checkout-review-order-table,
.cart_totals table.shop_table{ display: block; width: 100%; }
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot,
.cart_totals table.shop_table tbody{ display: block; }
.woocommerce-checkout-review-order-table tr,
.cart_totals table.shop_table tr{
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 1rem;
  border-top: 1px solid var(--line);
}
.woocommerce-checkout-review-order-table thead tr,
.cart_totals table.shop_table tr:first-child{ border-top: 0; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.cart_totals table.shop_table th,
.cart_totals table.shop_table td{ display: block; width: auto !important; border: 0 !important; background: none; text-align: start; padding: .85rem 1rem; }
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table tfoot td,
.cart_totals table.shop_table td{ text-align: end; font-weight: 700; }
.woocommerce-checkout-review-order-table thead th{ font-size: .8rem; color: var(--ink-3); background: var(--sand-2); }
.woocommerce-checkout-review-order-table thead tr{ background: var(--sand-2); }
.woocommerce-checkout-review-order-table tr.order-total td,
.cart_totals table.shop_table tr.order-total td{ font-size: 1.15rem; font-weight: 800; }
/* the shipping row: label on top, options below at full width */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
.cart_totals table.shop_table tr.woocommerce-shipping-totals{ grid-template-columns: 1fr; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.cart_totals table.shop_table tr.woocommerce-shipping-totals th{ padding-bottom: 0; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
.cart_totals table.shop_table tr.woocommerce-shipping-totals td{ text-align: start; font-weight: 400; padding-top: .3rem; }
.woocommerce-checkout-review-order-table td::before,
.cart_totals table.shop_table td::before{ display: none !important; }
#shipping_method li{ flex-wrap: wrap; white-space: normal; word-break: normal; overflow-wrap: break-word; }
#shipping_method li > :not(input):not(label){ flex-basis: 100%; margin: .35rem 0 0; }
.woocommerce-checkout-review-order-table td.product-name{ overflow-wrap: anywhere; }

/* "ship to a different address" and "additional information" are two rows */
#ship-to-different-address, .woocommerce-additional-fields > h3{ display: block; clear: both; width: 100%; margin: 0 0 .9rem; font-size: 1.05rem; }
#ship-to-different-address label{ display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.woocommerce-additional-fields{ clear: both; margin-top: 1.2rem; }

/* the "added to cart" notice on the cart page itself needs no "view cart" button */
.woocommerce-cart .woocommerce-message .button.wc-forward{ display: none; }
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td,
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td{ background: none; border-top: 0; }
.woocommerce table.shop_table.woocommerce-checkout-review-order-table thead th{ background: var(--sand-2); }
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tr.order-total{ background: var(--sand-2); }

/* related products: the store grid, two up on phones */
.related.products{ margin-top: var(--sp-7); }
.related.products > h2{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2rem; }
.related.products ul.products{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem .9rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 980px){ .related.products ul.products{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.6rem; } }
.related.products ul.products::before, .related.products ul.products::after{ display: none; }

/* colour picker in the add-to-cart form */
.color-pick{ border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; flex-basis: 100%; }
.color-pick .opt-label{ display: block; font-weight: 700; margin-bottom: .55rem; }
.color-pick .opt-label span{ font-weight: 400; color: var(--muted); }
.color-pick .swatches{ display: flex; gap: .7rem; flex-wrap: wrap; }
.color-pick .swatch{ width: 40px; height: 40px; border-radius: 50%; cursor: pointer; position: relative;
  border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
.color-pick .swatch.is-on, .color-pick .swatch:has(input:checked){ box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--deep, #143629); }
.color-pick .swatch:has(input:focus-visible){ outline: 3px solid var(--teal-500); outline-offset: 3px; }
form.cart{ flex-wrap: wrap; }
/* size picker (CORE) */
.size-pick{ border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; flex-basis: 100%; }
.size-pick .opt-label{ display: block; font-weight: 700; margin-bottom: .55rem; }
.size-pick .opt-label span{ font-weight: 400; color: var(--muted); }
.size-pick .sizes{ display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .45rem; }
.size-pick .size{ display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .2rem; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.size-pick .size b{ font-size: 1rem; line-height: 1.2; }
.size-pick .size small{ font-size: .72rem; color: var(--muted); white-space: nowrap; direction: ltr; }
.size-pick .size:hover{ border-color: var(--deep, #143629); }
.size-pick .size:has(input:checked){ border-color: #143629; box-shadow: 0 0 0 1px #143629; background: #EEF5F1; }
.size-pick .size:has(input:focus-visible){ outline: 3px solid var(--teal-500); outline-offset: 2px; }
.size-pick .size-hint{ margin: .55rem 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 380px){ .size-pick .size small{ font-size: .64rem; } }
/* the chosen colour under the product name in cart / checkout */
.woocommerce-cart-form .variation, .woocommerce-checkout-review-order-table .variation{ display: flex; gap: .3rem; margin: .25rem 0 0; font-size: .85rem; color: var(--muted); font-weight: 400; }
.woocommerce-cart-form .variation dt, .woocommerce-checkout-review-order-table .variation dt{ font-weight: 600; }
.woocommerce-cart-form .variation dd, .woocommerce-checkout-review-order-table .variation dd{ margin: 0; }
.woocommerce-cart-form .variation dd p, .woocommerce-checkout-review-order-table .variation dd p{ margin: 0; }
/* "orders open soon" box, in place of the add-to-cart form */
.soon-box{background:#EEF5F1;border:1px solid #C2DDCE;border-radius:14px;padding:1.1rem 1.2rem;margin:0 0 1.2rem}
.soon-box b{display:block;font-size:1.15rem;color:#143629;margin-bottom:.3rem}
.soon-box p{margin:0 0 .9rem;color:#3E5A4D}
.soon-cta{display:flex;gap:.6rem;flex-wrap:wrap}
.soon-cta .btn--ghost{background:transparent;border:1.5px solid #143629;color:#143629}
