/* Row-based shopping lists share product, price, checkbox and summary components. */
.commerce-page { --commerce-summary-width: 320px; --commerce-column-gap: 28px; max-width: 1440px; margin-inline: auto; padding-block: 40px 72px; font-family: var(--font-inter); }
.commerce-page__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.commerce-page__heading .ui-eyebrow { margin: 0 0 12px; }
.commerce-page__heading--title-row { display: block; }
.commerce-page__title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.commerce-page h1 { margin: 0; font: 600 36px/1.2 var(--font-manrope); letter-spacing: -.035em; }
.commerce-page__hint { margin: -8px 0 24px; color: var(--color-text-secondary); font-size: 13px; }
.commerce-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--commerce-summary-width); gap: var(--commerce-column-gap); align-items: start; }
.commerce-page:has(> .commerce-layout) > .checkout-steps { width: calc(100% - var(--commerce-summary-width) - var(--commerce-column-gap)); }
.commerce-default-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }
.commerce-table, .commerce-summary { min-width: 0; background: rgba(255, 255, 255, .88); border-radius: var(--radius-panel); }
.commerce-table { padding: 8px 24px; }
.commerce-table__header { display: grid; grid-template-columns: minmax(0, 1fr) 150px 230px; gap: 24px; padding-block: 18px; color: var(--color-text-secondary); font: 600 13px/1.5 var(--font-manrope); }
.commerce-table__header > :last-child { text-align: right; }
.commerce-table__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.commerce-table__bottom { display: flex; justify-content: flex-end; padding-block: 10px; }
.commerce-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 230px; align-items: center; gap: 24px; padding-block: 24px; border-top: 1px solid var(--color-border); min-width: 0; }
.commerce-product { min-width: 0; display: flex; align-items: center; gap: 20px; }
.commerce-product__image { width: 108px; flex: 0 0 108px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--color-primary); display: grid; place-items: center; color: #fff; }
.commerce-product__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.commerce-product__info { min-width: 0; }
.commerce-product__brand { margin: 0 0 4px; color: var(--color-text-muted); font: 600 11px/1.5 var(--font-manrope); }
.commerce-product h2 { margin: 0; font: 700 17px/1.45 var(--font-manrope); }
.commerce-product h2 a { transition: color var(--transition-ui); }
.commerce-product h2 a:is(:hover, :focus-visible) { color: var(--color-primary); }
.commerce-product__specs { margin: 8px 0 0; color: var(--color-text-secondary); font-size: 12px; }
.commerce-product__specs span { margin-inline: 4px; }
.commerce-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cart-add { margin: 0; }
.cart-add .ui-button { white-space: nowrap; }
.product-detail__copy > .cart-add { margin-top: 20px; }
.product-detail__copy > .cart-add .ui-button { min-width: 180px; }
.commerce-table--cart .commerce-row { grid-template-columns: 20px minmax(0, 1fr) 74px 125px; gap: 18px; }
.commerce-row__select { margin: 0; }
.commerce-quantity { display: grid; gap: 6px; color: var(--color-text-secondary); font-size: 11px; }
.commerce-quantity input { width: 74px; height: 40px; border: 1px solid var(--color-border-input); border-radius: 6px; background: #fff; color: var(--color-text-primary); text-align: center; font: 400 14px var(--font-inter); }
.commerce-quantity input:focus { outline: 2px solid var(--color-primary); outline-offset: 0; border-color: var(--color-primary); }
.commerce-row__price { text-align: right; }
.commerce-row__line-total { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 11px; }
.commerce-summary { padding: 26px; position: sticky; top: calc(var(--site-header-height) + 24px); }
.commerce-summary h2 { margin: 0 0 24px; font: 700 20px/1.4 var(--font-manrope); }
.commerce-summary dl { margin: 0; }
.commerce-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; font-size: 13px; }
.commerce-summary dt { color: var(--color-text-secondary); }
.commerce-summary dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.commerce-summary dl > .commerce-summary__total { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.commerce-summary__total dd { color: var(--color-primary); font: 700 21px/1.4 var(--font-manrope); }
.commerce-summary__note { color: var(--color-text-secondary); font-size: 12px; margin: 16px 0 0; }
.commerce-summary__buy { width: 100%; margin-top: 24px; white-space: nowrap; }
.commerce-summary__notice { margin: 22px 0 0; padding: 16px; background: var(--color-surface-brand); color: var(--color-text-secondary); font-size: 13px; border-radius: 8px; }
.commerce-table--review .commerce-row { grid-template-columns: minmax(0, 1fr) 90px 130px; }
.commerce-table--review .commerce-row:first-child { border-top: 0; }
.commerce-review__quantity { font-size: 13px; }
.checkout-steps { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 0; margin: 0 0 32px; }
.checkout-steps__item { position: relative; display: flex; flex: 1 1 0; align-items: center; gap: 12px; color: var(--color-text-muted); font: 600 14px/1.4 var(--font-manrope); }
.checkout-steps__item:last-child { flex: 0 0 auto; }
.checkout-steps__item > span:last-child { flex-shrink: 0; }
.checkout-steps__content { display: flex; align-items: center; gap: 12px; }
.checkout-steps__item:not(:last-child)::after { content: ''; flex: 1; height: 1px; margin-left: 8px; background: var(--color-border-input); }
.checkout-steps__number { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; }
.checkout-steps__number .ui-icon { --icon-size: 18px; }
.checkout-steps__item.is-active { color: var(--color-primary); }
.checkout-steps__item[aria-current=step] .checkout-steps__number { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.checkout-demo-note { padding: 14px 18px; margin: 0 0 24px; border-radius: var(--radius-control); background: var(--color-surface-brand); color: var(--color-text-secondary); font-size: 13px; }
.checkout-sections { min-width: 0; display: grid; gap: 24px; }
.checkout-section { min-width: 0; padding: 28px; background: rgba(255, 255, 255, .88); border-radius: var(--radius-panel); }
.checkout-section h2 { font: 700 21px/1.4 var(--font-manrope); margin: 0 0 24px; }
.checkout-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.checkout-section__heading h2 { margin: 0; }
.checkout-section__heading .ui-button { padding-inline: 0; white-space: nowrap; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.checkout-fields .ui-field { min-width: 0; }
.checkout-fields .ui-field:has([name^=address_line], [name=delivery_note], [data-card-field=card_number], [data-card-field=cardholder]) { grid-column: 1 / -1; }
.checkout-receipt { max-width: 760px; margin-inline: auto; padding: 40px; background: rgba(255,255,255,.9); border-radius: var(--radius-panel); text-align: center; }
.checkout-receipt__mark { width: 64px; height: 64px; margin: 0 auto 24px; background: var(--color-primary); color: #fff; display: grid; place-items: center; border-radius: 50%; }
.checkout-receipt__mark .ui-icon { --icon-size: 30px; }
.checkout-receipt h2 { margin: 0 0 12px; font: 700 28px/1.4 var(--font-manrope); }
.checkout-receipt > p { color: var(--color-text-secondary); }
.checkout-receipt__details { text-align: left; margin: 28px 0; }
.checkout-receipt__details > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--color-border); }
.checkout-receipt__details dt { color: var(--color-text-secondary); font-size: 13px; }
.checkout-receipt__details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.checkout-receipt__details [data-order-number], .checkout-receipt__details [data-order-total] { color: var(--color-primary); font-weight: 700; }
.checkout-receipt__items { display: grid; gap: 12px; margin: 28px 0; text-align: left; font-size: 13px; }
.checkout-receipt__items > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.checkout-receipt__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.checkout-receipt__actions .ui-button { font-family: var(--font-manrope); white-space: nowrap; }
@media (width < 1200px) {
    .commerce-layout { grid-template-columns: minmax(0, 1fr); }
    .commerce-page:has(> .commerce-layout) > .checkout-steps { width: 100%; }
    .commerce-summary { position: static; }
    .commerce-table--cart .commerce-row { grid-template-columns: 20px minmax(0, 1fr) 90px 140px; }
    .commerce-summary__buy { max-width: 360px; }
}
@media (width < 768px) {
    .checkout-steps { display: flex; justify-content: space-between; gap: 8px; }
    .checkout-steps__item { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 11px; }
    .checkout-steps__content { flex-direction: column; align-items: center; gap: 8px; max-width: min(112px, 24vw); text-align: center; }
    .checkout-steps__item:not(:last-child)::after { position: static; width: auto; min-width: 0; margin: 17px 0 0; }
    .checkout-section { padding: 20px 16px; }
    .checkout-section h2 { font-size: 19px; }
    .checkout-section__heading { align-items: baseline; flex-wrap: wrap; gap: 4px; }
    .checkout-fields { grid-template-columns: minmax(0, 1fr); }
    .checkout-form .commerce-summary__buy { font-size: 14px; padding-inline: 12px; }
    .checkout-receipt { padding: 28px 20px; }
    .checkout-receipt h2 { font-size: 23px; }
    .checkout-receipt__details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .commerce-page { padding-block: 24px 48px; }
    .commerce-page h1 { font-size: 28px; }
    .commerce-page__heading { flex-wrap: wrap; gap: 12px; }
    .commerce-page__heading .ui-button { padding-inline: 0; }
    .commerce-table { padding-inline: 16px; }
    .commerce-table__header { display: none; }
    .commerce-table__toolbar { gap: 4px; }
    .commerce-table__toolbar .ui-checkbox { gap: 6px; font-size: 12px; }
    .commerce-table__toolbar .ui-button { padding-inline: 0; font-size: 12px; white-space: nowrap; }
    .commerce-row, .commerce-table--cart .commerce-row, .commerce-table--review .commerce-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; }
    .commerce-product { gap: 12px; grid-column: 1 / -1; }
    .commerce-product__image { width: 80px; flex-basis: 80px; }
    .commerce-product h2 { font-size: 15px; }
    .commerce-product__specs { font-size: 11px; }
    .commerce-row__actions { gap: 4px; }
    .commerce-row__actions .ui-button { font-size: 12px; padding-inline: 10px; }
    .commerce-row__actions .ui-icon { --icon-size: 17px; }
    .commerce-table--cart .commerce-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 16px 10px; }
    .commerce-table--cart .commerce-product { grid-column: 2 / -1; }
    .commerce-quantity { grid-column: 2; display: flex; align-items: center; gap: 8px; }
    .commerce-quantity input { width: 64px; }
    .commerce-row__price { grid-column: 3; }
    .commerce-row__line-total { max-width: 130px; }
    .commerce-summary { padding: 22px; }
    .commerce-summary__buy { max-width: none; font-size: 15px; }
    .commerce-review__quantity { font-size: 12px; }
}
@media (width < 360px) {
    .commerce-row__actions .cart-add .ui-icon { display: none; }
    .commerce-row__actions .ui-button { padding-inline: 6px; }
}
