/* 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); }
/* A job's steps (order status): the current step is under way, so it gets a dot, not a check */
.tracker li.now { color: var(--ink); }
.tracker li.now::before { background: var(--mauve); }
.tracker li.now:not(.done) .dot { border-color: var(--mauve-dk); }
.tracker li.now:not(.done) .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mauve-dk); }
.tracker.long { max-width: 900px; }
.tracker.long li { font-size: .66rem; letter-spacing: .1em; padding-inline: 2px; }
.making { margin-bottom: clamp(28px, 4vw, 44px); }
.making .tracker, .status-card .tracker { margin-bottom: 18px; }
.status-note { max-width: 560px; margin: 0 auto; text-align: center; color: var(--ink2); }
.status-item { margin: 26px 0 16px; text-align: center; font: 500 1.02rem/1.3 var(--sans); color: var(--ink); }
.making .status-item:first-child { margin-top: 0; }
.status-result { display: grid; gap: 18px; margin-top: 22px; scroll-margin-top: 90px; }
.status-result:empty { display: none; }
.status-card { text-align: center; }
.status-card h2 { display: block; margin: 6px 0 22px; text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); }
.status-card .fine-print { margin-top: 20px; }
.shipment { display: grid; justify-items: center; gap: 12px; margin: 22px auto 0; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 560px; }
.shipment p { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.shipment .icon { width: 22px; height: 22px; color: var(--mauve-dk); }
@media (max-width: 640px) {
  .tracker.long { flex-direction: column; gap: 16px; max-width: 250px; }
  .tracker.long li { flex-direction: row; gap: 14px; text-align: left; font-size: .74rem; }
  .tracker.long li::before { top: auto; bottom: 100%; right: auto; left: 15px; width: 2px; height: 16px; }
}
.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; }

/* ---------- Gift cards ---------- */
/* The card: credit-card proportions, the reversed logo on its own charcoal, sized by its width (container units) */
.giftcard { container-type: inline-size; width: 100%; max-width: 520px; margin-inline: auto; }
.giftcard.big { max-width: 560px; }
.giftcard.small { max-width: 340px; margin: 0 auto 20px; }
.gc-face { position: relative; aspect-ratio: 85.6 / 54; border-radius: 4.6cqw; overflow: hidden; color: #F4F1EA; isolation: isolate;
  background: radial-gradient(110% 90% at 92% -10%, rgba(181,165,163,.2), transparent 58%), radial-gradient(80% 70% at 0% 110%, rgba(138,114,114,.18), transparent 60%), #323431;
  box-shadow: 0 2px 6px rgba(47,53,49,.16), 0 24px 48px rgba(47,53,49,.26);
  display: grid; grid-template-columns: 47% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 3cqw; padding: 5cqw 6.5cqw 5.4cqw 4.5cqw;
  print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.gc-face::before { content: ""; position: absolute; inset: 2.4cqw; border: 1px solid rgba(181,165,163,.32); border-radius: 3cqw; pointer-events: none; }
.gc-face::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(244,241,234,.05) 0 1.15cqw, transparent 1.3cqw); background-size: 5.6cqw 5.6cqw; background-position: 2.8cqw 2.8cqw;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%); mask-image: linear-gradient(200deg, #000 0%, transparent 55%); }
.gc-face .gc-logo { width: 100%; height: auto; align-self: center; mix-blend-mode: lighten; }
.gc-value { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; min-width: 0; padding-top: 1cqw; }
.gc-kicker, .gc-label { font: 500 2.3cqw/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #B5A5A3; }
.gc-amount { font: 500 11.5cqw/1.05 var(--display); letter-spacing: .02em; margin-top: 1.6cqw; color: #F4F1EA; white-space: nowrap; }
.gc-to { font: italic 400 3.9cqw/1.25 var(--serif); color: #D9CFC1; margin-top: 1.4cqw; min-height: 1.25em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-number { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1cqw; padding-left: 2cqw; }
.gc-label { font-size: 1.9cqw; }
.gc-code { font: 600 4.6cqw/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: rgba(244,241,234,.5); white-space: nowrap; }
.gc-code.full { color: #fff; }
.gc-studs { position: absolute; right: 6.5cqw; bottom: 6cqw; display: grid; grid-template-columns: repeat(2, 2.6cqw); gap: 1cqw; padding: 1.2cqw; border-radius: .8cqw; background: #8A7272; }
.gc-studs i { width: 2.6cqw; aspect-ratio: 1; border-radius: 50%; background: #9d8584; box-shadow: inset 0 -.3cqw 0 rgba(0,0,0,.18); }

/* A small card for cart, checkout and order lines */
.gc-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; height: 100%; background: #323431; color: #F4F1EA; border-radius: inherit; overflow: hidden; }
.gc-mini img { width: 66% !important; height: auto !important; object-fit: contain !important; border: 0 !important; border-radius: 0 !important; mix-blend-mode: lighten; }
.gc-mini b { font: 500 .78rem/1 var(--display); letter-spacing: .04em; }
.mini-lines .gc-mini, .cart-toast .gc-mini { width: 56px; height: 42px; border-radius: 8px; }
.cart-toast .gc-mini { width: 64px; height: 48px; }
.mini-lines .gc-mini b, .cart-toast .gc-mini b { display: none; }
.ol-img.gc { overflow: hidden; }

/* The catalog's tile */
.gc-tile .pcard-media { background: radial-gradient(70% 60% at 50% 55%, #fff, var(--oat)); }
.pcard-media .giftcard.in-tile { position: absolute; left: 13%; right: 13%; top: 50%; width: auto; transform: translateY(-50%) rotate(-3deg); transition: transform .45s ease; }
.pcard-media .gc-face .gc-logo { position: static; width: 100%; height: auto; object-fit: contain; opacity: 1; transform: none; }
.gc-tile:hover .pcard-media .giftcard.in-tile { transform: translateY(-52%) rotate(0deg) scale(1.03); }
.gc-tile:hover .pcard-media .gc-face .gc-logo { transform: none; }

/* The gift card page */
.gc-stage { position: sticky; top: 96px; padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--rule); background: radial-gradient(70% 60% at 50% 45%, #fff, var(--oat)); }
@media (max-width: 900px) { .gc-stage { position: static; } }
.gc-stage .giftcard { transform: rotate(-2deg); }
.gc-stage-note { font: italic 400 1.15rem/1.5 var(--serif); color: var(--ink2); text-align: center; max-width: 440px; margin: 28px auto 0; white-space: pre-line; overflow-wrap: anywhere; }
.gc-form [hidden] { display: none !important; }
.gc-amounts, .gc-send { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.gc-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-send { display: grid; gap: 10px; }
.gc-amounts legend, .gc-send legend { font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 10px; padding: 0; }
.gc-chip { position: relative; }
.gc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gc-chip span { display: inline-block; padding: 12px 20px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font: 500 1rem/1 var(--sans); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.gc-chip span:hover { border-color: var(--mauve-lt); }
.gc-chip input:checked + span { border-color: var(--mauve); box-shadow: 0 0 0 1.5px var(--mauve); background: #fff; }
.gc-chip input:focus-visible + span { outline: 2px solid var(--mauve-dk); outline-offset: 2px; }
.money-input { display: flex; align-items: center; gap: 8px; font: 500 1.1rem var(--sans); }
.money-input input { flex: 1; min-width: 0; }
.gc-input { text-transform: uppercase; letter-spacing: .1em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* Checkout: the gift cards applied */
.gift-entry input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gift-applied { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.gift-applied:empty { display: none; }
.gift-applied li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--wash); font-size: .95rem; }
.gift-applied li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.gift-applied .icon { width: 16px; color: var(--sage); }
.gift-applied .q { flex-basis: 100%; color: var(--ink3); font-size: .84rem; }
.gift-applied b { color: var(--sage); white-space: nowrap; }
.gift-applied button { grid-column: 1 / -1; justify-self: start; font-size: .85rem; }
.totals .grand.due { margin-top: 4px; }

/* A card's own page, and printing it */
.gc-view .title { margin-bottom: clamp(20px, 3vw, 32px); }
.gc-view .giftcard { margin-bottom: 30px; }
.gc-message { font: italic 400 1.35rem/1.5 var(--serif); color: var(--ink2); max-width: 520px; margin: 0 auto 26px; white-space: pre-line; overflow-wrap: anywhere; }
.gc-message cite { display: block; margin-top: 8px; font: 500 .78rem/1.3 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--mauve-dk); }
.gc-how { max-width: 560px; margin: 0 auto; color: var(--ink2); line-height: 1.6; }
.gc-result h2 { margin-bottom: 8px; }
@media print {
  .shop-giftcard .site-header, .shop-giftcard .site-footer, .shop-giftcard .skip, .shop-giftcard .shop-banner, .shop-giftcard .preview-bar, .shop-giftcard .no-print { display: none !important; }
  body.shop-giftcard { background: #fff; }
  .shop-giftcard .gc-view { padding: 0.4in 0 0; }
  .shop-giftcard .giftcard { max-width: 4.6in; }
  .shop-giftcard .gc-face { box-shadow: none; }
}
