.commerce-page { min-height:100vh; color:var(--green); }
.commerce-header { display:flex; align-items:center; gap:1.1rem; justify-content:space-between; padding:1rem max(5vw,1rem); border-bottom:1px solid var(--stone); }
.commerce-header img { display:block; max-width:100%; }
[data-locale] { background:transparent; color:inherit; padding:.45rem .6rem; border:1px solid currentColor; cursor:pointer; font:inherit; }
.commerce-main { width:min(68rem,92vw); margin:2.6rem auto 4rem; }
.commerce-main h1 { font-size:clamp(2.25rem,5vw,4rem); margin:0 0 1.1rem; }
.commerce-main h2,.commerce-panel h2 { font-size:clamp(1.25rem,3vw,1.7rem); margin:0 0 .9rem; }
.commerce-narrow { width:min(46rem,92vw); }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:1rem; align-items:start; }
.commerce-card { padding:clamp(1rem,3vw,1.6rem); background:rgba(255,255,255,.28); border:1px solid var(--stone); }
.commerce-card label { display:grid; gap:.3rem; margin-block-end:.8rem; font-weight:600; }
.commerce-card input:not([type=radio]),.commerce-card select,.commerce-card textarea,.commerce-panel input:not([type=checkbox]),.commerce-panel select,.commerce-panel textarea { padding:.55rem; width:100%; border:1px solid var(--stone); color:var(--green); background:var(--cream); font:inherit; border-radius:0; }
.commerce-card fieldset { border:1px solid var(--stone); margin:.75rem 0; padding:.5rem .8rem; }
.commerce-card fieldset label { display:flex; align-items:center; gap:.6rem; margin:.3rem 0; }
.commerce-privacy,.commerce-status { font-size:.9rem; margin:.4rem 0 .9rem; }
.commerce-status:empty { display:none; }
.checkout-line { display:grid; grid-template-columns:3.4rem minmax(0,1fr) auto; align-items:start; gap:.65rem; padding:.65rem 0; border-bottom:1px solid var(--stone); }
.checkout-line img { width:3.4rem; aspect-ratio:1; object-fit:cover; }
.checkout-line p { margin:0; overflow-wrap:anywhere; }
.checkout-line input { max-width:5rem; }
.checkout-line .line-edit { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.45rem; }
.checkout-line button,.commerce-panel button:not(.button) { border:1px solid var(--stone); background:transparent; color:var(--green); padding:.4rem .6rem; cursor:pointer; font:inherit; }
.checkout-totals { margin:1rem 0 0; }
.checkout-totals div { display:flex; justify-content:space-between; margin:.25rem 0; }
.checkout-totals dd { margin:0; }
.checkout-totals div:last-child { font-weight:700; }
.commerce-panel { display:grid; gap:.9rem; margin-block:1rem; }
.commerce-panel p { overflow-wrap:anywhere; }
.commerce-panel .tools { display:flex; flex-wrap:wrap; gap:.45rem; align-items:end; margin-block:.6rem; }
.commerce-panel .tools input { width:auto; max-width:100%; }
.commerce-panel label { display:grid; gap:.25rem; }
.commerce-panel .check { display:flex; align-items:center; gap:.5rem; }
.commerce-table-wrap { overflow:auto; }
.commerce-table { width:100%; border-collapse:collapse; text-align:start; font-size:.92rem; }
.commerce-table th,.commerce-table td { border-bottom:1px solid var(--stone); padding:.4rem; text-align:start; vertical-align:top; }
.commerce-table td input { min-width:5rem; }
.commerce-table td button { white-space:nowrap; }
.commerce-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:.55rem; }
.commerce-metrics p { margin:0; padding:.6rem; background:var(--cream); }
.commerce-metrics strong { display:block; font-size:1.2rem; }
.commerce-charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:.7rem; }
.commerce-chart { padding:.65rem; border:1px solid var(--stone); }
.commerce-chart h3 { margin:.1rem 0 .5rem; }
.commerce-chart li { list-style:none; display:grid; grid-template-columns:minmax(4.5rem,1fr) 2fr auto; align-items:center; gap:.4rem; margin:.15rem 0; }
.commerce-chart ul { margin:0; padding:0; }
.commerce-chart meter { width:100%; accent-color:var(--green); }
.commerce-shipping { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap:.45rem; }
.product-quantity { width:5rem; padding:.3rem; border:1px solid var(--stone); background:transparent; color:inherit; font:inherit; }
.swatch:disabled { opacity:.32; cursor:not-allowed; }
[dir="rtl"] .commerce-main,[dir="rtl"] .commerce-panel { font-family:Arial,sans-serif; }
[dir="rtl"] .commerce-main h1,[dir="rtl"] .commerce-main h2 { font-family:Arial,sans-serif; }
@media(max-width:680px) { .checkout-grid { grid-template-columns:1fr; } .checkout-grid>section { grid-row:1; } }

.commerce-check { display:flex !important; align-items:flex-start; gap:.5rem; }
.commerce-card .commerce-check input[type="checkbox"] { width:auto; margin-top:.3rem; }
.deposit-instructions { white-space:pre-wrap; overflow-wrap:anywhere; }
.commerce-card .button { margin:.3rem; }
.deposit-proof { display:block; width:min(32rem,100%); height:auto; margin-block:.5rem; }

/* Checkout structure uses the existing brand variables and input/button styles. */
.checkout-steps { display:flex; flex-wrap:wrap; gap:.6rem 1.3rem; list-style:none; padding:0; margin:0 0 1rem; font-size:.9rem; }
.checkout-steps [aria-current="step"] { font-weight:700; text-decoration:underline; text-underline-offset:.25rem; }
.checkout-form-section + .checkout-form-section { border-top:1px solid var(--stone); margin-top:1.2rem; padding-top:1.2rem; }
.checkout-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .8rem; }
.checkout-grid > section { min-width:0; }
.order-reference { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-block:.6rem 1rem; }
.order-reference code { overflow-wrap:anywhere; font:inherit; font-weight:700; }
.order-delivery { white-space:pre-line; overflow-wrap:anywhere; }
.order-timeline { padding-inline-start:1.3rem; margin-block:1rem; }
.order-timeline li { margin-block:.4rem; }
.swatch[data-unavailable="true"] { opacity:.4; }
@media(min-width:681px) { .checkout-grid > section { position:sticky; top:6rem; } }
@media(max-width:480px) { .checkout-field-grid { grid-template-columns:1fr; } }

.order-contact { display:grid; grid-template-columns:minmax(7rem,.7fr) minmax(0,1fr); gap:.35rem .8rem; margin-block:.8rem 1.2rem; }
.order-contact dd { margin:0; overflow-wrap:anywhere; }
.order-reference .button { min-height:0; padding:.5rem .7rem; font-size:.85rem; }
