/* Carey Diving theme · WooCommerce on the prototype look (theme v1.0.0)
   WooCommerce's own stylesheets (layout, general, smallscreen) are switched off in inc/woocommerce.php,
   so everything WooCommerce prints is styled here with the DESIGN.md v1.0 tokens from carey.css.
   The Cart and Checkout blocks keep their block styles; the rules under «Blocks» restyle them.
   Rules: Sal/Panel surfaces, Canto lines, Roca text, Cala only for the primary button and the selected option,
   3px/4px radii, no shadows, focus = 2px Roca outline with 2px offset. */

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--ink); font-size: 15px; line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.woocommerce-error { display: grid; gap: 6px; border: 2px solid var(--ink); font-weight: 700; }
.woocommerce-error li { display: flex; gap: 8px; align-items: start; }
.woocommerce-error li::before, .carey-wc .wc-block-components-validation-error > p::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px;
  border: 1.8px solid currentColor; border-radius: 50%; font-family: var(--f-display); font-weight: 700; font-size: 13px; line-height: 1;
}
.woocommerce-store-notice, p.demo_store { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; padding: 10px var(--gutter); background: var(--ink); color: var(--bg); font-family: var(--f-display); font-weight: 500; text-align: center; }
.woocommerce-store-notice a { color: var(--bg); margin-left: 12px; }

/* ---------- Buttons ---------- */
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, a.button, button.button,
.woocommerce-Button, .woocommerce-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.woocommerce .button:hover, a.button:hover, button.button:hover { background: var(--surface); }
/* Primary (Cala): selectors kept more specific than the secondary rule above */
.woocommerce .button.alt, .woocommerce button.button.alt, #place_order,
:is(.woocommerce, body) .button:is(.single_add_to_cart_button, .checkout-button, .woocommerce-form-login__submit),
:is(.woocommerce-address-fields, .woocommerce-EditAccountForm, .woocommerce-ResetPassword) button.button {
  min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--ink); border: 0; font-size: 17px;
  transition: transform .15s ease, filter .15s ease;
}
.woocommerce .button.alt:hover, .woocommerce button.button.alt:hover, #place_order:hover,
:is(.woocommerce, body) .button:is(.single_add_to_cart_button, .checkout-button, .woocommerce-form-login__submit):hover,
:is(.woocommerce-address-fields, .woocommerce-EditAccountForm, .woocommerce-ResetPassword) button.button:hover { background: var(--accent); transform: translateY(-1px); }
:is(.woocommerce, body) .button.single_add_to_cart_button:active { transform: translateY(0); filter: brightness(.95); }
:is(.woocommerce, body) .button:is(.disabled, :disabled, [disabled]),
:is(.woocommerce, body) .button:is(.disabled, :disabled, [disabled]):hover { opacity: .55; cursor: not-allowed; transform: none; }
.button.loading { opacity: .7; }
.added_to_cart { font-family: var(--f-display); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Prices ---------- */
.price del { color: var(--muted); font-weight: 500; font-size: .8em; margin-right: 6px; }
.price ins { text-decoration: none; }
.woocommerce-price-suffix { display: inline-block; background: var(--highlight); color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 13px; line-height: 1.3; padding: 3px 8px; border-radius: var(--r-sm); vertical-align: 3px; }
.woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
.onsale { display: inline-block; background: var(--line); color: var(--ink); font-family: var(--f-display); font-weight: 500; font-size: 13px; padding: 3px 10px; border-radius: 99px; }

/* ---------- Catalogue: toolbar, ordering, count ---------- */
.woocommerce-result-count { margin: 0; font-family: var(--f-display); font-weight: 500; }
.woocommerce-ordering { margin: 0; min-width: 220px; }
.woocommerce-ordering select { width: 100%; min-height: 46px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 10px 12px; font-family: var(--f-data); font-size: 15px; color: var(--ink); }
.woocommerce-ordering noscript .btn-2 { margin-top: 8px; }
.shop .toolbar .drawer-btn { order: 2; }
.home-catalogue .toolbar { margin-bottom: 20px; }
ul.products { list-style: none; padding: 0; margin: 0; }
.pcard .price { display: inline; }

/* ---------- Single product ---------- */
.pdp { padding-top: 24px; }
.pdp-gallery { position: sticky; top: 16px; min-width: 0; }
.woocommerce-product-gallery { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; margin: 0; }
.woocommerce-product-gallery figure { margin: 0; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface); }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image + .woocommerce-product-gallery__image { margin-top: 12px; }
.flex-control-thumbs { grid-column: 1; grid-row: 1; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.flex-control-thumbs img.flex-active { border-color: var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0; color: transparent; text-decoration: none; }
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; top: 11px; left: 11px; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; top: 25px; left: 27px; width: 2px; height: 8px; background: var(--ink); transform: rotate(-45deg); }
.woocommerce-product-gallery__trigger img { display: none; }

.buybox .product_title { font-size: clamp(30px, 4vw, 44px); }
.woocommerce-product-details__short-description { font-size: 18px; }
.woocommerce-product-details__short-description > * + * { margin-top: 8px; }
.buybox > p.price, .buybox > .price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 28px; margin: 0; }
.woocommerce-product-rating { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.star-rating { font-family: var(--f-data); font-size: 14px; }
.stock { font-family: var(--f-data); font-size: 15px; margin: 0; }
.stock.out-of-stock { font-weight: 700; }
.buybox form.cart { margin: 0; }
.buybox form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; }
.single_add_to_cart_button { flex: 1; }
.quantity { display: inline-flex; }
.quantity .qty { width: 72px; min-height: 48px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); text-align: center; font-family: var(--f-data); font-size: 16px; color: var(--ink); }
.variations_form { display: grid; gap: 16px; }
table.variations { width: 100%; border: 0; margin: 0; }
table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
table.variations tr + tr { margin-top: 14px; }
table.variations th.label { margin-bottom: 6px; }
table.variations th.label label { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
table.variations select { width: 100%; min-height: 46px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 10px 12px; font-family: var(--f-data); font-size: 15px; color: var(--ink); }
.reset_variations { display: inline-block; margin-top: 10px; font-family: var(--f-display); font-weight: 500; font-size: 15px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.carey-chips { margin-bottom: 2px; }
.carey-chips legend { font-family: var(--f-display); font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.carey-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; }
table.variations.has-chips th.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.single_variation_wrap { display: grid; gap: 12px; }
.woocommerce-variation-price .price { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.woocommerce-variation-description { font-size: 15px; }
.sizing table.variations { background: transparent; }
.sizing .link { font-size: 15px; }

/* Tabs: description, specs, reviews */
.woocommerce-tabs { margin-top: var(--section); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; margin-bottom: -1px; border-bottom: 3px solid transparent; font-family: var(--f-display); font-weight: 600; font-size: 18px; text-decoration: none; }
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a[aria-selected="true"] { border-bottom-color: var(--ink); }
.woocommerce-Tabs-panel { max-width: 820px; }
.woocommerce-Tabs-panel > * + * { margin-top: 14px; }
.woocommerce-Tabs-panel > h2:first-child { font-size: 24px; }
table.shop_attributes, .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-product-attributes th { width: 180px; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.woocommerce-product-attributes td { font-family: var(--f-data); font-size: 15px; }
.woocommerce-product-attributes td p { margin: 0; }
#reviews .commentlist { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
#reviews .commentlist li { padding: 16px 0; border-bottom: 1px solid var(--line); }
#reviews .commentlist img.avatar { display: none; }
#review_form .comment-form { display: grid; gap: 14px; max-width: 640px; }
.comment-form-rating .stars span { display: flex; flex-wrap: wrap; gap: 6px; }
.comment-form-rating .stars a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 99px; font-family: var(--f-data); font-size: 14px; text-decoration: none; }
.comment-form-rating .stars a.active, .comment-form-rating .stars.selected a.active { background: var(--accent); font-weight: 700; }
.comment-form-rating select { min-height: 46px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 10px 12px; }

/* Related products, upsells, cross-sells */
.related.products, .upsells.products, .cross-sells { margin-top: var(--section); }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { margin-bottom: 24px; }
.carey-before { padding-bottom: 0; }

/* ---------- Forms (account, classic checkout, reviews) ---------- */
.woocommerce form .form-row, .woocommerce-form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.woocommerce form .form-row label, .woocommerce-form-row label { font-family: var(--f-display); font-weight: 500; font-size: 13px; }
.woocommerce form .form-row .required, .woocommerce-form-row .required { color: var(--ink); text-decoration: none; border: 0; }
.woocommerce form .input-text, .woocommerce-Input, .woocommerce form select, .woocommerce form textarea {
  width: 100%; min-height: 46px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm);
  padding: 10px 12px; font-family: var(--f-data); font-size: 15px; color: var(--ink);
}
.woocommerce form textarea { min-height: 120px; font-family: var(--f-body); font-size: 16px; }
.woocommerce form .form-row.woocommerce-invalid .input-text, .woocommerce form .form-row.woocommerce-invalid select { border-width: 2px; }
.woocommerce-form__label-for-checkbox, .woocommerce-form-login__rememberme { display: flex !important; gap: 10px; align-items: start; font-family: var(--f-body) !important; font-size: 15px !important; }
.woocommerce form input[type="checkbox"], .woocommerce form input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.password-input { position: relative; display: block; }
.password-input .input-text { padding-right: 52px; }
.show-password-input { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 42px; background: none; border: 0; cursor: pointer; }
.show-password-input::before { content: ""; position: absolute; left: 12px; top: 15px; width: 20px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }
.show-password-input.display-password::after { content: ""; position: absolute; left: 21px; top: 9px; width: 2px; height: 24px; background: var(--ink); transform: rotate(-45deg); }
.lost_password a, .woocommerce-LostPassword a { font-family: var(--f-display); font-weight: 500; }
.woocommerce-privacy-policy-text { font-size: 14px; color: var(--muted); }

/* ---------- Tables (orders, order details, classic cart) ---------- */
.shop_table, .woocommerce-orders-table, .woocommerce-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shop_table th, .shop_table td, .woocommerce-orders-table th, .woocommerce-orders-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shop_table thead th, .woocommerce-orders-table thead th { font-family: var(--f-display); font-weight: 600; border-bottom: 2px solid var(--ink); }
.shop_table tfoot th { font-family: var(--f-display); font-weight: 600; }
.shop_table tfoot tr:last-child th, .shop_table tfoot tr:last-child td { border-top: 2px solid var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.shop_table .button, .woocommerce-orders-table .button { min-height: 40px; padding: 6px 12px; font-size: 15px; }
.woocommerce-orders-table__cell-order-number a { font-family: var(--f-data); }

/* ---------- My account ---------- */
.woocommerce-account .carey-wc-page .woocommerce { display: grid; gap: 28px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); font-family: var(--f-display); font-weight: 600; font-size: 16px; text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a[aria-current="page"] { background: var(--accent); font-weight: 700; }
.woocommerce-MyAccount-content { display: grid; gap: 16px; max-width: 900px; }
.woocommerce-MyAccount-content > p { max-width: 70ch; }
#customer_login, .u-columns.col2-set, .woocommerce .col2-set, .woocommerce-Addresses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
#customer_login > div, .col2-set > .col-1, .col2-set > .col-2, .woocommerce-Address { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 14px; }
#customer_login h2, .woocommerce-Address h2, .woocommerce-Address h3, .woocommerce-column__title, .woocommerce-order-details__title { font-size: 24px; }
.woocommerce-Address-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
address { font-style: normal; line-height: 1.6; }
.woocommerce-form-login .form-row:last-of-type { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Order received ---------- */
.woocommerce-order { max-width: 820px; display: grid; gap: 24px; }
.woocommerce-thankyou-order-received, .woocommerce-notice--success { font-size: 18px; margin: 0; }
ul.woocommerce-order-overview { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); }
ul.woocommerce-order-overview li { padding: 14px 16px 14px 0; font-size: 14px; color: var(--muted); }
ul.woocommerce-order-overview li strong { display: block; color: var(--ink); font-family: var(--f-data); font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }
ul.woocommerce-order-overview li { min-width: 0; }
.carey-next .steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .carey-next .steps4 { grid-template-columns: 1fr; } }
.woocommerce-order-details, .woocommerce-customer-details { display: grid; gap: 12px; }
.carey-eta h2, .carey-next h2 { font-size: 24px; }
.carey-next .steps3 { margin-top: 16px; }

/* ==========================================================================
   Blocks: Cart and Checkout (kept as blocks, restyled). Prefixed with the
   .carey-wc body class so these rules win over the block stylesheets.
   ========================================================================== */
.carey-wc .wp-block-woocommerce-cart, .carey-wc .wp-block-woocommerce-checkout { font-family: var(--f-body); color: var(--ink); }
.carey-wc :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wc-block-components-drawer) * { box-shadow: none !important; }
.carey-wc :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :focus-visible,
.carey-wc :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) :is(input, select, textarea):focus { outline: 2px solid var(--ink) !important; outline-offset: 2px; }

/* Titles and labels */
.carey-wc .wc-block-components-title.wc-block-components-title { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--ink); text-transform: none; }
.carey-wc .wc-block-cart__totals-title, .carey-wc .wc-block-cart-items__header { font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.carey-wc .wc-block-components-checkout-step__title { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.carey-wc .wc-block-components-checkout-step__description { color: var(--muted); font-size: 15px; }
.carey-wc .wc-block-components-checkout-step__container::after { border-left-color: var(--line); }

/* Cart lines */
.carey-wc .wc-block-cart-items { border-top: 1px solid var(--line); border-bottom: 0; }
.carey-wc .wc-block-cart-items td, .carey-wc table.wc-block-cart-items .wc-block-cart-items__row td { border-top: 1px solid var(--line); }
.carey-wc .wc-block-cart-items__header th { border-bottom: 0; }
.carey-wc .wc-block-components-product-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.carey-wc a.wc-block-components-product-name:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.carey-wc .wc-block-cart-item__image img, .carey-wc .wc-block-components-order-summary-item__image img { border-radius: var(--r-sm); background: var(--surface); }
.carey-wc .wc-block-components-product-metadata, .carey-wc .wc-block-components-product-details { font-size: 15px; color: var(--ink); }
.carey-wc .wc-block-components-product-price, .carey-wc .wc-block-cart-item__total .wc-block-components-formatted-money-amount { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.carey-wc .wc-block-components-product-price del, .carey-wc .wc-block-components-product-price__regular { color: var(--muted); font-weight: 500; }
.carey-wc .wc-block-components-sale-badge, .carey-wc .wc-block-components-product-badge { background: var(--line); color: var(--ink); border: 0; border-radius: 99px; font-family: var(--f-display); font-weight: 500; font-size: 13px; text-transform: none; padding: 2px 10px; }
.carey-wc .wc-block-components-quantity-selector { background: var(--bg); border-radius: var(--r-sm); }
.carey-wc .wc-block-components-quantity-selector::after { border: 1px solid var(--ink); border-radius: var(--r-sm); opacity: 1; }
.carey-wc .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { font-family: var(--f-data); font-size: 16px; color: var(--ink); }
.carey-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 40px; min-height: 44px; color: var(--ink); font-family: var(--f-display); font-size: 20px; opacity: 1; }
.carey-wc .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { color: var(--muted); }
.carey-wc .wc-block-cart-item__remove-link, .carey-wc .wc-block-cart-item__remove-link:visited {
  font-family: var(--f-display); font-weight: 500; font-size: 15px !important; color: var(--ink) !important;
  text-decoration: underline !important; text-decoration-color: var(--accent) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
}

/* Summary panel (cart totals, checkout order summary) */
.carey-wc .wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block,
.carey-wc .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.carey-wc .wc-block-components-sidebar .wc-block-components-order-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px;
}
.carey-wc .wc-block-components-totals-wrapper { border-top: 1px solid var(--line); }
.carey-wc .wc-block-components-totals-wrapper:first-child { border-top: 0; }
.carey-wc .wc-block-components-totals-item__value { font-family: var(--f-display); font-weight: 500; font-variant-numeric: tabular-nums; } /* prices in Outfit, not the data face (audit 2026-11-09, fix 10c) */
.carey-wc .wc-block-components-totals-footer-item { border-top: 2px solid var(--ink); }
.carey-wc .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.carey-wc .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.carey-wc .wc-block-components-totals-footer-item-tax { font-size: 14px; color: var(--muted); }
.carey-wc .wc-block-components-panel__button { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.carey-wc .wc-block-components-order-summary-item__quantity { background: var(--bg); border: 1.5px solid var(--ink); color: var(--ink); font-family: var(--f-data); font-size: 12px; }

/* Primary button: Cala with a bold Roca label */
.carey-wc .wc-block-components-button:not(.is-link):not(.outlined),
.carey-wc .wc-block-cart__submit-button,
.carey-wc .wc-block-components-checkout-place-order-button,
.carey-wc .wp-block-woocommerce-cart .wp-element-button:not(.is-link):not(.outlined),
.carey-wc .wp-block-woocommerce-checkout .wp-element-button:not(.is-link):not(.outlined) {
  min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--ink); border: 0; border-radius: var(--r-sm);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; text-transform: none;
  transition: transform .15s ease, filter .15s ease;
}
.carey-wc .wc-block-components-button:not(.is-link):not(.outlined):hover,
.carey-wc .wc-block-cart__submit-button:hover,
.carey-wc .wc-block-components-checkout-place-order-button:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.carey-wc .wc-block-components-button:not(.is-link):not(.outlined) .wc-block-components-button__text { color: var(--ink); }
.carey-wc .wc-block-components-button.outlined { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-sm); font-family: var(--f-display); font-weight: 600; min-height: 44px; }
.carey-wc .wc-block-components-button.is-link, .carey-wc .wc-block-components-checkout-return-to-cart-button {
  color: var(--ink); font-family: var(--f-display); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.carey-wc .wc-block-components-checkout-return-to-cart-button svg { fill: var(--ink); }

/* Fields: Sal ground, 1px Roca border, 3px radius, data face */
.carey-wc .wc-block-components-text-input input[type="text"],
.carey-wc .wc-block-components-text-input input[type="email"],
.carey-wc .wc-block-components-text-input input[type="tel"],
.carey-wc .wc-block-components-text-input input[type="number"],
.carey-wc .wc-block-components-text-input input[type="password"],
.carey-wc .wc-block-components-text-input input[type="url"],
.carey-wc .wc-block-components-form .wc-block-components-text-input input,
.carey-wc .wc-block-components-textarea,
.carey-wc .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.carey-wc .wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--f-data); font-size: 15px;
}
.carey-wc .wc-block-components-text-input label, .carey-wc .wc-block-components-combobox .wc-block-components-combobox-control label,
.carey-wc .wc-blocks-components-select .wc-blocks-components-select__label { font-family: var(--f-display); font-weight: 500; color: var(--muted); }
.carey-wc .wc-blocks-components-select .wc-blocks-components-select__container { background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); }
.carey-wc .wc-blocks-components-select .wc-blocks-components-select__select { font-family: var(--f-data); font-size: 15px; color: var(--ink); border: 0; background: transparent; }
.carey-wc .wc-blocks-components-select .wc-blocks-components-select__container:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.carey-wc .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--ink); }

/* Errors: Roca text, an icon and a sentence (no error colour exists) */
.carey-wc .wc-block-components-validation-error { color: var(--ink); font-weight: 700; font-size: 14px; }
.carey-wc .wc-block-components-validation-error > p { display: flex; gap: 8px; align-items: start; }
.carey-wc .wc-block-components-validation-error svg { fill: var(--ink); }
.carey-wc .has-error input, .carey-wc .wc-block-components-text-input.has-error input,
.carey-wc .wc-block-components-combobox.has-error input, .carey-wc .has-error .wc-blocks-components-select__container { border: 2px solid var(--ink); }
.carey-wc .has-error label, .carey-wc .wc-block-components-text-input.has-error label { color: var(--ink); }

/* Checkboxes and radios: the selected option is Cala, the mark is Roca */
.carey-wc .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; background: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-sm); }
.carey-wc .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--accent); border-color: var(--ink); }
.carey-wc .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ink); }
.carey-wc .wc-block-components-checkbox label, .carey-wc .wc-block-checkout__terms { font-size: 15px; line-height: 1.45; }
.carey-wc .wc-block-components-radio-control .wc-block-components-radio-control__input { background: var(--bg); border: 1px solid var(--ink); }
.carey-wc .wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border: 1.5px solid var(--ink); }
.carey-wc .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--ink); }
.carey-wc .wc-block-components-radio-control--highlight-checked,
.carey-wc .wc-block-components-radio-control-accordion-option,
.carey-wc .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option { border-color: var(--ink); border-radius: var(--r-sm); background: var(--bg); }
.carey-wc .wc-block-components-radio-control--highlight-checked::after,
.carey-wc .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after { border-color: var(--ink); }
.carey-wc .wc-block-components-radio-control__option-checked,
.carey-wc .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.carey-wc .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked { background: var(--surface); outline: 2px solid var(--ink); outline-offset: -2px; }
.carey-wc .wc-block-components-radio-control__label, .carey-wc .wc-block-components-radio-control__option-layout { color: var(--ink); }
.carey-wc .wc-block-components-radio-control__secondary-label { font-family: var(--f-data); }

/* Address card, express payment, coupons */
.carey-wc .wc-block-components-address-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.carey-wc .wc-block-components-address-card__edit { color: var(--ink); font-family: var(--f-display); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.carey-wc .wc-block-components-express-payment--checkout, .carey-wc .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::before,
.carey-wc .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::after { border-color: var(--line); }
.carey-wc .wc-block-components-express-payment-continue-rule::before, .carey-wc .wc-block-components-express-payment-continue-rule::after { background: var(--line); }
.carey-wc .wc-block-components-totals-coupon__form { gap: 12px; }

/* Notices inside the blocks */
.carey-wc .wc-block-components-notice-banner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-size: 15px; }
.carey-wc .wc-block-components-notice-banner.is-error { border: 2px solid var(--ink); background: var(--surface); }
.carey-wc .wc-block-components-notice-banner.is-success, .carey-wc .wc-block-components-notice-banner.is-info, .carey-wc .wc-block-components-notice-banner.is-warning { background: var(--surface); border-color: var(--line); }
.carey-wc .wc-block-components-notice-banner > svg { background-color: var(--ink); fill: var(--bg); }
.carey-wc .wc-block-components-notice-banner a { color: var(--ink); }

/* Empty cart and product grids inside the blocks */
.carey-wc .wc-block-cart__empty-cart__title { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
.carey-wc .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { background-color: var(--line); }
.carey-wc .wc-block-grid__product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding-bottom: 18px; overflow: hidden; }
.carey-wc .wc-block-grid__product-title { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.carey-wc .wc-block-grid__product-price { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.carey-wc .wc-block-grid__product-onsale { background: var(--line); color: var(--ink); border: 0; border-radius: 99px; }
.carey-wc .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding-bottom: 14px; }

/* ---------- Cart: delivery, origin and returns under the Cart block (audit 2026-11-09, fix 6) ---------- */
.carey-cart-trust { max-width: 460px; margin: 24px 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pdp-gallery { position: static; }
}
@media (max-width: 720px) {
  .woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; grid-row: 1; }
  .flex-control-thumbs { grid-column: 1; grid-row: 2; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); overflow-x: auto; scrollbar-width: none; }
  /* Phone buy box higher (audit 2026-11-09, fix 7): one thumbnail row, square main photo (supplier photos are square), no repeated title in the crumbs. */
  .woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; }
  .single-product .crumbs li:last-child { display: none; }
  .carey-cart-trust { max-width: none; }
  #customer_login, .u-columns.col2-set, .woocommerce .col2-set, .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-ordering { min-width: 0; width: 100%; }
  .woocommerce-product-attributes th { width: 120px; }
  .carey-wc .wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .single_add_to_cart_button, .woocommerce .button.alt, .carey-wc .wc-block-components-button { transition: none !important; transform: none !important; }
}
