.commerce-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:26px; align-items:start; }
.cart-items,.checkout-panel { padding:28px; border:1px solid var(--line); border-radius:var(--radius); background:white; min-width:0; }
.cart-list-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:12px; }
.cart-list-heading h2 { font-size:18px; }
.cart-row { display:grid; grid-template-columns:56px minmax(0,1fr) 84px 92px 32px; gap:16px; align-items:center; padding:26px 0; border-top:1px solid var(--line); }
.cart-product-symbol { width:56px; height:62px; background:#f1f5fb; color:#8099bd; border-radius:8px; display:grid; place-items:center; }
.cart-product-symbol .icon { width:30px; height:30px; }
.cart-product-info h3 { font-size:13px; line-height:1.5; letter-spacing:0; overflow-wrap:anywhere; }
.cart-product-info a { color:var(--ink); }
.cart-product-info p { font-size:11px; color:var(--muted); margin-top:6px; }
.quantity-update { display:flex; flex-direction:column; align-items:center; }
.quantity-update input { width:80px; border:1px solid var(--line); padding:9px 8px; border-radius:6px; text-align:center; font-size:13px; }
.quantity-update .text-button { font-size:10px; padding-bottom:0; }
.cart-line-total { font-size:13px; font-weight:700; white-space:nowrap; text-align:right; }
.delete-button { color:#a0afc1; border:0; width:32px; height:32px; }
.delete-button:hover { color:#b74242; background:#fff0f0; }
.delete-button .icon { width:18px; height:18px; }
.unavailable-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px; background:#fffbec; margin-bottom:16px; font-size:12px; border-radius:8px; }
.continue-link { border-top:1px solid var(--line); padding-top:24px; margin-top:10px; }
.order-summary { padding:28px; background:white; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); position:sticky; top:24px; }
.order-summary h2 { font-size:23px; margin-bottom:26px; }
.summary-line { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin:18px 0; }
.summary-total { border-top:1px solid var(--line); padding-top:20px; margin-bottom:24px; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.summary-total>span { font-size:12px; color:var(--muted); }
.summary-total strong { font-size:23px; white-space:nowrap; letter-spacing:-.02em; }
.summary-note { color:var(--muted); font-size:11px; line-height:1.8; margin-top:16px; }
.summary-security { border-top:1px solid var(--line); margin-top:24px; padding-top:20px; color:var(--muted); font-size:10px; display:flex; align-items:center; gap:8px; }
.summary-security .icon { color:var(--blue); width:17px; height:17px; }
.panel-heading { display:flex; gap:14px; align-items:center; padding-bottom:24px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.panel-heading h2 { font-size:19px; margin-bottom:5px; }
.panel-heading p { color:var(--muted); font-size:12px; }
.step-number { width:40px; height:40px; display:grid; place-items:center; background:#edf3ff; color:var(--blue); font-size:12px; font-weight:700; border-radius:8px; }
.checkout-form .field { margin-bottom:22px; }
.form-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-help { color:var(--muted); font-size:11px; margin-bottom:22px; max-width:440px; }
.checkout-items { list-style:none; padding:0; margin:0 0 26px; }
.checkout-items li { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:20px; font-size:12px; }
.checkout-items li div { min-width:0; overflow-wrap:anywhere; }
.checkout-items small { display:block; color:var(--muted); font-size:10px; margin-top:6px; }
.checkout-items strong { white-space:nowrap; font-size:12px; }
.success-panel { max-width:690px; margin:40px auto; padding:52px; border:1px solid var(--line); border-radius:16px; text-align:center; background:white; box-shadow:var(--shadow); }
.success-icon { display:grid; place-items:center; width:66px; height:66px; border-radius:50%; background:#eaf6ef; color:#32875b; margin:0 auto 28px; }
.success-icon .icon { width:32px; height:32px; }
.success-panel h1 { font-size:35px; margin-bottom:18px; }
.success-panel>p { color:var(--muted); font-size:14px; line-height:1.9; }
.receipt-reference { background:#f5f8fd; border-radius:8px; padding:18px; margin:26px 0; }
.receipt-reference span { display:block; color:var(--muted); font-size:10px; margin-bottom:8px; }
.receipt-reference strong { font-family:monospace; font-size:12px; overflow-wrap:anywhere; }
.success-mail { margin-bottom:30px; }
.success-mail .icon { margin-right:7px; color:var(--blue); width:17px; height:17px; }
.success-panel .notice { font-size:12px; text-align:left; color:#735b22; }
.success-panel .button-group { margin-top:28px; }
@media(max-width:1080px) { .commerce-layout { grid-template-columns:minmax(0,1fr) 300px; gap:20px; }.cart-items,.checkout-panel,.order-summary { padding:22px; }.cart-row { grid-template-columns:44px minmax(0,1fr) 70px 32px; gap:12px; }.cart-product-symbol { width:44px; height:54px; }.cart-line-total { grid-column:2; grid-row:auto; text-align:left; }.cart-row>form:last-child { grid-column:4; grid-row:1; }.quantity-update input { width:68px; }.summary-total { flex-wrap:wrap; } }
@media(max-width:800px) { .commerce-layout { grid-template-columns:1fr; }.order-summary { position:static; }.cart-row { grid-template-columns:44px minmax(0,1fr) 80px 32px; }.quantity-update input { width:72px; }.summary-total { flex-wrap:nowrap; } }
@media(max-width:540px) { .cart-items,.checkout-panel,.order-summary { padding:20px; }.cart-row { grid-template-columns:40px minmax(0,1fr) 30px; gap:12px; }.cart-product-symbol { width:40px; }.cart-row>.quantity-update { grid-column:2; grid-row:2; flex-direction:row; justify-content:flex-start; gap:12px; }.cart-row>form:last-child { grid-column:3; grid-row:1; }.cart-line-total { grid-column:2; grid-row:3; }.form-columns { grid-template-columns:1fr; gap:0; }.checkout-form>.button { width:100%; }.success-panel { padding:32px 24px; margin:16px auto; }.success-panel h1 { font-size:29px; }.cart-list-heading h2 { font-size:16px; }.cart-list-heading .text-button { font-size:10px; } }

.admin-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:34px; }
.admin-overview { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:30px; }
.admin-stat { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:32px; }
.admin-stat>.icon { color:var(--blue); margin-bottom:24px; display:block; }
.admin-stat>span { color:var(--muted); font-size:12px; display:block; }
.admin-stat>strong { font-size:48px; display:block; margin-bottom:24px; }
.admin-stat>div { display:flex; align-items:center; flex-wrap:wrap; gap:20px; }
.admin-mail-note { display:flex; align-items:flex-start; gap:16px; background:#edf3ff; border:1px solid #d7e4ff; border-radius:var(--radius); padding:24px; }
.admin-mail-note>.icon { color:var(--blue); }
.admin-mail-note h2 { font-size:16px; margin-bottom:8px; }
.admin-mail-note p { color:var(--muted); font-size:12px; }
.login-panel { max-width:430px; margin:30px auto; padding:34px; background:white; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.login-panel h1 { font-size:27px; margin-bottom:12px; }
.login-panel>p { color:var(--muted); font-size:13px; margin-bottom:26px; }
.login-panel .field { margin-bottom:20px; }
.login-panel>a { margin-top:24px; }
@media(max-width:640px) { .admin-heading { align-items:flex-start; }.admin-heading h1 { font-size:27px; }.admin-overview { grid-template-columns:1fr; }.admin-stat { padding:24px; }.login-panel { padding:26px; } }

.success-contacts { margin:26px 0; padding:24px; border:1px solid var(--line); border-radius:8px; background:#f5f8fd; text-align:left; }
.success-contacts h2 { font-size:18px; margin-bottom:18px; }
.success-contacts .store-contacts { font-size:14px; }

/* Quantity controls and stable totals across desktop and mobile layouts. */
.quantity-update { display:flex; flex-direction:row; gap:0; position:relative; }
.quantity-update label { min-width:0; }
.quantity-update input { width:48px; height:40px; padding:8px 2px; border-radius:0; appearance:textfield; -moz-appearance:textfield; }
.quantity-update input::-webkit-inner-spin-button,.quantity-update input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.quantity-step { width:32px; height:40px; border:1px solid var(--line); background:#f7f9fc; color:var(--ink); font-size:18px; padding:0; }
.quantity-step:first-of-type { border-radius:6px 0 0 6px; border-right:0; }
.quantity-step:last-of-type { border-radius:0 6px 6px 0; border-left:0; }
.quantity-step:disabled { color:#a0afc1; cursor:default; }
.quantity-status { min-height:20px; margin:4px 0 12px; color:var(--muted); font-size:12px; }
.quantity-status.is-error { color:#9e3434; }
.cart-row { grid-template-columns:48px minmax(0,1fr) 112px minmax(90px,max-content) 32px; gap:14px; }
.cart-product-symbol { width:48px; }
.cart-line-total,.summary-total strong { display:inline-flex; align-items:baseline; gap:5px; white-space:nowrap; }
.cart-line-total { justify-content:flex-end; }
@media(max-width:1100px) { .commerce-layout { grid-template-columns:minmax(0,1fr) 290px; gap:20px; }.cart-row { grid-template-columns:minmax(0,1fr) 112px 32px; }.cart-product-symbol { display:none; }.cart-product-info { grid-column:1; grid-row:1; }.quantity-update { grid-column:2; grid-row:1; }.cart-row>form:last-child { grid-column:3; grid-row:1; }.cart-line-total { grid-column:2; grid-row:2; } }
@media(max-width:800px) { .commerce-layout { grid-template-columns:1fr; }.cart-row { grid-template-columns:48px minmax(0,1fr) 112px minmax(90px,max-content) 32px; }.cart-product-symbol { display:grid; }.cart-product-info,.quantity-update,.cart-line-total,.cart-row>form:last-child { grid-column:auto; grid-row:auto; } }
@media(max-width:620px) { .cart-row { grid-template-columns:minmax(0,1fr) 112px 32px; gap:12px; }.cart-product-symbol { display:none; }.cart-product-info { grid-column:1 / 3; grid-row:1; }.cart-row>.quantity-update { grid-column:1; grid-row:2; justify-self:start; flex-direction:row; gap:0; }.quantity-update input { width:48px; }.cart-line-total { grid-column:2 / 4; grid-row:2; }.cart-row>form:last-child { grid-column:3; grid-row:1; }.cart-list-heading { flex-wrap:wrap; }.summary-total { flex-wrap:wrap; } }

.email-autocomplete { display:block; position:relative; min-width:0; }
.email-suggestions { position:absolute; z-index:30; top:calc(100% + 5px); left:0; right:0; max-height:240px; overflow:auto; border:1px solid var(--line); border-radius:8px; background:white; box-shadow:var(--shadow); padding:5px; }
.email-suggestions[hidden] { display:none; }
.email-suggestions [role="option"] { display:block; padding:10px; border-radius:5px; font-size:13px; font-weight:400; overflow-wrap:anywhere; cursor:pointer; }
.email-suggestions [role="option"]:hover,.email-suggestions [aria-selected="true"] { background:#edf3ff; color:var(--blue); }

/* Product covers remain visible at every cart breakpoint. */
.cart-row { grid-template-columns:72px minmax(0,1fr) 112px minmax(90px,max-content) 32px; }
.cart-product-media { display:block; width:72px; height:72px; padding:5px; background:white; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.cart-product-media img { width:100%; height:100%; object-fit:contain; }
@media(max-width:1100px) {
    .cart-row { grid-template-columns:64px minmax(0,1fr) 112px 32px; }
    .cart-product-media { width:64px; height:64px; grid-column:1; grid-row:1 / 3; }
    .cart-product-info { grid-column:2; grid-row:1; }
    .cart-row>.quantity-update { grid-column:3; grid-row:1; }
    .cart-row>form:last-child { grid-column:4; grid-row:1; }
    .cart-line-total { grid-column:3; grid-row:2; }
}
@media(max-width:800px) {
    .cart-row { grid-template-columns:64px minmax(0,1fr) 112px minmax(90px,max-content) 32px; }
    .cart-product-media { grid-column:1; grid-row:1; }
    .cart-product-info { grid-column:2; grid-row:1; }
    .cart-row>.quantity-update { grid-column:3; grid-row:1; }
    .cart-line-total { grid-column:4; grid-row:1; }
    .cart-row>form:last-child { grid-column:5; grid-row:1; }
}
@media(max-width:620px) {
    .cart-row { grid-template-columns:56px minmax(0,1fr) 32px; gap:12px; }
    .cart-product-media { width:56px; height:64px; grid-column:1; grid-row:1; }
    .cart-product-info { grid-column:2; grid-row:1; }
    .cart-row>form:last-child { grid-column:3; grid-row:1; }
    .cart-row>.quantity-update { grid-column:2; grid-row:2; }
    .cart-line-total { grid-column:2 / 4; grid-row:3; justify-content:flex-start; }
}

@media(max-width:720px){
    .quantity-step{width:44px;height:44px}
    .quantity-update input{height:44px}
    .delete-button{width:44px;height:44px}
    .cart-row{grid-template-columns:64px minmax(0,1fr) 136px minmax(90px,max-content) 44px}
}
@media(max-width:620px){
    .cart-row{grid-template-columns:56px minmax(0,1fr) 44px}
    .cart-row>.quantity-update{grid-column:2 / 4}
}
