/*
Theme Name: Catjewel
Description: Silver jewellery store theme with wholesale and retail rates, a separate payal section and a WhatsApp order list. Add and edit items from Jewellery in the admin menu.
Version: 1.3.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: catjewel
*/
:root {
  --bg: #F6F1EA;
  --surface: #FFFCF7;
  --ink: #17302A;
  --muted: #62706A;
  --line: #DDD3C3;
  --gold: #8A6A35;
  --gold-line: #B79A66;
  --tint: #ECE4D6;
  --photo: #1B2026;
  --band: #15342E;
  --band-ink: #F4EFE5;
  --band-muted: #B7C5BE;
  --band-gold: #D4B27A;
  --band-line: rgba(244, 239, 229, .24);
  --sage: #5E6E57;
  --sage-ink: #F6F1EA;
  --foot: #0F2823;
  --btn: #15342E;
  --btn-ink: #F6F1EA;
  --wa: #1C7A4A;
  --wa-ink: #FFFFFF;
  --header-bg: rgba(246, 241, 234, .92);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Pinyon Script", "Brush Script MT", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1210; --surface: #16251F; --ink: #EDE8DC; --muted: #9AA8A1; --line: #26342E;
    --gold: #D4B27A; --gold-line: #8F7548; --tint: #172622; --photo: #0E1315;
    --band: #112A25; --sage: #223D35; --foot: #070D0B;
    --btn: #D4B27A; --btn-ink: #10140F; --wa: #2BB66A; --wa-ink: #07120C;
    --header-bg: rgba(11, 18, 16, .92);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1210; --surface: #16251F; --ink: #EDE8DC; --muted: #9AA8A1; --line: #26342E;
  --gold: #D4B27A; --gold-line: #8F7548; --tint: #172622; --photo: #0E1315;
  --band: #112A25; --sage: #223D35; --foot: #070D0B;
  --btn: #D4B27A; --btn-ink: #10140F; --wa: #2BB66A; --wa-ink: #07120C;
  --header-bg: rgba(11, 18, 16, .92);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 128px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.6; padding-block: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 1152px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
h2 { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: .03em; text-wrap: balance; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.logo { order: 1; text-decoration: none; display: grid; line-height: 1; }
.logo b { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: .14em; text-transform: uppercase; }
.logo span { font-size: 8.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
nav { order: 2; display: flex; align-items: center; gap: 22px; margin-left: 8px; }
nav a { text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
nav a:hover { color: var(--ink); }
.search { order: 3; position: relative; flex: 1 1 200px; max-width: 220px; min-width: 0; margin-left: auto; }
.search input[type="text"] { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px 8px 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.head-right { order: 4; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; padding: 2px; background: var(--surface); }
.seg button { border: 0; background: transparent; border-radius: 2px; padding: 6px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: transparent; border-radius: 3px; padding: 6px 8px 6px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cart-btn:hover { background: var(--ink); color: var(--bg); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 2px; background: var(--gold); color: var(--bg); font-size: 12px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* items dropdown */
.menu { position: relative; }
.menu::after { content: ""; position: absolute; left: -18px; right: -18px; top: 100%; height: 22px; }
.menu > button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.menu > button:hover, .menu > button[aria-expanded="true"] { color: var(--ink); }
.menu > button svg { width: 10px; height: 10px; transition: transform .2s; }
.menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd { position: absolute; top: calc(100% + 18px); left: -18px; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-bottom: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); padding: 10px 0; margin: 0; list-style: none; z-index: 20; }
.dd[hidden] { display: none; }
.dd a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 22px; color: var(--ink); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.dd a::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; margin-right: -6px; }
.dd a span.n { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.dd a:hover, .dd a[aria-current="page"] { background: var(--tint); color: var(--gold); }
nav a[aria-current="page"] { color: var(--ink); }
/* category page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-top: 28px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs i { font-style: normal; opacity: .6; }
.cat-title { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: .03em; margin: 0; }
#catPage .sec-head { padding-top: 22px; }
.more { padding-block: 8px 80px; }
.more h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
@media (max-width: 1100px) {
  nav { display: flex; order: 6; flex-basis: 100%; margin-left: 0; gap: 22px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
  .dd { left: 0; right: auto; top: calc(100% + 12px); max-height: 60vh; overflow: auto; }
}
@media (max-width: 520px) { nav { gap: 6px 16px; } nav a, .menu > button { letter-spacing: .1em; font-size: 11.5px; } }
.cat-intro { color: var(--muted); max-width: 56ch; margin: 12px 0 0; }
a.col { text-decoration: none; color: inherit; }
@media (max-width: 720px) { .search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; } .head-right { margin-left: auto; } }

/* buttons */
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn); border-radius: 3px; padding: 14px 28px; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }
.btn.light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero-wrap { padding-top: 20px; padding-bottom: 44px; }
.hero-ban { position: relative; display: flex; align-items: center; min-height: clamp(400px, 44vw, 540px); border-radius: 14px; overflow: hidden; background: #2A2224; color: #FFFFFF; }
.hero-img { position: absolute; top: 0; bottom: 0; right: 0; width: 72%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.hero-ban::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; padding: clamp(24px, 5vw, 64px); max-width: min(540px, 100%); }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.lede { max-width: 38ch; font-size: 16px; color: rgba(255, 255, 255, .9); margin: 0 0 26px; }
.btn.white { background: #FFFFFF; color: #2A2224; border-color: #FFFFFF; }
.btn.outline-white { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .7); }
.btn.outline-white:hover { background: rgba(255, 255, 255, .14); filter: none; }
@media (max-width: 720px) {
  .hero-ban { align-items: flex-end; min-height: 460px; }
  .hero-img { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-ban::after { background: linear-gradient(0deg, rgba(30, 22, 24, .9) 0%, rgba(30, 22, 24, .62) 42%, rgba(30, 22, 24, 0) 74%); }
  .hero-copy { max-width: none; }
  .hero-copy .lede { display: none; }
}

/* stats */
.stats { background: var(--sage); color: var(--sage-ink); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 22px; }
.stat { padding: 4px 20px; border-left: 1px solid rgba(246, 241, 234, .28); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.1; }
.stat span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
@media (max-width: 720px) { .stats-in { grid-template-columns: 1fr 1fr; gap: 14px 0; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* sections */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; padding-block: 72px 28px; }
.viewall { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.viewall:hover { text-decoration: underline; }
.cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.col { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); text-align: left; min-width: 0; }
.col img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.col:hover img { transform: scale(1.05); }
.col.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 14, 12, .8), rgba(7, 14, 12, 0) 55%); }
.col .ico { position: absolute; inset: 0 0 22% 0; display: grid; place-items: center; }
.col .ico svg { width: 46%; height: auto; }
.col-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 1px; }
.col.photo .col-text { color: #FFFFFF; }
.col-name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-weight: 500; }
.col-count { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.col:hover { outline: 1px solid var(--gold-line); }
@media (max-width: 960px) { .cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cols { grid-template-columns: repeat(2, 1fr); } }
svg.line { fill: none; stroke: var(--gold-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* product grids */
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 3px; padding: 6px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
select { font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 7px 10px; }
.rate-note { color: var(--muted); font-size: 13px; margin: 0 0 6px; max-width: 74ch; }
.result-line { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: 13px; padding-block: 8px 18px; }
.linkbtn { border: 0; background: transparent; padding: 0; color: var(--gold); text-decoration: underline; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; padding-bottom: 72px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.tile { position: relative; aspect-ratio: 3 / 2; background: var(--photo); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .tile img { transform: scale(1.04); }
.tile.ph { background: var(--tint); display: grid; place-items: center; }
.tile.ph .phi svg { width: 84px; height: 84px; }
.phnote { position: absolute; left: 12px; bottom: 8px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: var(--surface); color: var(--ink); padding: 3px 9px; border-radius: 2px; }
.info { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.info h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.desc { margin: 0; color: var(--muted); font-size: 13.5px; }
.buy { display: grid; gap: 14px; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.was { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.per { display: block; margin-top: 5px; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.add { width: 100%; border: 1px solid var(--ink); background: transparent; border-radius: 3px; padding: 10px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.add:hover { background: var(--ink); color: var(--bg); }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 32px 0; }

/* payal band */
.band { background: var(--band); color: var(--band-ink); margin-top: 8px; }
.band .eyebrow { color: var(--band-gold); }
.band .viewall { color: var(--band-gold); }
.band .lede2 { color: var(--band-muted); max-width: 56ch; margin: 12px 0 0; }
.band .chip { border-color: var(--band-line); color: var(--band-ink); }
.band .chip:hover { border-color: var(--band-ink); }
.band .chip[aria-pressed="true"] { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.band select { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.band select option { background: var(--surface); color: var(--ink); }
.band .rate-note, .band .result-line { color: var(--band-muted); }
.band .linkbtn { color: var(--band-gold); }
.band .card { border-color: transparent; }
.band .sec-head { padding-top: 64px; }
.band .grid { padding-bottom: 72px; }

/* story, promise, how */
.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 12px; overflow: hidden; margin-top: 72px; }
.story > * { min-width: 0; }
.story img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.story-text { padding: clamp(24px, 5vw, 56px); display: grid; gap: 14px; align-content: center; justify-items: start; }
.story-text p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-block: 1px solid var(--line); margin-top: 72px; }
.pr { padding: 26px 22px; display: grid; gap: 6px; justify-items: center; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.pr:first-child { border-left: 0; }
.pr svg { width: 28px; height: 28px; }
.pr b { font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.pr span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .pr { border-left: 0; border-top: 1px solid var(--line); } .pr:first-child { border-top: 0; } }
.steps { list-style: none; margin: 0; padding: 0 0 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 6px; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--gold); }
.steps b { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 14px; }
.cta-band { background: var(--band); color: var(--band-ink); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 52px; }
.cta-in h2 { max-width: 20ch; }
.cta-in p { margin: 10px 0 0; color: var(--band-muted); max-width: 46ch; }

footer { background: var(--foot); color: #B9C6BF; font-size: 14px; }
.foot-in { padding-block: 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-grid h4 { margin: 0 0 12px; color: #F4EFE5; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.foot-grid p { margin: 0 0 8px; max-width: 38ch; }
.flink { display: block; border: 0; background: transparent; padding: 2px 0; font-size: 14px; color: inherit; text-decoration: none; text-align: left; }
.flink:hover { color: #FFFFFF; text-decoration: underline; }
.logo-img { height: 74px; width: auto; display: block; }
.logo { justify-items: center; gap: 4px; }
.logo .logo-name { font-family: var(--font-display); font-size: 14px; margin-top: 0; color: var(--ink); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: var(--ink, currentColor); line-height: 1; }
.foot-logo-name { font-family: var(--font-display); font-size: 16px; letter-spacing: .38em; text-transform: uppercase; color: #F4EFE5; margin: 0 0 12px; line-height: 1; }
.foot-logo-img { height: 96px; width: auto; display: block; margin-bottom: 12px; }
@media (max-width: 720px) { .logo-img { height: 56px; } }
.foot-logo { font-family: var(--font-display); font-size: 32px; letter-spacing: .14em; text-transform: uppercase; color: #F4EFE5; margin-bottom: 8px; line-height: 1; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(244, 239, 229, .18); font-size: 12.5px; }
.theme-btn { border: 1px solid rgba(244, 239, 229, .3); background: transparent; color: inherit; border-radius: 3px; padding: 5px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

.wa { position: fixed; right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: var(--wa-ink); border: 0; border-radius: 3px; padding: 12px 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa:hover { filter: brightness(1.08); }
@media (max-width: 480px) { .wa span { display: none; } .wa { padding: 14px; } }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 30; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer.on { transform: none; }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 26px; }
.x { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--muted); }
.x:hover { color: var(--ink); }
.d-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item > * { min-width: 0; }
.mini { width: 84px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--photo); display: grid; place-items: center; }
.mini.ph { background: var(--tint); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini svg { width: 34px; height: 34px; }
.li-name { font-weight: 500; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 3px; border: 1px solid var(--line); background: transparent; line-height: 1; }
.qty button:hover { border-color: var(--ink); }
.qty span { min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.rm { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; display: block; margin-top: 4px; margin-left: auto; }
.d-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.row.total { font-weight: 600; font-size: 17px; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.d-foot .btn { width: 100%; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="tel"], textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > * { min-width: 0; }
.err { color: #C0392B; font-size: 12px; }
.msgbox { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 12px; font-size: 13px; white-space: pre-wrap; max-height: 220px; overflow: auto; font-variant-numeric: tabular-nums; }
.done { padding: 12px 0; display: grid; gap: 12px; }
.done h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 3px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 40; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* WordPress additions */
body { margin: 0; }
[hidden] { display: none !important; }
.admin-bar header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar header { top: env(safe-area-inset-top, 0px); } }
.page-wrap { padding-block: 56px 80px; }
.page-wrap h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 20px; }
.page-wrap p { max-width: 70ch; }
.screen-reader-text { position: absolute; left: -9999px; }
