/* Mustafa Curtain Center — styles (mobile first) */
:root {
  --navy: #13294B; --navy-900: #0C1B33; --navy-950: #081326;
  --gold: #C9A24A; --gold-light: #E2C47E; --gold-text: #8A6420;
  --ivory: #FAF6EE; --paper: #FFFDF8; --sand: #F1EADC; --line: #E8DFCB; --line-2: #C9BFA8;
  --ink: #1D2330; --body: #3A4150; --muted: #5B6170;
  --wa: #1F7A4D; --danger: #8A2A2A; --ok-bg: #EAF2EC; --ok-line: #A9CDB5; --ok-ink: #1D4D33;
  --warn-bg: #FBF4E4; --warn-line: #E8D3A6; --warn-ink: #7A5410;
  --radius: 8px; --shadow: 0 16px 36px rgba(12, 27, 51, .12);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ivory); }
img, video { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 46px); }
h2 { font-size: clamp(26px, 4.5vw, 40px); }
.h3, h3 { font-size: clamp(20px, 3vw, 24px); }
.h4 { font-size: 19px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 4px; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 920px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.pre-line { white-space: pre-line; }
.lead { font-size: 17px; color: var(--body); line-height: 1.75; }
.gold { color: var(--gold-light); }
.no-scroll { overflow: hidden; }
.section { padding: 56px 0; }
.section-sm { padding-top: 28px; padding-bottom: 28px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { :root { --gutter: 24px; } .section { padding: 80px 0; } .section-sm { padding-top: 40px; padding-bottom: 40px; } }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; background: var(--navy); color: var(--ivory); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; -webkit-tap-highlight-color: transparent; }
.button:hover { color: var(--ivory); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(12, 27, 51, .18); }
.button:active { transform: scale(.98); }
.button:disabled, .button.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.button-navy { background: var(--navy); color: var(--ivory); }
.button-gold { background: var(--gold); color: var(--navy-900); }
.button-gold:hover { color: var(--navy-900); }
.button-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.button-outline:hover { color: var(--navy); }
.button-outline-light { background: transparent; color: var(--ivory); border-color: var(--gold); }
.button-ghost-light { background: rgba(250, 246, 238, .08); color: var(--ivory); }
.button-wa { background: var(--wa); color: #fff; }
.button-wa:hover { color: #fff; }
.button-danger { background: #fff; color: var(--danger); border-color: #E4B4AF; }
.button-danger:hover { color: var(--danger); }
.button-danger-solid { background: #A3302A; color: #fff; }
.button-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.button-lg { min-height: 54px; font-size: 16px; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-stack { display: grid; gap: 10px; }
.button-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.text-link { font-weight: 500; }
.wa-green { color: #7FD6A0; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--navy); border-radius: 50%; cursor: pointer; position: relative; }
.icon-btn.light { color: var(--ivory); background: rgba(12, 27, 51, .6); }

/* ---------- alerts ---------- */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 15px; border: 1px solid; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.alert-error { background: #FBEDEC; border-color: #E4B4AF; color: #7A231B; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.alert + .alert { margin-top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--navy-900); position: relative; z-index: 30; }
.topbar { background: var(--navy-950); color: #E9E2D2; font-size: 13px; border-bottom: 1px solid rgba(201, 162, 74, .25); }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 18px; padding-top: 6px; padding-bottom: 6px; }
.topbar-ship { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 500; }
.topbar-right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.topbar-right a { color: #E9E2D2; text-decoration: none; }
.topbar-sep { width: 1px; height: 16px; background: rgba(226, 196, 126, .35); }
.topbar-social { display: inline-flex; }
.topbar-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-light) !important; }
.mainbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand-label { position: relative; display: inline-flex; align-items: center; min-height: 64px; padding: 8px 44px 8px 30px; text-decoration: none; flex: 0 0 auto; }
.brand-stripe, .brand-plate { position: absolute; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.brand-stripe { top: -5px; left: -6px; right: 8px; bottom: 6px; background: var(--gold); }
.brand-plate { inset: 0; background: var(--ivory); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.brand-text { position: relative; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); }
.brand-sub { margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.brand-sub span { width: 14px; height: 1px; background: #B8862F; }
.nav-panel { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-toggle { width: 48px; height: 48px; border: 1px solid rgba(226, 196, 126, .5); border-radius: 4px; background: transparent; color: var(--ivory); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; order: 3; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }
.nav-actions { display: flex; align-items: center; gap: 2px; }
.nav-actions .icon-btn { color: var(--ivory); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--navy-900); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wa-btn { min-height: 44px; padding: 0 12px; margin-left: 4px; border-bottom: 3px solid var(--gold); border-radius: 0; }
.wa-btn span { display: none; }
.site-nav { display: none; position: absolute; top: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 2 * var(--gutter))); background: var(--ivory); border-radius: 8px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); z-index: 40; }
.nav-open .site-nav { display: block; animation: drop .2s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-nav ul { list-style: none; margin: 0; padding: 8px; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 4px; }
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
@media (min-width: 560px) { .wa-btn span { display: inline; } .brand-name { font-size: 28px; } .brand-label { min-height: 72px; padding: 10px 54px 10px 40px; } .brand-sub { font-size: 11px; } }
@media (min-width: 1180px) {
  .nav-panel { flex: 1 1 auto; justify-content: space-between; padding: 6px 8px 6px 46px; min-height: 64px; }
  .nav-panel::before { content: ''; position: absolute; inset: 0; background: var(--ivory); clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%); }
  .nav-panel::after { content: ''; position: absolute; top: -5px; left: 0; width: 55%; height: 5px; background: var(--gold); }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: relative; top: auto; width: auto; background: none; box-shadow: none; border: 0; }
  .site-nav ul { display: flex; padding: 0; gap: 0; }
  .site-nav a { min-height: 46px; padding: 0 10px; font-size: 15px; border-radius: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .site-nav a:hover { background: none; }
  .site-nav a[aria-current="page"] { box-shadow: none; border-bottom-color: #B8862F; }
  .nav-actions { position: relative; }
  .nav-actions .icon-btn { color: var(--navy); }
  .mainbar { flex-wrap: nowrap; gap: 24px; }
}

/* ---------- common blocks ---------- */
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: 8px; }
.eyebrow-light { color: var(--gold-light); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; margin-bottom: 26px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.compact { margin-bottom: 18px; align-items: center; }
.section-head.compact h2 { font-size: 26px; }
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.page-head h1 { margin: 4px 0 8px; }
.page-head p { color: var(--body); max-width: 680px; font-size: 17px; }
.page-head.dark { background: var(--navy); color: var(--ivory); border: 0; }
.page-head.dark h1 { color: var(--ivory); }
.page-head.dark p { color: #D6DCE6; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
@media (min-width: 768px) { .panel { padding: 26px; } }
.panel-navy { background: var(--navy); color: var(--ivory); border: 0; }
.panel-navy h2 { color: var(--ivory); }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; margin-top: 6px; }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty strong { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.empty.compact { padding: 28px 16px; border: 0; }
.cta-strip { margin-top: 28px; background: var(--navy); color: var(--ivory); border-radius: 10px; padding: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cta-strip > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.cta-strip strong { font-family: var(--serif); font-size: 20px; }
.cta-strip span { color: #D6DCE6; }
.tag { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; font-weight: 600; }
.tag-navy { background: var(--navy); color: var(--gold-light); }
.tag-light { background: var(--ivory); color: var(--warn-ink); border: 1px solid var(--gold); left: auto; right: 10px; }
.badge-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); color: var(--gold-light); padding: 7px 12px; border-radius: 4px; font-size: 14px; align-self: flex-start; }
.round-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 14px; }
.grid-4, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { gap: 22px; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.square { aspect-ratio: 1 / 1; }
.card-media.portrait { aspect-ratio: 4 / 5; }
.zoom img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .zoom img { transform: scale(1.05); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
@media (min-width: 640px) { .card-body { padding: 16px 18px 18px; } }
.card-cat { font-size: 12px; color: var(--gold-text); font-weight: 600; letter-spacing: .04em; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.3; }
.card-price { font-size: 14px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-actions .button { flex: 1 1 auto; }
@media (max-width: 420px) { .product-card .card-actions .button { padding: 0 8px; font-size: 13px; } .card-title { font-size: 15px; } }
.cat-card { text-decoration: none; color: var(--navy); }
.cat-card-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; color: var(--gold-text); }
.cat-card-body span { display: flex; flex-direction: column; }
.cat-card-body strong { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.cat-card-body small { font-size: 13px; color: var(--muted); }

/* ---------- hero & curtain reveal ---------- */
.hero { background: var(--navy-900); color: var(--ivory); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 52px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 72px; padding-bottom: 80px; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: var(--ivory); font-size: clamp(34px, 6vw, 58px); line-height: 1.08; }
.hero-copy > p { font-size: 18px; color: #D6DCE6; max-width: 540px; }
.hero-points { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(201, 162, 74, .3); display: flex; flex-wrap: wrap; gap: 12px 26px; color: #E9E2D2; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points svg { color: var(--gold); }
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.curtain-frame { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; border-radius: 10px; background: var(--gold); padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px var(--gold-light); }
.curtain-window { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 2px var(--gold-text); }
.curtain-photo { display: block; width: 100%; height: 100%; padding-top: 56px; }
.curtain-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 4.5s ease-out; }
.curtain-frame.is-open .curtain-photo img { transform: scale(1); }
.drape { position: absolute; top: 0; bottom: 0; width: 51%; background: repeating-linear-gradient(90deg, #0E2142 0, #1D3C70 12px, #2A4C86 18px, #16305C 26px, #0A1830 36px, #0E2142 42px); transition: transform 1.3s cubic-bezier(.65, 0, .25, 1); z-index: 2; }
.drape-l { left: 0; transform-origin: left center; border-right: 6px solid var(--gold); box-shadow: inset -18px 0 26px rgba(0, 0, 0, .35), 8px 0 18px rgba(0, 0, 0, .3); }
.drape-r { right: 0; transform-origin: right center; border-left: 6px solid var(--gold); box-shadow: inset 18px 0 26px rgba(0, 0, 0, .35), -8px 0 18px rgba(0, 0, 0, .3); }
.curtain-frame.is-open .drape { transform: scaleX(.13); }
.fringe { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, var(--gold-text) 2px 4px); border-top: 2px solid var(--gold-light); }
.pelmet { position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 3; background: linear-gradient(var(--navy), var(--navy)) top / 100% 40px no-repeat, radial-gradient(circle at 50% 0, #1D3C70 0, var(--navy) 12px, var(--gold) 13px, var(--gold) 14px, transparent 15px) 0 40px / 30px 16px repeat-x; }
.pelmet::before { content: ''; position: absolute; top: 37px; left: 0; right: 0; height: 3px; background: var(--gold); }
.curtain-caption { align-self: flex-start; background: var(--ivory); color: var(--navy); padding: 12px 16px; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 2px; max-width: 300px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.curtain-caption.is-open { opacity: 1; transform: none; transition-delay: .7s; }
.curtain-caption span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.curtain-caption a { font-family: var(--serif); font-size: 18px; font-weight: 600; text-decoration: none; line-height: 1.25; }
@media (min-width: 900px) { .curtain-caption { position: absolute; left: -10px; bottom: 70px; } }
.curtain-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.curtain-dots button { width: 30px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.curtain-dots span { width: 8px; height: 6px; border-radius: 3px; background: rgba(250, 246, 238, .35); transition: width .3s ease, background-color .3s ease; }
.curtain-dots [aria-pressed="true"] span { width: 22px; background: var(--gold); }
.ship-band { background: var(--gold); color: var(--navy-900); }
.ship-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px; text-align: center; padding-top: 14px; padding-bottom: 14px; }
.ship-band strong { font-family: var(--serif); font-size: 19px; }
.ship-band a { color: var(--navy-900); font-weight: 600; }

/* ---------- stories ---------- */
.stories-panel { padding: 22px 18px; }
.story-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.story { flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; }
.story-ring { width: 84px; height: 84px; border-radius: 50%; border: 2px solid #B8862F; padding: 3px; display: block; transition: transform .2s ease; }
.story:hover .story-ring { transform: scale(1.05); }
.story-ring img, .story-ring video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-title { font-size: 14px; text-align: center; line-height: 1.3; }
.story-viewer { position: fixed; inset: 0; background: rgba(8, 16, 30, .9); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 14px; animation: drop .2s ease; }
.story-card { position: relative; width: 100%; max-width: 420px; max-height: 100%; background: var(--navy-900); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.story-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(250, 246, 238, .3); }
.story-bars span.on { background: var(--gold); }
.story-top { position: absolute; top: 20px; left: 14px; right: 10px; display: flex; justify-content: space-between; align-items: center; color: var(--ivory); z-index: 2; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.story-media { background: #000; aspect-ratio: 9 / 13; max-height: 70vh; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: contain; }
.story-caption { padding: 14px 18px 8px; color: #E9E2D2; font-size: 15px; }
.story-nav { display: flex; justify-content: space-between; padding: 6px 14px 14px; }

/* ---------- about band, steps ---------- */
.about-band { background: var(--navy); color: var(--ivory); border-radius: 12px; overflow: hidden; display: grid; }
@media (min-width: 900px) { .about-band { grid-template-columns: 1.1fr .9fr; } }
.about-copy { padding: 34px 22px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .about-copy { padding: 52px 46px; } }
.about-copy h2 { color: var(--ivory); }
.about-copy p { color: #D6DCE6; font-size: 17px; line-height: 1.7; }
.about-media { background: #fff; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.about-media img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 4px 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold-light); line-height: 1.1; }
.stats dd { margin: 0; font-size: 14px; color: #D6DCE6; }
.steps-band { background: var(--sand); }
.steps { list-style: none; padding: 0; margin: 0 0 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.steps li > span { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.steps p { color: var(--body); font-size: 15px; }

/* ---------- shop ---------- */
.shop-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); text-decoration: none; font-size: 15px; white-space: nowrap; }
.chip.is-on { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.shop-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-field { position: relative; flex: 1 1 260px; display: block; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 42px; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.inline-select select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.result-count { margin: 6px 0 16px; font-size: 15px; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold-text); }
input[type=file] { font-size: 14px; max-width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.panel { border: 1px solid var(--line); padding: 20px; }
legend { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); padding: 0 6px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
@media (min-width: 900px) { .form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.form-grid > h2, .form-grid > legend, .span-all { grid-column: 1 / -1; }
.form-grid > h2 { font-size: 22px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (min-width: 760px) { .option-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.option-card span { display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 12px; border: 2px solid var(--line); border-radius: 6px; background: #fff; transition: border-color .2s ease, background-color .2s ease; }
.option-card strong { color: var(--navy); font-size: 15px; }
.option-card small { color: var(--muted); font-weight: 400; }
.option-card input:checked + span { border-color: var(--navy); background: #F3F0E8; }
.option-card input:focus-visible + span { outline: 3px solid var(--gold); }
.upload-box { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px dashed var(--gold); background: #FBF7EE; border-radius: 6px; padding: 16px; margin-bottom: 14px; cursor: pointer; color: var(--gold-text); }
.upload-box span { display: flex; flex-direction: column; flex: 1 1 200px; color: var(--navy); }
.upload-box small { color: var(--muted); font-weight: 400; }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--navy); font-weight: 500; }
.pill input:checked + span { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.pill input:focus-visible + span { outline: 3px solid var(--gold); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; color: var(--navy); cursor: pointer; }
.stepper input { width: 56px !important; min-height: 46px !important; border: 0 !important; text-align: center; font-weight: 600; padding: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; }
.stepper.small button { width: 40px; height: 40px; }

/* ---------- product ---------- */
.product-layout { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } .gallery { position: sticky; top: 16px; } }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.swap { animation: fadeIn .35s ease; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 76px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery-thumbs button.is-on { border-color: var(--navy); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 16px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price-row strong { font-size: 22px; color: var(--navy); }
.product-form { display: flex; flex-direction: column; gap: 16px; }
.product-form legend { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.custom-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
@media (max-width: 420px) { .custom-size { grid-template-columns: 1fr 1fr; } }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qty-row .label { font-size: 15px; font-weight: 600; }
.perks { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--body); }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks svg { color: var(--gold-text); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-family: var(--sans); color: var(--gold-text); font-size: 22px; transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > p, .accordion details > ul { margin: 0 0 16px; color: var(--body); font-size: 15px; }
.accordion ul { padding-left: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- cart ---------- */
.cart-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; } .summary { position: sticky; top: 16px; } }
.cart-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.cart-item img { width: 80px; height: 100px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-info strong { font-family: var(--serif); color: var(--navy); font-size: 17px; }
.cart-item-info small { color: var(--muted); font-size: 13px; }
.cart-item-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 90px minmax(0, 1fr) auto; } .cart-item-actions { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.link-danger { border: 0; background: none; color: var(--danger); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 6px; }
.summary { background: var(--navy); color: var(--ivory); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { color: var(--ivory); font-size: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #D6DCE6; }
.summary-row span:last-child { text-align: right; }
.summary-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.summary-note { font-size: 13px; color: #AEB6C4; }
.message-preview { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 14px; line-height: 1.55; background: rgba(250, 246, 238, .07); border: 1px solid rgba(226, 196, 126, .3); border-radius: 6px; padding: 12px; color: #E9E2D2; max-height: 280px; overflow: auto; }
.message-preview.light { background: var(--ivory); border-color: var(--line); color: var(--ink); max-height: none; }
.done-panel { display: flex; flex-direction: column; gap: 16px; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- track ---------- */
.track-form { display: grid; gap: 12px; margin-top: 18px; color: #E9E2D2; }
@media (min-width: 720px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.track-form input { border-color: var(--gold) !important; }
.alert-panel { border-color: #E4B4AF; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.alert-panel strong { font-family: var(--serif); font-size: 21px; color: #7A231B; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.track-head h2 { font-size: 28px; }
.status-pill { align-self: flex-start; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.progress { height: 8px; background: var(--sand); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--navy); border-radius: 4px; animation: grow 1s cubic-bezier(.2, .7, .2, 1); }
@keyframes grow { from { width: 0; } }
.info-tiles { display: grid; gap: 12px; }
@media (min-width: 720px) { .info-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-tiles > div { background: var(--ivory); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.info-tiles small { font-size: 13px; color: var(--muted); }
.info-tiles strong { color: var(--navy); font-weight: 500; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--navy); }
.timeline .dot { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 2px solid #D8CFBC; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.timeline li.done .dot { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
.timeline li.current .dot { background: var(--warn-bg); border-color: #B8862F; box-shadow: 0 0 0 0 rgba(184, 134, 47, .45); animation: pulse 2s ease-out infinite; }
.timeline li.current .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #B8862F; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(184, 134, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 134, 47, 0); } }
.timeline strong { display: block; color: var(--navy); padding-top: 4px; }
.timeline li.todo strong { color: #6B7180; font-weight: 500; }
.timeline small { color: var(--muted); }

/* ---------- about & branches ---------- */
.about-intro { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.about-intro h1 { margin: 4px 0 16px; }
.about-intro .lead + .lead { margin-top: 12px; }
.about-logo img { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--gold-light); box-shadow: var(--shadow); }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.stat-cards div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column-reverse; }
.stat-cards dt { font-family: var(--serif); font-size: clamp(22px, 4vw, 30px); font-weight: 700; color: var(--navy); }
.stat-cards dd { margin: 0; font-size: 13px; color: var(--muted); }
.contact-cards { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-cards .panel { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.branches-band { background: var(--sand); }
.branch-card .card-body { gap: 12px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; display: flex; flex-direction: column; }
.map-box { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #E8EEF3; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* ---------- help ---------- */
.help-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .help-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; } .help-nav { position: sticky; top: 16px; flex-direction: column; } }
.help-nav { display: flex; gap: 6px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.help-nav a { flex: 0 0 auto; min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 4px; text-decoration: none; }
.help-nav a:hover { background: var(--sand); }
.policy { display: flex; flex-direction: column; gap: 12px; color: var(--body); scroll-margin-top: 16px; }
.policy h2 { font-size: 24px; }
.policy-banner { display: flex; gap: 14px; align-items: center; background: var(--navy); color: var(--ivory); margin: -20px -20px 4px; padding: 20px; border-radius: 10px 10px 0 0; }
@media (min-width: 768px) { .policy-banner { margin: -26px -26px 4px; padding: 24px 26px; } }
.policy-banner h2 { color: var(--ivory); }
.policy-banner p { color: #D6DCE6; }
.policy-banner svg { color: var(--gold-light); flex: 0 0 auto; }

/* ---------- catalogue book ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .shelf { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; } }
.shelf-book { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 4px 10px 10px 4px; overflow: hidden; cursor: pointer; background: var(--navy); box-shadow: 0 12px 26px rgba(12, 27, 51, .2); outline: 3px solid transparent; outline-offset: 3px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; text-align: left; }
.shelf-book:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 22px 40px rgba(12, 27, 51, .28); }
.shelf-book.is-on { outline-color: #B8862F; }
.shelf-book img { width: 100%; height: 100%; object-fit: cover; }
.shelf-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 12px; background: #0A1830; border-right: 2px solid var(--gold); z-index: 1; }
.shelf-label { position: absolute; left: 12px; right: 0; bottom: 0; background: var(--navy); border-top: 2px solid var(--gold); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.shelf-label strong { font-family: var(--serif); color: var(--ivory); font-size: 16px; line-height: 1.2; }
.shelf-label small { color: var(--gold-light); font-size: 12px; }
.book-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.book-stage { background: #E9DFC9; border-radius: 14px; padding: 14px; box-shadow: inset 0 2px 12px rgba(0, 0, 0, .08); }
@media (min-width: 768px) { .book-stage { padding: 32px; } }
.book { display: flex; flex-direction: column-reverse; max-width: 1000px; margin: 0 auto; filter: drop-shadow(0 18px 26px rgba(12, 27, 51, .28)); }
@media (min-width: 820px) { .book { flex-direction: row; } }
.book-left { flex: 1 1 0; min-width: 0; background: var(--paper); border-radius: 0 0 8px 8px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 820px) { .book-left { border-radius: 8px 0 0 8px; padding: 30px; box-shadow: inset -22px 0 26px -18px rgba(0, 0, 0, .25); } }
.book-left h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
[data-fabric-details].swap { animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.book-controls { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.book-controls small { display: block; }
[data-fabric-select].is-selected { background: var(--ok-bg); color: var(--ok-ink); border: 2px solid var(--wa); }
.book-right { flex: 1 1 0; min-width: 0; position: relative; aspect-ratio: 4 / 5; perspective: 1800px; background: var(--paper); border-radius: 8px 8px 0 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
@media (min-width: 820px) { .book-right { border-radius: 0 8px 8px 0; } }
.book-right:focus-visible { outline: 3px solid var(--gold); }
.page { position: absolute; inset: 0; padding: 14px; background: var(--paper); border-radius: inherit; overflow: hidden; }
@media (min-width: 768px) { .page { padding: 18px; } }
.page img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; pointer-events: none; }
.page-label { position: absolute; left: 24px; bottom: 24px; background: rgba(255, 253, 248, .95); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 3px; }
.leaf { transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; z-index: 3; }
.leaf.flip-next { animation: flipNext .75s cubic-bezier(.45, 0, .2, 1) forwards; }
.leaf.flip-prev { animation: flipPrev .75s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes flipNext { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
@keyframes flipPrev { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
.leaf-shade { position: absolute; inset: 0; pointer-events: none; }
.flip-next .leaf-shade { animation: shadeOut .75s ease forwards; }
.flip-prev .leaf-shade { animation: shadeIn .75s ease forwards; }
@keyframes shadeOut { to { background: rgba(0, 0, 0, .45); } }
@keyframes shadeIn { from { background: rgba(0, 0, 0, .45); } to { background: rgba(0, 0, 0, 0); } }
.turning .base::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 60%); animation: fadeOut .75s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.page-edge { position: absolute; top: 6px; bottom: 6px; right: -6px; width: 6px; background: repeating-linear-gradient(90deg, #EFE6D3 0 1px, var(--paper) 1px 2px); border-radius: 0 4px 4px 0; }
.spine-shadow { position: absolute; top: 0; bottom: 0; left: 0; width: 34px; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent); pointer-events: none; z-index: 4; display: none; }
@media (min-width: 820px) { .spine-shadow { display: block; } }
.book-cover { position: absolute; inset: 0; z-index: 5; transform-origin: left center; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: repeating-linear-gradient(90deg, #102446 0, #16305C 3px, #102446 6px); border: 3px solid var(--gold); border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--ivory); }
.book-cover img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.book-cover strong { font-family: var(--serif); font-size: 24px; }
.book-cover small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.book-cover.opening { animation: flipNext 1.1s cubic-bezier(.5, 0, .2, 1) .25s forwards; }
.thumb-strip { max-width: 1000px; margin: 18px auto 0; display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.thumb-strip button { position: relative; flex: 0 0 72px; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer; scroll-snap-align: start; transition: transform .2s ease; }
.thumb-strip button:hover { transform: translateY(-2px); }
.thumb-strip button[aria-current="true"] { border-color: var(--navy); }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip .tick { display: none; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 12px; align-items: center; justify-content: center; }
.thumb-strip .picked .tick { display: inline-flex; }
.selection { display: flex; flex-wrap: wrap; gap: 22px; }
.selection-list { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.selection-actions { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.sel-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--ivory); border-radius: 30px; padding: 4px 4px 4px 4px; max-width: 100%; }
.sel-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sel-chip span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sel-chip strong { font-size: 14px; color: var(--navy); }
.sel-chip small { font-size: 12px; color: var(--muted); }
.sel-chip button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--danger); font-size: 20px; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #D6DCE6; margin-top: 40px; }
.footer-grid { display: grid; gap: 30px; padding-top: 50px; padding-bottom: 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid > div, .footer-grid > nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h2 { font-size: 19px; color: var(--ivory); margin-bottom: 2px; }
.footer-grid a { color: #D6DCE6; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid var(--gold); }
.footer-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.footer-logo strong { font-family: var(--serif); font-size: 22px; color: var(--ivory); }
.footer-logo small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.round-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(226, 196, 126, .5); display: inline-flex !important; align-items: center; justify-content: center; color: var(--gold-light) !important; }
.footer-bottom { border-top: 1px solid rgba(226, 196, 126, .2); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 90px; font-size: 14px; color: #AEB6C4; }
.footer-bottom-inner a { color: #AEB6C4; margin-right: 14px; }
@media (min-width: 768px) { .footer-bottom-inner { padding-bottom: 20px; } }
.wa-float { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(12, 27, 51, .3); z-index: 50; transition: transform .2s ease; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: var(--navy); color: var(--ivory); padding: 12px 18px; border-radius: 6px; box-shadow: 0 12px 30px rgba(12, 27, 51, .3); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; font-size: 15px; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold-light); font-weight: 600; margin-left: 10px; }

/* ---------- motion ---------- */
.fade-in { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.fade-in-2 { animation: fadeUp .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.will-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* =====================================================
   STAFF DASHBOARD (mobile first)
   ===================================================== */
.admin-body { background: #F4F1EA; }
.admin-top { background: var(--navy-900); color: var(--ivory); position: sticky; top: 0; z-index: 40; }
.admin-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter); max-width: 1360px; margin: 0 auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; min-width: 0; }
.admin-brand img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid var(--gold); }
.admin-brand strong { font-family: var(--serif); font-size: 17px; display: block; line-height: 1.1; }
.admin-brand small { font-size: 12px; color: #AEB6C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.admin-top-actions { display: flex; align-items: center; gap: 4px; }
.admin-top-actions a { color: var(--ivory); }
.admin-tabs { background: var(--navy); border-top: 1px solid rgba(226, 196, 126, .2); }
.admin-tabs nav { display: flex; gap: 4px; overflow-x: auto; padding: 6px var(--gutter); max-width: 1360px; margin: 0 auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-tabs nav::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 22px; color: #D6DCE6; text-decoration: none; font-size: 15px; white-space: nowrap; }
.admin-tabs a[aria-current="page"] { background: var(--gold); color: var(--navy-900); font-weight: 600; }
.admin-main { max-width: 1360px; margin: 0 auto; padding: 18px var(--gutter) 110px; display: flex; flex-direction: column; gap: 18px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-head h1 { font-size: clamp(24px, 5vw, 30px); }
.admin-help { font-size: 14px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid #E5DECF; border-radius: 10px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.kpi strong { font-family: var(--serif); font-size: 30px; color: var(--navy); }
.kpi span { font-size: 14px; color: var(--muted); }
.a-list { display: flex; flex-direction: column; gap: 10px; }
.a-item { background: #fff; border: 1px solid #E5DECF; border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.a-item.no-thumb { grid-template-columns: minmax(0, 1fr); }
.a-item > img, .a-thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.a-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.a-info strong { color: var(--navy); font-size: 16px; overflow-wrap: anywhere; }
.a-info small { color: var(--muted); font-size: 13px; }
.a-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.a-actions form { display: contents; }
.a-actions .button { flex: 1 1 auto; min-height: 44px; padding: 0 12px; font-size: 14px; }
@media (min-width: 900px) { .a-item { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; } .a-item.no-thumb { grid-template-columns: minmax(0, 1fr) auto; } .a-actions { grid-column: auto; justify-content: flex-end; } .a-actions .button { flex: 0 0 auto; } }
.chip-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; align-self: flex-start; }
.chip-status.ok { background: #E3EEE6; color: var(--ok-ink); }
.chip-status.off { background: #ECEAE4; color: #4A5060; }
.chip-status.warn { background: #FBF0DC; color: var(--warn-ink); }
.chip-status.navy { background: #E6EBF3; color: var(--navy); }
.a-card { background: #fff; border: 1px solid #E5DECF; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .a-card { padding: 22px; } }
.a-card h2 { font-size: 20px; }
.a-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.a-filters .search-field { flex: 1 1 240px; }
.a-filters select { width: auto; flex: 0 1 auto; }
.save-bar { position: sticky; bottom: 0; z-index: 30; background: rgba(244, 241, 234, .96); backdrop-filter: blur(6px); border-top: 1px solid #E5DECF; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.save-bar .button { flex: 1; }
@media (min-width: 768px) { .save-bar { position: static; background: none; border: 0; margin: 0; padding: 0; } .save-bar .button { flex: 0 0 auto; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-tile { position: relative; background: #fff; border: 1px solid #E5DECF; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.photo-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--sand); }
.photo-tile .cover-tag { position: absolute; top: 6px; left: 6px; background: var(--navy); color: var(--gold-light); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px; }
.photo-tile-actions { display: flex; }
.photo-tile-actions button { flex: 1; min-height: 40px; border: 0; border-top: 1px solid #E5DECF; background: #fff; color: var(--navy); cursor: pointer; font-size: 13px; }
.photo-tile-actions button + button { border-left: 1px solid #E5DECF; }
.photo-tile-actions .danger { color: var(--danger); }
.fabric-edit { display: grid; gap: 10px; }
@media (min-width: 640px) { .fabric-edit { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.fabric-row { background: #fff; border: 1px solid #E5DECF; border-radius: 8px; padding: 10px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
.fabric-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.fabric-row .fields { display: flex; flex-direction: column; gap: 6px; }
.fabric-row input { min-height: 42px !important; font-size: 15px !important; }
.fabric-row .row-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.fabric-row .row-actions button, .fabric-row .row-actions label { flex: 1; min-height: 40px; font-size: 13px; border: 1px solid #E5DECF; background: #fff; border-radius: 4px; cursor: pointer; color: var(--navy); display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; }
.fabric-row .row-actions .danger { color: var(--danger); border-color: #E4B4AF; }
.toggle { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--navy); }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.confirm-box { border: 1px solid #E4B4AF; background: #FBEDEC; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: #7A231B; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--navy-900); }
.login-card { width: 100%; max-width: 400px; background: var(--ivory); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.login-card img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--gold); }
.install { max-width: 640px; margin: 0 auto; padding: 32px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.install-logo { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; }
.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-card fieldset { background: #fff; border: 1px solid #E5DECF; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.steps-list { padding-left: 20px; }
.wa-preview { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 14px; background: var(--ivory); border: 1px solid #E5DECF; border-radius: 6px; padding: 12px; }

/* desktop header fit */
@media (min-width: 1180px) {
  .nav-panel { min-width: 0; }
  .site-nav { flex: 1 1 auto; min-width: 0; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 0 8px; font-size: 14.5px; }
  .brand-label { padding-right: 46px; }
}
@media (min-width: 1180px) and (max-width: 1379px) { .wa-btn span { display: none; } }
