/* store.css: styles for shopping, watching and the buyer's account. The shared system is app.css. */

/* --- small shared pieces --------------------------------------------------------------------- */

.paged { min-height: 96px; transition: opacity .15s; }
.paged.is-loading { opacity: .5; pointer-events: none; }
.block { display: block; }
.center-row { justify-content: center; }
.hero-eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }
.lede { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); max-width: 48ch; }
.crumb-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.crumb-back:hover { color: var(--primary); }
.crumb-back svg { width: 16px; height: 16px; }
.plain-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; }
.text-btn:hover { color: var(--primary); }
.text-btn svg { width: 16px; height: 16px; }
.step-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--surface); color: var(--green); }
.step-icon svg { width: 24px; height: 24px; }
.how-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-grid; place-items: center; font: 700 .9rem/1 var(--body); }
.pill.as-written { text-transform: none; }
.unread-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.test-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; color: var(--warn); }
.postal { font-style: normal; line-height: 1.5; }
.postal .name { font-weight: 600; }
.modal.lightbox { max-width: min(94vw, 920px); padding: 8px; cursor: zoom-out; }
.lightbox-img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.inline-search { display: flex; gap: 8px; width: min(100%, 420px); }
.list-filters { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { width: auto; padding-top: 7px; padding-bottom: 7px; }
.card-list > .order-row, .card-list > .case-row, .card-list > .conv-row, .card-list > .notif, .card-list > .done-order { display: flex; align-items: center; gap: 14px; }
.order-row > svg, .case-row > svg, .done-order > svg, .notif > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* Ways to choose one of a few things: an address, a way to pay. */
.picks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.pick:hover { border-color: var(--ink-2); }
.pick.active { border-color: var(--primary); background: var(--primary-soft); }
.pick input { margin-top: 3px; }
.inline-form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; }
.inline-form:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.inline-form h4 { margin-bottom: 14px; }

/* The header's search box: app.css's rule for every text input comes after its own and wins, so
   the magnifying glass sat on top of the words. Put its room and its shape back. */
.site-header .header-search input[type=search] { padding: 10px 16px 10px 42px; border-radius: 999px; }

/* Makers' cards need more room than a listing's to keep a name, a place and a rating on a line. */
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .maker-grid { grid-template-columns: 1fr; } }

/* --- home ------------------------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 26px 0 12px; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lede { margin: 20px 0 26px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 48px; box-shadow: var(--shadow); }
.hero-search:focus-within { border-color: var(--primary); }
.hero-search > svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.hero-search input[type=search] { border: 0; background: transparent; padding: 10px 0; min-width: 0; }
.hero-search input[type=search]:focus { box-shadow: none; }
.hero-links { margin-top: 18px; gap: 8px; }
.hero-links .btn svg { width: 16px; height: 16px; }
.hero-art { position: relative; aspect-ratio: 1 / .94; }
.hero-art .tile { position: absolute; display: block; overflow: hidden; border-radius: 22px; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.hero-art .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .main { right: 0; top: 0; width: 66%; height: 84%; }
.hero-art .side { left: 0; top: 10%; width: 40%; aspect-ratio: 1; border: 6px solid var(--bg); transform: rotate(-4deg); }
.hero-art .clip { left: 8%; bottom: 0; width: 54%; aspect-ratio: 16 / 9; border: 6px solid var(--bg); transform: rotate(2deg); }
.hero-art .clip .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 16, 14, .28); }
.hero-art .clip .play svg { width: 44px; height: 44px; }
.hero-art .clip .cap { position: absolute; left: 10px; bottom: 8px; color: #fff; font: 600 .78rem/1 var(--body); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.hero-art .stamp { position: absolute; right: -4px; bottom: 9%; transform: rotate(3deg); }
.hero-art .stamp .verified { background: var(--surface); box-shadow: var(--shadow-lg); font-size: .92rem; padding: 10px 15px 10px 11px; }
.hero-art .stamp .verified svg { width: 19px; height: 19px; }

.verify-strip { background: var(--green-soft); border-radius: 22px; padding: 30px; }
.verify-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.verify-head h2 { color: var(--green); }
.verify-head a.link { color: var(--green); font-weight: 600; }
.verify-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.verify-step { display: flex; gap: 14px; align-items: flex-start; }
.step-n { font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.verify-step h3 { margin: 5px 0 6px; font-size: 1.14rem; }
.verify-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .93rem; line-height: 1.25; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat-icon { font-size: 1.8rem; line-height: 1; }

.watch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.premium-pitch { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.premium-pitch h3 { font-size: 1.35rem; }
.premium-pitch p { margin: 0; font-size: .95rem; opacity: .88; }
.premium-pitch .premium-tag { outline: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.premium-pitch .btn { margin-top: auto; }

.sell-cta, .how-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--primary-soft); border-radius: 22px; padding: 30px; }
.sell-cta p, .how-cta p { margin: 6px 0 0; color: var(--ink-2); }

/* --- search ----------------------------------------------------------------------------------- */

.cat-chips { margin-bottom: 14px; }
.price-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-range .money-input { width: 100px; }
.price-range input { padding-top: 7px; padding-bottom: 7px; }
.result-count { margin: 0 0 16px; font-size: .93rem; }

/* --- a listing -------------------------------------------------------------------------------- */

.listing-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "gallery buy" "main buy"; gap: 30px 44px; align-items: start; }
.listing-gallery { grid-area: gallery; }
.listing-buy { grid-area: buy; display: flex; flex-direction: column; gap: 20px; }
.listing-main { grid-area: main; display: flex; flex-direction: column; gap: 36px; }
@media (min-width: 901px) and (min-height: 900px) { .listing-buy { position: sticky; top: 88px; } }

.gallery { display: flex; flex-direction: row-reverse; gap: 10px; }
.gallery-main { flex: 1; min-width: 0; display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.none { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); cursor: default; }
.gallery-main.none svg { width: 40px; height: 40px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .7; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.making-of { display: flex; flex-direction: column; gap: 12px; background: var(--green-soft); border-radius: 18px; padding: 22px; }
.making-of.unverified { background: var(--surface-2); }
.making-of p { margin: 0; }
.making-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.making-head .verified { background: var(--surface); }

.buy-box { display: flex; flex-direction: column; gap: 14px; }
.buy-box h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); }
.crumb { color: var(--muted); font-size: .9rem; font-weight: 600; align-self: flex-start; }
.crumb:hover { color: var(--primary); }
.buy-meta { gap: 8px 14px; }
.buy-price { font: 600 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stock { font-weight: 600; font-size: .95rem; color: var(--green); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--danger); }
.qty-row .label { font-weight: 600; font-size: .92rem; }
.added { display: flex; gap: 8px; align-items: center; color: var(--green); font-weight: 500; }
.added svg { width: 18px; height: 18px; flex: none; }
.fav-toggle.on { color: var(--primary); border-color: var(--primary); }
.fav-toggle.on svg { fill: currentColor; }
.buy-facts { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.buy-facts li { display: flex; gap: 12px; align-items: flex-start; }
.buy-facts svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.shop-panel { display: flex; flex-direction: column; gap: 12px; }
.shop-panel p { margin: 0; }
.shop-panel-head { display: flex; align-items: center; gap: 14px; }
.shop-panel-head .name { font: 600 1.2rem/1.2 var(--display); }
.shop-panel-head:hover .name { color: var(--primary); }

.listing-about h2, .listing-reviews h2 { margin-bottom: 12px; }
.listing-about .tags { margin-top: 16px; }
a.tag:hover { background: var(--primary-soft); color: var(--primary); }
.report-row { border-top: 1px solid var(--line); padding-top: 14px; }

.rev-list { display: flex; flex-direction: column; }
.rev-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rev-item:last-child { border-bottom: 0; }
.rev-item p { margin: 0; }
.rev-head { display: flex; gap: 12px; align-items: center; }
.rev-who { display: flex; gap: 8px; align-items: center; }
.rev-meta { gap: 4px 10px; }
.rev-listing { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.rev-listing:hover { color: var(--primary); }
.rev-listing img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.rev-reply { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.rev-item .text-btn { align-self: flex-start; }
.rev-item .photos, .own-review .photos { display: flex; gap: 6px; flex-wrap: wrap; }
.rev-item .photos img, .own-review .photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* --- makers and a shop ------------------------------------------------------------------------ */

.shop-banner { height: clamp(140px, 22vw, 260px); overflow: hidden; background: linear-gradient(120deg, var(--primary-soft), var(--green-soft)); }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-body { padding-top: 0; }
.shop-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 22px; align-items: start; margin-bottom: 26px; }
.shop-head .avatar { margin-top: -44px; box-shadow: var(--shadow); }
.shop-title { padding-top: 14px; }
.shop-title p { margin: 6px 0 0; }
.shop-facts { gap: 6px 18px; margin-top: 10px; color: var(--ink-2); font-size: .93rem; }
.shop-actions { padding-top: 18px; }

/* --- watching --------------------------------------------------------------------------------- */

.premium-strip { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; color: var(--ink-2); }
.premium-strip:hover { border-color: var(--primary); }
.video-page .player { box-shadow: var(--shadow-lg); }
.player.paywall { aspect-ratio: auto; display: grid; }
.player.paywall > img { position: absolute; inset: 0; object-fit: cover; }
.paywall-panel { position: relative; min-height: clamp(280px, 42vw, 500px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 20px; text-align: center; color: #fff; background: rgba(20, 16, 14, .68); }
.paywall-panel h2 { color: #fff; }
.paywall-panel p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .86); }
.paywall-panel .paywall-price { color: #fff; font-weight: 700; margin-bottom: 6px; }
.video-info { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.video-by { gap: 10px; }
.video-by:hover b { color: var(--primary); }
.video-desc { color: var(--ink-2); max-width: 72ch; }

/* --- Premium ---------------------------------------------------------------------------------- */

.premium-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 22px 0 6px; }
.premium-hero h1, .how-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.premium-hero .lede { margin: 0; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.benefit .step-icon { background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.premium-panel { max-width: 640px; margin: 0 auto 24px; }
.premium-join, .premium-manage { display: flex; flex-direction: column; gap: 18px; }
.card.premium-join > h2:first-child, .card.premium-manage > h2:first-child { margin-bottom: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.plan.active { border-color: var(--primary); background: var(--primary-soft); }
.plan input { position: absolute; top: 14px; right: 14px; }
.plan-name { font-weight: 700; }
.plan-price { font: 600 1.6rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.plan-price small { font: 400 .88rem/1 var(--body); color: var(--muted); }
.plan-note { font-size: .86rem; color: var(--ink-2); }
.pay-area { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pay-area > .loading { padding: 20px; align-self: center; }
.pay-area .btn { white-space: normal; }
.stripe-holder, .paypal-holder { width: 100%; min-height: 48px; }
.test-pay { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* --- how it works ----------------------------------------------------------------------------- */

.how-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 6px; }
.how-hero .lede { margin: 0; max-width: 62ch; }
.how-section { margin-top: 44px; }
.how-section > h2 { margin-bottom: 16px; }
.how-section > p { max-width: 72ch; margin-bottom: 16px; }
.how-steps { list-style: none; margin: 0 0 18px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.how-steps li { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.how-steps li:last-child { border-bottom: 0; }
.how-steps h3, .how-point h3 { font-size: 1.08rem; margin-bottom: 4px; }
.how-steps p, .how-point p { margin: 0; color: var(--ink-2); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.how-point { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how-point .step-icon { background: var(--green-soft); }
.how-cta { margin-top: 48px; }

/* --- signing in ------------------------------------------------------------------------------- */

.auth-page { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 340px); gap: 56px; justify-content: center; align-items: center; padding-top: 48px; }
.auth-card { display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card > p { margin: 0; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-2); }
.auth-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.auth-aside .step-icon { background: var(--green-soft); }
.auth-aside h2 { font-size: 1.7rem; }
.auth-aside p { margin: 0; color: var(--ink-2); }

/* A total's rule in the shared .dl is drawn in two pieces with the column gap between them:
   close the gap on these pages so it reads as one line. */
.cart-page .dl, .checkout-page .dl, .order-page .dl, .premium-page .dl, .case-page .dl { column-gap: 0; }
.cart-page .dl dd, .checkout-page .dl dd, .order-page .dl dd, .premium-page .dl dd, .case-page .dl dd { padding-left: 18px; }

/* --- basket and checkout ---------------------------------------------------------------------- */

.cart-page.is-busy { opacity: .6; pointer-events: none; }
.card.cart-shop { padding: 0; overflow: hidden; }
.cart-shop-head { padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.cart-shop-head:hover b { color: var(--primary); }
.cart-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-item .thumb, .bought-item .thumb { flex: none; display: block; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.cart-item .thumb img, .bought-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .title, .bought-item .title { font-weight: 600; line-height: 1.3; }
.cart-item .title:hover, .bought-item .title:hover { color: var(--primary); }
.cart-item-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-total { font-weight: 700; white-space: nowrap; }
.cart-item.unavailable .thumb, .cart-item.unavailable .title { opacity: .55; }
.cart-shop-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; }

.checkout-page section.card { display: flex; flex-direction: column; gap: 12px; }
.checkout-page section.card > p { margin: 0; }
.card > h2.step-title:first-child { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 2px; }
.summary-shop { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-line { display: flex; gap: 10px; align-items: center; font-size: .93rem; }
.summary-line img, .summary-line .ph, .done-order img, .done-order .ph { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.done-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-top: 24px; }
.done-box h1 { font-size: 1.8rem; }
.done-box > p { margin: 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.done-mark.good { background: var(--green-soft); color: var(--green); }
.done-mark.bad { background: var(--danger-soft); color: var(--danger); }
.done-mark svg { width: 32px; height: 32px; }
.done-orders { width: 100%; text-align: left; margin: 8px 0; }

/* --- orders and cases ------------------------------------------------------------------------- */

.order-row .thumb { flex: none; display: block; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.order-row .title, .case-row .title { font-weight: 600; line-height: 1.3; }
.order-row-text { display: flex; flex-direction: column; gap: 4px; }
.order-row-pills { gap: 6px; }
.order-row-total { font-weight: 700; white-space: nowrap; }
.status-line { font-size: 1.08rem; color: var(--ink-2); margin: -8px 0 16px; }
.order-actions { margin-bottom: 26px; }
.order-items { display: flex; flex-direction: column; }
.bought-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bought-item:first-child { padding-top: 0; }
.bought-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bought-item .thumb { width: 72px; height: 72px; }
.own-review { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.own-review p { margin: 0; }
.bought-item .grow > div > .btn { margin-top: 10px; }
a.case-card { display: block; }
a.case-card:hover { border-color: var(--primary); }
a.case-card .link { color: var(--primary); font-weight: 600; }
a.case-card p { margin: 8px 0; }

.case-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.case-status { display: flex; flex-direction: column; gap: 14px; border-left: 4px solid var(--primary); }
.case-status.over { border-left-color: var(--line); }
.card.case-status > h3:first-child { margin-bottom: 0; }
.case-sentence { margin: 0; font-size: 1.1rem; }
.case-money { max-width: 380px; }
.case-details { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.case-details p { margin: 4px 0 0; }
.case-details:has(> :only-child) { background: none; padding: 0; margin-bottom: 12px; }
.bubble.staff { background: var(--info-soft); border-color: transparent; }
.attached { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.attached:empty { display: none; }
.attached-photo { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.attached-photo img { width: 100%; height: 100%; object-fit: cover; }
.attached-photo button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 16, 14, .72); color: #fff; line-height: 1; cursor: pointer; }
.thread-end { margin: 16px 0 0; }

/* --- messages and notifications --------------------------------------------------------------- */

.conv-text { display: flex; flex-direction: column; gap: 2px; }
.conv-name { font-weight: 600; }
a.conv-name:hover { color: var(--primary); }
.conv-last, .conv-about { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-last { color: var(--ink-2); font-size: .93rem; }
.conv-row.unread .conv-name, .conv-row.unread .conv-last { font-weight: 700; color: var(--ink); }
.card-list > .conv-row.active { background: var(--primary-soft); }
.msg-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.msg-side h2 { font-size: 1.4rem; margin-bottom: 14px; }
.msg-side .conv-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.card.msg-main { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.msg-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.msg-head .crumb-back { display: none; }
.msg-listing { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; font-weight: 600; }
.msg-listing:hover { border-color: var(--primary); }
.msg-listing img { flex: none; width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.msg-listing span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-scroll { height: min(56vh, 560px); overflow-y: auto; padding: 18px; background: var(--bg); }
.msg-main .composer { margin: 0; padding: 12px 14px 6px; border-top: 1px solid var(--line); }
.composer-hint { margin: 0; padding: 0 18px 12px; }
.composer .icon-btn { flex: none; }

.notif { width: 100%; text-align: left; font: inherit; color: inherit; background: none; cursor: pointer; border: solid var(--line); border-width: 0 0 1px; }
.notif:last-child { border-bottom-width: 0; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.notif-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.notif-icon svg { width: 19px; height: 19px; }
.notif.unread .notif-icon { background: var(--primary); color: var(--on-primary); }
.notif-text { display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-weight: 600; }
.notif.unread .notif-title { font-weight: 700; }
.notif-body { color: var(--ink-2); font-size: .93rem; }

/* --- the account ------------------------------------------------------------------------------ */

.account-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.account-photo { margin-bottom: 18px; }
.address-list { display: flex; flex-direction: column; gap: 10px; }
.address-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 14px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* --- narrower screens ------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  /* The shared one-column .with-aside is a bare 1fr, which grows to fit a long unbreakable
     button and pushes the page sideways. Hold it to the page's width on these pages. */
  .cart-page .with-aside, .checkout-page .with-aside, .order-page .with-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 8px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .verify-steps { grid-template-columns: 1fr; gap: 18px; }
  .listing-layout { grid-template-columns: 1fr; grid-template-areas: "gallery" "buy" "main"; gap: 24px; }
  .gallery { flex-direction: column; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-side { display: none; }
  .msg-head .crumb-back { display: inline-flex; }
  .thread-scroll { height: clamp(220px, calc(100vh - 470px), 520px); }
  .auth-page { grid-template-columns: minmax(0, 440px); padding-top: 24px; }
  .auth-aside { display: none; }
}
@media (max-width: 720px) {
  .benefits, .how-grid { grid-template-columns: 1fr; }
  .verify-strip, .sell-cta, .how-cta { padding: 22px 18px; border-radius: 18px; }
  .shop-head { grid-template-columns: 1fr; }
  .shop-title { padding-top: 0; }
  .shop-actions { padding-top: 6px; }
  .making-of { padding: 16px; border-radius: 16px; }
  .msg-listing { display: none; }
}
@media (max-width: 560px) {
  /* Two listing cards across: the shared card's price and stars no longer fit on one line and
     the stars ran into the next card. Let them wrap, a little smaller. */
  .listing-card .meta { flex-wrap: wrap; gap: 4px 8px; }
  .listing-card .stars { font-size: .8rem; gap: 4px; }
  .listing-card .stars .glyphs { font-size: .82rem; letter-spacing: 0; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 14px 6px; font-size: .82rem; }
  .watch-grid { grid-template-columns: 1fr; }
  .hero-search .btn { padding-inline: 16px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .thumb { width: 64px; height: 64px; }
  .cart-item-text { flex: 1; min-width: 0; }
  .cart-item-controls { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .order-row .thumb { width: 52px; height: 52px; }
  .order-row > svg, .case-row > svg { display: none; }
  .bought-item .thumb { width: 56px; height: 56px; }
  .bought-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
  .bought-item .line-total { grid-column: 2; }
  .plan { padding: 14px 12px; }
  .plan-price { font-size: 1.35rem; }
  .plan-price small { display: block; margin-top: 3px; }
  .list-filters { align-items: flex-start; flex-direction: column; }
  .inline-search { width: 100%; }
  .page-head .inline-search { flex-basis: 100%; }
}
