/* Customer journeys: cart, checkout and account. */
.commerce-page, .auth-page { --account-muted: #76726e; --account-border: #e3e2e0; }
.commerce-page { padding-top: 30px; }
.commerce-heading { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin: 36px 0 44px; }
.commerce-heading h1 { margin: 12px 0 10px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -2px; font-weight: 700; overflow-wrap: anywhere; }
.commerce-heading p { margin: 0; color: var(--account-muted); font-size: 14px; }
.heading-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: 14px; border: 1px solid var(--account-border); border-radius: 50%; font-size: 14px; letter-spacing: 0; vertical-align: middle; }
.checkout-steps { list-style: none; display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; flex-shrink: 0; }
.checkout-steps li, .checkout-steps a { display: flex; align-items: center; gap: 8px; color: var(--account-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.checkout-steps li > span, .checkout-steps a > span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--account-border); border-radius: 50%; font-size: 14px; }
.checkout-steps .is-current { color: var(--dark); font-weight: 700; }
.checkout-steps .is-current > span { background: var(--dark); border-color: var(--dark); color: #fff; }
.checkout-steps .is-complete > span, .checkout-steps .is-complete a > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.commerce-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.commerce-summary { background: #fff; border: 1px solid var(--account-border); border-radius: 12px; padding: 30px; position: sticky; top: 118px; }
.commerce-summary > .eyebrow { font-size: 14px; }
.commerce-summary h2 { font-size: 22px; font-weight: 700; letter-spacing: -.7px; margin: 12px 0 28px; }
.summary-totals { margin: 0; }
.summary-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.summary-totals dt { font-size: 14px; color: var(--account-muted); }
.summary-totals dd { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.summary-totals .summary-grand-total { margin: 14px 0 24px; padding: 24px 0 0; border-top: 1px solid var(--account-border); }
.summary-grand-total dt { color: var(--dark); font-weight: 600; }
.summary-grand-total dd { font-size: 25px; letter-spacing: -1px; }
.commerce-summary > .btn { width: 100%; justify-content: space-between; }
.summary-note { margin: 17px 0 0; font-size: 14px; line-height: 1.8; color: var(--account-muted); }
.summary-payment { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--account-border); display: grid; gap: 6px; font-size: 14px; }
.summary-payment > span { color: var(--account-muted); }
.summary-payment strong { font-size: 14px; font-weight: 500; }
.cart-list-heading { display: flex; justify-content: space-between; padding: 0 0 17px; border-bottom: 1px solid var(--account-border); color: var(--account-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.cart-item { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 23px; padding: 27px 0; border-bottom: 1px solid var(--account-border); }
.cart-item-image { height: 132px; display: flex; border-radius: 8px; background: #fff; border: 1px solid #ecebea; padding: 9px; overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-detail h2 { margin: 0 0 6px; line-height: 1.5; font-weight: 700; }
.cart-variant-label { color: var(--account-muted); margin: 0 0 6px; }
.cart-unit-price { color: var(--account-muted); margin: 0 0 15px; }
.cart-unit-price span { display: inline-block; margin-left: 6px; color: var(--dark); }
.text-button { padding: 0; border: 0; background: transparent; color: var(--account-muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--dark); }
.cart-item-amount { display: grid; justify-items: end; gap: 16px; }
.cart-item-amount > strong { font-size: 17px; letter-spacing: -.5px; white-space: nowrap; }
.cart-item .qty-form { display: grid; grid-template-columns: auto 62px; align-items: center; gap: 8px 10px; }
.qty-label { color: var(--account-muted); }
.cart-item .qty-form input { width: 62px; height: 42px; padding: 6px 8px; color: var(--dark); background: #fff; border: 1px solid var(--account-border); border-radius: 5px; font: inherit; }
.cart-item .qty-form button { grid-column: 1 / -1; justify-self: end; font-size: 14px; }
.cart-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 25px; }
.commerce-empty { display: flex; flex-direction: column; align-items: center; padding: 65px 30px 72px; border: 1px solid var(--account-border); border-radius: 12px; background: #fff; text-align: center; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 82px; height: 82px; background: #f1f0ef; color: var(--dark); border-radius: 50%; margin-bottom: 28px; }
.empty-icon svg { width: 40px; height: 40px; }
.commerce-empty h2 { margin: 18px 0 14px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -1.5px; line-height: 1.25; font-weight: 600; }
.commerce-empty p { font-size: 14px; color: var(--account-muted); max-width: 420px; margin: 0 0 28px; line-height: 1.8; }
.commerce-empty .btn { gap: 40px; }

/* Forms keep their native controls and work without JavaScript. */
.account-form { display: flex; flex-direction: column; gap: 20px; }
.account-form .form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.account-form label { font-size: 14px; font-weight: 600; margin: 0; }
.account-form label span { color: var(--account-muted); font-size: 14px; font-weight: 400; }
.account-form input:not([type="radio"]):not([type="hidden"]), .account-form select, .account-form textarea { width: 100%; margin: 0; padding: 13px 15px; background: #fff; color: var(--dark); border: 1px solid var(--account-border); border-radius: 5px; font: inherit; font-size: 14px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
.account-form input:not([type="radio"]):not([type="hidden"]) { min-height: 48px; }
.account-form input::placeholder, .account-form textarea::placeholder { color: #94908c; font-size: 14px; }
.account-form input:focus, .account-form textarea:focus, .cart-item .qty-form input:focus { border-color: #77706a; outline: 2px solid var(--accent); outline-offset: 2px; }
.account-form textarea { resize: vertical; }
.account-form .btn { margin: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 21px 20px; }
.form-field-wide { grid-column: 1 / -1; }
.form-errors { border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; padding: 13px 16px; font-size: 14px; line-height: 1.7; }
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 5px; }
.checkout-form { gap: 24px; }
.form-section { margin: 0; padding: 30px; background: #fff; border: 1px solid var(--account-border); border-radius: 10px; min-width: 0; }
.form-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 27px; }
.form-section-heading > span, .form-section-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; width: 30px; border: 1px solid var(--account-border); border-radius: 50%; font-size: 14px; font-weight: 600; }
.form-section h2 { font-size: 19px; letter-spacing: -.5px; margin: 0 0 6px; font-weight: 600; }
.form-section-heading p, .payment-intro { margin: 0; font-size: 14px; color: var(--account-muted); line-height: 1.7; }
.payment-section { padding-top: 20px; }
.payment-section legend { display: flex; align-items: center; gap: 16px; float: left; width: 100%; padding: 0; margin-bottom: 7px; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.billing-edit-link { margin-left: auto; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.billing-edit-link:hover { color: var(--accent); }
.payment-intro { clear: both; margin: 0 0 24px 46px; }
.payment-options { display: grid; gap: 12px; }
.account-form .payment-option { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--account-border); border-radius: 6px; cursor: pointer; }
.payment-option:has(input:checked) { background: var(--accent); border-color: #bf5666; }
.account-form .payment-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--dark); flex: 0 0 auto; }
.account-form .payment-option > span { display: grid; gap: 4px; }
.payment-option strong { font-size: 14px; font-weight: 600; color: var(--dark); }
.payment-option small { font-size: 14px; font-weight: 400; color: var(--account-muted); }
.payment-option svg { width: 24px; height: 24px; margin-left: auto; flex-shrink: 0; }
.billing-fields > .form-grid { margin-top: 20px; }
.billing-fields .billing-company-fields { display: none; }
.billing-fields:has(input[name="billing_type"][value="kurumsal"]:checked) .billing-company-fields { display: grid; }
.billing-fields:has(input[name="billing_type"][value="kurumsal"]:checked) .billing-individual-fields { display: none; }
.billing-hint { margin: 0 0 22px; font-size: 15px; color: var(--account-muted); line-height: 1.7; }
.billing-form-actions { display: flex; gap: 14px; margin-top: 20px; }
.billing-summary dd { overflow-wrap: anywhere; }
.paytr-iframe-wrap { max-width: 760px; margin: 0 auto; }
.paytr-iframe-wrap iframe { display: block; width: 100%; min-height: 640px; border: 0; border-radius: 18px; box-shadow: 0 24px 48px -30px rgba(26, 25, 24, .16); overflow: hidden; }
.paytr-cancel-note { text-align: center; margin: 24px 0 0; font-size: 14px; color: var(--account-muted); }
.paytr-cancel-note a { color: var(--dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.payment-info-note { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--account-border); border-radius: 10px; background: var(--light); color: var(--account-muted); }
.payment-info-note svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--dark); }
.payment-info-note p { margin: 0; font-size: 14px; line-height: 1.6; }
.payment-info-note strong { color: var(--dark); }
.checkout-submit { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 5px; }
.checkout-submit .btn { min-width: 235px; justify-content: space-between; }
.summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.summary-heading h2 { margin: 0; }
.summary-heading > a { color: var(--account-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.summary-products { padding: 0; margin: 0 0 16px; list-style: none; }
.summary-products li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--account-border); }
.summary-products li:first-child { padding-top: 0; }
.summary-products img { width: 65px; height: 80px; padding: 5px; border: 1px solid #ecebea; border-radius: 5px; object-fit: contain; background: #fff; }
.summary-products li > div { flex: 1; min-width: 0; }
.summary-products h3 { font-size: 14px; line-height: 1.6; margin: 0 0 6px; font-weight: 500; }
.summary-products li span { display: block; font-size: 14px; color: var(--account-muted); margin-bottom: 8px; }
.summary-products li strong { font-size: 14px; }
.checkout-order-summary .summary-grand-total { margin-bottom: 0; }

/* Authentication */
.auth-page { padding-top: 48px; padding-bottom: 72px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 1110px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--account-border); background: #fff; }
.auth-editorial { display: flex; flex-direction: column; align-items: flex-start; min-height: 640px; position: relative; isolation: isolate; overflow: hidden; padding: 40px; color: #fff; background: #292725; }
.auth-editorial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 18, 12, .25) 0%, rgba(12, 18, 12, .05) 27%, rgba(12, 18, 12, .8) 77%, rgba(12, 18, 12, .92) 100%); z-index: -1; }
.auth-editorial-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-editorial-copy { margin-top: auto; }
.auth-editorial-copy h2 { margin: 0; font-size: clamp(34px, 3.5vw, 47px); line-height: 1.12; font-weight: 500; letter-spacing: -2px; }
.auth-content { padding: 43px 55px; align-self: center; min-width: 0; }
.auth-content h1 { margin-top: 0; font-size: 31px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.25; margin-bottom: 13px; }
.auth-description { color: var(--account-muted); font-size: 14px; line-height: 1.8; margin: 0 0 28px; }
.auth-form { gap: 19px; }
.auth-form .btn { width: 100%; margin-top: 5px; justify-content: space-between; }
.auth-content > .form-errors { margin: 0 0 20px; }
.auth-content .account-alt-link { font-size: 14px; text-align: center; color: var(--account-muted); margin: 23px 0 0; }
.account-alt-link a { color: var(--dark); font-weight: 700; margin-left: 5px; text-decoration: underline; text-underline-offset: 4px; }
.auth-layout-register .auth-editorial { min-height: 770px; }
.auth-layout-register .auth-content { padding-top: 35px; padding-bottom: 35px; }
.auth-layout-register .auth-form { gap: 15px; }
.auth-layout-register .auth-description { margin-bottom: 23px; }
.auth-page-modern { padding-top: 68px; padding-bottom: 100px; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--paper) 60%); }
.auth-layout-login, .auth-layout-register { border: none; border-radius: 28px; box-shadow: 0 70px 140px -50px rgba(26, 25, 24, .4), 0 26px 50px -28px rgba(26, 25, 24, .18); }
.auth-layout-login .auth-editorial-image, .auth-layout-register .auth-editorial-image { object-position: 50% 58%; }
.auth-layout-login .auth-content { padding-top: 64px; padding-bottom: 64px; }
.auth-layout-login .auth-description, .auth-layout-register .auth-description { font-size: 15px; }
.auth-layout-login .account-alt-link, .auth-layout-register .account-alt-link { font-size: 16px; }
.field-hint { margin: -5px 0 0; font-size: 14px; color: var(--account-muted); }
.auth-forgot-link { margin: -8px 0 0; text-align: right; font-size: 14px; }
.auth-forgot-link a { color: var(--dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.auth-status { border: 1px solid #cbdccf; border-radius: 5px; background: #edf7ef; color: #31583a; padding: 13px 16px; font-size: 14px; line-height: 1.7; margin: 0 0 20px; }

/* Account and order records */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: start; }
.account-nav { display: flex; flex-direction: column; border: none; background: #fff; border-radius: 10px; padding: 12px; }
.account-nav a { display: flex; align-items: center; gap: 13px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.account-nav-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; background: var(--light); border-radius: 8px; color: var(--dark); }
.account-nav-icon .ui-icon { width: 17px; height: 17px; }
.account-nav a:hover { background: #f2f1f0; }
.account-nav a[aria-current] { background: var(--dark); color: #fff; }
.account-nav a[aria-current] .account-nav-icon { background: #ffffff21; color: #fff; }
.account-nav .account-signout { margin-top: 12px; color: var(--account-muted); }
.account-main { display: grid; gap: 25px; min-width: 0; }
.account-card { background: #fff; border: none; border-radius: 10px; padding: 28px; min-width: 0; }
.account-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.account-card h2 { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0; letter-spacing: -.5px; }
.profile-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 0; padding-top: 23px; border-top: 1px solid var(--account-border); }
.profile-details dt { color: var(--account-muted); font-size: 14px; margin-bottom: 8px; }
.profile-details dd { margin: 0; font-size: 14px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.account-empty { text-align: center; padding: 32px 20px 37px; }
.account-empty .empty-icon { width: 65px; height: 65px; margin-bottom: 20px; }
.account-empty .empty-icon svg { width: 32px; height: 32px; }
.account-empty > .eyebrow { display: block; margin: 0 0 14px; }
.account-empty h3 { font-size: 21px; font-weight: 600; letter-spacing: -.6px; margin: 0; }
.account-empty p { max-width: 370px; color: var(--account-muted); font-size: 14px; line-height: 1.9; margin: 13px auto 23px; }
.account-empty .btn { gap: 25px; }
.recent-orders { padding: 0; margin: 0; list-style: none; }
.recent-orders li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 30px; gap: 23px; align-items: center; border-top: 1px solid var(--account-border); padding: 20px 0; }
.recent-orders li:last-child { padding-bottom: 0; }
.recent-orders li > div { display: grid; gap: 7px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.recent-orders li > div > span { font-size: 14px; color: var(--account-muted); font-weight: 400; }
.recent-orders strong { font-size: 14px; white-space: nowrap; }
.order-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--account-border); border-radius: 50%; }
.commerce-page .order-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 30px; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; white-space: nowrap; background: #ecebea; color: #5b5650; }
.commerce-page .order-status::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.commerce-page .order-status-odeme_bekleniyor { background: #fdf0e2; color: #9a5b13; }
.commerce-page .order-status-hazirlaniyor { background: #e9f0fa; color: #365e88; }
.commerce-page .order-status-kargoya_verildi { background: #faf1de; color: #896519; }
.commerce-page .order-status-tamamlandi { background: var(--light); color: var(--dark); }
.commerce-page .order-status-iptal { background: var(--accent); color: #fff; }
.commerce-page .order-status-large { padding: 10px 16px; font-size: 14px; }
.account-result-count { color: var(--account-muted); font-size: 14px; }
.order-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.order-item-variant { display: block; color: var(--account-muted); font-size: 14px; margin-top: 4px; }
.order-table th { font-size: 14px; font-weight: 500; color: var(--account-muted); padding: 13px 12px 15px; border-top: 1px solid var(--account-border); border-bottom: 1px solid var(--account-border); }
.order-table td { padding: 22px 12px; border-bottom: 1px solid var(--account-border); line-height: 1.7; }
.order-table th:first-child, .order-table td:first-child { padding-left: 0; }
.order-table th:last-child, .order-table td:last-child { padding-right: 0; text-align: right; }
.order-table tbody tr:last-child td { border-bottom: 0; }
.order-table strong { font-weight: 600; }
.account-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.order-detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.order-info-list { margin: 23px 0 0; display: grid; gap: 16px; }
.order-info-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-info-list dt { margin: 0; font-size: 15px; color: var(--account-muted); }
.order-info-list dd { margin: 0; font-size: 15px; text-align: right; }
.order-address { display: flex; flex-direction: column; gap: 5px; margin-top: 23px; font-style: normal; font-size: 15px; line-height: 1.8; color: var(--account-muted); overflow-wrap: anywhere; }
.order-address strong { font-weight: 600; color: var(--dark); }
.order-address p { margin: 7px 0 0; }
.order-items-table td:first-child { max-width: 340px; }
.order-detail-total { display: flex; justify-content: flex-end; gap: 35px; align-items: center; padding-top: 24px; border-top: 1px solid var(--account-border); }
.order-detail-total > span { font-size: 15px; color: var(--account-muted); }
.order-detail-total > strong { font-size: 25px; letter-spacing: -.7px; }
.order-tax-summary { display: grid; gap: 0; margin: 22px 0 0; }
.order-tax-summary > div { display: flex; align-items: center; justify-content: flex-end; gap: 35px; padding: 8px 0; }
.order-tax-summary dt { color: var(--account-muted); font-size: 15px; }
.order-tax-summary dd { min-width: 120px; margin: 0; text-align: right; }
.order-tax-summary .order-detail-total { margin-top: 8px; padding-top: 18px; }
.order-tax-summary .order-detail-total dd { font-size: 25px; letter-spacing: -.7px; }

/* Order confirmation */
.success-page { max-width: 870px; padding-top: 68px; padding-bottom: 40px; background: radial-gradient(120% 100% at 50% 0%, #fff 0%, var(--paper) 60%); }
.success-page > .checkout-steps { justify-content: center; margin-bottom: 38px; }
.success-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: none; border-radius: 28px; box-shadow: 0 70px 140px -50px rgba(26, 25, 24, .4), 0 26px 50px -28px rgba(26, 25, 24, .18); padding: 56px 60px 40px; }
.success-icon { display: inline-flex; width: 78px; height: 78px; align-items: center; justify-content: center; background: var(--dark); color: #fff; border-radius: 50%; margin-bottom: 30px; }
.success-icon svg { width: 40px; height: 40px; }
.success-card h1 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -1.8px; line-height: 1.2; }
.success-card > p { font-size: 14px; color: var(--account-muted); max-width: 415px; line-height: 1.9; margin: 0; }
.success-details { width: 100%; margin: 32px 0; padding: 24px; border: 1px solid var(--account-border); border-radius: 7px; background: var(--light); display: grid; gap: 15px; }
.success-details > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.success-details dt { font-size: 14px; color: var(--account-muted); text-align: left; }
.success-details dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.success-actions { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.success-actions .btn { width: 100%; justify-content: space-between; }

@media (max-width: 1100px) {
    .commerce-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; }
    .commerce-summary { padding: 24px; }
    .commerce-heading { align-items: flex-start; }
    .commerce-heading .checkout-steps { padding-top: 24px; gap: 14px; }
    .cart-item { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; }
    .cart-item-image { height: 115px; grid-row: 1 / 3; }
    .cart-item-amount { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .cart-item .qty-form { display: flex; flex-wrap: wrap; }
    .cart-item .qty-form button { font-size: 14px; }
    .auth-content { padding: 35px; }
    .auth-editorial { padding: 35px; }
    .account-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 25px; }
    .account-card { padding: 24px; }
    .profile-details { grid-template-columns: 1fr 1fr; }
    .recent-orders li { gap: 13px; }
    .order-table th, .order-table td { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 800px) {
    .commerce-heading { margin: 28px 0 32px; flex-direction: column; gap: 23px; }
    .commerce-heading h1 { letter-spacing: -1.5px; }
    .commerce-heading .checkout-steps { padding-top: 0; gap: 24px; }
    .commerce-layout { grid-template-columns: 1fr; gap: 32px; }
    .commerce-summary { position: static; }
    .cart-item { grid-template-columns: 106px minmax(0, 1fr) auto; }
    .cart-item-image { grid-row: auto; }
    .cart-item-amount { grid-column: auto; display: grid; }
    .cart-item .qty-form { display: grid; }
    .commerce-heading > .btn { align-self: flex-start; }
    .auth-page { padding-top: 30px; padding-bottom: 45px; }
    .auth-layout { grid-template-columns: .85fr 1fr; }
    .auth-editorial { min-height: 600px; padding: 28px; }
    .auth-content { padding: 30px; }
    .auth-content h1 { font-size: 27px; }
    .auth-editorial-copy h2 { font-size: 34px; }
    .auth-layout-register .auth-form .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; padding: 8px; }
    .account-nav a { flex: 1 1 auto; justify-content: center; padding: 11px 12px; font-size: 14px; }
    .account-nav a > span, .account-nav .account-signout > span { display: none; }
    .account-nav .account-signout { border: 0; justify-content: center; padding: 11px 12px; margin: 0; border-radius: 5px; }
    .profile-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .commerce-page { padding-top: 22px; padding-bottom: 42px; }
    .commerce-heading h1 { font-size: 31px; }
    .commerce-heading p { font-size: 14px; line-height: 1.8; }
    .checkout-steps { gap: 19px; }
    .checkout-steps li, .checkout-steps a { font-size: 14px; gap: 7px; }
    .checkout-steps li > span, .checkout-steps a > span { width: 30px; height: 30px; }
    .cart-item { grid-template-columns: 86px minmax(0, 1fr); gap: 15px; padding: 22px 0; }
    .cart-item-image { grid-row: 1 / 3; align-self: start; height: 110px; }
    .cart-item-detail h2 { font-size: 14px; line-height: 1.7; margin-bottom: 7px; }
    .cart-unit-price { font-size: 14px; margin-bottom: 10px; }
    .cart-unit-price span { margin-left: 3px; }
    .cart-item-amount { grid-column: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
    .cart-item-amount > strong { font-size: 15px; }
    .cart-item .qty-form { display: grid; grid-template-columns: 45px auto; gap: 6px; }
    .qty-label { display: none; }
    .cart-item .qty-form input { width: 45px; height: 33px; }
    .cart-item .qty-form button { grid-column: auto; font-size: 14px; }
    .cart-bottom-actions { gap: 15px; }
    .cart-bottom-actions .text-button { font-size: 14px; }
    .commerce-summary { padding: 24px; }
    .commerce-empty { padding: 44px 23px; }
    .commerce-empty h2 { font-size: 28px; }
    .commerce-empty p { font-size: 14px; }
    .form-section { padding: 23px 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-section-heading { gap: 12px; margin-bottom: 23px; }
    .form-section h2, .payment-section legend { font-size: 17px; }
    .form-section-heading p, .payment-intro { font-size: 14px; }
    .payment-section legend { gap: 12px; }
    .payment-intro { margin-left: 42px; }
    .account-form input:not([type="radio"]):not([type="hidden"]), .account-form textarea { font-size: 16px; }
    .account-form .payment-option { padding: 15px 12px; gap: 10px; }
    .payment-option small { font-size: 14px; }
    .payment-option svg { width: 21px; }
    .checkout-submit { flex-direction: column-reverse; gap: 24px; }
    .checkout-submit .btn { width: 100%; }
    .auth-layout { grid-template-columns: 1fr; border-radius: 10px; }
    .auth-page-modern { padding-top: 26px; padding-bottom: 45px; }
    .auth-layout-login, .auth-layout-register { box-shadow: 0 30px 60px -30px rgba(26, 25, 24, .35); }
    .auth-editorial, .auth-layout-register .auth-editorial { min-height: 290px; padding: 25px; }
    .auth-editorial-image { object-position: center 43%; }
    .auth-layout-login .auth-editorial-image, .auth-layout-register .auth-editorial-image { object-position: 50% 55%; }
    .auth-editorial::after { background: linear-gradient(180deg, #1e0c0e55, #1e0c0ec7); }
    .auth-editorial-copy h2 { font-size: 34px; }
    .auth-content { padding: 29px 25px 32px; }
    .auth-content h1 { font-size: 29px; }
    .auth-layout-register .auth-form .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .account-nav { gap: 2px; }
    .account-nav a { font-size: 14px; padding: 10px 8px; }
    .account-nav .account-signout { padding: 10px 8px; }
    .account-card { padding: 22px 20px; }
    .account-card h2 { font-size: 17px; }
    .account-card-heading { gap: 10px; margin-bottom: 20px; }
    .account-card-heading .btn { font-size: 14px; }
    .profile-details { grid-template-columns: 1fr; gap: 19px; }
    .account-empty { padding: 24px 4px 22px; }
    .account-empty h3 { font-size: 20px; }
    .recent-orders li { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .recent-orders li > .order-status { justify-self: end; }
    .recent-orders .order-arrow { justify-self: end; }
    .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: 100%; }
    .order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .order-table tr { border-top: 1px solid var(--account-border); padding: 16px 0; }
    .order-table tr:last-child { padding-bottom: 0; }
    .order-table td, .order-table td:first-child, .order-table td:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border: 0; padding: 7px 0; text-align: right; font-size: 14px; }
    .order-table td::before { content: attr(data-label); color: var(--account-muted); font-size: 14px; text-align: left; flex-shrink: 0; }
    .order-table td:last-child > .btn { margin-left: auto; }
    .order-items-table td:first-child { max-width: none; }
    .order-detail-cards { grid-template-columns: 1fr; gap: 20px; }
.order-detail-total { padding-top: 20px; margin-top: 15px; justify-content: space-between; }
    .order-detail-total > strong { font-size: 22px; }
    .success-page { padding-top: 26px; }
    .success-page > .checkout-steps { margin-bottom: 26px; }
    .success-card { padding: 34px 23px 26px; box-shadow: 0 30px 60px -30px rgba(26, 25, 24, .35); }
    .success-card h1 { font-size: 31px; }
    .success-card > p { font-size: 14px; }
    .success-details { padding: 18px 15px; }
    .success-details > div { align-items: flex-start; gap: 13px; }
    .success-details dt { font-size: 14px; }
    .success-details dd { font-size: 14px; }
}

/* Shared surfaces and feedback across the complete shopping journey. */
.commerce-page, .auth-page { --account-muted: #77726c; --account-border: #e3e1df; }
.commerce-summary, .account-card, .form-section, .commerce-empty, .account-nav { border-radius: 18px; }
.commerce-summary, .account-card, .account-nav { box-shadow: 0 24px 48px -30px rgba(26, 25, 24, .16); }
.cart-item-image { border-radius: 14px; }
.heading-count { background: var(--accent); border-color: var(--accent); color: #fff; }
.account-form input:not([type="radio"]):not([type="hidden"]), .account-form select, .account-form textarea { border-radius: 10px; }
.account-form .payment-option { border-radius: 12px; transition: border-color .2s, background-color .2s; }
.account-form .payment-option:has(input:focus-visible) { outline: 2px solid var(--dark); outline-offset: 3px; }
.account-form .payment-option:has(input:checked) { background: var(--accent); border-color: #a73546; }
.payment-option:has(input:checked) input { accent-color: #fff; }
.payment-option:has(input:checked) strong { color: var(--accent-ink); }
.payment-option:has(input:checked) small { color: var(--accent-ink); opacity: .8; }
.payment-option:has(input:checked) svg { color: var(--accent-ink); }
.cart-stock-warning { color: #a23a2d; line-height: 1.65; margin: 0 0 12px; }
.cart-item .qty-form button:disabled { opacity: .45; cursor: not-allowed; }
.account-signout-form { margin: 0; }
.account-nav .account-signout { display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px; border: 1px solid var(--account-border); border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.account-nav .account-signout:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.account-nav .account-signout:hover .account-nav-icon { background: #ffffff21; color: #fff; }
.order-progress-card > .eyebrow { display: block; margin-bottom: 25px; font-size: 14px; }
.order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.order-progress li { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; color: #95908a; text-align: center; font-size: 15px; line-height: 1.5; }
.order-progress li span:not(.order-progress-dot) { white-space: nowrap; }
.order-progress li::before { content: ''; position: absolute; left: -50%; right: 50%; top: 21px; height: 2px; background: var(--account-border); }
.order-progress li:first-child::before { display: none; }
.order-progress-dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f0f0ef; border: 4px solid #fff; font-size: 14px; }
.order-progress .is-reached { color: var(--dark); font-weight: 600; }
.order-progress .is-reached::before { background: var(--accent); }
.order-progress .is-reached .order-progress-dot { background: var(--accent); }
.order-progress li[aria-current] .order-progress-dot { background: var(--dark); color: #fff; }
@media (max-width: 800px) {
    .account-signout-form { flex: 1 1 auto; display: flex; }
    .account-nav .account-signout { margin: 0; padding: 11px 12px; font-size: 14px; justify-content: center; }
    .account-nav .account-signout > span { display: none; }
}
@media (max-width: 600px) {
    .commerce-summary, .account-card, .form-section, .commerce-empty, .account-nav { border-radius: 14px; }
    .account-nav .account-signout { font-size: 14px; padding: 10px 8px; }
    .order-progress li { font-size: 14px; gap: 8px; }
    .order-progress-dot { width: 38px; height: 38px; font-size: 14px; }
    .order-progress li::before { top: 19px; }
}
