/* Gift prototype presentation. Shared geometry; only semantic palette tokens change. */
:root {
 --pine:#087a45; --green:#087a45; --theme-hover:#056237; --soft:#eaf7f0;
 --cream:#f7f3ea; --paper:#fffefb; --ink:#202923; --muted:#4d5750;
 --gold:#805b2b; --line:#ddd8cc; --success:#17633b; --viewport-height:100dvh;
 --display-font:'Cambria','Times New Roman',serif;
}
body { position:relative; isolation:isolate; background:var(--cream); padding-bottom:calc(var(--dock) + 32px); }
body::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:url('images/page-arches.svg') center 155px / max(1440px,100vw) 1120px repeat-y; }
h1 { font-family:var(--display-font); font-size:30px; font-weight:600; letter-spacing:-.3px; line-height:1.22; }
h2,h3 { letter-spacing:-.2px; }
input,textarea,select { border-color:#c6c9c1; background:#fff; }
:focus-visible { outline:3px solid #236ab0; outline-offset:3px; }
button:disabled { cursor:not-allowed; opacity:.48; }
.preview { background:var(--theme-hover); color:#fff9ed; letter-spacing:.045em; }
.preview button { color:#fff9ed; }
.header { background:var(--paper); border-bottom:1px solid #ded2be; }
.header-inner { gap:24px; }
.header-actions { display:flex; align-items:center; gap:12px; margin-left:auto; }
.top-nav { margin-left:auto; }
.brand strong { color:var(--ink); }
.brand small { letter-spacing:.09em; }
.gift-cart { min-height:44px; border-radius:10px; border-color:#d9d4c8; color:var(--ink); }
.gift-cart svg,.gold-icon { color:var(--gold); }
.gift-cart b,.cart-badge { background:#b42332; color:white; font-size:10px; min-width:18px; height:18px; border:2px solid var(--paper); border-radius:50%; display:grid; place-items:center; padding:0 3px; font-variant-numeric:tabular-nums; }
.theme-control { position:relative; }
.theme-toggle { min-width:44px; min-height:44px; padding:8px 11px; border:1px solid #d9d4c8; border-radius:10px; display:flex; align-items:center; gap:8px; background:white; color:var(--ink); font-size:12px; }
.theme-dots { display:flex; align-items:center; width:28px; }
.theme-dots i { width:13px; height:13px; border:1px solid white; border-radius:50%; margin-right:-5px; background:#087a45; }
.theme-dots i:nth-child(2) { background:#b42332; }.theme-dots i:nth-child(3) { background:#0756a6; }
.theme-toggle[aria-expanded=true] { border-color:var(--pine); background:var(--soft); }
.theme-panel { position:absolute; right:0; top:calc(100% + 9px); z-index:50; width:292px; max-width:calc(100vw - 24px); max-height:calc(var(--viewport-height) - 110px); overflow:auto; overscroll-behavior:contain; background:var(--paper); border:1px solid #d7c8ad; border-radius:16px; padding:18px; box-shadow:0 12px 35px #352d1e23; }
.theme-panel-title { font-family:var(--display-font); font-size:19px; color:var(--ink); }
.theme-panel p { color:var(--muted); font-size:12px; margin-top:5px; }
.theme-choices { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:15px 0 10px; }
.theme-choice { background:white; border:1px solid #ddd8cc; border-radius:9px; min-height:50px; display:flex; align-items:center; gap:8px; text-align:left; padding:8px; font-size:11px; color:var(--ink); }
.theme-choice[aria-pressed=true] { border-color:var(--pine); background:var(--soft); box-shadow:inset 0 0 0 1px var(--pine); }
.theme-swatch { width:27px; height:27px; border-radius:50%; flex-shrink:0; background:var(--swatch); display:grid; place-items:center; color:white; }
.theme-swatch span { display:none; }.theme-choice[aria-pressed=true] .theme-swatch span { display:inline; }
#theme-current { color:var(--muted); font-size:11px; }
.steps-wrap { padding-top:20px; padding-bottom:22px; }
.step[aria-current=step],.step.done { color:var(--pine); }
.step.done b { background:var(--soft); color:var(--pine); }
.eyebrow { display:flex; align-items:center; gap:10px; color:var(--gold); letter-spacing:.12em; }
.eyebrow .bow-icon { width:36px; height:28px; stroke-width:1.05; }
.intro { margin-bottom:25px; }.intro p { font-size:14px; }
.gold-label { display:flex; align-items:center; gap:8px; }
.gold-icon { width:23px; height:23px; stroke-width:1.35; vertical-align:middle; }
.panel,.summary { border-color:#e2dcd0; border-radius:16px; background:var(--paper); box-shadow:0 3px 15px #46321706; }
.btn { border:1px solid #b08e55; border-radius:10px; min-height:53px; font-size:14px; padding:13px 24px; background:linear-gradient(175deg,var(--pine),var(--theme-hover)); box-shadow:inset 0 1px 0 #ffffff26,0 3px 7px #2e231514; position:relative; isolation:isolate; }
.btn:not(.secondary):not(.light)::before { content:""; position:absolute; left:1px; bottom:1px; width:36px; height:27px; pointer-events:none; z-index:-1; opacity:.35; border-radius:0 0 0 8px; background:repeating-linear-gradient(42deg,transparent 0 3px,#d6bb7a 3px 3.6px,transparent 3.6px 6px); mask-image:linear-gradient(45deg,#000,transparent 75%); }
.btn:hover:not(:disabled) { background:var(--theme-hover); }
.btn:active:not(:disabled) { box-shadow:inset 0 2px 3px #0000001a; }
.btn.secondary,.btn.light { min-height:44px; background:var(--paper); border-color:#bac5bb; color:var(--pine); box-shadow:none; }
.btn.secondary:hover:not(:disabled),.btn.light:hover:not(:disabled) { background:var(--soft); }
.budget-card { padding:28px; border-color:#dbc9aa; }
.budget-card>label { font-weight:650; }.money-input input { font-size:30px; padding:14px 16px; }
.budget-note { gap:12px; }.budget-note .gold-icon { flex-shrink:0; color:var(--gold); }
.budget-note strong { font-size:13px; font-weight:500; }
.budget-notes { margin-top:18px; border-top:1px solid var(--line); padding-top:3px; }
.budget-notes .budget-note { padding:11px 0; margin:0; border:0; align-items:center; }
.gift-story { position:relative; overflow:hidden; border-radius:18px; padding:32px; min-height:330px; display:flex; flex-direction:column; justify-content:center; background:#fffaf0e8; border:1px solid #e6dbc7; }
.gift-story::before { content:""; position:absolute; inset:0; background:url('images/page-arches-mobile.svg') right center / 320px 650px no-repeat; opacity:.75; pointer-events:none; }
.gift-story>* { position:relative; }.gift-story>.bow-icon { width:70px; height:54px; color:var(--gold); stroke-width:.8; margin-bottom:20px; }
.gift-story h2 { font-family:var(--display-font); font-size:27px; font-weight:500; line-height:1.35; max-width:340px; }
.gift-story p { color:var(--muted); font-size:13px; line-height:1.65; margin-top:12px; max-width:320px; }
.gift-story .story-categories { font-size:11px; letter-spacing:.07em; color:var(--gold); margin-top:22px; }
.mini-features { margin-top:15px; gap:12px; }
.box-card { border-radius:14px; }.box-card.selected { border-color:var(--pine); box-shadow:0 0 0 2px var(--soft); }
.box-note { background:var(--paper); border:1px solid var(--line); }
.tag.gold { color:#805d2d; background:#f6eddb; }
.catalog-top { background:var(--paper); border-color:#e1d8c9; padding:15px 18px; }
.catalog-top .eyebrow { color:var(--gold); }
.catalog-tools h2 { font-family:var(--display-font); font-size:23px; font-weight:600; }
.products { gap:22px 18px; }.product { border:1px solid var(--line); border-radius:14px; background:var(--paper); overflow:visible; box-shadow:0 2px 8px #35271908; }
@media(hover:hover) and (pointer:fine) {
 .product:hover { border-color:var(--pine); box-shadow:0 0 0 1px var(--pine),0 4px 14px #35271916; }
}
.product:focus-within { border-color:var(--pine); box-shadow:0 0 0 1px var(--pine),0 4px 14px #35271916; }
.product .photo { overflow:hidden; border-radius:13px 13px 0 0; background:#fff; border:0; border-bottom:1px solid var(--line); }
.product .photo:hover { box-shadow:none; }
.product .photo img { height:auto; aspect-ratio:4/3; min-height:0; object-fit:contain; padding:9px; background:white; }
.product .photo .tag { display:none; }
.product-info { padding:13px; }.product-info h3 { font-size:14px; min-height:2.8em; }
.product-info>.muted { min-height:2.8em; font-size:12px; }.product-info .price { font-size:16px; margin:7px 0 10px; }
.product-info .btn { min-height:44px; font-size:12px; border-color:#aebdb2; }
.product-info .qty { margin-top:auto; min-height:44px; }.product-info .qty button { min-height:44px; }
.card-selection { min-height:30px; font-size:11px; }
.summary { padding:22px; }.summary h2 { font-size:17px; }.summary .summary-line.total { align-items:center; }
.summary .summary-line.total>span { display:flex; align-items:center; gap:6px; }
.budget-status:not(.over) { background:#eaf5ed; color:var(--success); }.budget-status:not(.over) .progress i { background:var(--success); }
.selected-item img,.size-product>img { object-fit:contain; background:white; border:1px solid #ece6dc; }
.size-calculation { background:#fffaf1; border-color:#e3d5bc; }.size-budget:not(.over) b { color:var(--success); }
.size-card.selected { border-color:var(--pine); background:var(--soft); box-shadow:inset 0 0 0 1px var(--pine); }
.size-quantity button,.line-actions button { background:var(--soft); }
.greeting { background:#fcf8ee; border-color:#dfcfaf; }.greeting small { color:var(--gold); }
.cart-design { border-color:#e1d9ca; }.cart-design p { overflow-wrap:anywhere; }
.notice { background:#f3f3e9; color:#4e5c50; }.add-design { border-color:#b5bdb0; background:var(--paper); }
.dock { background:var(--paper); backdrop-filter:none; border-top:1px solid #ded2be; box-shadow:0 -3px 18px #35271907; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); }
.dock-copy strong { font-size:18px; font-variant-numeric:tabular-nums; }.dock-copy small { font-size:12px; }
.dock-cart { min-width:70px; min-height:46px; display:flex; align-items:center; justify-content:center; gap:10px; color:var(--ink); background:transparent; border-right:1px solid var(--line); padding:0 16px 0 0; }
.dock-cart-icon { position:relative; display:flex; align-items:center; }.dock-cart-icon>svg { color:var(--gold); width:27px; height:27px; }
.dock-cart .cart-badge { position:absolute; top:-8px; right:-9px; }.dock-cart-label { font-size:12px; text-align:left; }
.dock-cart-label small { display:block; color:var(--muted); font-size:10px; }
.dock-inner { gap:18px; }.dock-copy { margin-right:auto; }.keyboard-cart-total { display:none; }
dialog { border-color:#dacdb4; background:var(--paper); border-radius:18px; max-height:calc(var(--viewport-height) - 30px); }
dialog .gold-icon { flex-shrink:0; }.modal-head h2 { display:flex; align-items:center; gap:9px; font-size:19px; }
.close { min-width:44px; width:44px; height:44px; background:#f2eee5; color:var(--ink); }
dialog.cart-preview-dialog { width:min(560px,calc(100% - 32px)); padding:0; overflow:hidden; }
.cart-preview-layout { display:flex; flex-direction:column; max-height:calc(var(--viewport-height) - 32px); }
.cart-preview-header { padding:21px 24px 15px; border-bottom:1px solid var(--line); position:relative; background:var(--paper); }
.cart-preview-header .modal-head { margin:0 0 4px; }.cart-preview-header h2 { font-family:var(--display-font); font-size:24px; }
.cart-preview-header p { color:var(--muted); font-size:12px; }
.cart-preview-body { overflow:auto; overscroll-behavior:contain; padding:0 24px; min-height:0; }
.quick-design { padding:19px 0; border-bottom:1px solid var(--line); }.quick-design:last-child { border-bottom:0; }
.quick-design-head { display:flex; align-items:start; justify-content:space-between; gap:14px; }.quick-design-head h3 { font-size:16px; }
.quick-design-head .text-btn { padding:0 4px; min-height:36px; flex-shrink:0; }
.quick-design ul,.quick-draft ul { list-style:none; margin:10px 0 12px; padding:0; }
.quick-design li,.quick-draft li { display:flex; gap:9px; align-items:center; padding:5px 0; font-size:12px; }
.quick-design li img,.quick-draft li img { width:34px; height:34px; flex-shrink:0; border-radius:6px; object-fit:contain; background:white; }
.quick-design li span,.quick-draft li span { min-width:0; flex:1; overflow-wrap:anywhere; }
.quick-design li small,.quick-draft li small { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.quick-design-price { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; }.quick-design-price strong { color:var(--pine); font-size:17px; }
.quick-draft { padding:15px; border:1px dashed #c7b18b; border-radius:12px; margin:16px 0; background:#fcf8ef; }
.quick-draft h3 { display:flex; align-items:center; gap:6px; font-size:14px; }.quick-draft p { font-size:12px; color:var(--muted); margin-top:5px; }
.cart-preview-footer { flex-shrink:0; background:var(--paper); border-top:1px solid var(--line); padding:17px 24px max(18px,env(safe-area-inset-bottom)); }
.cart-preview-total { display:flex; align-items:center; justify-content:space-between; gap:12px; }.cart-preview-total>span { display:flex; align-items:center; gap:7px; font-size:14px; }
.cart-preview-total strong { font-size:23px; color:var(--pine); }.cart-preview-footer .field-help { margin:4px 0 12px; }
.cart-preview-footer .btn { width:100%; }.quick-empty { padding:24px 0; font-size:13px; color:var(--muted); }
body.typing { padding-bottom:calc(var(--dock) + 24px); }
body.typing .dock { padding:5px 0; }
body.typing .dock-copy,body.typing .dock-actions { display:none; }
body.typing .dock-cart { min-height:42px; border:0; }.typing .keyboard-cart-total { display:block; margin-left:auto; font-size:13px; color:var(--pine); }
.typing .keyboard-cart-total small { display:block; color:var(--muted); font-size:10px; }
body.keyboard-tiny .dock { border:1px solid var(--line); border-radius:10px; }
body.keyboard-tiny .dock-inner { width:auto; padding:0 10px; }.keyboard-tiny .dock-cart-label,.keyboard-tiny .keyboard-cart-total { display:none; }
body.keyboard-tiny .dock-cart { min-width:35px; padding:0; }
@media(max-width:1050px) {
 .catalog-layout { grid-template-columns:minmax(0,1fr); }.catalog-layout>#side-summary { display:none; }
 .split { grid-template-columns:1fr; gap:18px; }.gift-story { min-height:0; padding:24px; flex-direction:row; gap:20px; align-items:center; }
 .gift-story>.bow-icon { width:50px; height:40px; flex-shrink:0; margin:0; }.gift-story h2 { font-size:23px; max-width:none; }
 .gift-story p { margin-top:5px; max-width:none; }.gift-story .story-categories { margin-top:8px; }
 .top-nav { gap:12px; }.header-inner { gap:14px; }.header-actions { gap:8px; }.theme-toggle-label { display:none; }
 .products { gap:24px 20px; }.product .photo img { height:auto; min-height:0; }
}
@media(max-width:720px) {
 body::before { background-image:url('images/page-arches-mobile.svg'); background-size:100% 950px; background-position:center 150px; }
 body { font-size:14px; }.wrap { width:calc(100% - 32px); }
 h1 { font-size:25px; letter-spacing:-.45px; }.intro { margin-bottom:20px; }.intro p { font-size:13px; }
 .header-inner { min-height:74px; }.header-actions { margin-left:auto; }.header-actions>.gift-cart { display:none; }
 .brand strong { font-size:19px; }.brand small { font-size:6.5px; }.theme-toggle { padding:8px; }
 .steps-wrap { padding-top:15px; padding-bottom:18px; }.eyebrow { font-size:10px; gap:8px; }.eyebrow .bow-icon { width:30px; height:24px; }
 input,select,textarea { font-size:16px; }.budget-card { padding:20px; }.money-input input { font-size:28px; padding:13px 12px; }
 .money-input span { font-size:12px; padding-right:12px; }.presets { gap:7px; }.presets .chip { padding:8px 9px; font-size:12px; flex:1; }
 .gift-story { padding:18px; gap:13px; }.gift-story h2 { font-size:20px; }.gift-story p { font-size:12px; }.gift-story .story-categories { font-size:10px; }
 .mini-features { gap:8px 14px; font-size:11px; }
 .catalog-tools { display:block; }.catalog-tools h2 { font-size:22px; margin-bottom:12px; }.search { max-width:none; }
 .products { gap:20px 13px; }.product-info h3 { font-size:13px; min-height:2.8em; }.product-info>.muted { font-size:11px; }
 .product-info .price { font-size:15px; }.product .photo img { height:auto; padding:6px; }.product-info .btn { min-height:44px; font-size:12px; padding:9px 7px; }
 .has-sizes .product-info .btn { font-size:12px; }.card-selection { font-size:10px; }.catalog-top { padding:13px; gap:10px; }
 .catalog-top .text-btn { font-size:11px; flex-shrink:0; }.catalog-top strong { font-size:13px; }.catalog-top small { font-size:11px; }
 .btn { min-height:55px; padding:13px 18px; font-size:14px; }.btn.secondary,.btn.light { min-height:44px; }
 .dock { position:fixed; padding:9px 0 calc(9px + env(safe-area-inset-bottom)); }.dock-inner { gap:10px; }
 .dock-cart { min-width:43px; padding-right:10px; flex-direction:column; gap:4px; }.dock-cart-icon>svg { width:25px; height:25px; }
 .dock-cart-label { font-size:10px; line-height:1.2; text-align:center; }.dock-cart-label small { display:none; }
 .dock-copy { flex:1; }.dock-copy small { font-size:10px; line-height:1.35; }.dock-copy strong { font-size:15px; white-space:nowrap; }
 .dock-copy .gold-icon { display:none; }.dock .btn { font-size:12px; padding:12px; min-height:55px; max-width:178px; }
 .dock-actions { flex-shrink:0; gap:0; }.dock .back { display:none; }
 .cart-preview-dialog { margin:auto auto 0; width:100%!important; max-width:100%; border:0; border-top:1px solid #d7c8ad; border-radius:20px 20px 0 0; }
 .cart-preview-layout { max-height:calc(var(--viewport-height) - 12px); }.cart-preview-header { padding:17px 20px 12px; }
 .cart-preview-body { padding:0 20px; }.cart-preview-footer { padding:14px 20px max(16px,env(safe-area-inset-bottom)); }
 .cart-preview-total strong { font-size:21px; }.cart-preview-header h2 { font-size:23px; }
 .modal-head h2 { font-size:18px; }.size-dialog { max-height:calc(var(--viewport-height) - 20px); }.size-inputs select { font-size:16px; }
 .quick-design-price { flex-wrap:wrap; }.review-layout { gap:18px; }.quantity-line strong { font-size:20px; }
 .cart-design .design-price { flex-wrap:wrap; }.cart-design>img { max-width:100%; }
}
@media(max-width:360px) {
 .wrap { width:calc(100% - 24px); }.dock-inner { gap:8px; }.dock-cart { min-width:39px; padding-right:8px; }
 .dock .btn { font-size:11px; padding:11px 9px; max-width:146px; }.dock-copy strong { font-size:14px; }
 .product-info .btn { font-size:11px; }.has-sizes .product-info .btn { font-size:11px; }.brand strong { font-size:17px; }
 .theme-panel { right:0; width:280px; }.gift-story { gap:10px; padding:16px; }.gift-story>.bow-icon { width:35px; }.gift-story h2 { font-size:19px; }
 .cart-preview-total strong { font-size:19px; }.quick-design-head h3 { font-size:15px; }
}
@media(max-height:460px) and (orientation:landscape) {
 .dock { position:fixed; padding:6px 0 calc(6px + env(safe-area-inset-bottom)); }.dock .btn { min-height:44px; }
 .dock-cart { min-height:40px; }.dock-cart-label { display:none; }.header-inner { min-height:62px; }
 dialog.cart-preview-dialog { margin:auto; border-radius:16px; }.cart-preview-layout { max-height:calc(var(--viewport-height) - 16px); }
 .cart-preview-header { padding:9px 18px 4px; }.cart-preview-footer { padding:9px 18px; }.cart-preview-footer .field-help { margin:2px 0 6px; }
 .cart-preview-footer .btn { min-height:44px; }.cart-preview-body { padding:0 18px; }
}
/* Readability and next-step placement across all six appearance presets. */
.intro p,.gift-story p,.cart-design p { color:var(--muted); }
.greeting p { font-family:var(--display-font); }
.field-help,.size-note,.size-calculation>small,.capacity,.selected-item small,
.product-info>.muted,.card-selection { font-size:13px; line-height:1.5; }
.product-info h3 { font-size:15px; font-weight:650; }
.product-info .price { color:var(--pine); font-weight:750; }
.product-info .price small { font-size:12px; color:var(--muted); }
.product-info .btn { font-size:13px; }
.budget-note strong { font-size:14px; font-weight:600; }
.budget-note small,.budget-status small { font-size:12px; }
.mini-features { color:var(--muted); font-size:12px; }
.gift-story .story-categories { font-size:12px; color:var(--gold); }
.eyebrow,.greeting small { color:var(--gold); }
.gold-icon,.bow-icon,.dock-cart-icon>svg { color:#9b7139; }
.btn.secondary,.btn.light { color:var(--ink); border-color:#9aa99e; }
.catalog-next { margin:0 0 18px; padding:14px; border:1px solid #d6e0d5; border-radius:12px; background:#f3f7f2; }
.catalog-next .summary-line { margin:0 0 10px; align-items:center; }
.catalog-next .summary-line strong { color:var(--pine); font-size:24px; }
.catalog-next .field-help { margin-top:9px; }
.catalog-next .btn,.catalog-continue .btn { font-size:14px; }
#catalog-continue { display:none; }
.catalog-continue { padding:18px 20px; background:var(--paper); border:1px solid #d8d3c6; border-radius:14px; margin-bottom:22px; }
.catalog-continue-title { display:flex; gap:9px; align-items:center; margin-bottom:9px; }
.catalog-continue-title h2 { font-size:18px; }
.catalog-continue-price { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; font-size:14px; }
.catalog-continue-price strong { color:var(--pine); font-size:25px; }
.catalog-continue .field-help { text-align:center; margin-top:9px; }
.summary-head { gap:10px; align-items:start; }.summary-head h2 { line-height:1.4; }
.summary-head .tag { white-space:nowrap; }
.dock-copy { max-width:none; }
@media(min-width:1051px) {
 body[data-screen=catalog] .dock-actions { display:none; }
 body[data-screen=catalog] #side-summary { align-self:start; position:sticky; top:20px; }
 body[data-screen=catalog] #side-summary>.summary { position:static; }
}
@media(min-width:721px) and (max-width:1050px) {
 #catalog-continue { display:block; }
 .catalog-continue { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; align-items:center; }
 .catalog-continue-title { grid-column:1; }.catalog-continue-price { grid-column:1; margin-bottom:0; }
 .catalog-continue .btn { grid-column:2; grid-row:1 / 3; }
 .catalog-continue .field-help { grid-column:1 / -1; margin-top:12px; }
}
@media(max-width:720px) {
 .product-info h3 { font-size:14px; }
 .product-info>.muted,.card-selection,.product-info .price small { font-size:12px; }
 .product-info .btn,.has-sizes .product-info .btn { font-size:12px; }
 .gift-story p { font-size:13px; }.gift-story .story-categories { font-size:11px; }
 .dock-copy small { font-size:12px; }.dock-copy strong { font-size:16px; }
 .dock .btn { font-size:13px; line-height:1.35; white-space:normal; }
 .dock-cart-label { font-size:11px; }
 .catalog-top small,.catalog-top .text-btn { font-size:12px; }
 .box-info p,.size-name small,.size-inputs label { font-size:12px; }
}
@media(max-width:360px) {
 .dock .btn { max-width:132px; padding:10px 8px; font-size:12px; }
 .dock-copy small { font-size:11px; }.dock-copy strong { font-size:14px; }
 .dock-cart-label { font-size:10px; }.product-info h3 { font-size:13px; }
}
/* Keep the next step beside the design summary, before its scrolling item list. */
.catalog-next { padding:14px 0 16px; border-bottom:1px solid var(--line); }
.catalog-next .summary-line { margin:0 0 10px; }
.catalog-next .summary-line strong { color:var(--pine); font-size:20px; }
.catalog-next .btn { font-size:13px; padding:12px 10px; min-height:50px; }
.catalog-next .field-help { margin:8px 0 0; font-size:12px; color:var(--muted); }

/* Two-row shell: only page content scrolls; the action row stays in normal flow.
   svh deliberately reserves browser-chrome space rather than chasing toolbar motion. */
:root { --viewport-height:100vh; }
@supports(height:100svh) { :root { --viewport-height:100svh; } }
html { height:100%; overflow:hidden; scroll-padding-bottom:0; }
body {
 height:var(--viewport-height); min-height:0; width:100%; overflow:hidden;
 display:grid; grid-template-rows:minmax(0,1fr) auto; padding:0;
}
.page-scroll {
 grid-row:1; min-height:0; min-width:0; overflow:auto;
 overscroll-behavior-y:contain; scroll-padding:16px; padding-bottom:24px;
}
.viewport-actions {
 grid-row:2; position:static; inset:auto; width:100%; height:auto;
 min-width:0; background:var(--paper);
}
.viewport-actions>#dock {
 position:static; inset:auto; width:100%; margin:0;
 background:var(--paper); backdrop-filter:none; -webkit-backdrop-filter:none;
}
.toast { position:absolute; bottom:calc(var(--dock) + 12px); }
*,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }

/* Catalog card refinement: quiet surfaces, consistent type and clear action priority.
   No shell/scroll positioning is changed here. All colors work with the six palettes. */
.products .product { border-color:#ded7ca; border-radius:14px; background:#fffefa; box-shadow:0 2px 9px #34261708; }
.products .product .photo { border-radius:13px 13px 0 0; border-bottom-color:#eee9df; }
.products .product .photo img { padding:10px; }
.products .product-info { padding:14px; gap:0; }
.products .product-info h3 { font-size:15px; font-weight:700; line-height:1.4; min-height:2.8em; margin:0 0 6px; color:var(--ink); letter-spacing:0; }
.product-spec { display:flex; flex-direction:column; gap:2px; min-height:38px; font-size:12px; line-height:1.5; color:#59615b; }
.product-spec>span:first-child { font-weight:500; color:#59615b; }
.products .product-info .price { display:flex; align-items:baseline; flex-wrap:wrap; column-gap:4px; margin:12px 0 8px; min-height:25px; line-height:1.4; }
.products .product-info .price strong { font-size:18px; font-weight:750; color:var(--pine); letter-spacing:-.2px; font-variant-numeric:tabular-nums; }
.products .product-info .price small { font-size:12px; font-weight:400; color:#59615b; }
.products .card-selection { min-height:0; font-size:12px; line-height:1.5; margin:0 0 10px; color:#59615b; }
.btn.gift-add { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.products .product-info .btn.gift-add {
 width:100%; min-height:44px; margin-top:auto; padding:10px 8px; border-radius:9px;
 color:var(--theme-hover); background:#f8f3e8; border:1px solid #b4a17c;
 font-size:13px; font-weight:650; line-height:1.4; letter-spacing:0;
 box-shadow:inset 0 1px 0 #ffffff;
}
.gift-add-icon { width:19px; height:19px; color:#866323; flex:0 0 19px; stroke-width:1.65; }
.modal-actions .btn.gift-add .gift-add-icon { color:#f6dc9f; }
.products .qty { min-height:44px; margin-top:auto; border-color:#b4a17c; border-radius:9px; background:#fffefa; }
.products .qty button { min-width:44px; min-height:44px; color:var(--theme-hover); background:#f8f3e8; font-size:18px; }
.products .qty span { color:var(--ink); font-size:14px; font-weight:650; font-variant-numeric:tabular-nums; }
.products .product:focus-within { border-color:var(--pine); box-shadow:0 0 0 1px var(--pine),0 4px 14px #34261710; }
@media(hover:hover) and (pointer:fine) {
 .products .product:hover { border-color:var(--pine); box-shadow:0 0 0 1px var(--pine),0 4px 14px #34261710; }
 .products .product-info .btn.gift-add:hover:not(:disabled) { color:white; background:var(--theme-hover); border-color:var(--theme-hover); }
 .products .product-info .btn.gift-add:hover:not(:disabled) .gift-add-icon { color:#f6dc9f; }
 .products .qty button:hover { background:var(--soft); }
}
@media(max-width:720px) {
 .products .product-info { padding:12px; }
 .products .product-info h3 { font-size:14px; margin-bottom:5px; }
 .products .product-info .price strong { font-size:17px; }
 .products .product-info .price { margin:10px 0 7px; }
 .products .product .photo img { padding:8px; }
}
@media(max-width:360px) {
 .products { column-gap:10px; }
 .products .product-info { padding:10px; }
 .products .product-info h3 { font-size:13px; }
 .products .product-info .price strong { font-size:16px; }
 .products .product-info .btn.gift-add { font-size:12px; gap:6px; }
 .products .qty button { min-width:38px; }
}

/* Desktop catalog: four cards, sufficient width for names and touch controls. */
@media(min-width:1051px) {
 body[data-screen=catalog] #main.wrap { width:min(1500px,calc(100% - 56px)); }
 .catalog-layout { grid-template-columns:minmax(0,1fr) 288px; gap:24px; }
 .catalog-layout>section { min-width:0; }
 .products { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px 16px; }
 .products .product { min-width:0; }
 .products .product-info h3 { font-size:16px; line-height:1.4; min-height:2.8em; }
 .products .product-spec { font-size:12px; line-height:1.5; }
}
@media(min-width:1051px) and (max-width:1279px) {
 .catalog-layout { grid-template-columns:minmax(0,1fr) 260px; gap:20px; }
 .products { column-gap:12px; }
 .products .product-info { padding:12px; }
}

.gift-save-status{width:min(1500px,calc(100% - 32px));margin:0 auto 16px;padding:10px 14px;background:var(--paper);border:1px solid var(--line);border-radius:9px;font-size:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gift-save-status button,.gift-save-status a{min-height:36px;padding:7px 10px;background:var(--soft);color:var(--theme-hover);border-radius:6px}.size-inputs>div:first-child{display:block}

/* Audit: clear Vietnamese text, visible focus, consistent selection action. */
.product-title-button{font:inherit;font-weight:700;line-height:1.4;text-align:left;color:inherit;background:transparent;border:0;padding:0;min-height:44px;width:100%;cursor:pointer}
.product-title-button:hover{text-decoration:underline;text-underline-offset:3px}
.product-title-button:focus-visible,.product .photo:focus-visible{outline:3px solid #175cd3;outline-offset:2px}
.product-detail h3,.size-product h3{font-size:18px;line-height:1.4}.product-detail .price{font-size:20px}
.product-detail label,.size-fieldset legend{line-height:1.5}
input,select,textarea{font-family:'Segoe UI',system-ui,-apple-system,sans-serif}
@media(max-width:600px){input,select,textarea{font-size:16px}.product-detail{grid-template-columns:1fr}.product-detail>img{max-height:170px;object-fit:contain}.product-title-button{font-size:14px}.modal-head h2{font-size:19px;line-height:1.4}.intro h1{font-size:27px;line-height:1.3}}

@media(max-width:600px){.size-name{font-size:15px;line-height:1.4}.size-name small{font-size:12px}.size-card strong{font-size:14px}}

/* Size cards: reserve radio space; align the four information levels. */
.gift-checkout-design{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}.gift-checkout-design img{width:72px;height:72px;object-fit:contain;flex-shrink:0;border-radius:9px;background:var(--cream)}.gift-checkout-design div{min-width:0;overflow-wrap:anywhere}.gift-checkout-design p{font-size:13px;line-height:1.5;margin:4px 0}.gift-checkout-design small{color:var(--muted)}.gift-quick-box{display:flex;align-items:center;gap:9px;font-size:13px;margin:12px 0}.gift-quick-box img{width:44px;height:44px;object-fit:contain;border-radius:6px;flex-shrink:0}
.size-grid .size-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(2.8em,auto) auto auto;align-items:start;gap:6px;padding:15px 13px;border-color:#ddd3c0;background:#fffefa;box-shadow:0 2px 5px #382a0b06}
.size-grid .size-name{font:700 19px/1.35 'Segoe UI',system-ui,-apple-system,sans-serif;padding-right:0;margin-right:27px;min-width:0}
.size-grid .size-method{font-size:13px;font-weight:500;line-height:1.4;color:#465249;overflow-wrap:anywhere}
.size-grid .size-weight{font-size:13px;line-height:1.4;color:#59645c}
.size-grid .size-price{font:750 19px/1.35 'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--pine);font-variant-numeric:tabular-nums;margin-top:4px;white-space:nowrap}
.size-grid .size-card input{right:12px;top:16px;width:18px;height:18px}
.size-grid .size-card.selected{background:var(--soft);border-color:var(--pine);box-shadow:inset 0 0 0 1px var(--pine)}
.size-grid .size-card:focus-within{outline:3px solid #175cd3;outline-offset:2px}
@media(hover:hover){.size-grid .size-card:hover{border-color:#aa8749}}
@media(max-width:600px){.size-grid .size-card{padding:12px 10px;gap:4px}.size-grid .size-name{font-size:17px}.size-grid .size-price{font-size:18px}.size-grid .size-method,.size-grid .size-weight{font-size:12px}.size-grid .size-card input{top:13px;right:10px}}
/* Current-release reorder review shares the existing gift panels and controls. */
.gift-reorder-cover{display:block;width:140px;height:140px;object-fit:contain;border-radius:12px;margin-bottom:16px}
[data-screen="reorder"] #main>.panel{margin-bottom:20px;overflow-wrap:anywhere}
[data-screen="reorder"] #main>.panel li{line-height:1.7}
[data-screen="reorder"] .modal-actions{flex-wrap:wrap;gap:12px}
[data-screen="reorder"] .btn{min-height:44px}
