/*
 * La Casarana - cart, checkout, order received and sale terms.
 * Loaded only on those pages (inc/shop.php). Same tokens, fonts and sharp
 * corners as app.css; the WooCommerce blocks are brought to the site language.
 */

.lc-shop .ddk-main { padding: calc(var(--hdr) + clamp(40px, 6vw, 88px)) var(--gutter) var(--sec); background: var(--bg); }
.lc-shophead { max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 52px); display: grid; gap: 10px; }
.lc-shophead .lc-h2 { margin: 0; }
.lc-shophead p { margin: 0; max-width: 62ch; color: var(--muted); }
.lc-shophead__back { justify-self: start; margin-top: 6px; }

.lc-shop .wp-block-woocommerce-checkout,
.lc-shop .wp-block-woocommerce-cart,
.lc-shop .woocommerce-order,
.lc-shop .wc-block-order-confirmation,
.lc-shop .lc-shopwrap { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ typography */
.lc-shop .wc-block-components-main,
.lc-shop .wc-block-components-sidebar,
.lc-shop .wc-block-cart,
.lc-shop .wc-block-checkout,
.lc-shop .wc-block-components-text-input input,
.lc-shop .wc-block-components-combobox input,
.lc-shop .wc-block-components-select select,
.lc-shop .wc-block-components-textarea,
.lc-shop .wc-block-components-button,
.lc-shop .wc-block-components-checkbox__label { font-family: var(--f-body); color: var(--ink); }

.lc-shop .wc-block-components-title.wc-block-components-title,
.lc-shop .wc-block-components-checkout-step__title,
.lc-shop .wc-block-cart__totals-title,
.lc-shop .wc-block-components-order-summary__button-text,
.lc-shop .wp-block-woocommerce-order-confirmation-status h1,
.lc-shop .wc-block-order-confirmation-totals__title,
.lc-shop .wc-block-order-confirmation-additional-fields-wrapper h2,
.lc-shop .wc-block-order-confirmation-billing-address-wrapper h2 {
  font-family: var(--f-head); font-weight: 300; color: var(--accent); letter-spacing: 0; text-transform: none;
}
.lc-shop .wc-block-components-checkout-step__title { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.lc-shop .wc-block-components-product-name { font-family: var(--f-head); font-weight: 300; font-size: 1.2rem; color: var(--accent); text-decoration: none; }
.lc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.lc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--f-head); font-weight: 300; font-size: 1.6rem; color: var(--accent); }
.lc-shop .wc-block-components-checkout-step__description,
.lc-shop .wc-block-components-product-metadata,
.lc-shop .wc-block-checkout__terms { color: var(--muted); }
.lc-shop a:not(.lc-btn):not(.lc-link):not(.wc-block-components-product-name):not(.wc-block-components-button) { color: var(--accent); text-underline-offset: 3px; }

/* --------------------------------------------------------------- fields */
.lc-shop .wc-block-components-text-input input,
.lc-shop .wc-block-components-combobox .wc-block-components-combobox-control input,
.lc-shop .wc-block-components-select .wc-blocks-components-select__select,
.lc-shop .wc-block-components-textarea,
.lc-shop .wc-block-components-form .wc-block-components-text-input input {
  border-radius: 0 !important; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent) !important;
  background: var(--surface) !important; color: var(--ink) !important; box-shadow: none !important;
}
.lc-shop .wc-block-components-text-input input:focus,
.lc-shop .wc-block-components-select .wc-blocks-components-select__select:focus,
.lc-shop .wc-block-components-textarea:focus { border-color: var(--accent) !important; outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.lc-shop .wc-block-components-text-input label,
.lc-shop .wc-block-components-select label,
.lc-shop .wc-block-components-combobox label { color: var(--muted) !important; }
.lc-shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 0; border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface); }
.lc-shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--accent-solid); border-color: var(--accent-solid); }
.lc-shop .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--on-accent); }
.lc-shop .wc-block-components-radio-control__option,
.lc-shop .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }
.lc-shop .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.lc-shop .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 1.5px var(--accent) !important; }
.lc-shop .wc-block-components-radio-control__input { border-color: color-mix(in srgb, var(--accent) 45%, transparent) !important; }
.lc-shop .wc-block-components-radio-control__input:checked::before { background: var(--accent-solid) !important; }
.lc-shop .wc-block-components-panel,
.lc-shop .wc-block-components-totals-wrapper,
.lc-shop .wc-block-components-order-summary-item,
.lc-shop .wc-block-cart-items td,
.lc-shop .wc-block-cart-items th { border-color: var(--line) !important; }

/* -------------------------------------------------------------- buttons */
.lc-shop .wc-block-components-button:not(.is-link),
.lc-shop .wc-block-cart__submit-button,
.lc-shop .wc-block-components-checkout-place-order-button {
  border-radius: 0 !important; background: var(--accent-solid) !important; color: var(--on-accent) !important;
  border: 1px solid var(--accent-solid) !important; min-height: 56px;
  font-family: var(--f-body); font-weight: 500; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.lc-shop .wc-block-components-button:not(.is-link):hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.lc-shop .wc-block-components-button.is-link { color: var(--accent); }
.lc-shop .wc-block-components-quantity-selector { border-radius: 0; }
.lc-shop .wc-block-components-quantity-selector::after { border-radius: 0 !important; border-color: var(--line) !important; }

/* ------------------------------------------------------------- summary */
.lc-shop .wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-panel,
.lc-shop .wp-block-woocommerce-checkout-order-summary-block { background: var(--band-soft); border: 0 !important; border-radius: 0; }
.lc-shop .wp-block-woocommerce-checkout-order-summary-block { padding: 6px 4px; }
.lc-shop .wc-block-components-order-summary-item__image img,
.lc-shop .wc-block-cart-item__image img { border-radius: 0; }
.lc-shop .wc-block-components-order-summary-item__quantity { background: var(--accent-solid); color: var(--on-accent); border-color: var(--accent-solid); box-shadow: none; }
.lc-shop .wc-block-components-notice-banner { border-radius: 0; }
.lc-shop .wc-block-components-sale-badge { border-radius: 0; color: var(--accent); border-color: var(--accent); background: transparent; }

/* ------------------------------------------------------- order received */
.lc-shop .woocommerce-order-overview,
.lc-shop .woocommerce-thankyou-order-details { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.lc-shop .lc-vcodes strong { letter-spacing: .12em; color: var(--accent); }

/* ------------------------------------------------------------ sale terms */
.lc-legal { max-width: 76ch; margin: 0 auto; }
.lc-legal h2 { font-family: var(--f-head); font-weight: 300; color: var(--accent); font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 2em 0 .5em; }
.lc-legal p, .lc-legal li { line-height: 1.7; }
.lc-legal ul { padding-left: 1.2em; }
.lc-legal__updated { color: var(--muted); font-size: .9rem; }
.lc-shop .lc-shophead--legal { max-width: 76ch; }

/* order received: headings and the gift fields list */
.lc-confirm h2, .lc-confirm h3 { font-family: var(--f-head); font-weight: 300; color: var(--accent); font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: 0; }
.lc-confirm .wc-block-components-additional-fields-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
.lc-confirm .wc-block-components-additional-fields-list dt { font-weight: 500; margin: 10px 0 0; }
.lc-confirm .wc-block-components-additional-fields-list dd { margin: 0; color: var(--muted); }
.lc-confirm .wc-block-order-confirmation-summary-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.lc-shop .wc-block-components-button { text-decoration: none !important; }
.lc-shop .wc-block-cart-item__product .wc-block-components-product-name { font-size: 1.3rem; }
