/* Kiln · Add-to-basket button (t73). Inter only; clay #a33b2b on sand; 10px radius on primary buttons. Loads last. */
:root { --atc-clay: #a33b2b; --atc-clay-h: #8a3124; --atc-r: 10px; --atc-ring: var(--k-ink, #1F1C19); }

/* ---------- 6 · one radius for primary buttons (product page, tiles, sticky bar, drawer, quick view, cart, checkout) ---------- */
html body.kiln :is(div.product form.cart .single_add_to_cart_button, .kiln-atc, ul.products li.product .button, .kiln-sticky-btn, .kiln-dl-checkout,
  .kiln-qv-add, .woocommerce a.checkout-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) { border-radius: var(--atc-r) !important; }

/* ---------- 1 · solid clay button, white Inter 600, hover darker + 1px lift + soft shadow ---------- */
html body.kiln div.product form.cart .single_add_to_cart_button, html body.kiln .kiln-atc, html body.kiln .kiln-sticky-btn, html body.kiln ul.products li.product .button.kiln-qa {
  background: var(--atc-clay) !important; border: 1px solid var(--atc-clay) !important; color: #fff !important;
  font-family: var(--k-font) !important; font-weight: 600 !important; letter-spacing: -0.005em !important; text-transform: none !important;
  box-shadow: none !important; transform: none;
  transition: background-color var(--k-t-2, .2s) var(--k-ease, ease), border-color var(--k-t-2, .2s) var(--k-ease, ease), box-shadow var(--k-t-2, .2s) var(--k-ease, ease), transform var(--k-t-2, .2s) var(--k-ease, ease);
}
html body.kiln :is(div.product form.cart .single_add_to_cart_button, .kiln-atc, .kiln-sticky-btn, ul.products li.product .button.kiln-qa):where(:hover):not(.is-select):not(.is-oos):not([disabled]) {
  background: var(--atc-clay-h) !important; border-color: var(--atc-clay-h) !important; color: #fff !important;
  transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(163, 59, 43, .55) !important;
}
html body.kiln :is(div.product form.cart .single_add_to_cart_button, .kiln-atc, .kiln-sticky-btn, ul.products li.product .button.kiln-qa):active:not(.is-select):not(.is-oos) { transform: none; box-shadow: none !important; }
/* 5 · a ring you can see on sand and on clay */
html body.kiln :is(div.product form.cart .single_add_to_cart_button, .kiln-atc, .kiln-sticky-btn, ul.products li.product .button.kiln-qa, .kiln-qty .kiln-step, .kiln-qty input.qty):focus-visible {
  outline: 2px solid var(--atc-ring) !important; outline-offset: 3px !important;
}
/* reduced motion: one global rule in sianacom-kiln/review.css */

/* ---------- 3 · icon left, live total right ---------- */
html body.kiln .kiln-atc { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
html body.kiln .kiln-atc-ico { flex: 0 0 auto; display: inline-grid; place-items: center; width: 18px; height: 18px; }
html body.kiln .kiln-atc-ico svg { display: block; }
html body.kiln .kiln-atc-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body.kiln .kiln-atc-total { font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
html body.kiln .kiln-atc-total[hidden] { display: none !important; }
html body.kiln .kiln-atc-lei { opacity: .82; font-weight: 400; }
/* the total shortens to fit (atc.js): lei first, then the euro amount */
html body.kiln .kiln-atc.no-lei .kiln-atc-lei, html body.kiln .kiln-atc.no-total .kiln-atc-total { display: none !important; }
html body.kiln .kiln-atc-txt { flex: 0 1 auto; }

/* ---------- 4 · adding / added ---------- */
html body.kiln .kiln-atc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: kiln-atc-spin .7s linear infinite; box-sizing: border-box; }
@keyframes kiln-atc-spin { to { transform: rotate(360deg); } }
/* reduced motion: one global rule in sianacom-kiln/review.css */
html body.kiln :is(.kiln-atc, .kiln-qa).is-adding { cursor: progress; }
html body.kiln :is(.kiln-atc, .kiln-qa).loading::after { display: none !important; } /* WooCommerce's own loading glyph: replaced by our spinner */
html body.kiln :is(.kiln-atc, .kiln-qa).loading { opacity: 1 !important; }

/* ---------- 5 · states ---------- */
html body.kiln div.product form.cart .single_add_to_cart_button.is-select, html body.kiln .kiln-sticky-btn.kiln-atc.is-select {
  background: transparent !important; color: var(--k-ink) !important; border: 1.5px solid #d6cab5 !important; cursor: not-allowed; box-shadow: none !important; transform: none !important;
}
html body.kiln div.product .single_add_to_cart_button.kiln-atc:is(.is-oos, .kiln-atc--oos, [disabled]), html body.kiln div.product form.cart .single_add_to_cart_button.is-oos, html body.kiln .kiln-sticky-btn.kiln-atc.is-oos {
  background: var(--k-sand) !important; color: var(--k-mute) !important; border: 1px solid var(--k-sand-2, #E4DED3) !important; cursor: not-allowed; box-shadow: none !important; transform: none !important; opacity: 1 !important;
}
html body.kiln .kiln-atc-oos-wrap { margin: 4px 0 20px; }
html body.kiln .kiln-atc--oos { width: 100%; min-height: 52px; justify-content: center; font-size: 15px !important; }
html body.kiln div.product .summary:has(.kiln-atc--oos) p.stock.out-of-stock { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 2 · buy box: full-width 52px button, quantity stepper joined on its left ---------- */
html body.kiln div.product form.cart { gap: 0 !important; width: 100% !important; max-width: none !important; box-sizing: border-box; }
html body.kiln div.product form.cart .single_add_to_cart_button { flex: 1 1 auto !important; min-height: 52px !important; height: 52px; padding: 0 20px !important; font-size: 15px !important; margin: 0 !important; }
html body.kiln div.product form.cart .quantity.kiln-qty { height: 52px !important; min-height: 52px !important; border: 1px solid var(--k-line-2) !important; border-right: 0 !important;
  border-radius: var(--atc-r) 0 0 var(--atc-r) !important; overflow: hidden; background: var(--k-paper); margin: 0 !important; }
html body.kiln div.product form.cart .quantity.kiln-qty :is(input.qty, .kiln-step) { border-radius: 0 !important; height: 50px !important; min-height: 0 !important; }
html body.kiln div.product form.cart .quantity.kiln-qty + .single_add_to_cart_button,
html body.kiln div.product form.cart .quantity.kiln-qty ~ .single_add_to_cart_button { border-radius: 0 var(--atc-r) var(--atc-r) 0 !important; }
html body.kiln div.product form.cart .single_add_to_cart_button:where(:hover) { transform: none; } /* joined to the stepper: shadow only, no lift */
@media (max-width: 599px) {
  html body.kiln div.product form.cart .single_add_to_cart_button { font-size: 14.5px !important; padding: 0 10px !important; gap: 7px; }
  html body.kiln div.product form.cart .quantity.kiln-qty .kiln-step { width: 36px !important; min-width: 36px !important; }
  html body.kiln div.product form.cart .quantity.kiln-qty input.qty { width: 36px !important; }
}

/* ---------- 2 · sticky bar (phones especially): price + Add to basket, never over the consent banner ---------- */
html body.kiln .kiln-sticky-btn.kiln-atc { min-height: 46px; padding: 0 18px !important; gap: 8px; font-size: 14px !important; letter-spacing: 0 !important; }
@media (max-width: 599px) {
  html body.kiln .kiln-sticky-btn.kiln-atc { min-height: 48px; font-size: 14px !important; }
  html body.kiln .kiln-sticky .kiln-sticky-price .siana-price-lei { display: inline; margin-left: 6px; color: var(--k-mute) !important; font-size: 12.5px !important; }
}

/* ---------- 8 · reassurance line under the button ---------- */
html body.kiln .kiln-atc-reassure { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0 !important; max-width: none !important; font: 500 13px/1.45 var(--k-font) !important; color: var(--k-ink); font-variant-numeric: lining-nums tabular-nums; }
html body.kiln .kiln-atc-reassure .kiln-eta-ico { flex: 0 0 auto; margin-top: 1px; color: var(--k-moss); }
html body.kiln .kiln-atc-free { color: var(--k-moss); }
html body.kiln div.product .summary:has(.kiln-atc-reassure) .siana-free-ship { display: none !important; }

/* ---------- 7 · tile quick add: revealed on hover/focus with a mouse, a compact "+" on touch ---------- */
html body.kiln ul.products li.product .button.kiln-qa { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
html body.kiln .kiln-qa-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; }
html body.kiln .kiln-qa-ico svg { display: block; }
@supports (container-type: inline-size) {
  html body.kiln ul.products li.product:has(.kiln-qa) { position: relative; }
  /* the tile image is square and as wide as the card, so 100cqi is its height */
  html body.kiln ul.products li.product .button.kiln-qa { position: absolute !important; z-index: 2; margin: 0 !important; }
  @media (hover: hover) and (pointer: fine) {
    html body.kiln ul.products li.product .button.kiln-qa {
      left: 12px; right: 12px; top: calc(100cqi - 58px); width: auto !important; min-height: 46px; padding: 0 16px !important; font-size: 13.5px !important;
      opacity: 0; translate: 0 6px; transition: opacity var(--k-t-2, .2s) var(--k-ease, ease), translate var(--k-t-2, .2s) var(--k-ease, ease), background-color var(--k-t-2, .2s) var(--k-ease, ease), box-shadow var(--k-t-2, .2s) var(--k-ease, ease), transform var(--k-t-2, .2s) var(--k-ease, ease);
    }
    html body.kiln ul.products li.product:is(:hover, :focus-within) .button.kiln-qa,
    html body.kiln ul.products li.product .button.kiln-qa:is(.is-adding, .is-added, .loading) { opacity: 1; translate: 0 0; }
  }
  @media not ((hover: hover) and (pointer: fine)) {
    html body.kiln ul.products li.product .button.kiln-qa {
      right: 8px; top: calc(100cqi - 52px); left: auto; width: 44px !important; height: 44px; min-height: 44px; padding: 0 !important;
    }
    html body.kiln ul.products li.product .button.kiln-qa .kiln-qa-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    html body.kiln ul.products li.product .button.kiln-qa .kiln-qa-ico svg { width: 20px; height: 20px; }
  }
  /* reduced motion: one global rule in sianacom-kiln/review.css */
}

/* ---------- 2 · the sticky bar never sits on top of the cookie banner (the phone rule used to win) ---------- */
/* cookie banner vs sticky bar: handled in review.css */
