/* Presentation only. Never dequeue Woo scripts, change checkout, or copy templates. */
.thorn3-site .woocommerce, .thorn3-site [class*="wp-block-woocommerce"] { --wc-primary: var(--thorn3-ink); --wc-primary-text: var(--thorn3-paper); --wc-content-bg: var(--thorn3-paper); font-family: var(--thorn3-font); }
.thorn3-site .woocommerce ul.products li.product { box-shadow: none; background: transparent; }
.thorn3-site .woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: var(--thorn3-cloud); border-radius: var(--thorn3-radius); }
.thorn3-site .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: var(--thorn3-text-h3); line-height: 1.3; }
.thorn3-site .woocommerce ul.products li.product .price, .thorn3-site .woocommerce div.product p.price, .thorn3-site .woocommerce div.product span.price { color: var(--thorn3-ink); }
.thorn3-site .woocommerce span.onsale { background: var(--thorn3-gold); color: var(--thorn3-ink); border-radius: var(--thorn3-radius); min-height: 0; line-height: 1.5; padding: var(--thorn3-space-2) var(--thorn3-space-3); }
.thorn3-site .woocommerce :is(a.button,button.button,input.button), .thorn3-site .wc-block-components-button { border-radius: var(--thorn3-radius); min-height: var(--thorn3-control-height); background: var(--thorn3-ink); color: var(--thorn3-paper); border: var(--thorn3-border) solid var(--thorn3-ink); font-size: var(--thorn3-text-body); font-weight: var(--thorn3-weight-medium); line-height: 1.4; padding: var(--thorn3-space-3) var(--thorn3-space-5); }
.thorn3-site .woocommerce :is(a.button,button.button,input.button):hover, .thorn3-site .wc-block-components-button:hover { color: var(--thorn3-ink); background: var(--thorn3-gold); }
.thorn3-site .woocommerce :is(button:disabled,button.disabled) { opacity: .65; cursor: not-allowed; }
.thorn3-site .woocommerce :is(input.input-text,textarea,select), .thorn3-site .wc-block-components-text-input input, .thorn3-site .wc-block-components-combobox .components-combobox-control__input { background: var(--thorn3-paper); color: var(--thorn3-ink); border: var(--thorn3-border) solid var(--thorn3-muted); min-height: var(--thorn3-control-height); border-radius: var(--thorn3-radius); font-size: var(--thorn3-text-body); }
.thorn3-site .woocommerce .quantity .qty { min-width: 4rem; }
.thorn3-site .woocommerce :is(.woocommerce-message,.woocommerce-info,.woocommerce-error), .thorn3-site .wc-block-components-notice-banner { background: var(--thorn3-ivory); color: var(--thorn3-ink); border-radius: var(--thorn3-radius); box-shadow: none; }
.thorn3-site .woocommerce .woocommerce-error { border-top-color: var(--thorn3-error); }
.thorn3-site .woocommerce .woocommerce-message { border-top-color: var(--thorn3-success); }
.thorn3-site .woocommerce :is(.woocommerce-info,.woocommerce-message)::before { color: var(--thorn3-ink); }
.thorn3-site .woocommerce table.shop_table { border-color: var(--thorn3-line); border-radius: var(--thorn3-radius); }
.thorn3-site .woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: var(--thorn3-space-3); min-height: var(--thorn3-control-height); }
.thorn3-site .woocommerce .woocommerce-MyAccount-navigation .is-active a { background: var(--thorn3-ivory); text-decoration: underline; }
.thorn3-site .woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--thorn3-ivory); border-radius: var(--thorn3-radius); }
.thorn3-site .woocommerce div.product .stock { color: var(--thorn3-success); }
.thorn3-site .woocommerce div.product .out-of-stock { color: var(--thorn3-error); }
.thorn3-site .woocommerce .variations :is(select,td,th) { max-width: 100%; }
.thorn3-site .woocommerce .reset_variations { display: inline-block; min-height: var(--thorn3-control-height); padding-block: var(--thorn3-space-2); }
.thorn3-site .woocommerce div.product div.images img { object-fit: contain; }
.thorn3-site .wc-block-grid__product-image img { object-fit: contain; }
.thorn3-editorial .woocommerce { overflow-wrap: anywhere; }
.thorn3-site .woocommerce :is(.woocommerce-breadcrumb,.woocommerce-breadcrumb a,.woocommerce-result-count) { color: var(--thorn3-muted); }
/* Match inherited Divi form selectors without changing Woo markup or behavior. */
.thorn3-site .woocommerce form .form-row :is(input.input-text,textarea) { color: var(--thorn3-ink); background: var(--thorn3-paper); border: var(--thorn3-border) solid var(--thorn3-muted); }
/* Divi 4 declares white notice text !important; match only this inherited rule. */
.thorn3-site :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) { color: var(--thorn3-ink) !important; }
.thorn3-site .woocommerce form .form-row ::placeholder { color: var(--thorn3-muted); opacity: 1; }
.thorn3-site .woocommerce .show-password-input { min-width: var(--thorn3-control-height); min-height: var(--thorn3-control-height); inset-block-start: 0; display: grid; place-items: center; }
.thorn3-site .woocommerce input[type="password"] { padding-inline-end: var(--thorn3-space-7); }
.thorn3-site .wc-block-grid__product-add-to-cart a, .thorn3-site .wp-block-woocommerce-product-button .wp-block-button__link { background: var(--thorn3-ink); color: var(--thorn3-paper); font-size: var(--thorn3-text-body); min-height: var(--thorn3-control-height); border-radius: var(--thorn3-radius); padding: var(--thorn3-space-3) var(--thorn3-space-5); }
.thorn3-site.woocommerce-cart table.cart td.actions .coupon .input-text { color: var(--thorn3-ink); background: var(--thorn3-paper); border: var(--thorn3-border) solid var(--thorn3-muted); }
.thorn3-site.woocommerce-cart table.cart td.actions .coupon .input-text::placeholder { color: var(--thorn3-muted); opacity: 1; }
/* Product archives use a page grid; the horizontal shelves remain on Home. */
.thorn3-site.woocommerce:not(.single-product) .woocommerce ul.products.thorn3-shelf-track { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.thorn3-site.woocommerce:not(.single-product) .thorn3-shelf-controls { display: none; }
/* Keep the native Woo product hooks while containing their two-column layout. */
.thorn3-commerce, .thorn3-commerce div.product, .thorn3-commerce div.product :is(.images,.summary,.woocommerce-tabs,.related,.up-sells) { min-width: 0; max-width: 100%; }
.thorn3-commerce div.product .product_title { font-size: clamp(2rem,4vw,3.5rem); line-height: 1.1; }
.thorn3-commerce div.product .woocommerce-tabs { clear: both; overflow-wrap: anywhere; }
@media (max-width: 63.99rem) {
  .thorn3-site.woocommerce:not(.single-product) .woocommerce ul.products.thorn3-shelf-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .thorn3-commerce div.product div.images, .thorn3-commerce div.product div.summary { float: none !important; width: 100% !important; margin-inline: 0 !important; }
}
@media (max-width: 47.99rem) {
  .thorn3-site.woocommerce:not(.single-product) .woocommerce ul.products.thorn3-shelf-track { grid-template-columns: minmax(0,1fr); }
  .thorn3-site .woocommerce ul.products li.product, .thorn3-site .woocommerce-page ul.products li.product { width: 100%; float: none; margin-inline: 0; }
  .thorn3-site .woocommerce .woocommerce-ordering, .thorn3-site .woocommerce .woocommerce-result-count { float: none; width: 100%; }
  .thorn3-site .woocommerce table.variations { table-layout: fixed; }
}
