/* ==========================================================================
   Cart, checkout and account (WooCommerce blocks + classic account pages).
   Loaded only on those pages. Uses design tokens so light/dark both work.
   ========================================================================== */

.article--store .article__head { padding-bottom: var(--sp-4); }
.store { --wc-form-color-background: var(--surface); --wc-form-border-color: var(--line-strong); --wc-form-border-radius: var(--r-1); color: var(--text); }

/* Shared block typography */
.store .wc-block-components-title,
.store .wc-block-cart__totals-title,
.store .wc-block-cart-items th,
.store .wc-block-components-checkout-step__title { font-family: var(--font-mono) !important; font-size: var(--fs-2xs) !important; font-weight: 600 !important; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-2); }
.store .wc-block-components-checkout-step__title { font-size: var(--fs-xs) !important; color: var(--text); }
.store .wc-block-components-product-name { color: var(--text); font-weight: 700; text-decoration: none; }
.store .wc-block-components-product-name:hover { color: var(--link); }
.store .wc-block-components-product-metadata { color: var(--text-2); font-size: var(--fs-xs); }
.store .wc-block-components-formatted-money-amount,
.store .wc-block-components-product-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.store .wc-block-cart-item__image img, .store .wc-block-components-order-summary-item__image img { background: var(--img-plate); border-radius: var(--r-1); aspect-ratio: 3 / 2; object-fit: cover; }

/* Totals / order summary as a panel */
.store .wc-block-cart__sidebar .wc-block-components-sidebar,
.store .wp-block-woocommerce-cart-totals-block,
.store .wc-block-checkout__sidebar .wc-block-components-order-summary,
.store .wp-block-woocommerce-checkout-order-summary-block { padding: var(--sp-5); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-1); }
.store .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.store .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: var(--fs-h4); font-weight: 800; }
.store .wc-block-components-totals-wrapper { border-color: var(--line); }

/* Primary actions */
.store .wc-block-cart__submit-button,
.store .wc-block-components-checkout-place-order-button,
.store .wc-block-components-button.contained { min-height: 3.25rem; border: 0 !important; border-radius: var(--r-1) !important; background: var(--accent) !important; color: var(--on-accent) !important; font-family: var(--font-sans); font-weight: 700; font-stretch: 100%; text-decoration: none; box-shadow: none !important; }
.store .wc-block-cart__submit-button:hover,
.store .wc-block-components-checkout-place-order-button:hover,
.store .wc-block-components-button.contained:hover { background: var(--accent-hover) !important; }
.store .wc-block-components-button.outlined { border-radius: var(--r-1); color: var(--text); }

/* Fields */
.store .wc-block-components-text-input input,
.store .wc-block-components-combobox .wc-block-components-combobox-control input,
.store .wc-blocks-components-select .wc-blocks-components-select__select,
.store .wc-block-components-textarea { background: var(--surface) !important; color: var(--text) !important; border: var(--bw) solid var(--line-strong) !important; border-radius: var(--r-1) !important; font-size: max(16px, var(--fs-base)) !important; }
.store .wc-block-components-text-input label,
.store .wc-blocks-components-select__label { color: var(--text-2) !important; }
.store .wc-block-components-text-input input:focus,
.store .wc-blocks-components-select__select:focus { outline: none; border-color: var(--focus) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent) !important; }
.store .wc-block-components-validation-error p { color: var(--danger); }
.store .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-color: var(--line-strong); background: var(--surface); }
.store .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.store .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--on-accent); }
.store .wc-block-components-radio-control__option,
.store .wc-block-components-radio-control-accordion-option { border-color: var(--line-strong) !important; border-radius: var(--r-1); }
.store .wc-block-components-quantity-selector { border-color: var(--line-strong); border-radius: var(--r-1); }
.store .wc-block-components-quantity-selector input { color: var(--text); background: transparent; }
.store .wc-block-components-quantity-selector__button { color: var(--text); }

/* Notices inside blocks */
.store .wc-block-components-notice-banner { border-radius: var(--r-1); background: var(--surface); color: var(--text); border-color: var(--line-strong); }

/* Delivery reminder under totals (added by the theme) */
.store-note { margin-top: var(--sp-4); padding: var(--sp-4); border-left: 4px solid var(--info); background: var(--surface); border-radius: var(--r-1); font-size: var(--fs-sm); }
.store-note a { font-weight: 600; }

/* Classic My Account */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 2.5rem; align-items: center; padding: 0 var(--sp-4); border: var(--bw) solid var(--line-strong); border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--surface-inverse); color: var(--text-inverse); border-color: var(--surface-inverse); }
.woocommerce-account .woocommerce form .form-row { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.woocommerce-account .woocommerce form .button,
.woocommerce-account .woocommerce .button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-1); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.woocommerce-account .u-columns { display: grid; gap: var(--sp-6); }
@media (min-width: 64rem) { .woocommerce-account .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-account table.shop_table { width: 100%; font-size: var(--fs-sm); }
.woocommerce-account table.shop_table th, .woocommerce-account table.shop_table td { padding: 0.75rem; border-bottom: var(--bw) solid var(--line); text-align: left; }

/* Order received (classic template) */
.woocommerce-order { display: grid; gap: var(--sp-5); max-width: 56rem; }
.woocommerce-order .woocommerce-notice--success { font-size: var(--fs-h4); font-weight: 700; padding: var(--sp-4); border-left: 4px solid var(--success); background: var(--surface); border-radius: var(--r-1); }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border: var(--bw) solid var(--line); border-radius: var(--r-1); background: var(--surface); }
.woocommerce-order-overview li { padding: var(--sp-4); border-right: var(--bw) solid var(--line); font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.woocommerce-order-overview li strong { display: block; margin-top: var(--sp-1); font-family: var(--font-sans); font-size: var(--fs-base); text-transform: none; letter-spacing: 0; color: var(--text); }
.woocommerce-order h2, .woocommerce-customer-details h2, .woocommerce-order-details__title, .woocommerce-column__title { font-size: var(--fs-h4) !important; margin-bottom: var(--sp-3); }
.woocommerce-table--order-details { width: 100%; font-size: var(--fs-sm); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-1); }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 0.75rem 1rem; border-bottom: var(--bw) solid var(--line); text-align: left; }
.woocommerce-table--order-details tfoot th { font-weight: 600; color: var(--text-2); }
.woocommerce-customer-details address { font-style: normal; padding: var(--sp-4); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-1); }
.woocommerce-columns--addresses { display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }
