/* HELEOS commerce flow: cart + checkout */
.commerce-breadcrumbs { padding-top: 24px; padding-bottom: 10px; }
.commerce-hero { padding: 30px 0 34px; background: linear-gradient(180deg, #f7f9fc 0%, #f3f5f9 100%); border-bottom: 1px solid #e8ebf0; }
.commerce-hero-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 40px; }
.commerce-hero h1 { margin: 4px 0 0; color: #17191f; font-size: clamp(44px,5vw,68px); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
.commerce-hero p:not(.eyebrow) { max-width: 680px; margin: 16px 0 0; color: #696e79; font-size: 16px; line-height: 1.55; }
.commerce-steps { display: flex; align-items: center; gap: 0; margin: 0 0 4px; padding: 0; list-style: none; }
.commerce-steps li { position: relative; display: flex; align-items: center; gap: 9px; min-width: 138px; color: #979ca7; font-size: 12px; font-weight: 650; }
.commerce-steps li:not(:last-child):after { content: ""; width: 44px; height: 1px; margin: 0 12px; background: #d6dae2; }
.commerce-steps span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #d9dde5; border-radius: 50%; background: #fff; color: #8b909b; font-size: 12px; font-weight: 800; }
.commerce-steps .is-active { color: #20232b; }
.commerce-steps .is-active span { border-color: #34429b; background: #34429b; color: #fff; box-shadow: 0 8px 20px rgba(52,66,155,.18); }
.commerce-steps .is-done { color: #34429b; }
.commerce-steps .is-done span { border-color: #dbe0ff; background: #eef1ff; color: #34429b; }
.commerce-section { padding: 42px 0 82px; }
.commerce-kicker { display: block; color: #34429b; font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.commerce-text-link { color: #34429b; font-size: 13px; font-weight: 700; }
.commerce-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cart */
.commerce-cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 24px; align-items: start; }
.commerce-cart-card, .commerce-summary, .commerce-panel, .commerce-empty-state, .commerce-errors { border: 1px solid #e4e7ed; border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(22,31,62,.05); }
.commerce-cart-card { overflow: hidden; }
.commerce-cart-card-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 26px 28px 20px; border-bottom: 1px solid #eef0f4; }
.commerce-cart-card-head h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.035em; }
.commerce-cart-items { padding: 0 28px; }
.commerce-cart-item { position: relative; display: grid; grid-template-columns: 128px minmax(0,1fr) 142px 150px 44px; align-items: center; gap: 20px; min-height: 168px; padding: 22px 0; border-bottom: 1px solid #edf0f4; transition: opacity .2s ease, transform .2s ease, max-height .26s ease, padding .26s ease, margin .26s ease; }
.commerce-cart-item:last-child { border-bottom: 0; }
.commerce-cart-item.is-removing { opacity: 0; transform: translateX(14px); }
.commerce-cart-image { display: grid; place-items: center; width: 128px; height: 128px; overflow: hidden; border-radius: 18px; background: linear-gradient(145deg,#f9fafc,#eff2f6); }
.commerce-cart-image img { width: 112px; height: 112px; object-fit: contain; transition: transform .22s ease; }
.commerce-cart-image:hover img { transform: scale(1.04); }
.commerce-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.commerce-product-meta span { color: #34429b; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.commerce-product-meta i { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: #eef8f1; color: #2a7a4f; font-size: 10px; font-style: normal; font-weight: 700; }
.commerce-cart-copy h3 { margin: 0; max-width: 560px; color: #1d2027; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.commerce-cart-copy h3 a:hover { color: #34429b; }
.commerce-cart-copy p { margin: 9px 0 0; color: #818691; font-size: 12px; line-height: 1.5; }
.commerce-mobile-unit-price { display: none; }
.commerce-qty-wrap > span, .commerce-line-price > span { display: block; margin-bottom: 8px; color: #999ea8; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.commerce-qty { display: grid; grid-template-columns: 38px 54px 38px; align-items: center; height: 42px; overflow: hidden; border: 1px solid #dcdfe6; border-radius: 12px; background: #f8f9fb; }
.commerce-qty button { display: grid; place-items: center; height: 100%; border: 0; background: transparent; color: #535967; font-size: 20px; line-height: 1; transition: background .15s ease, color .15s ease; }
.commerce-qty button:hover { background: #eef1f7; color: #34429b; }
.commerce-qty button:disabled { opacity: .35; cursor: wait; }
.commerce-qty input { width: 100%; height: 100%; padding: 0; border: 0; border-left: 1px solid #e2e4e9; border-right: 1px solid #e2e4e9; background: #fff; text-align: center; outline: 0; font-weight: 700; -moz-appearance: textfield; }
.commerce-qty input::-webkit-outer-spin-button, .commerce-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.commerce-line-price strong { display: block; color: #191c22; font-size: 20px; letter-spacing: -.025em; white-space: nowrap; }
.commerce-line-price small { display: block; margin-top: 3px; color: #989da6; font-size: 11px; }
.commerce-remove { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #eceef2; border-radius: 12px; background: #fff; color: #959aa5; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.commerce-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.commerce-remove:hover { border-color: #f0caca; background: #fff7f7; color: #c84d4d; }
.commerce-cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px 24px; border-top: 1px solid #f0f1f4; }
.commerce-cart-footer p { margin: 0; color: #8c919b; font-size: 11px; }
.commerce-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #36a46b; }
.commerce-manual-update { min-height: 42px; }
.js .commerce-manual-update { display: none; }

/* Summary */
.commerce-summary { position: sticky; top: calc(var(--header-offset) + 18px); padding: 28px; }
.commerce-summary-head h2 { margin: 5px 0 0; color: #1b1e25; font-size: 28px; letter-spacing: -.04em; }
.commerce-summary-lines { display: grid; gap: 13px; margin-top: 25px; padding: 20px 0; border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; }
.commerce-summary-lines > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: #737985; font-size: 13px; }
.commerce-summary-lines strong { color: #242730; font-size: 13px; text-align: right; }
.commerce-summary-muted { max-width: 170px; color: #8d929b !important; font-weight: 600; }
.commerce-summary-total { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 0 0; }
.commerce-summary-total span { color: #555a66; font-size: 14px; font-weight: 700; }
.commerce-summary-total strong { color: #13161c; font-size: 30px; line-height: 1; letter-spacing: -.045em; }
.commerce-checkout-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 22px; border-radius: 12px; }
.commerce-checkout-button span { font-size: 18px; }
.commerce-assurances { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #eceef2; }
.commerce-assurances > div { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 11px; }
.commerce-assurances svg { width: 24px; height: 24px; margin: 2px 0 0 4px; fill: none; stroke: #34429b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.commerce-assurances b, .commerce-assurances small { display: block; }
.commerce-assurances b { color: #30343d; font-size: 12px; }
.commerce-assurances small { margin-top: 2px; color: #9297a1; font-size: 10px; line-height: 1.4; }

/* Empty cart */
.commerce-empty-state { max-width: 720px; margin: 10px auto 0; padding: 64px 38px; text-align: center; }
.commerce-empty-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 24px; background: #eef1ff; color: #34429b; }
.commerce-empty-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.commerce-empty-state h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.commerce-empty-state p { max-width: 500px; margin: 12px auto 24px; color: #777c87; }

/* Checkout */
.commerce-checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 24px; align-items: start; }
.commerce-checkout-main { display: grid; gap: 16px; }
.commerce-panel { padding: 28px; }
.commerce-panel-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.commerce-panel-head h2 { margin: 4px 0 0; color: #1d2027; font-size: 25px; letter-spacing: -.035em; }
.commerce-step-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-top: 1px; border-radius: 11px; background: #eef1ff; color: #34429b; font-size: 12px; font-weight: 800; }
.commerce-choice-grid { display: grid; gap: 12px; }
.commerce-choice-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.commerce-choice-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.commerce-choice-card { position: relative; display: grid; grid-template-columns: 46px 1fr 20px; align-items: start; gap: 13px; min-height: 118px; padding: 18px; border: 1px solid #e2e5eb; border-radius: 16px; background: #fafbfc; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.commerce-choice-card:hover { transform: translateY(-1px); border-color: #cfd5e2; background: #fff; }
.commerce-choice-card:has(input:checked) { border-color: #34429b; background: #f7f8ff; box-shadow: inset 0 0 0 1px #34429b; }
.commerce-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.commerce-choice-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #eef1ff; color: #34429b; }
.commerce-choice-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.commerce-choice-card b, .commerce-choice-card small { display: block; }
.commerce-choice-card b { margin-top: 1px; color: #2b2e35; font-size: 13px; }
.commerce-choice-card small { margin-top: 6px; color: #878c96; font-size: 10.5px; line-height: 1.45; }
.commerce-choice-card > i { position: relative; width: 18px; height: 18px; margin-top: 3px; border: 1px solid #cdd2dc; border-radius: 50%; background: #fff; }
.commerce-choice-card:has(input:checked) > i { border: 5px solid #34429b; }
.commerce-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.commerce-field { display: grid; gap: 7px; }
.commerce-field-full { grid-column: 1 / -1; }
.commerce-field label { color: #5b606a; font-size: 11px; font-weight: 700; }
.commerce-field input, .commerce-field textarea { width: 100%; border: 1px solid #dfe2e8; border-radius: 12px; background: #f8f9fb; outline: 0; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.commerce-field input { height: 48px; padding: 0 14px; }
.commerce-field textarea { min-height: 104px; padding: 13px 14px; resize: vertical; }
.commerce-field input:focus, .commerce-field textarea:focus { border-color: #9fa8d9; background: #fff; box-shadow: 0 0 0 4px rgba(52,66,155,.08); }
.commerce-field.is-hidden { display: none; }
.commerce-payment-info { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: start; gap: 15px; padding: 18px; border: 1px solid #e1e5eb; border-radius: 16px; background: #f9fafc; }
.commerce-payment-info.is-hidden { display: none; }
.commerce-payment-info b { display: block; color: #292c34; font-size: 14px; }
.commerce-payment-info p { margin: 5px 0 0; color: #858a95; font-size: 11px; line-height: 1.5; }
.commerce-payment-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #eef1ff; color: #34429b; font-size: 10px; font-weight: 800; }
.commerce-delivery-card { min-height: 146px; grid-template-columns: 42px 1fr 18px; padding: 16px; }
.commerce-delivery-card .commerce-choice-icon { width: 42px; height: 42px; }
.commerce-delivery-address { margin-top: 16px; }
.commerce-delivery-address.is-hidden { display: none; }
.commerce-pickup-note { display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 12px; margin-top: 16px; padding: 15px 16px; border-radius: 14px; background: #f5f7fb; }
.commerce-pickup-note.is-hidden { display: none; }
.commerce-pickup-note svg { width: 28px; height: 28px; fill: none; stroke: #34429b; stroke-width: 1.6; }
.commerce-pickup-note b, .commerce-pickup-note small { display: block; }
.commerce-pickup-note b { color: #373b44; font-size: 12px; }
.commerce-pickup-note small { margin-top: 3px; color: #8b909a; font-size: 10px; }
.commerce-comment-panel textarea { min-height: 116px; }
.commerce-errors { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-bottom: 18px; padding: 16px 18px; border-color: #f0cccc; background: #fff7f7; color: #8b3333; }
.commerce-errors strong { font-size: 13px; }
.commerce-errors span { font-size: 12px; }
.commerce-checkout-summary { padding: 26px; }
.commerce-checkout-summary-head { position: relative; padding-right: 90px; }
.commerce-checkout-summary-head a { position: absolute; top: 7px; right: 0; color: #34429b; font-size: 11px; font-weight: 700; }
.commerce-checkout-products { display: grid; gap: 14px; margin-top: 22px; padding: 18px 0; border-top: 1px solid #eceef2; border-bottom: 1px solid #eceef2; }
.commerce-checkout-product { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.commerce-checkout-product img { width: 58px; height: 58px; object-fit: contain; padding: 4px; border-radius: 12px; background: #f3f5f8; }
.commerce-checkout-product b, .commerce-checkout-product span, .commerce-checkout-product small { display: block; min-width: 0; }
.commerce-checkout-product b { color: #34429b; font-size: 10px; }
.commerce-checkout-product span { overflow: hidden; margin-top: 2px; color: #4d525d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.commerce-checkout-product small { margin-top: 3px; color: #979ca6; font-size: 9px; }
.commerce-checkout-product > strong { color: #2b2e35; font-size: 12px; white-space: nowrap; }
.commerce-consent { display: grid; grid-template-columns: 18px 1fr; gap: 9px; margin-top: 20px; color: #858a94; font-size: 10px; line-height: 1.5; }
.commerce-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #34429b; }
.commerce-consent a { color: #34429b; text-decoration: underline; text-underline-offset: 2px; }
.commerce-summary-note { margin: 12px 0 0; color: #9297a1; font-size: 10px; line-height: 1.5; text-align: center; }
.commerce-checkout-help { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #eceef2; color: #898e98; font-size: 10px; }
.commerce-checkout-help a { color: #2d3139; font-size: 12px; font-weight: 750; }

@media (max-width: 1180px) {
  .commerce-cart-layout { grid-template-columns: minmax(0,1fr) 340px; }
  .commerce-cart-item { grid-template-columns: 110px minmax(0,1fr) 126px 128px 40px; gap: 14px; }
  .commerce-cart-image { width: 110px; height: 110px; }
  .commerce-cart-image img { width: 98px; height: 98px; }
  .commerce-checkout-layout { grid-template-columns: minmax(0,1fr) 350px; }
  .commerce-choice-grid-3 { grid-template-columns: 1fr; }
  .commerce-delivery-card { min-height: 100px; }
}

@media (max-width: 960px) {
  .commerce-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .commerce-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .commerce-cart-layout, .commerce-checkout-layout { grid-template-columns: 1fr; }
  .commerce-summary { position: static; }
  .commerce-cart-item { grid-template-columns: 100px minmax(0,1fr) 126px 120px 40px; }
  .commerce-checkout-summary { order: 2; }
}

@media (max-width: 720px) {
  .commerce-breadcrumbs { padding-top: 16px; }
  .commerce-hero { padding: 24px 0 26px; }
  .commerce-hero h1 { font-size: clamp(38px,11vw,50px); }
  .commerce-hero p:not(.eyebrow) { margin-top: 12px; font-size: 14px; }
  .commerce-steps li { min-width: auto; font-size: 10px; }
  .commerce-steps li:not(:last-child):after { width: 24px; margin: 0 8px; }
  .commerce-steps span { width: 26px; height: 26px; flex-basis: 26px; }
  .commerce-steps b { display: none; }
  .commerce-section { padding: 24px 0 62px; }
  .commerce-cart-card-head { align-items: flex-start; padding: 20px; }
  .commerce-cart-card-head h2 { font-size: 22px; }
  .commerce-cart-items { padding: 0 20px; }
  .commerce-cart-item { grid-template-columns: 86px minmax(0,1fr) 38px; gap: 12px; min-height: 0; padding: 18px 0; }
  .commerce-cart-image { grid-row: 1 / span 2; width: 86px; height: 86px; border-radius: 14px; }
  .commerce-cart-image img { width: 76px; height: 76px; }
  .commerce-cart-copy { grid-column: 2; }
  .commerce-cart-copy h3 { font-size: 14px; }
  .commerce-cart-copy p { display: none; }
  .commerce-mobile-unit-price { display: block; margin-top: 7px; color: #777d88; font-size: 10px; }
  .commerce-qty-wrap { grid-column: 2; grid-row: 2; }
  .commerce-qty-wrap > span { display: none; }
  .commerce-line-price { grid-column: 2; grid-row: 3; }
  .commerce-line-price > span, .commerce-line-price small { display: none; }
  .commerce-line-price strong { font-size: 18px; }
  .commerce-remove { grid-column: 3; grid-row: 1; width: 36px; height: 36px; }
  .commerce-cart-footer { padding: 15px 20px 20px; }
  .commerce-cart-footer p { display: none; }
  .commerce-summary { padding: 22px; }
  .commerce-choice-grid-2 { grid-template-columns: 1fr; }
  .commerce-form-grid { grid-template-columns: 1fr; }
  .commerce-panel { padding: 22px 18px; }
  .commerce-panel-head h2 { font-size: 22px; }
  .commerce-payment-info { grid-template-columns: 44px 1fr; }
  .commerce-payment-badge { display: none; }
  .commerce-checkout-product { grid-template-columns: 50px minmax(0,1fr) auto; }
  .commerce-checkout-product img { width: 50px; height: 50px; }
}

@media (max-width: 440px) {
  .commerce-cart-card-head { display: grid; gap: 8px; }
  .commerce-cart-item { grid-template-columns: 76px minmax(0,1fr) 34px; }
  .commerce-cart-image { width: 76px; height: 76px; }
  .commerce-cart-image img { width: 68px; height: 68px; }
  .commerce-qty { grid-template-columns: 34px 46px 34px; }
  .commerce-summary-total strong { font-size: 26px; }
  .commerce-choice-card { grid-template-columns: 40px 1fr 18px; padding: 14px; }
  .commerce-choice-icon { width: 40px; height: 40px; }
}
