/* Account, cart and checkout views. Keep payment inputs native and compact. */
.customer-section { padding-top: 42px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.72fr); align-items: start; gap: clamp(28px,5vw,70px); }
.cart-items { min-width: 0; }
.cart-table-head { display: grid; grid-template-columns: minmax(0,1fr) 120px 110px; gap: 15px; padding: 0 0 12px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: .67rem; }
.cart-table-head span:last-child { text-align: right; }
.cart-item { display: grid; grid-template-columns: 112px minmax(0,1fr) 120px 110px; align-items: center; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.cart-item__image { display: grid; place-items: center; height: 128px; overflow: hidden; background: var(--soft); }
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__info { display: grid; gap: 5px; min-width: 0; }
.cart-item__info > span { color: var(--muted); font-size: .62rem; }
.cart-item__info > a { font-size: .8rem; }
.cart-item__info > strong { font-size: .78rem; font-weight: 550; }
.quantity-control { display: flex; align-items: center; justify-content: space-between; width: fit-content; min-height: 39px; border: 1px solid var(--border); background: var(--bg); }
.quantity-control button { display: grid; place-items: center; width: 34px; height: 36px; padding: 0; background: transparent; border: 0; }
.quantity-control button .icon { width: 14px; height: 14px; }
.quantity-control input[type="number"] { width: 38px; min-width: 38px; height: 36px; padding: 0; text-align: center; border: 0; background: transparent; box-shadow: none; appearance: textfield; -moz-appearance: textfield; font-size: .72rem; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.cart-item__total { display: grid; justify-items: end; gap: 5px; text-align: right; }
.cart-item__total > strong { font-size: .78rem; font-weight: 550; white-space: nowrap; }
.text-action--muted, .cart-item__total .text-action { padding: 0; color: var(--muted); background: transparent; border: 0; font-size: .64rem; }
.text-action--muted:hover, .cart-item__total .text-action:hover { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: .71rem; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 15px; height: 15px; }
.order-summary { position: sticky; top: calc(var(--header) + 22px); padding: 23px; background: #efeee8; }
.order-summary h2 { margin: 0 0 17px; font-size: 1.05rem; font-weight: 520; }
.order-summary > .eyebrow { margin-bottom: 6px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .72rem; }
.summary-line > span { color: var(--muted); }
.summary-line > strong { font-weight: 520; white-space: nowrap; }
.summary-line--total { padding-block: 15px; font-size: .86rem; }
.summary-line--total > span, .summary-line--total > strong { color: var(--text); font-weight: 600; }
.order-summary > .btn { margin-top: 17px; }
.summary-note { color: var(--muted); font-size: .64rem; line-height: 1.8; }
.order-summary > .summary-note { margin: 14px 0 0; }
.customer-empty { max-width: 650px; margin: 0 auto; padding: 55px 20px; }
.customer-empty .empty-state__icon .icon { width: 32px; height: 32px; }
.customer-empty h2 { margin: 0 0 9px; font-size: 1.45rem; font-weight: 500; }
.customer-empty p { max-width: 440px; margin: 0 auto 12px; font-size: .79rem; }
.customer-empty .btn { margin-top: 10px; }

.checkout-layout, .confirmation-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.75fr); align-items: start; gap: clamp(28px,5vw,68px); }
.checkout-form { min-width: 0; }
.checkout-signin { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 6px; margin: 0 0 20px; padding: 13px 15px; background: var(--soft); font-size: .72rem; }
.checkout-signin a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.checkout-signin span { grid-column: 1 / -1; color: var(--muted); font-size: .65rem; }
.checkout-form-section { min-width: 0; margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--border); }
.checkout-form-section legend { float: none; width: 100%; padding: 0; font-size: .89rem; }
.form-step-number, .form-section-heading > span { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 10px; color: var(--accent); background: #eee4de; font-size: .65rem; font-variant-numeric: tabular-nums; }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.form-section-heading > span { flex: 0 0 27px; margin: 2px 0 0; }
.form-section-heading h2 { margin: 0; font-size: .92rem; font-weight: 540; }
.form-section-heading p, .form-section-caption { margin: 3px 0 0; color: var(--muted); font-size: .67rem; }
.form-section-caption { margin: 10px 0 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; }
.form-span { grid-column: 1 / -1; }
.customer-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.customer-field > label, .review-form__field > label { color: #4c4e48; font-size: .69rem; font-weight: 500; }
.required-mark { color: var(--accent); }
.customer-field > label .required-mark, .customer-field > label .optional-label { display: inline; margin-bottom: 0; font-size: inherit; font-weight: inherit; }
.customer-field > label .optional-label { font-size: .59rem; font-weight: 400; }
.optional-label { margin-left: 5px; color: #96978f; font-size: .59rem; font-weight: 400; }
.customer-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .customer-field select, .customer-field textarea,
.contact-form input, .contact-form select, .contact-form textarea,
.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .auth-card select, .auth-card textarea {
    width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 0; box-shadow: none; font-size: .74rem;
}
.customer-field textarea, .contact-form textarea { min-height: 102px; resize: vertical; }
.customer-field input:focus, .customer-field select:focus, .customer-field textarea:focus,
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(163 78 56 / 9%); outline: 0; }
.customer-field--error input, .customer-field--error textarea, .customer-field--error select { border-color: #a43e32; }
.field-help, .customer-field .helptext { color: var(--muted); font-size: .62rem; }
.field-error, .errorlist { margin: 0; padding: 0; color: #a43e32; list-style: none; font-size: .66rem; }
.field-error p { margin: 0; }
.checkbox-line { display: flex; align-items: center; gap: 9px; color: var(--muted); cursor: pointer; font-size: .69rem; }
.checkbox-line input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }
.checkout-save-address { margin-top: 16px; }
.payment-options { display: grid; gap: 9px; }
.payment-option { display: grid; grid-template-columns: 18px minmax(0,1fr) 33px; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; background: transparent; border: 1px solid var(--border); cursor: pointer; transition: background .18s ease,border-color .18s ease; }
.payment-option:has(input:checked) { background: #fff; border-color: var(--text); }
.payment-option > input[type="radio"] { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }
.payment-option > span:nth-of-type(1) { display: grid; gap: 2px; }
.payment-option strong { font-size: .74rem; font-weight: 540; }
.payment-option small { color: var(--muted); font-size: .62rem; }
.payment-option__mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); background: var(--soft); font-size: .87rem; }
.payment-option__mark .icon { width: 16px; height: 16px; }
.checkout-submit { padding-top: 22px; }
.checkout-submit .summary-note { margin: 10px 0 0; text-align: center; }
#installment-status:not([hidden]) { margin-top: 12px; padding: 11px 13px; color: #464941; background: var(--soft); font-size: .7rem; }
.checkout-summary { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 1rem; font-weight: 520; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.panel-head .text-action { font-size: .66rem; }
.summary-products { margin-bottom: 7px; }
.summary-product, .purchased-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.summary-product__image, .purchased-item__image { display: grid; place-items: center; width: 54px; height: 62px; overflow: hidden; background: var(--bg); }
.summary-product__image img, .purchased-item__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.summary-product > div:nth-child(2), .purchased-item > div:nth-child(2) { display: grid; gap: 2px; }
.summary-product > div:nth-child(2) strong, .purchased-item > div:nth-child(2) strong { font-size: .66rem; font-weight: 500; }
.summary-product > div:nth-child(2) span, .purchased-item > div:nth-child(2) span { color: var(--muted); font-size: .61rem; }
.summary-product > b, .purchased-item > b { font-size: .67rem; font-weight: 520; white-space: nowrap; }
.summary-help { display: inline-flex; gap: 5px; margin-top: 18px; color: var(--muted); font-size: .65rem; }
.summary-help .icon { width: 14px; height: 14px; }

.auth-section { padding: clamp(40px,7vw,85px) 0; background: var(--soft); }
.auth-layout { display: grid; grid-template-columns: minmax(0,.88fr) minmax(390px,1.12fr); max-width: 1020px; min-height: 550px; margin-inline: auto; background: var(--bg); box-shadow: var(--shadow-soft); }
.auth-layout--wide { max-width: 1080px; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(26px,4vw,48px); color: #f2f0e9; background: #353832; }
.auth-story__brand { display: grid; gap: 8px; color: #fff; font-size: 1.65rem; font-weight: 600; letter-spacing: -.07em; }
.auth-story__brand span { color: #c5c5bc; font-size: .67rem; font-weight: 400; letter-spacing: 0; }
.auth-story .eyebrow { color: #dfad99; }
.auth-story__message { max-width: 390px; margin-block: 50px; }
.auth-story__message h2 { margin: 0 0 14px; color: #fff; font-size: clamp(1.7rem,3vw,2.45rem); }
.auth-story__message > p:last-child { color: #c6c7bf; font-size: .76rem; }
.auth-story__link { display: inline-flex; align-items: center; gap: 7px; color: #e9c7b8; font-size: .69rem; }
.auth-story__link .icon { width: 15px; height: 15px; }
.auth-card { align-self: center; padding: clamp(28px,5vw,64px); }
.auth-card .eyebrow { margin-bottom: 7px; }
.auth-card h1 { margin: 0; font-size: clamp(1.9rem,3vw,2.6rem); }
.auth-intro { margin: 9px 0 22px; color: var(--muted); font-size: .75rem; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .customer-form-stack { display: grid; gap: 14px; }
.auth-card .form-grid { gap: 12px; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-reset-link { display: inline-block; margin-top: 13px; color: var(--muted); font-size: .66rem; text-decoration: underline; text-underline-offset: 2px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .67rem; }
.auth-links > span { color: var(--muted); }
.auth-links > a { color: var(--accent); }

.account-layout { display: grid; grid-template-columns: 215px minmax(0,1fr); align-items: start; gap: clamp(25px,4vw,55px); }
.account-nav { position: sticky; top: calc(var(--header) + 20px); display: grid; padding: 9px 0; border-top: 1px solid var(--border); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 9px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: .72rem; }
.account-nav a[aria-current="page"], .account-nav a:hover { color: var(--text); }
.account-nav a[aria-current="page"] { box-shadow: inset 2px 0 var(--accent); }
.account-nav .icon { width: 16px; height: 16px; }
.account-content { display: grid; gap: 22px; min-width: 0; }
.account-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.account-stats > a { position: relative; display: grid; gap: 6px; padding: 16px; background: var(--soft); }
.account-stats > a > span { color: var(--muted); font-size: .65rem; }
.account-stats > a > strong { font-size: 1.3rem; font-weight: 500; }
.account-stats > a > .icon { position: absolute; right: 13px; bottom: 14px; width: 15px; height: 15px; color: var(--accent); }
.account-panel { min-width: 0; padding: 20px; background: #f1f0ea; }
.account-panel--plain { padding: 16px 0 0; background: transparent; }
.account-panel h2 { margin: 0; font-size: .98rem; font-weight: 520; }
.account-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.account-inline-empty { padding: 23px 4px 7px; }
.account-inline-empty > .icon { width: 21px; height: 21px; color: var(--accent); }
.account-inline-empty h3 { margin: 12px 0 4px; font-size: .82rem; }
.account-inline-empty p { color: var(--muted); font-size: .68rem; }
.order-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(95px,.7fr) 90px 18px; align-items: center; gap: 12px; min-height: 67px; padding: 10px 0; border-top: 1px solid var(--border); }
.order-row__number { display: grid; gap: 2px; }
.order-row__number strong { font-size: .72rem; font-weight: 540; }
.order-row__number small { color: var(--muted); font-size: .61rem; }
.order-status { display: inline-flex; width: fit-content; padding: 4px 8px; color: #53694f; background: #e5eade; font-size: .6rem; }
.order-row__price { text-align: right; font-size: .71rem; font-weight: 540; }
.order-row > .icon { width: 15px; height: 15px; color: var(--muted); }
.order-row:hover > .icon { color: var(--accent); }
.customer-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: .66rem; }
.account-panel--form { padding: clamp(17px,3vw,27px); }
.address-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.address-card { padding: 17px; background: var(--soft); }
.address-card__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.address-card__heading h3 { margin: 0; font-size: .82rem; }
.address-lines { display: grid; gap: 5px; margin: 15px 0; color: var(--muted); font-size: .69rem; font-style: normal; }
.address-lines strong { color: var(--text); font-weight: 520; }
.card-actions { display: flex; gap: 15px; padding-top: 11px; border-top: 1px solid var(--border); }
.card-actions form { margin: 0; }
.card-actions .text-action { padding: 0; background: transparent; border: 0; }
.order-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 16px; }
.order-overview > div { display: grid; gap: 6px; padding: 15px; background: var(--soft); }
.order-overview span { color: var(--muted); font-size: .63rem; }
.order-overview strong { font-size: .72rem; font-weight: 520; }
.account-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.account-detail-grid .account-panel > h2 { margin-bottom: 15px; }
.order-note { margin-top: 14px; font-size: .68rem; }
.order-note h3 { font-size: .72rem; }
.confirmation-layout { max-width: 1060px; margin-inline: auto; }
.confirmation-card { padding: clamp(22px,4vw,38px); background: #f1f0ea; }
.confirmation-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 13px; color: #3c5b3c; background: #e0e8dc; }
.confirmation-mark .icon { width: 21px; height: 21px; }
.confirmation-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.confirmation-card > p { color: var(--muted); font-size: .74rem; }
.confirmation-details { margin-top: 18px; padding-block: 4px; border-top: 1px solid var(--border); }
.confirmation-details .summary-line { font-size: .67rem; }
.confirmation-details .summary-line > strong { max-width: 58%; text-align: right; overflow-wrap: anywhere; }

.product-grid:not(.product-grid--catalog) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.category-list-grid, .product-grid--catalog { min-width: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-info article { padding: 15px 0; border-bottom: 1px solid var(--border); }
.contact-info article > span { color: var(--accent); }
.contact-info article h2 { margin: 4px 0; font-size: .84rem; }
.contact-info article p { margin: 0; color: var(--muted); font-size: .74rem; }
.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 22px; background: var(--soft); }
.contact-form label { display: grid; gap: 6px; font-size: .68rem; }
.contact-form label > span { font-weight: 500; }
.contact-form .form-span { grid-column: 1 / -1; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 900px) {
    .cart-layout, .checkout-layout, .confirmation-layout { grid-template-columns: minmax(0,1fr) minmax(260px,.8fr); gap: 24px; }
    .cart-item { grid-template-columns: 85px minmax(0,1fr) 105px 90px; gap: 11px; }
    .cart-item__image { height: 105px; }
    .account-layout { grid-template-columns: 175px minmax(0,1fr); gap: 22px; }
    .account-panel { padding: 16px; }
}
@media (max-width: 700px) {
    .customer-section { padding-top: 24px; }
    .cart-layout, .checkout-layout, .confirmation-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .cart-table-head { grid-template-columns: minmax(0,1fr) 90px 75px; gap: 8px; font-size: .59rem; }
    .cart-item { grid-template-columns: 75px minmax(0,1fr) auto; gap: 10px; padding-block: 14px; }
    .cart-item__image { grid-row: span 2; height: 90px; }
    .cart-item__info { grid-column: 2; grid-row: 1; }
    .cart-item__info > a { font-size: .71rem; }
    .cart-item__info > strong { font-size: .69rem; }
    .cart-item .quantity-control { grid-column: 2; grid-row: 2; }
    .cart-item__total { grid-column: 3; grid-row: 1 / 3; align-self: end; padding-bottom: 4px; }
    .cart-item__total > strong { font-size: .69rem; }
    .order-summary { padding: 19px; }
    .form-grid { gap: 12px; }
    .auth-layout, .auth-layout--wide { grid-template-columns: 1fr; max-width: 520px; min-height: 0; }
    .auth-story { min-height: 210px; padding: 22px; }
    .auth-story__message { margin: 20px 0; }
    .auth-story__message h2 { font-size: 1.55rem; }
    .auth-card { padding: 24px 20px 28px; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; gap: 4px; padding: 0 0 5px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--border); }
    .account-nav a { flex: 0 0 auto; padding: 9px 10px; border: 0; font-size: .66rem; }
    .account-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
    .account-nav .icon { width: 14px; height: 14px; }
    .account-stats { gap: 7px; }
    .account-stats > a { padding: 12px 10px; }
    .account-stats > a > span { max-width: 85px; font-size: .57rem; }
    .account-stats > a > strong { font-size: 1.1rem; }
    .account-stats > a > .icon { right: 8px; bottom: 9px; width: 13px; }
    .account-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .order-row { grid-template-columns: minmax(0,1fr) auto 16px; gap: 8px; }
    .order-row .order-status { grid-column: 2; grid-row: 1 / 3; }
    .order-row__price { grid-column: 1; text-align: left; }
    .order-row > .icon { grid-column: 3; grid-row: 1 / 3; }
    .address-grid, .account-detail-grid { grid-template-columns: 1fr; }
    .order-overview { gap: 6px; }
    .order-overview > div { padding: 10px; }
    .order-overview span { font-size: .57rem; }
    .order-overview strong { font-size: .64rem; }
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .form-span { grid-column: auto; }
    .payment-option { min-height: 67px; padding: 10px; }
    .checkout-form-section { padding-block: 19px; }
    .checkout-signin { grid-template-columns: 1fr; }
    .checkout-signin span { grid-column: auto; }
    .order-overview { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; padding: 16px; }
    .contact-form .form-span, .contact-form button { grid-column: auto; }
}

/* Launch polish: cart heading count, cart line spacing, coupon field. */
.heading-count { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; margin-left: .45em; padding-inline: .45em; color: var(--accent); background: #eee4de; border-radius: 999px; font-size: .3em; font-weight: 600; letter-spacing: 0; line-height: 1; vertical-align: middle; font-variant-numeric: tabular-nums; }
.cart-item { padding-inline: 16px; }
.cart-item__image { width: 100%; aspect-ratio: auto; }
.coupon-form .form-control { font-size: .74rem; }
.coupon-form .form-control::placeholder { color: var(--muted); font-size: inherit; }
@media (max-width: 700px) {
    .cart-item { padding-inline: 12px; }
}
