/* The Deal Flyer: newsprint-cream paper, tomato-red price tags, ink-black type. */
:root {
  --paper: #ffffff;
  --paper-2: #f5f2ec;
  --card: #ffffff;
  --ink: #1d1a16;
  --ink-2: #5c554b;
  --line: #ebe6dc;
  --red: #d8432e;
  --red-ink: #a82e1c;
  --yellow: #ffd84a;
  --green: #2f7a4f;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(29, 26, 22, .06), 0 8px 24px -12px rgba(29, 26, 22, .18);
  --surface: #ffffff;          /* cards, inputs, tabs bar */
  --on-accent: #ffffff;        /* text on the accent color */
  --on-yellow: #1d1a16;        /* text on the highlight color */
  --hl: var(--yellow);         /* marker highlight behind words */
  --head-bg: var(--ink);       /* header and footer band */
  --head-ink: #ffffff;
  --head-line: transparent;
  --head-search: #2e2a25;
  --head-search-ink: #bdb4a6;
  --head-search-ph: #9d9486;
  --tint-ok: #e6f2ea; --tint-ok-line: #b9d9c4;
  --tint-err: #fbe7e3; --tint-err-line: #efc1b8;
  --tint-accent: #fde8e4;
  --tint-info: #eef3fb; --tint-info-line: #c9d8ef; --info-ink: #24508f;
  --field-line: #cfc3ab;
  --danger: #b42318;
  --btn-bg: var(--ink); --btn-ink: var(--paper); --btn-hover: var(--red-ink);
  --sub-bg: var(--head-bg); --sub-ink: var(--head-ink);
  --sub-muted: #cfc6b6;
  --glass: rgba(255,255,255,.92);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: var(--base-size, 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: calc(clamp(2rem, 5vw, 3.2rem) * var(--h-scale, 1)); font-weight: 800; }
h2 { font-size: calc(clamp(1.35rem, 3vw, 1.75rem) * var(--h-scale, 1)); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 640px; margin: 48px auto; }
.empty { padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.inline { display: inline; margin: 0; }

/* Header */
.masthead { background: var(--head-bg); color: var(--head-ink); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--head-line); }
.masthead-row { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.masthead .brand, .masthead .nav a, .masthead .linklike { color: var(--head-ink); }
.masthead .nav-cta { background: var(--red); color: var(--on-accent) !important; }
.masthead .nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-stamp { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--on-accent); font: 800 15px/1 var(--display); transform: rotate(-8deg); box-shadow: inset 0 0 0 3px var(--head-bg), 0 0 0 2px var(--red); }
.brand-name { font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a, .linklike { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .linklike:hover { color: var(--red-ink); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-buy { width: 100%; background: var(--red); border-color: var(--red); margin-top: auto; }
.btn-buy:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn-small { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* Hero */
.hero { padding: 56px 0 24px; max-width: 760px; }
.kicker { font: 600 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--red-ink); margin-bottom: 12px; }
.kicker a { text-decoration: none; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding-inline: 2px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.disclosure { font-size: .85rem; color: var(--ink-2); background: var(--paper-2); border-left: 3px solid var(--ink); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 16px 0 8px; }

.page-head { padding: 40px 0 8px; max-width: 760px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-head a { font-weight: 600; text-decoration: none; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product-card { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font: 800 4rem/1 var(--display); color: var(--line); background: repeating-linear-gradient(-45deg, var(--paper), var(--paper) 10px, var(--paper-2) 10px, var(--paper-2) 20px); }
.price-tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 8px; background: var(--yellow); color: var(--on-yellow); padding: 6px 12px 6px 18px; border-radius: 4px 8px 8px 4px; font: 800 1.2rem/1 var(--display); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.price-tag s { font: 500 .85rem/1 var(--body); color: var(--ink-2); }
.badge { display: inline-block; font: 600 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; }
.badge-ended { background: var(--ink); color: var(--paper); }
.card-media .badge { position: absolute; left: 12px; top: 12px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.retailer { font: 600 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0; }
.card-title { margin: 0; }
.card-blurb { color: var(--ink-2); font-size: .95rem; margin-bottom: 8px; }
.is-ended .card-media img { filter: grayscale(.8); opacity: .7; }

/* Guide pages */
.pick-list { list-style: none; counter-reset: pick; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.pick-list > li { counter-increment: pick; position: relative; }
.pick-list > li::before { content: counter(pick); position: absolute; top: -10px; left: -10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 800 1rem/1 var(--display); }
@media (min-width: 720px) {
  .pick-list .product-card { flex-direction: row; }
  .pick-list .card-media { width: 260px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .pick-list .btn-buy { width: auto; align-self: flex-start; }
}
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.guide-card img, .guide-cover { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.guide-cover { display: flex; align-items: flex-end; padding: 14px; background: var(--red); background-image: radial-gradient(circle at 80% 20%, var(--yellow) 0 18%, transparent 19%); }
.guide-cover span { color: var(--on-accent); font: 800 1.1rem/1.1 var(--display); }
.guide-card-title { font: 600 1.05rem/1.25 var(--display); }
.guide-card:hover .guide-card-title { color: var(--red-ink); }

.deal-layout { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 32px; align-items: start; margin-top: 16px; }
@media (max-width: 720px) { .deal-layout { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: var(--radius); margin: 8px 0; }
.notice-ended { background: var(--ink); color: var(--paper); }
.notice-ok { background: var(--tint-ok); color: var(--green); border: 1px solid var(--tint-ok-line); }
.notice-error { background: var(--tint-err); color: var(--danger); border: 1px solid var(--tint-err-line); }
.notice-info { background: var(--tint-info); color: var(--info-ink); border: 1px solid var(--tint-info-line); }

/* Subscribe */
.subscribe-box { margin: 56px 0 24px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.subscribe-box h2 { color: var(--paper); }
.subscribe-box p { color: var(--sub-muted); margin: 0; }
@media (max-width: 720px) { .subscribe-box { grid-template-columns: 1fr; } }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form input { flex: 1 1 220px; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); font: inherit; background: var(--surface); color: var(--ink); }
.subscribe-box .btn { background: var(--red); border-color: var(--red); }
.field-error { color: var(--danger); font-size: .9rem; }

/* Link-in-bio */
.links-page { max-width: 520px; margin: 32px auto; text-align: center; }
.link-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.link-row { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease; }
.link-row:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.link-row-alt { background: var(--yellow); color: var(--on-yellow); }
.link-label { font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--red-ink); }
.link-title { font: 600 1.05rem/1.3 var(--display); }

.prose h2 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.footer { margin-top: 64px; border-top: 3px double var(--ink); background: var(--paper-2); padding: 32px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.footer-brand { font: 800 1.2rem/1 var(--display); }
.footer-head { font: 600 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 4px; }
.footer-base { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Admin */
body.admin .masthead { background: var(--head-bg); }
body.admin .brand, body.admin .nav a, body.admin .linklike { color: var(--head-ink); }
body.admin .footer { display: none; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 32px 0 16px; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font: 800 1.8rem/1 var(--display); }
.stat span { color: var(--ink-2); font-size: .85rem; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.panel h2 { font-size: 1.15rem; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--red); border-radius: 4px; min-width: 2px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--paper-2); }
.pill-Active, .pill-live { background: var(--tint-ok); color: var(--green); }
.pill-bad { background: var(--tint-err); color: var(--danger); }
.pill-Expired { background: var(--ink); color: var(--paper); }
.pill-Draft { background: var(--yellow); color: var(--on-yellow); }
.form { display: grid; gap: 16px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.validation-summary-errors ul { margin: 0; padding-left: 1.2em; color: var(--danger); }
.input-validation-error { border-color: var(--danger) !important; }
.login { max-width: 380px; margin: 64px auto; }


/* ---------- Discovery layout ---------- */
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--head-search); border-radius: 999px; padding: 0 14px; color: var(--head-search-ink); }
.search:focus-within { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--red); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.search input::placeholder { color: var(--head-search-ph); }
@media (max-width: 720px) {
  .masthead-row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-name { font-size: 1.15rem; }
  .masthead .nav-cta { padding: 6px 12px; font-size: .85rem; }
}
.tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs-row a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.tabs-row a:hover { background: var(--paper-2); color: var(--ink); }
.tabs-row a.on { background: var(--ink); color: var(--paper); }

/* Featured tiles: one big, three small */
.featured { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 24px; min-height: 460px; }
.ftile { position: relative; overflow: hidden; border-radius: 18px; background: var(--paper-2); color: #fff; text-decoration: none; display: flex; align-items: flex-end; }
.ftile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ftile:hover img { transform: scale(1.04); }
.ftile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,17,14,.88)); }
.ftile-text { position: relative; z-index: 1; padding: 16px; display: grid; gap: 4px; }
.ftile-kicker { justify-self: start; font: 700 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--on-accent); background: var(--red); padding: 6px 10px; border-radius: 999px; }
.ftile-title { font: 800 1.05rem/1.15 var(--display); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ftile-sum { font-size: .95rem; color: #eee6d8; max-width: 40ch; }
.ftile-lead { grid-row: span 2; }
.ftile-lead .ftile-title { font-size: calc(clamp(1.5rem, 3vw, 2.2rem) * var(--h-scale, 1)); }
.ftile-lead .ftile-text { padding: 24px; }
.ftile:nth-child(2) { grid-column: 2 / span 2; }
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .ftile, .ftile:nth-child(2) { grid-column: auto; aspect-ratio: 1 / 1; }
  .ftile-lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Discovery cards */
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
@media (max-width: 1000px) { .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.dcard { display: flex; flex-direction: column; min-width: 0; }
.dcard-media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dcard:hover .dcard-media img { transform: scale(1.05); }
.dcard-ph { width: 100%; height: 100%; display: grid; place-items: center; font: 800 4rem/1 var(--display); color: var(--line); }
.dcard-off { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--red); color: var(--on-accent); font: 700 .8rem/1 var(--body); padding: 6px 9px; border-radius: 999px; }
.dcard-off.big { font-size: 1rem; padding: 8px 12px; top: 16px; left: 16px; }
.dcard-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dcard-cat { font: 600 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--red-ink); text-decoration: none; }
.dcard-title { font: 600 calc(1rem * var(--h-scale, 1))/1.25 var(--display); margin: 0; }
.dcard-title a { color: var(--ink); text-decoration: none; }
.dcard-title a:hover { color: var(--red-ink); }
.dcard-sum { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dcard-price strong { font: 800 1.05rem/1 var(--display); }
.dcard-price s { color: var(--ink-2); font-size: .82rem; margin-left: 4px; }
.dcard-buy { flex: none; font: 600 .8rem/1 var(--body); color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 11px; white-space: nowrap; }
.dcard-buy:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 420px) { .dcard-foot { flex-direction: column; align-items: flex-start; } }

.band { background: var(--paper-2); margin-inline: calc(50% - 50vw); padding: 28px calc(50vw - 50%) 36px; }
.band .section-head { border-color: var(--line); }

/* Product page */
.crumbs { margin: 20px 0 12px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); }
.crumbs span { margin: 0 6px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }
.pdp-media { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--paper-2); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: calc(clamp(1.8rem, 3.5vw, 2.6rem) * var(--h-scale, 1)); margin: 8px 0 4px; }
.pdp-hook { font-size: 1.2rem; color: var(--ink-2); }
.buy-box { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0 12px; display: grid; gap: 10px; background: var(--surface); box-shadow: var(--shadow); }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price strong { font: 800 2rem/1 var(--display); }
.buy-price s { color: var(--ink-2); }
.save { background: var(--tint-accent); color: var(--red-ink); font-weight: 700; font-size: .85rem; padding: 4px 8px; border-radius: 6px; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.pdp .btn-buy { width: 100%; }
.pdp-story { max-width: 720px; margin-top: 40px; font-size: 1.05rem; }
.deal-note { background: var(--paper-2); padding: 12px 14px; border-radius: 10px; }

/* Browse */
.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 28px 0 8px; }
.browse-head h1 { margin: 0; font-size: calc(clamp(1.8rem, 4vw, 2.6rem) * var(--h-scale, 1)); }
.browse-head p { margin: 4px 0 0; }
.sort, .filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row { margin: 8px 0 24px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; background: var(--surface); }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; }
.section-head h2 { margin-bottom: .4em; }


/* ---------- Accounts & wishlist ---------- */
.nav-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.nav-icon:hover { background: var(--head-search); }
.nav-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: var(--on-accent); font: 700 .7rem/18px var(--body); text-align: center; }
.nav-avatar, .avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow) !important; font: 800 .95rem/1 var(--display); text-decoration: none; }
.avatar.big { width: 56px; height: 56px; font-size: 1.4rem; }
.nav-signin { font-weight: 600; }
@media (max-width: 720px) { .masthead .nav { gap: 10px; } .nav-signin { font-size: .9rem; } .masthead .nav-cta { display: none; } }
.dcard-mediawrap { position: relative; }
.heart { position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--glass); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .1s ease; }
.heart:hover { transform: scale(1.08); }
.heart svg path { fill: none; stroke: var(--ink); stroke-width: 2; }
.heart[aria-pressed="true"] svg path { fill: var(--red); stroke: var(--red); }
.heart-wide[aria-pressed="true"] { border-color: var(--red); color: var(--red-ink); }
.heart-wide .heart-icon { font-size: 1.2rem; line-height: 1; }
.btn-google { width: 100%; background: var(--surface); color: var(--ink); border: 2px solid var(--line); gap: 12px; min-height: 52px; font-size: 1rem; }
.btn-google:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.account-card { max-width: 480px; }
.profile { display: flex; align-items: center; gap: 14px; }
.profile img { border-radius: 50%; }


/* ---------- Embedded product videos ---------- */
.pdp-video { margin-top: 40px; max-width: 720px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--ink); }
.video-frame.vertical { aspect-ratio: 9 / 16; max-width: 360px; }
.video-frame.video-instagram { aspect-ratio: auto; height: 640px; max-width: 400px; background: #fff; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dcard-video { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(29,26,22,.85); color: #fff; font: 700 .72rem/1 var(--body); padding: 6px 9px; border-radius: 999px; pointer-events: none; }


/* ---------- Uploaded logo ---------- */
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
@media (max-width: 720px) { .brand-logo { height: 34px; max-width: 140px; } }
.logo-preview { display: grid; gap: 8px; }
.logo-swatch { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; }
.logo-swatch.dark { background: var(--head-bg); color: var(--head-ink); }
.logo-swatch img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.logo-swatch .brand-name { font: 800 1.35rem/1 var(--display); color: var(--head-ink); }


/* ==========================================================================
   Polish: shared refinements that every theme inherits
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--hl); color: var(--ink); }
.masthead { box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .6); }
.tabs { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.tabs-row a { transition: background .15s ease, color .15s ease; }
:where(a, button, input, select, textarea, .btn):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Buttons follow the theme */
.btn { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--on-accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-buy, .subscribe-box .btn { background: var(--red); border-color: var(--red); color: var(--on-accent); }
.btn-buy:hover, .subscribe-box .btn:hover { background: var(--red-ink); border-color: var(--red-ink); color: var(--on-accent); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }

/* Home intro */
.home-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 36px 0 4px; }
.home-intro h1 { font-size: calc(clamp(2rem, 4.4vw, 3.1rem) * var(--h-scale, 1)); margin: 0 0 12px; max-width: 17ch; text-wrap: balance; }
.home-intro .lede { margin: 0; font-size: 1.08rem; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trust li { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 3px; }
.trust b { font: 700 .95rem/1.2 var(--display); }
.trust span { font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 860px) { .home-intro { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; } }
@media (max-width: 520px) { .trust span { display: none; } .trust li { padding: 10px; text-align: center; } }
.featured { margin-top: 20px; }

/* Section headings with an accent rule */
.section-head { border-bottom: 0; position: relative; padding-bottom: 10px; }
.section-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.section-head h2 { position: relative; margin-bottom: 0; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -11px; width: 44px; height: 3px; border-radius: 3px; background: var(--red); z-index: 1; }
.section-head a { color: var(--red-ink); font-size: .92rem; }

/* Cards */
.dcard-media { box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.dcard:hover .dcard-media { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); transform: translateY(-2px); }
.dcard-title { font-weight: 700; }
.dcard-buy { border-color: var(--line); background: var(--surface); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.dcard-buy:hover { border-color: var(--ink); }
.dcard-price .muted { font-weight: 600; }
.guide-card img, .guide-cover { transition: transform .2s ease, box-shadow .2s ease; }
.guide-card:hover img, .guide-card:hover .guide-cover { transform: translateY(-3px); }

/* Subscribe band */
.subscribe-box { background: var(--sub-bg); color: var(--sub-ink); position: relative; overflow: hidden; isolation: isolate; padding: 32px; }
.subscribe-box::before { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--red); opacity: .22; z-index: -1; }
.subscribe-box::after { content: ""; position: absolute; right: 120px; bottom: -110px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: .14; z-index: -1; }
.subscribe-box h2 { color: var(--sub-ink); }

/* Footer band */
.footer { background: var(--head-bg); color: var(--head-ink); border-top: 1px solid var(--head-line); padding-top: 40px; }
.footer a { color: var(--head-ink); }
.footer .muted, .footer-head { color: var(--head-ink); opacity: .68; }
.footer-grid nav a { color: var(--head-ink); opacity: .85; }
.footer-grid nav a:hover { opacity: 1; text-decoration: underline; }
.footer-base { border-top-color: color-mix(in srgb, var(--head-ink) 18%, transparent); }

/* ==========================================================================
   Themes (picked in Admin > Settings; html[data-theme])
   ========================================================================== */
[data-theme="classic"] {
  --paper: #ffffff; --paper-2: #f4f6fa; --card: #ffffff; --surface: #ffffff;
  --ink: #14213d; --ink-2: #55607a; --line: #e2e7ef;
  --red: #d97706; --red-ink: #b45309; --yellow: #fde68a; --on-yellow: #14213d; --green: #15803d;
  --head-bg: #14213d; --head-search: #22325a; --head-search-ink: #aab4cc; --head-search-ph: #8e9ab5;
  --tint-accent: #fef3c7; --field-line: #cdd5e3; --sub-muted: #c3cbe0; --btn-hover: #0b1530;
  --radius: 10px;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
}
[data-theme="classic"] h1, [data-theme="classic"] h2 { letter-spacing: 0; }

[data-theme="fresh"] {
  --paper: #ffffff; --paper-2: #f1f7f3; --card: #ffffff; --surface: #ffffff;
  --ink: #12372a; --ink-2: #4b6358; --line: #dde9e1;
  --red: #15803d; --red-ink: #166534; --yellow: #bbf7d0; --on-yellow: #12372a; --green: #15803d;
  --head-bg: #0f3d2e; --head-search: #1b5341; --head-search-ink: #a7c7b8; --head-search-ph: #8fb3a3;
  --tint-accent: #dcfce7; --field-line: #c6dacd; --sub-muted: #b5d0c3;
  --radius: 16px;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

[data-theme="midnight"] {
  color-scheme: dark;
  --paper: #0e1116; --paper-2: #151a21; --card: #161b22; --surface: #161b22;
  --ink: #eef2f7; --ink-2: #9aa5b5; --line: #262d38;
  --red: #3b82f6; --red-ink: #60a5fa; --yellow: #facc15; --on-yellow: #0e1116; --hl: rgba(59, 130, 246, .45); --green: #4ade80;
  --head-bg: #07090c; --head-line: #1c222b; --head-search: #161b22; --head-search-ink: #8b96a8; --head-search-ph: #6b7587;
  --tint-ok: rgba(74, 222, 128, .12); --tint-ok-line: rgba(74, 222, 128, .3);
  --tint-err: rgba(248, 113, 113, .12); --tint-err-line: rgba(248, 113, 113, .32);
  --tint-accent: rgba(59, 130, 246, .18); --tint-info: rgba(96, 165, 250, .12); --tint-info-line: rgba(96, 165, 250, .3); --info-ink: #93c5fd;
  --danger: #f87171; --field-line: #2f3744; --sub-muted: #9aa5b5; --glass: rgba(22, 27, 34, .9);
  --btn-bg: #3b82f6; --btn-ink: #ffffff; --btn-hover: #2563eb;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}
[data-theme="midnight"] .tabs-row a.on, [data-theme="midnight"] .chip.on { background: var(--red); border-color: var(--red); color: #fff; }
[data-theme="midnight"] .card-placeholder, [data-theme="midnight"] .dcard-ph { color: #2c3440; }

[data-theme="minimal"] {
  --paper: #ffffff; --paper-2: #f6f6f6; --card: #ffffff; --surface: #ffffff;
  --ink: #111111; --ink-2: #666666; --line: #e8e8e8;
  --red: #111111; --red-ink: #111111; --yellow: #eeeeee; --on-yellow: #111111; --hl: #e4e4e4;
  --head-bg: #ffffff; --head-ink: #111111; --head-line: #e8e8e8;
  --head-search: #f2f2f2; --head-search-ink: #777777; --head-search-ph: #999999;
  --tint-accent: #f0f0f0; --btn-bg: #111111; --btn-ink: #ffffff; --btn-hover: #333333;
  --sub-bg: #111111; --sub-ink: #ffffff; --sub-muted: #bbbbbb;
  --radius: 6px; --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 20px -14px rgba(0, 0, 0, .18);
  --display: "Inter", ui-sans-serif, system-ui, sans-serif;
}
[data-theme="minimal"] .masthead { box-shadow: none; }
[data-theme="minimal"] h1, [data-theme="minimal"] h2 { letter-spacing: -0.03em; }
[data-theme="minimal"] .brand-stamp { transform: none; border-radius: 8px; box-shadow: none; }
[data-theme="minimal"] .masthead .nav-icon:hover { background: #f2f2f2; }
[data-theme="minimal"] .footer { background: #fafafa; }

[data-theme="coral"] {
  --paper: #fffaf7; --paper-2: #fff0ea; --card: #ffffff; --surface: #ffffff;
  --ink: #3d1f2b; --ink-2: #7a5d66; --line: #f1dfd7;
  --red: #e5484d; --red-ink: #c2353a; --yellow: #ffd6c9; --on-yellow: #3d1f2b;
  --head-bg: #3d1f2b; --head-search: #542c3b; --head-search-ink: #d4b5bf; --head-search-ph: #b8949f;
  --tint-accent: #ffe4dc; --field-line: #ead0c6; --sub-muted: #e7cdd5;
  --radius: 20px;
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
}

/* ==========================================================================
   Admin: bulk upload
   ========================================================================== */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; counter-reset: st; flex-wrap: wrap; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: .8rem; }
.steps li.on { background: var(--ink); color: var(--paper); }
.steps li.on::before { background: var(--red); color: var(--on-accent); }
.steps li.done::before { content: "\2713"; background: var(--green); color: #fff; }
.seg { display: inline-flex; justify-self: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-btn { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 .92rem/1 var(--body); color: var(--ink-2); cursor: pointer; }
.seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.bulk-tab { display: grid; gap: 14px; }
#bulk-paste { font: .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 220px; white-space: pre; overflow-x: auto; }
.bulk-bar { position: sticky; top: 64px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line); }
.bulk-counts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk-counts .pill { font-size: .85rem; padding: 4px 10px; }
.bulk-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bulk-grid { border-collapse: separate; border-spacing: 0; font-size: .86rem; min-width: 100%; }
.bulk-grid th { position: sticky; top: 0; z-index: 3; background: var(--paper-2); text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bulk-grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; background: var(--surface); }
.bulk-grid .sticky { position: sticky; z-index: 2; }
.bulk-grid th.sticky { z-index: 4; }
.bulk-grid .c1 { left: 0; width: 38px; min-width: 38px; text-align: center; }
.bulk-grid .c2 { left: 38px; width: 36px; min-width: 36px; color: var(--ink-2); }
.bulk-grid .c3 { left: 74px; width: 240px; min-width: 240px; box-shadow: 1px 0 0 var(--line); }
.bulk-grid input:not([type=checkbox]), .bulk-grid textarea { padding: 7px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; resize: vertical; }
.bulk-grid input:not([type=checkbox]):hover, .bulk-grid textarea:hover { border-color: var(--line); }
.bulk-grid input:not([type=checkbox]):focus, .bulk-grid textarea:focus { border-color: var(--red); background: var(--surface); outline: none; }
.bulk-grid input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); margin-top: 8px; }
.bulk-grid .w-xs { width: 84px; } .bulk-grid .w-s { width: 140px; } .bulk-grid .w-m { width: 190px; } .bulk-grid .w-l { width: 270px; }
.bulk-grid tr.row-bad td { background: color-mix(in srgb, var(--tint-err) 70%, var(--surface)); }
.bulk-grid tr.row-skip td { color: var(--ink-2); }
.bulk-grid tr.row-skip td:not(.c1) > * { opacity: .5; }
.bulk-grid .status .pill { margin-top: 6px; }
.bulk-grid .msgs { margin: 6px 0 0; padding-left: 16px; font-size: .78rem; line-height: 1.35; }
.bulk-grid .msgs .err { color: var(--danger); }
.bulk-grid .msgs .warn { color: var(--ink-2); }
.bulk-grid .num { padding-top: 13px; }
.bulk-grid .center { text-align: center; }
.thumb img, .thumb-ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.bulk-done h2 { margin-bottom: 4px; }
.bulk-published { columns: 2; column-gap: 32px; padding-left: 18px; margin: 12px 0 16px; }
.bulk-published li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 720px) { .bulk-published { columns: 1; } .bulk-bar { top: 104px; } }

/* Admin: theme picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 12px; }
.theme-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; background: var(--surface); align-content: start; }
.theme-card.is-current { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.theme-mini { border-radius: 10px; overflow: hidden; border: 1px solid rgba(127, 127, 127, .25); height: 112px; display: grid; grid-template-rows: 26px 1fr; }
.theme-mini-head { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.theme-mini-head span { width: 14px; height: 14px; border-radius: 50%; }
.theme-mini-head i { height: 6px; width: 60px; border-radius: 3px; }
.theme-mini-body { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; padding: 10px; }
.theme-mini-card { border-radius: 6px; }
.theme-mini-lines { display: grid; gap: 6px; align-content: start; }
.theme-mini-lines b { height: 7px; border-radius: 3px; display: block; }
.theme-mini-lines em { height: 16px; border-radius: 999px; width: 70%; display: block; margin-top: 4px; }
.theme-info { display: grid; gap: 4px; }
.theme-info strong { display: flex; gap: 8px; align-items: center; font: 700 1.05rem/1.2 var(--display); }

/* Admin gets a wider canvas so the menu fits on one line and the bulk grid has room. */
body.admin .wrap { width: min(1320px, 100% - 32px); }
body.admin .nav { gap: 14px; font-size: .92rem; }
body.admin .brand-name { white-space: nowrap; }

/* Admin: text style picker */
.text-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .text-form { grid-template-columns: 1fr; } }
.text-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--paper); font-family: var(--pv-body, var(--body)); font-size: var(--pv-size, 16px); line-height: 1.55; }
.text-preview .kicker { font-size: .8em; }
.text-preview .pv-h1 { font-family: var(--pv-display, var(--display)); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; font-size: calc(2.4em * var(--pv-scale, 1)); margin: 0 0 .35em; }
.text-preview .pv-h2 { font-family: var(--pv-display, var(--display)); font-weight: 700; line-height: 1.2; font-size: calc(1.15em * var(--pv-scale, 1)); margin: 1em 0 .3em; }
.text-preview p { margin: 0 0 .6em; color: var(--ink-2); }
.text-preview .pv-price { font-family: var(--pv-display, var(--display)); font-weight: 800; font-size: 1.3em; color: var(--ink); }
.text-preview .pv-h1, .text-preview .pv-h2 { color: var(--ink); }

/* Product photo gallery */
.pdp-gallery { display: grid; gap: 12px; min-width: 0; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pdp-thumb { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); opacity: .75; transition: opacity .15s ease, box-shadow .15s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--red); }

/* Admin: photo manager on the product form */
.photo-list { display: flex; flex-wrap: wrap; gap: 12px; min-height: 40px; }
.photo-list[data-empty]:not([data-empty=""])::before { content: attr(data-empty); color: var(--ink-2); font-size: .9rem; padding: 10px 0; }
.photo-item { position: relative; width: 132px; display: grid; gap: 6px; }
.photo-item img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.photo-item.is-main img { box-shadow: 0 0 0 3px var(--red); }
.photo-item.is-main::after { content: "Main"; position: absolute; top: 8px; left: 8px; background: var(--red); color: var(--on-accent); font: 700 .7rem/1 var(--body); padding: 4px 8px; border-radius: 999px; }
.photo-tools { display: flex; gap: 4px; }
.photo-tools button { flex: 1; min-height: 28px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; font: 600 .75rem/1 var(--body); cursor: pointer; padding: 0 4px; }
.photo-tools button:hover { border-color: var(--ink); }
.photo-item.is-main [data-act="main"] { visibility: hidden; }
.photo-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-add input[type=url] { flex: 1 1 240px; width: auto; }
.photo-upload-btn { cursor: pointer; }
.photo-upload-btn:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.photo-status { margin: 0; color: var(--ink-2); min-height: 1.2em; }

/* Bulk upload: photos */
.bulk-photos { border-top: 1px solid var(--line); padding-top: 16px; }
.bulk-progress { display: grid; gap: 6px; }
.bulk-progress .bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bulk-progress .bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s ease; }
.bulk-grid .thumb { min-width: 64px; }
.bulk-grid .thumbs { display: flex; gap: 4px; }
.bulk-grid .thumbs img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.bulk-grid .thumbs img + img { width: 30px; height: 30px; margin-top: 7px; opacity: .9; }
