/* =====================================================================
   CONSTRUCT FAMILY — woocommerce.css
   All shop styling, layered on the main.css token system. Loaded only on
   WooCommerce contexts (shop, product, cart, checkout, account). Targets
   WooCommerce's stable core classes so cart/checkout/quantity/sale-flash are
   restyled without forking those templates; the catalogue card is the one
   forked template (woocommerce/content-product.php -> .cf-product-card.model).
   No new colors — tokens only.
   ===================================================================== */

/* ---------- shop shell + full-width Woo pages ---------- */
.cf-shop .woocommerce-breadcrumb{margin-bottom:22px}
.cf-wc-page .entry-content{max-width:none}              /* cart/checkout/account pages: unclamp */
.cf-wc-page .entry-content>*{max-width:none}

/* ---------- notices ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{
  border:1px solid var(--line);border-left:3px solid var(--coral);background:var(--mist);
  color:var(--ink);border-radius:2px;padding:14px 18px;margin:0 0 24px;list-style:none;
  font-size:.95rem;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.woocommerce-error{border-left-color:var(--coral-deep)}
.woocommerce-message .button,.woocommerce-info .button{margin-left:auto}
/* drop WC's icon-font check/info ::before — it overlapped the text after our padding override; the coral left-border is the accent */
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before,.woocommerce-noreviews::before{content:none;display:none}

/* ---------- archive header ---------- */
.woocommerce-products-header{margin-bottom:36px}
.woocommerce-products-header__title,.cf-shop h1.page-title{
  font-family:var(--display);font-weight:800;letter-spacing:-.025em;
  font-size:clamp(2rem,4.2vw,3.3rem);line-height:1.05}
.term-description,.woocommerce-products-header .term-description{color:var(--steel);max-width:60ch;margin-top:14px}
.woocommerce-result-count{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;
  text-transform:uppercase;color:var(--steel);margin:0}
.woocommerce-ordering{margin:0 0 24px}
.woocommerce-ordering select,.cf-shop select.orderby{font-family:var(--mono);font-size:.78rem;
  padding:.6em .9em;max-width:280px}
.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{display:inline-block;vertical-align:middle}

/* ---------- product grid ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{
  display:grid !important;grid-template-columns:repeat(3,1fr);gap:18px;
  margin:0;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none !important;display:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
  width:auto !important;margin:0 !important;float:none !important;clear:none !important;padding:0}

/* card (forked content-product.php => li.model.cf-product-card; base look in main.css .model) */
.cf-product-card{display:flex;flex-direction:column}
.cf-product-card .model-img{display:block}
.cf-product-card .model-img .onsale{z-index:3}
.cf-product-card .model-body{display:flex;flex-direction:column;gap:8px;flex:1}
.cf-product-card .cf-product-eyebrow{font-family:var(--mono);font-size:.62rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--coral);line-height:1.2;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-product-card .cf-product-title{font-family:var(--display);font-size:1.02rem;font-weight:700;letter-spacing:-.01em;margin:0}
.cf-product-card .cf-product-title a{color:var(--ink)}
.cf-product-card .cf-product-title a:hover{color:var(--coral)}
.cf-product-card .price{font-family:var(--display);font-weight:700;color:var(--ink);font-size:1.02rem}
.cf-product-card .price del{color:var(--steel-light);font-weight:400;margin-right:.4em}
.cf-product-card .price ins{text-decoration:none;color:var(--coral)}
.cf-vat{font-family:var(--mono);font-size:.6rem;font-weight:500;letter-spacing:.04em;color:var(--steel);text-transform:none;white-space:nowrap;margin-left:.3em}
.cf-product-card .cf-product-cta{margin-top:auto;padding-top:6px}

/* ---------- sale flash ---------- */
.woocommerce span.onsale,.onsale{position:absolute;top:12px;left:12px;background:var(--coral);color:#fff;
  font-family:var(--mono);font-size:.62rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  padding:5px 9px;border-radius:2px;min-height:0;min-width:0;line-height:1;margin:0}

/* ---------- buttons ---------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce .button,
.woocommerce a.button.alt,.woocommerce button.button.alt,
.cf-product-card .cf-product-cta .button,.cf-loop-quote{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--display);font-weight:700;font-size:.92rem;letter-spacing:.01em;
  background:var(--coral);color:#fff;border:1.5px solid var(--coral);border-radius:2px;
  padding:.8em 1.3em;cursor:pointer;transition:.18s ease;text-transform:none;line-height:1.1}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce .button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,
.cf-product-card .cf-product-cta .button:hover,.cf-loop-quote:hover{
  background:var(--coral-deep);border-color:var(--coral-deep);color:#fff}
.woocommerce .button:focus-visible,.woocommerce a.button:focus-visible{outline:2px solid var(--coral);outline-offset:2px}
.woocommerce .button.disabled,.woocommerce .button:disabled,.woocommerce .button.loading{opacity:.6}
.woocommerce a.button.wc-backward,.woocommerce .button.wc-backward{background:transparent;color:var(--ink);border-color:var(--ink)}
.woocommerce a.button.wc-backward:hover{background:var(--ink);color:#fff}
.cf-product-card .added_to_cart{font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;color:var(--coral);margin-left:10px;align-self:center}

/* ---------- single product ---------- */
.woocommerce div.product{display:flow-root}
.woocommerce div.product .woocommerce-product-gallery{width:50%;margin-bottom:32px}
.woocommerce div.product .summary.entry-summary{width:46%}
.woocommerce div.product .cf-product-eyebrow{display:inline-flex;margin-bottom:14px}
.woocommerce div.product .product_title{font-family:var(--display);font-weight:800;letter-spacing:-.025em;
  font-size:clamp(1.8rem,3.4vw,2.7rem);line-height:1.05;margin:0 0 14px}
.woocommerce div.product p.price,.woocommerce div.product span.price{
  font-family:var(--display);font-weight:800;color:var(--ink);font-size:1.6rem;margin:0 0 18px}
.woocommerce div.product p.price del{color:var(--steel-light);font-weight:400}
.woocommerce div.product p.price ins{text-decoration:none;color:var(--coral)}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--steel);font-size:1.02rem;margin-bottom:24px}
.woocommerce div.product form.cart{margin:24px 0}
.woocommerce div.product form.cart .quantity{margin-right:12px}
.woocommerce div.product .single_add_to_cart_button{padding:.95em 1.7em;font-size:.98rem}
.woocommerce div.product .product_meta{font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;
  color:var(--steel);margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
.woocommerce div.product .product_meta a{color:var(--steel)}
.woocommerce div.product .product_meta a:hover{color:var(--coral)}

/* tabs + related (full width below the two columns) */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .upsells.products,
.woocommerce div.product .related.products{clear:both;width:100%;padding-top:48px}
.woocommerce div.product .woocommerce-tabs ul.tabs{border:0;padding:0;margin:0 0 24px;display:flex;gap:24px;flex-wrap:wrap}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;padding:0;margin: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(--mono);font-size:.74rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--steel);padding:0 0 8px;border-bottom:2px solid transparent}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink);border-bottom-color:var(--coral)}
.woocommerce div.product .related.products>h2,.woocommerce div.product .upsells.products>h2{
  font-family:var(--display);font-weight:700;letter-spacing:-.02em;font-size:1.6rem;margin-bottom:24px}

/* made-to-measure quote block (configurator styled by main.css .conf) */
.cf-mtm{margin:8px 0}
.cf-mtm-note{color:var(--steel);font-size:.98rem;margin-bottom:18px}

/* ---------- cart ---------- */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:3px;border-collapse:separate;border-spacing:0;margin:0 0 24px;background:var(--paper)}
.woocommerce table.shop_table th{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--steel);font-weight:500;padding:16px 18px;border-bottom:1px solid var(--line);text-align:left}
.woocommerce table.shop_table td{padding:18px;border-top:1px solid var(--line);vertical-align:middle}
.woocommerce table.shop_table .product-thumbnail img{width:72px;height:auto;border-radius:2px}
.woocommerce table.cart .product-name a{color:var(--ink);font-weight:600}
.woocommerce table.cart .product-name a:hover{color:var(--coral)}
.woocommerce a.remove{color:var(--steel) !important;border:1px solid var(--line);width:24px;height:24px;
  line-height:22px;border-radius:50%;font-weight:400}
.woocommerce a.remove:hover{background:var(--coral) !important;color:#fff !important;border-color:var(--coral)}
.woocommerce .cart-collaterals,.woocommerce-page .cart-collaterals{display:flex;flex-wrap:wrap;gap:32px;justify-content:flex-end;margin-top:8px}
.woocommerce .cart-collaterals .cart_totals{float:none;width:min(420px,100%)}
.woocommerce .cart_totals h2{font-family:var(--display);font-weight:700;font-size:1.4rem;margin-bottom:16px}
.woocommerce .cart_totals table.shop_table{width:100%}
.woocommerce .cart_totals .order-total th,.woocommerce .cart_totals .order-total td{font-size:1.05rem;color:var(--ink)}
.woocommerce .wc-proceed-to-checkout{padding-top:18px}
.woocommerce .wc-proceed-to-checkout .checkout-button{display:flex;width:100%;font-size:1rem;padding:1em}
.woocommerce .cart .actions .coupon{display:flex;gap:8px;align-items:center}
.woocommerce .cart .actions .coupon .input-text{max-width:200px;margin:0}

/* ---------- checkout ---------- */
.woocommerce form.checkout #order_review_heading,.woocommerce-checkout h3#order_review_heading{
  font-family:var(--display);font-weight:700;font-size:1.4rem;margin:0 0 16px}
.woocommerce .checkout .col2-set .col-1,.woocommerce .checkout .col2-set .col-2{width:100%;float:none;padding:0}
.woocommerce form .form-row label,.woocommerce-checkout .form-row label{font-family:var(--body);font-size:.92rem;color:var(--ink);margin-bottom:6px;display:block}
.woocommerce form .form-row .required{color:var(--coral);text-decoration:none}
.woocommerce-checkout #payment{background:var(--mist);border:1px solid var(--line);border-radius:3px}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line)}
.woocommerce-checkout #payment div.form-row.place-order{padding:18px}
.woocommerce #payment #place_order,.woocommerce-checkout #place_order{display:flex;width:100%;justify-content:center;font-size:1rem;padding:1em}
.woocommerce-checkout #order_review,.woocommerce-checkout .woocommerce-checkout-review-order{
  background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:8px 0}
.woocommerce-checkout #order_review table.shop_table{border:0;margin:0}
@media(min-width:921px){
  .woocommerce form.checkout.woocommerce-checkout{display:grid;grid-template-columns:1.25fr .85fr;gap:48px;align-items:start}
  .woocommerce form.checkout.woocommerce-checkout>*{grid-column:1}      /* unknown plugin-injected children stack in the main column */
  .woocommerce form.checkout #customer_details{grid-column:1;grid-row:1 / span 2}
  .woocommerce form.checkout #order_review_heading{grid-column:2;grid-row:1;margin-top:0}
  .woocommerce form.checkout #order_review{grid-column:2;grid-row:2;position:sticky;top:88px;max-height:calc(100vh - 108px);overflow:auto}
}

/* ---------- quantity stepper ---------- */
.woocommerce .quantity{display:inline-flex;align-items:center}
.woocommerce .quantity .qty{width:72px;text-align:center;font-family:var(--mono);font-size:.92rem;
  padding:.7em .4em;border:1px solid var(--line);border-radius:2px}
.woocommerce .quantity .qty:focus{border-color:var(--coral)}

/* ---------- my account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 28px;padding:0;
  display:flex;flex-wrap:wrap;gap:8px}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:inline-flex;font-family:var(--mono);font-size:.74rem;
  letter-spacing:.08em;text-transform:uppercase;padding:.6em 1em;border:1px solid var(--line);border-radius:2px;color:var(--steel)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
@media(min-width:921px){
  .woocommerce-account .woocommerce-MyAccount-navigation{width:240px;float:left}
  .woocommerce-account .woocommerce-MyAccount-content{width:calc(100% - 280px);float:right}
}

/* ---------- responsive ---------- */
@media(max-width:920px){
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,1fr)}
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary.entry-summary{width:100%;float:none}
}
@media(max-width:600px){
  .woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr}
  /* stack cart line-items into labelled cards (self-contained — not reliant on Woo's smallscreen sheet) */
  .woocommerce-cart-form table.cart thead{display:none}
  .woocommerce-cart-form table.cart tr.woocommerce-cart-form__cart-item{display:block;border-bottom:1px solid var(--line)}
  .woocommerce-cart-form table.cart td{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;padding:10px 14px;text-align:right}
  .woocommerce-cart-form table.cart td::before{content:attr(data-title);font-family:var(--mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel)}
  .woocommerce-cart-form table.cart td.product-remove::before,.woocommerce-cart-form table.cart td.product-thumbnail::before{content:none}
  .woocommerce-cart-form table.cart td.actions{display:block;text-align:left}
}

/* =====================================================================
   REVISION 1 — sale display, badge fix, single-product readability
   ===================================================================== */

/* sale badge: force top-left coral pill, never clipped (beats Woo/old-plugin CSS) */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale,
.cf-product-card .onsale{
  position:absolute;top:10px;left:10px;right:auto;bottom:auto;margin:0;z-index:4;
  background:var(--coral);color:#fff;font-family:var(--mono);font-size:.62rem;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;padding:5px 9px;border-radius:2px;line-height:1;min-height:0;min-width:0}
.cf-product-card .model-img{overflow:hidden}

/* sale prices — struck regular + coral sale, on cards and single product */
.cf-product-card .price del,.woocommerce div.product p.price del{color:var(--steel-light);font-weight:400;opacity:.85;margin-right:.35em}
.cf-product-card .price ins,.woocommerce div.product p.price ins{text-decoration:none;color:var(--coral);font-weight:700}
.cf-from{font-family:var(--mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel);font-weight:500;margin-right:.2em}

/* SINGLE PRODUCT readability — force light bg + ink text (defeats leftover plugin CSS) */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .wc-tab,
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce #reviews,
.woocommerce div.product table.shop_attributes{background:var(--paper) !important;color:var(--ink) !important}
.woocommerce div.product .woocommerce-tabs .panel h1,
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel li,
.woocommerce div.product .woocommerce-tabs .panel strong,
.woocommerce #reviews label,.woocommerce #reviews p,.woocommerce #reviews h2,.woocommerce #reviews h3{color:var(--ink) !important}
.woocommerce div.product .woocommerce-tabs .panel{padding:8px 0 0 !important}
.woocommerce div.product table.shop_attributes th{color:var(--ink) !important;font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}
.woocommerce div.product table.shop_attributes td{color:var(--steel) !important;font-style:normal}

/* =====================================================================
   REVISION 2 — product photos on white (kill the dark gradient gap)
   ===================================================================== */
.woocommerce ul.products li.cf-product-card .model-img,
.cf-product-card .model-img{background:var(--paper)}
.woocommerce ul.products li.cf-product-card .model-img img,
.cf-product-card .model-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px}
.cf-product-card .price.cf-price-ask{font-family:var(--mono);font-size:.82rem;font-weight:500;letter-spacing:.04em;color:var(--steel);text-transform:none}
