/* The Hart & Brick shop (/shop): catalog, product pages, cart, checkout, orders and accounts. Builds on site.css. */

.shop-banner { background: var(--mauve-dk); color: #fff; text-align: center; font: 500 .8rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; }
.shop-hero { padding-block: clamp(36px, 5vw, 72px) clamp(8px, 2vw, 20px); text-align: center; }
.shop-hero .lede { margin: 16px auto 0; }
.page-title { margin: 6px 0 clamp(20px, 3vw, 32px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; list-style: none; font: 500 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mauve-lt); }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--mauve-dk); }
.muted { color: var(--ink2); }
.small { font-size: .9rem; }
.fine-print { font-size: .86rem; line-height: 1.5; color: var(--ink3); margin: 12px 0 0; }
.notice { background: var(--wash); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--mauve-dk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link.danger { color: var(--b-red); }
.card-box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 28px); }
.card-box h2 { font: 500 1.12rem/1.3 var(--display); letter-spacing: .04em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.card-box h2 .icon { width: 22px; height: 22px; color: var(--mauve-dk); }
.card-box.flush { padding: 0; overflow: hidden; }
.glyph.big { width: 56px; margin: 0 auto 18px; }
.ph { display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 55%, var(--linen), var(--oat)); border-radius: 12px; }
.ph .glyph { width: 56px; opacity: .6; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field .label { font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.field .label i, legend i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink3); }
.field input, .field select, .field textarea, .coupon input, .search-field input, .sort-field select {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus, .search-field input:focus, .sort-field select:focus {
  outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(138,114,114,.18); }
.field .help { font-size: .86rem; color: var(--ink3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink2); margin: 4px 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--mauve-dk); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid2 .full { grid-column: 1 / -1; }
.form-msg { min-height: 1.4em; margin: 4px 0 10px; font-size: .94rem; color: var(--sage); }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.error, .form-msg[data-error] { color: var(--b-red); }
.form-msg a { color: inherit; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Catalog ---------- */
.shop-main { padding-top: clamp(20px, 3vw, 36px); }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-field { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-field .icon { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink3); pointer-events: none; }
.search-field input { padding-left: 44px; border-radius: 999px; background: var(--paper); }
.sort-field { display: flex; align-items: center; gap: 10px; font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.sort-field select { width: auto; padding: 10px 36px 10px 14px; border-radius: 999px; background-color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink2); text-decoration: none;
  font: 500 .76rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: all .2s; }
.chip span { font-size: .7rem; color: var(--ink3); letter-spacing: 0; }
.chip:hover { border-color: var(--mauve-lt); color: var(--ink); }
.chip.on { background: var(--mauve-dk); border-color: var(--mauve-dk); color: #fff; }
.chip.on span { color: rgba(255,255,255,.75); }
.results-note { color: var(--ink2); margin: -12px 0 24px; }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 32px); }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: radial-gradient(70% 60% at 50% 55%, #fff, var(--linen)); overflow: hidden; }
.pcard-media img, .pcard-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .6s ease; border-radius: 0; }
.pcard-media img.alt { opacity: 0; }
.pcard:hover .pcard-media img:not(.alt) { transform: scale(1.03); }
.pcard:hover .pcard-media img.alt { opacity: 1; }
.pbadges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pbadge { padding: 6px 10px; border-radius: 999px; background: rgba(255,253,248,.94); color: var(--ink); font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 1px 3px rgba(47,53,49,.12); }
.pbadge.sale { background: var(--b-red); color: #fff; }
.pbadge.kit { background: var(--sage); color: #fff; }
.pbadge.out { background: var(--ink); color: #fff; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.pcard-body .tag { align-self: flex-start; }
.pcard h3 { font: 500 1.24rem/1.25 var(--display); letter-spacing: .03em; margin: 12px 0 0; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard .sub { font: italic 400 1.08rem/1.45 var(--serif); color: var(--ink2); margin: 6px 0 0; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.price { font: 500 1.08rem/1.2 var(--sans); color: var(--ink); }
.price .from { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.price s, .buy-price s, .v-price s { color: var(--ink3); font-weight: 400; margin-left: 4px; }
.empty-state { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; background: var(--paper); border: 1px dashed var(--rule); border-radius: var(--radius); }
.empty-state .glyph { width: 48px; margin: 0 auto 14px; }
.empty-state h2 { font: 500 1.4rem/1.3 var(--display); margin-bottom: 8px; }
.empty-state p { color: var(--ink2); }
.shop-ribbon li .icon { width: 20px; height: 20px; color: var(--mauve); }
.custom-band { background: var(--wash); }

/* ---------- Product ---------- */
.preview-bar { background: var(--ink); color: #fff; text-align: center; padding: 10px 16px; font-size: .92rem; display: flex; gap: 8px; justify-content: center; align-items: center; }
.preview-bar .icon { width: 18px; }
.product { padding-block: clamp(20px, 3vw, 36px) clamp(48px, 6vw, 80px); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4.5vw, 64px); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery { position: sticky; top: 96px; min-width: 0; }
@media (max-width: 900px) { .gallery { position: static; } }
.pstage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 60% at 50% 55%, #fff, var(--linen)); border: 1px solid var(--rule); }
.pstage .slide { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.pstage .slide.on { opacity: 1; visibility: visible; }
.pstage .slide img, .pstage video.slide { width: 100%; height: 100%; object-fit: contain; }
.pstage video.slide { background: #000; }
.pstage .zoomable { cursor: zoom-in; }
.no-js .pstage .slide { position: static; opacity: 1; visibility: visible; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.thumb { position: relative; flex: none; width: 84px; height: 63px; border-radius: 10px; border: 1px solid var(--rule); padding: 0; overflow: hidden; background: var(--paper); cursor: pointer; transition: border-color .2s, transform .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-pressed="true"] { border-color: var(--mauve); box-shadow: 0 0 0 1.5px var(--mauve); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(47,53,49,.28); color: #fff; }
.thumb .play .icon { width: 22px; }
.buy .title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 12px; }
.buy .sub { font: italic 400 1.25rem/1.45 var(--serif); color: var(--ink2); margin: 10px 0 0; }
.buy-price { font: 500 1.7rem/1.2 var(--sans); margin: 18px 0 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.buy-price s { font-size: 1.1rem; }
.save { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--b-red); color: #fff; padding: 6px 9px; border-radius: 999px; align-self: center; }
.variants { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.variants legend { font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; padding: 0; }
.variant { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.variant:hover { border-color: var(--mauve-lt); }
.variant:has(input:checked) { border-color: var(--mauve); box-shadow: 0 0 0 1.5px var(--mauve); background: #fff; }
.variant input { width: 18px; height: 18px; accent-color: var(--mauve-dk); margin: 0; }
.variant.out { opacity: .55; cursor: not-allowed; }
.v-main b { display: block; font: 500 1rem/1.3 var(--sans); }
.v-main span { font: 400 1rem/1.4 var(--serif); color: var(--ink2); }
.v-price { font: 500 1rem/1.2 var(--sans); white-space: nowrap; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row .btn-add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); overflow: hidden; }
.qty button { width: 40px; height: 100%; min-height: 46px; border: 0; background: none; font: 400 1.2rem/1 var(--sans); color: var(--ink2); cursor: pointer; }
.qty button:hover { background: var(--wash); color: var(--ink); }
.qty input { width: 44px; border: 0; text-align: center; font: 500 1rem/1 var(--sans); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { min-height: 36px; width: 34px; }
.qty.sm input { width: 34px; font-size: .95rem; }
.buy-notes, ul.plain { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.buy-notes li, ul.plain li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink2); font-size: .98rem; line-height: 1.5; }
.buy-notes .icon, ul.plain .icon { width: 20px; height: 20px; color: var(--mauve); margin-top: 2px; }
.buy-notes b { color: var(--ink); font-weight: 500; }
.buy .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; padding-top: 20px; gap: 18px 14px; }
.buy .specs div { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; }
.buy .specs .icon { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--mauve); margin-top: 2px; }
@media (max-width: 520px) { .buy .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-desc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .product-desc { grid-template-columns: minmax(0, 1fr); } .desc-aside { position: static; } }
.rich { font: 400 1.16rem/1.7 var(--serif); color: var(--ink2); }
.rich h3 { font: 500 1.08rem/1.3 var(--display); letter-spacing: .06em; color: var(--ink); margin: 1.6em 0 .6em; }
.rich h3:first-child { margin-top: 0; }
.rich p { margin: 0 0 1em; }
.rich strong { color: var(--ink); font-weight: 500; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.rich ul { list-style: none; padding-left: 0; }
.rich ul li { position: relative; padding-left: 1.4em; margin-bottom: .4em; }
.rich ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--mauve-lt); }
.rich ol li { margin-bottom: .4em; padding-left: .2em; }
.rich ol li::marker { color: var(--mauve); font: 600 .95rem var(--sans); }
.desc-aside { position: sticky; top: 96px; }
.desc-aside .a ul.plain { margin: 0 0 12px; }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.zoom::backdrop { background: rgba(47,53,49,.86); }
dialog.zoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; background: #fff; }
.zoom-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font: 400 1.8rem/1 var(--sans); cursor: pointer; }

/* Added to cart */
.cart-toast { position: fixed; z-index: 80; right: clamp(12px, 3vw, 28px); top: 86px; width: min(380px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; animation: toast-in .3s ease; }
.cart-toast img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.cart-toast b { display: block; font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.cart-toast p { margin: 2px 0 0; font-size: .96rem; }
.cart-toast .btn-row { grid-column: 1 / -1; margin: 4px 0 0; gap: 10px; }
.cart-toast .btn { flex: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Cart and checkout ---------- */
.cart-layout, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3.5vw, 44px); align-items: start; }
@media (max-width: 920px) { .cart-layout, .checkout { grid-template-columns: minmax(0, 1fr); } }
.summary { position: sticky; top: 96px; }
.summary h2 { margin-bottom: 16px; }
.cline { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cline:first-child { padding-top: 0; }
.cline-img { width: 112px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); display: block; }
.cline-img img { width: 100%; height: 100%; object-fit: cover; }
.cline h3 { font: 500 1.1rem/1.3 var(--display); letter-spacing: .03em; margin: 0; }
.cline h3 a { color: var(--ink); text-decoration: none; }
.cline .meta { color: var(--ink2); font-size: .95rem; margin: 4px 0 0; }
.cline .pers { display: block; font: italic 400 1rem/1.45 var(--serif); color: var(--ink2); margin-top: 6px; white-space: pre-line; }
.cline .actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cline .line-price { text-align: right; font: 500 1.05rem/1.3 var(--sans); white-space: nowrap; }
.cline .line-price s { display: block; color: var(--ink3); font-weight: 400; font-size: .9rem; }
.cline .line-price .off { display: block; color: var(--b-red); font-size: .85rem; font-weight: 500; }
.cline .problem { color: var(--b-red); font-size: .92rem; margin-top: 6px; }
@media (max-width: 560px) { .cline { grid-template-columns: 84px minmax(0, 1fr); } .cline-img { width: 84px; } .cline .line-price { grid-column: 2; text-align: left; } }
.coupon { margin-bottom: 14px; }
.coupon label { display: block; font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon input { text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; }
.coupon-msg { font-size: .9rem; margin: 6px 0 0; min-height: 0; }
.coupon-msg.ok { color: var(--sage); }
.coupon-msg.bad { color: var(--b-red); }
.totals { margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--rule); }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.totals dt { color: var(--ink2); }
.totals dd { margin: 0; font-weight: 500; }
.totals .disc dd, .totals .disc dt { color: var(--sage); }
.totals .grand { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; }
.totals .grand dt { color: var(--ink); font-weight: 500; }
.totals .hint { display: block; font-size: .84rem; color: var(--ink3); font-weight: 400; }
.loading { color: var(--ink3); }
.mini-lines { padding: 0; margin: 0 0 16px; list-style: none; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .96rem; }
.mini-lines li.loading, .auth-form .mini-lines li { grid-template-columns: 1fr auto; }
.mini-lines img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); }
.mini-lines .q { color: var(--ink3); }
.checkout fieldset { margin: 0 0 18px; }
.checkout legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font: 500 1.12rem/1.3 var(--display); letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.checkout legend + * { clear: both; }
.checkout legend .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mauve-dk); color: #fff; font: 600 .85rem/1 var(--sans); }
.signed-in { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink2); margin: 0 0 14px; }
.signed-in .icon { width: 20px; color: var(--mauve); }
.saved-addresses { display: grid; gap: 10px; margin-bottom: 16px; }
.addr-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; background: #fff; line-height: 1.45; }
.addr-pick:has(input:checked) { border-color: var(--mauve); box-shadow: 0 0 0 1.5px var(--mauve); }
.addr-pick input { margin-top: 4px; accent-color: var(--mauve-dk); }

/* ---------- Order page ---------- */
.order-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.order-head .lede { margin: 14px auto 0; }
.tracker { display: flex; justify-content: center; padding: 0; margin: 0 auto clamp(28px, 4vw, 44px); list-style: none; max-width: 720px; }
.tracker li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); text-align: center; }
.tracker li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--rule); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before { background: var(--mauve); }
.tracker .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); color: #fff; }
.tracker .dot .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.tracker li.done { color: var(--ink); }
.tracker li.done .dot { background: var(--mauve-dk); border-color: var(--mauve-dk); }
.tracker li.now .dot { box-shadow: 0 0 0 5px rgba(138,114,114,.2); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
.order-main, .order-side { display: grid; gap: 18px; }
.ready { border-color: var(--sage); background: linear-gradient(#fff, var(--paper)); }
.deliver { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.deliver:first-of-type { border-top: 0; padding-top: 0; }
.deliver b { display: block; }
.deliver span { color: var(--ink2); font-size: .96rem; }
.deliver code { background: var(--wash); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.dropzone { position: relative; }
.dropzone label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--mauve-lt); border-radius: 14px; background: var(--linen); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone label:hover, .dropzone.over label { background: var(--wash); border-color: var(--mauve); }
.dropzone label .icon { width: 30px; height: 30px; color: var(--mauve-dk); }
.dropzone label span { color: var(--ink3); font-size: .9rem; }
.upload-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .94rem; color: var(--ink2); }
.upload-list li { display: flex; gap: 8px; align-items: center; }
.upload-list .icon { width: 16px; color: var(--sage); }
.upload-list .busy { color: var(--ink3); }
/* A custom design's photos on its product page, before it goes in the cart */
.photo-field { display: grid; gap: 8px; }
.dropzone.sm label { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 16px 14px; gap: 4px 10px; }
.dropzone.sm label .icon { width: 22px; height: 22px; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photo-grid:empty { display: none; }
.photo-grid li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--linen); border: 1px solid var(--rule); }
.photo-grid img, .photo-grid .noimg { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--ink3); }
.photo-grid .noimg .icon { width: 26px; height: 26px; }
.photo-grid .pname { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .7rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-grid .pstate { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font-size: .74rem; line-height: 1.3; background: rgba(255,253,248,.82); color: var(--ink2); }
.photo-grid .failed .pstate { color: var(--b-red); background: rgba(255,253,248,.94); }
.photo-grid .busy img { opacity: .6; }
.photo-grid .premove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(47,53,49,.72); color: #fff; cursor: pointer; }
.photo-grid .premove .icon { width: 14px; height: 14px; }
.cline .pphotos { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; color: var(--ink2); }
.cline .pphotos .icon { width: 16px; height: 16px; color: var(--mauve-dk); }
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.order-lines li:first-child { padding-top: 0; }
.ol-img img, .ol-img .glyph { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); }
.ol-main b a { color: var(--ink); text-decoration: none; }
.ol-main > span { display: block; color: var(--ink2); font-size: .94rem; }
.ol-main .pers { font: italic 400 .98rem/1.45 var(--serif); white-space: pre-line; margin-top: 4px; }
.ol-price { font-weight: 500; white-space: nowrap; }
.order-lines + .totals { border-top: 0; }
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.updates li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.updates time { font: 600 .7rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--mauve-dk); }
.updates p { margin: 0; color: var(--ink2); font-size: .96rem; line-height: 1.45; }
.kv { margin: 0; display: grid; gap: 4px; }
.kv dt { font: 500 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); margin-top: 8px; }
.kv dt:first-child { margin-top: 0; }
.kv dd { margin: 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.small-box p { color: var(--ink2); font-size: .96rem; }

/* ---------- Accounts ---------- */
.auth-wrap { max-width: 960px; }
.auth-form { max-width: 480px; margin-inline: auto; width: 100%; }
.auth-form h2 { margin-bottom: 18px; }
.auth-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); align-items: start; }
.auth-split .auth-form { max-width: none; }
.auth-aside { background: var(--wash); }
.auth-aside p { color: var(--ink2); }
.auth-aside ul.plain { margin: 0 0 20px; }
@media (max-width: 760px) { .auth-split { grid-template-columns: 1fr; } }
.dev-link { display: block; margin-top: 8px; padding: 10px 12px; background: var(--oat); border-radius: 8px; font-size: .86rem; overflow-wrap: anywhere; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head .title { margin: 0; }
.account-head .muted { margin: 6px 0 0; }
.account-tabs { justify-content: flex-start; margin-bottom: 24px; }
.account-tabs .tab { text-decoration: none; }
.inline-form { display: inline-flex; gap: 10px; margin-left: 6px; }
.otable { width: 100%; border-collapse: collapse; }
.otable th { text-align: left; font: 500 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.otable td { padding: 16px 18px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.otable tr:last-child td { border-bottom: 0; }
.otable .r { text-align: right; }
.otable a { text-decoration: none; }
@media (max-width: 760px) {
  .otable thead { display: none; }
  .otable tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--rule); gap: 4px 12px; }
  .otable td { padding: 0; border: 0; }
  .otable td.r { text-align: right; }
}
.ostatus { display: inline-block; padding: 5px 10px; border-radius: 999px; font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--oat); color: var(--ink2); }
.ostatus.s-paid, .ostatus.s-in_progress { background: var(--wash); color: var(--mauve-xdk); }
.ostatus.s-shipped { background: #e6ebf2; color: #3f5373; }
.ostatus.s-delivered, .ostatus.s-completed { background: #e9eddc; color: #4f5530; }
.ostatus.s-cancelled, .ostatus.s-refunded { background: #f3e2e0; color: var(--b-red); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.addr { display: flex; flex-direction: column; gap: 10px; }
.addr p { margin: 0; line-height: 1.5; }
.addr .tag { align-self: flex-start; }
.addr-actions { display: flex; gap: 14px; margin-top: auto; font-size: .92rem; }
.addr.add { align-items: center; justify-content: center; min-height: 160px; border-style: dashed; cursor: pointer; color: var(--mauve-dk); font: 500 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.addr.add:hover { background: var(--wash); }
.addr.add .icon { width: 26px; height: 26px; }
dialog.sheet { border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); width: min(560px, 94vw); background: var(--paper); box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(47,53,49,.5); }
dialog.sheet .auth-form { max-width: none; }
dialog.sheet .btn-row { margin-top: 10px; }
.profile-grid { gap: 20px; align-items: start; }
.profile-grid .auth-form { max-width: none; }
