/* Jhoanes Bakery — Wholesale Digital Catalog
   Visual direction: contemporary French pâtisserie — warm ivory, champagne,
   soft blush, warm taupe, hairline gold details. */

:root {
  --bg: #ffffff;          /* white */
  --surface: #ffffff;
  --cream: #faf9f7;       /* near-white (small areas only) */
  --beige: #e9e9e9;
  --champagne: #f8f5ee;   /* faint gold tint */
  --blush: #fbf8f2;
  --gray: #f4f4f4;
  --line: #e8e8e8;        /* hairlines */
  --gold: #b08d57;        /* muted gold — accents only */
  --ink: #111111;
  --ink-soft: #2e2e2e;
  --muted: #5c5c5c;       /* ≥4.5:1 on white */
  --accent: #876632;      /* dark gold for small labels (≥4.5:1) */
  --brown: #111111;       /* black (buttons, active states) */
  --brown-dark: #000000;
  --new: #4c7a5e;
  --promo: #876632;
  --danger: #b3412f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .045);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 30px rgba(0, 0, 0, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Cormorant Garamond", "Didot", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
strong, b { font-weight: 600; }
code { font-size: .88em; background: var(--cream); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-logo { height: 50px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.05; letter-spacing: .3px; white-space: nowrap; }
.brand-sub {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14.5px; line-height: 1.2;
  color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.main-nav { display: none; align-items: center; gap: 2px; flex: none; }
.main-nav a, .main-nav .nav-cta { white-space: nowrap; }
.main-nav a, .mobile-menu a {
  text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--ink-soft); letter-spacing: .2px;
  padding: 10px 12px; border-radius: 10px; transition: color .2s var(--ease);
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid var(--brown); background: transparent; color: var(--brown-dark);
  font-weight: 500; font-size: 14.5px; letter-spacing: .2px; padding: 9px 16px; border-radius: 999px; cursor: pointer; margin-left: 6px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-cta:hover { background: var(--brown); color: #fff; }

.lang-switch { display: inline-flex; background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .8px; color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch button.active { background: var(--surface); color: var(--brown-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .10); }
.lang-switch.small button { font-weight: 500; letter-spacing: .2px; font-size: 14px; }

.menu-btn {
  width: var(--tap); height: var(--tap); flex: none; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
}
.menu-btn span { width: 22px; height: 1.5px; background: var(--ink-soft); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column; gap: 0;
  padding: 6px var(--gutter) 18px; border-top: 1px solid var(--line); background: var(--bg);
  animation: fadeUp .25s var(--ease) both;
}
.mobile-menu a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
.mobile-menu a:active { background: var(--cream); }
.mobile-menu .nav-cta { margin: 14px 0 0; padding: 14px; font-size: 16px; }

@media (min-width: 1100px) {
  .main-nav { display: flex; }
  .menu-btn, .mobile-menu, .quick-nav { display: none !important; }
}
@media (min-width: 900px) {
  .brand-logo { height: 58px; }
  .brand-name { font-size: 26px; }
  .brand-sub { font-size: 16px; }
  :root { --header-h: 76px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 44px; }
  .brand { gap: 8px; }
  .brand-text { padding-left: 8px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 13px; line-height: 1.15; white-space: normal; max-width: 112px; }
  .header-inner { gap: 8px; }
}

/* ---------- Quick access (phones & tablets) ---------- */
.quick-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 1200px; margin: 12px auto 0; padding: 0 var(--gutter); }
.quick-nav .quick-link.primary { grid-column: 1 / -1; }
@media (min-width: 600px) { .quick-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick-nav .quick-link.primary { grid-column: auto; } }
.quick-link {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.quick-link svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-link:active { background: var(--cream); }
.quick-link.primary { background: var(--brown); border-color: var(--brown); color: #fff; }
.quick-link.primary:active { background: var(--brown-dark); }
.quick-link[hidden] { display: none !important; }
@media (max-width: 359px) {
  .quick-link { font-size: 13px; padding: 8px 10px; gap: 5px; }
  .brand-sub { display: none; }
}

html, body { max-width: 100%; }
img, video, iframe, input, select, textarea { max-width: 100%; }

/* ---------- Promo banner ---------- */
.promo-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 1200px; margin: 14px auto 0; width: calc(100% - 2 * var(--gutter));
  padding: 12px 16px; border-radius: 12px; text-decoration: none;
  background: var(--blush); border: 1px solid #e6d9bf; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.promo-banner:hover { border-color: #d9c49b; }
.promo-banner-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--promo); border: 1px solid #d9c49b; padding: 2px 8px; border-radius: 999px; }
.promo-banner-text { flex: 1 1 180px; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; }
.promo-banner-cta { font-size: 13.5px; font-weight: 500; color: var(--promo); white-space: nowrap; }
.promo-banner-cta::after { content: " →"; }

/* ---------- Sections ---------- */
main { display: block; }
.section { max-width: 1200px; margin: 0 auto; padding: 26px var(--gutter) 8px; scroll-margin-top: calc(var(--header-h) + 8px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: .2px; }
.section-title::after { content: ""; display: block; width: 38px; height: 1px; margin-top: 10px; background: var(--gold); }
@media (min-width: 640px) { .section-title { font-size: 40px; } .section { padding-top: 40px; } }

/* New products rail: horizontal on phones, grid on larger screens */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: calc((100% - 36px) / 3.2); } }
@media (min-width: 980px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 8px; gap: 24px; } }

.promo-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #e8e8e8; display: flex; flex-direction: column; }
.promo-card-media { aspect-ratio: 16 / 9; background: var(--blush); display: flex; align-items: center; justify-content: center; }
.promo-card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.promo-card-body { padding: 18px 20px 20px; }
.promo-card h3 { margin: 10px 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.promo-card p { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.promo-dates { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted) !important; }

/* ---------- Catalog toolbar ---------- */
.toolbar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 20;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 0;
}
.search {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  max-width: 620px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.search svg { width: 18px; height: 18px; margin-left: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 10px; font-size: 16px; min-height: 46px; }
.search input::placeholder { color: #8a8a8a; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: var(--cream); color: var(--ink-soft); width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; font-size: 18px; line-height: 1; cursor: pointer; }

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px;
  scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; min-height: 40px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .15px; white-space: nowrap; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip.active { background: var(--brown); border-color: var(--brown); color: #fff; }
.chip .count { opacity: .6; font-size: 11.5px; margin-left: 6px; }
@media (hover: hover) { .chip:not(.active):hover { border-color: var(--gold); color: var(--ink); } }
@media (min-width: 700px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 14px 0 16px; } }
@media (max-width: 699px) {
  .chips { display: none; }
  .toolbar { padding-top: 6px; }
  .search input { min-height: 42px; padding: 9px 10px; }
  .toolbar .cat-select { margin: 7px 0 8px; }
  .toolbar .cat-select-btn { min-height: 48px; padding: 5px 14px; }
  .toolbar .cat-select-value { font-size: 16px; }
}

/* Category dropdown (phones) */
.cat-select { position: relative; margin: 10px 0 10px; }
@media (min-width: 700px) { .cat-select { display: none; } }
.cat-select-btn {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 54px; padding: 7px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-select-btn[aria-expanded="true"] { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.cat-select-caption { grid-column: 1; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); line-height: 1.3; }
.cat-select-value { grid-column: 1; font-size: 16.5px; font-weight: 600; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-select-value .count, .cat-option .count { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cat-select .chev { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cat-select-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cat-select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(17, 17, 17, .14);
  animation: fadeUp .2s var(--ease) both;
}
.cat-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  font-size: 15.5px; text-align: left; color: var(--ink); cursor: pointer; overflow-wrap: anywhere;
}
.cat-option:hover, .cat-option:focus-visible { background: var(--cream); }
.cat-option[aria-current="true"] { background: var(--champagne); font-weight: 600; }
.cat-option + .cat-option { margin-top: 2px; }

.cat-section { margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 130px); }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 12px 2px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.cat-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.15; letter-spacing: .2px; }
.cat-count { color: var(--muted); font-size: 13px; letter-spacing: .3px; white-space: nowrap; }
.results-info { color: var(--ink-soft); font-size: 14.5px; margin: 10px 2px 14px; }

/* Soft entrance when switching categories / searching */
#catalogList > *, #newRail > *, #promoGrid > * { animation: fadeUp .38s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 359px) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  padding: 0; text-align: left; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Uniform photo frame; the full photo is centered inside it (never cropped or stretched) */
.card-media {
  position: relative; aspect-ratio: 4 / 3; padding: 8px 8px 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-media > img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; object-position: center; border-radius: 9px;
  transition: transform .5s var(--ease);
}
.card-media > .ph { border-radius: 9px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #d9c49b; }
  .card:hover .card-media > img { transform: scale(1.015); }
}
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; }
.badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: #fff; line-height: 1.4;
}
.badge.new { background: var(--new); }
.badge.promo { background: var(--promo); }
.badge.off { background: #eeeeee; color: var(--ink-soft); }
.badge.sched { background: #e8edf4; color: #3d587a; }
.badge.expired { background: #f3e6e2; color: var(--danger); }
.badge.live { background: #e5f0e8; color: var(--new); }
.card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; flex: 1; }
.card-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); }
.card-name { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: .1px; }
.card-desc { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.card-price::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 9px; }
.price-label { font-size: 10px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.price { font-size: 19px; font-weight: 600; color: var(--brown-dark); letter-spacing: .1px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .card-media { padding: 6px 6px 0; }
  .card-media > img, .card-media > .ph { border-radius: 8px; }
  .badges { top: 11px; left: 11px; }
  .card-body { padding: 10px 11px 12px; gap: 4px; }
  .card-name { font-size: 17.5px; }
  .card-desc { display: none; }
  .price { font-size: 18px; }
}

.ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; background: linear-gradient(160deg, var(--cream), var(--champagne)); color: #9a9a9a; text-align: center; }
.ph img { width: 50%; height: auto; opacity: .4; }
.ph small { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; padding: 0 6px; }

.empty { text-align: center; color: var(--ink-soft); padding: 50px 20px; }
.empty strong { display: block; font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* ---------- Wholesale CTA ---------- */
.apply-cta {
  margin: 22px 0 34px; text-align: center; padding: 40px 22px;
  background: linear-gradient(180deg, var(--champagne), var(--cream)); border: 1px solid var(--line); border-radius: 18px;
}
.apply-cta h2 { margin: 0 auto 10px; max-width: 560px; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; }
.apply-cta h2::after { content: ""; display: block; width: 38px; height: 1px; margin: 14px auto 0; background: var(--gold); }
.apply-cta p { margin: 0 auto 22px; max-width: 480px; color: var(--ink-soft); }
@media (min-width: 640px) { .apply-cta h2 { font-size: 38px; } }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 40px var(--gutter) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.footer-logo { width: 150px; height: auto; margin: 0 auto 8px; }
.footer-name { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.footer-sub { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--line); max-width: 520px; }
.footer-links a, .footer-links > button { background: none; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 10px 6px; }
.footer-links a:hover, .footer-links > button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.footer-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.admin-link { margin-top: 12px; background: none; border: 0; padding: 10px; font-size: 12px; color: #8a8a8a; cursor: pointer; }
.admin-link:hover { color: var(--ink-soft); text-decoration: underline; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadeIn .25s var(--ease) both; }
.modal-card {
  position: relative; background: var(--surface); width: 100%; max-width: 440px; max-height: 92vh; max-height: 92dvh;
  overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0; box-shadow: 0 20px 60px rgba(17, 17, 17, .18);
  padding-bottom: env(safe-area-inset-bottom); animation: rise .3s var(--ease) both;
}
@media (min-width: 640px) { .modal-card { border-radius: 18px; } }
.modal-x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(17, 17, 17, .1); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
@keyframes rise { from { transform: translateY(16px); opacity: .5; } }
@keyframes fadeIn { from { opacity: 0; } }

.product-detail { max-width: 540px; }
/* Full photo, centered, natural proportions */
.pd-media {
  width: 100%; padding: 14px 14px 0; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.pd-media > img {
  max-width: 100%; max-height: 56vh; width: auto; height: auto;
  object-fit: contain; object-position: center; border-radius: 12px;
}
.pd-media > .ph { aspect-ratio: 4 / 3; border-radius: 12px; }
.pd-body { padding: 16px 22px 26px; }
.pd-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.pd-badges:empty { display: none; }
.pd-cat { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.pd-name { margin: 4px 0 10px; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; }
.pd-desc { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.pd-price { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.pd-price .price { font-size: 26px; }

.login-card, .form-card { padding: 28px 22px 26px; }
.login-card { max-width: 380px; }
.form-card.wide, .apply-card { max-width: 600px; }
.login-card h2, .form-card h2, .apply-success h2 { margin: 0 44px 14px 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
.form-intro { margin: -6px 0 18px; }

/* ---------- Forms ---------- */
fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
fieldset + fieldset { padding-top: 16px; border-top: 1px solid var(--line); }
legend { font-weight: 600; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; padding: 0; }
fieldset + fieldset legend { padding-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); min-width: 0; }
.field-group { margin-bottom: 4px; }
.group-label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.field-group .field > span { font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea, .admin-bar input, .admin-bar select {
  width: 100%; border: 1px solid #dcdcdc; border-radius: 10px; background: #fff;
  padding: 11px 12px; font-size: 16px; font-weight: 400; color: var(--ink); outline: none; min-height: var(--tap);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-bar input:focus, .admin-bar select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 500; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 2fr 1fr 1fr; } }
.hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.switch-field { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 12px; cursor: pointer; min-height: 32px; }
.switch-field input { width: 22px; height: 22px; accent-color: var(--brown); flex: none; }
.form-error { color: var(--danger); font-size: 14px; margin: 0 0 12px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.apply-success { text-align: center; padding: 32px 10px 12px; }
.apply-success h2 { margin: 0 0 8px; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #e9f2ec; border: 1px solid #d3e5d9; color: var(--new); font-size: 26px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap);
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px;
  font-size: 15px; font-weight: 500; letter-spacing: .2px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brown); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .10); }
.btn-primary:hover { background: var(--brown-dark); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: var(--cream); color: var(--brown-dark); border-color: var(--beige); }
.btn-secondary:hover { background: var(--champagne); border-color: #d9c49b; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brown); color: var(--ink); }
.btn-danger { background: #fbeee9; color: var(--danger); }
.btn-danger:hover { background: #f6dfd8; }
.file-btn { cursor: pointer; }

/* ---------- Admin ---------- */
.admin { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; padding-bottom: 60px; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: 8px; }
.admin-brand .brand-logo { height: 44px; }
.admin-top strong { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-top-sub { display: block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.admin-tabs {
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: env(safe-area-inset-top) !important;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.admin-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .admin-tabs { justify-content: center; } }
.tab {
  border: 0; background: none; padding: 14px 12px; min-height: 48px; font-weight: 500; font-size: 14.5px;
  color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: color .2s var(--ease);
}
.tab.active { color: var(--brown-dark); border-bottom-color: var(--gold); }
.tab-logout { color: var(--danger); }
.admin-notice { max-width: 1000px; margin: 16px auto 0; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--ink-soft); }
.admin-notice p { margin: 6px 0 0; }
.admin-notice.warn { background: #fcf2df; border-color: #f0e0bd; color: #6f4c0e; width: calc(100% - 2 * var(--gutter)); }
.admin-section { max-width: 1000px; margin: 0 auto; padding: 16px var(--gutter); animation: fadeUp .3s var(--ease) both; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin-bar input { flex: 1 1 200px; width: auto; }
.admin-bar select { flex: 1 1 200px; width: auto; }
.admin-bar .muted { flex: 1 1 260px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s var(--ease); }
.stat:hover { border-color: var(--gold); }
.stat b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--brown-dark); line-height: 1.05; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.quick-actions .btn { flex: 1 1 200px; }

.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-group { margin: 18px 0 4px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.row { display: grid; align-items: center; gap: 10px 12px; grid-template-columns: 64px 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.row.inactive { opacity: .65; background: #f6f6f6; }
.row-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.row-thumb > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.row-thumb .ph img { width: 80%; }
.row-thumb .ph small { display: none; }
.row-main { min-width: 0; }
.row-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.row-title .badge { margin-left: 6px; vertical-align: 2px; font-size: 9.5px; padding: 2px 6px; }
.row-meta { font-size: 13px; color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-soft); font-size: 15px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.icon-btn:hover:not(:disabled) { border-color: var(--brown); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.price-edit { display: flex; align-items: center; gap: 6px; }
.price-edit .cur { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.price-edit input { width: 90px; min-height: 40px; border: 1px solid #dcdcdc; border-radius: 10px; padding: 7px 8px; font-size: 16px; }
.price-edit input:focus { outline: none; border-color: var(--gold); }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #d0d0d0; transition: background .2s var(--ease); }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.toggle input:checked + span { background: var(--new); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

@media (max-width: 720px) {
  .row { grid-template-columns: 64px 1fr; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
  .price-edit { flex: 1 1 100%; }
  .price-edit input { flex: 1; max-width: 130px; }
  .row-actions > .toggle, .row-actions > .toggle-label { margin-right: auto; }
}

.img-edit { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.img-preview { width: 112px; height: 84px; flex: none; border-radius: 10px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.img-preview.wide { width: 128px; height: 72px; }
.img-preview > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.img-preview .ph img { width: 70%; }
.img-preview .ph small { display: none; }
.img-controls { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; align-items: flex-start; }
.img-controls input[type="text"] { width: 100%; min-width: 0; }
.img-controls .btn { white-space: normal; text-align: center; }
@media (max-width: 480px) {
  .info-admin .img-edit { flex-direction: column; align-items: stretch; }
  .info-admin .img-preview.doc { width: 100%; height: 180px; }
}

.backup-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel > h3, .panel-head h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.panel .muted { margin: 0 0 14px; }
.panel.danger { border-color: #f1d8d0; }

/* ---------- Wholesale Information (public) ---------- */
.info-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .info-card.policies { grid-column: 1 / -1; } }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 22px 18px 24px; min-width: 0;
}
@media (min-width: 640px) { .info-card { padding: 30px 30px 32px; } }
.info-title { margin: 0 0 18px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: .2px; }
.info-title::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 10px; background: var(--gold); }
@media (min-width: 640px) { .info-title { font-size: 30px; } }
.info-card.policies > .info-title, .info-card.policies > .rich, .info-card.policies > .info-figure, .info-card.policies > .info-soon { max-width: 720px; margin-left: auto; margin-right: auto; }
.info-figure.after-text { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.info-image {
  display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--cream); cursor: zoom-in; position: relative; font: inherit; color: inherit;
  transition: border-color .25s var(--ease);
}
.info-image img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; object-fit: contain; object-position: center; border-radius: 6px; }
.zoom-hint {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .4px; color: var(--ink-soft);
}
.zoom-hint::before { content: "⤢"; font-size: 14px; color: var(--accent); }
@media (hover: hover) { .info-image:hover { border-color: var(--gold); } }
.info-soon { margin: 6px 0 2px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); text-align: center; padding: 18px 0; }

/* Rich text (policies) — comfortable reading */
.rich { font-size: 16px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 1.6em 0 .5em; color: var(--ink); }
.rich h3 { font-size: 15.5px; font-weight: 600; letter-spacing: .2px; margin: 1.4em 0 .4em; color: var(--brown-dark); }
.rich p { margin: 0 0 1em; color: var(--ink-soft); }
.rich strong { color: var(--ink); font-weight: 600; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 1.4em; color: var(--ink-soft); }
.rich li { margin: .35em 0; padding-left: .2em; }
.rich li::marker { color: var(--gold); }
.rich ol li::marker { color: var(--accent); font-weight: 600; font-size: .92em; }
@media (min-width: 640px) { .rich { font-size: 16.5px; } .rich h2 { font-size: 27px; } }

/* Lightbox (tap to enlarge) */
.modal.lightbox { align-items: stretch; padding: 0; z-index: 150; }
.lightbox .modal-backdrop { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lightbox-card { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; animation: fadeIn .25s var(--ease) both; }
.lightbox-scroll {
  flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center;
  padding: calc(62px + env(safe-area-inset-top)) 12px 8px; -webkit-overflow-scrolling: touch;
}
.lightbox-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(17, 17, 17, .15); cursor: zoom-in; background: #fff; }
.lightbox-scroll.zoomed { place-items: start; }
.lightbox-scroll.zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
@media (min-width: 900px) { .lightbox-scroll.zoomed img { width: 160%; } }
.lightbox .modal-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 3; }
.lightbox-hint { margin: 0; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Wholesale Information (admin) ---------- */
.info-help { margin: 0 0 14px; }
.emails-panel { grid-column: 1 / -1; }
.emails-panel > .muted { margin: 0 0 12px; }
.emails-panel .hint { display: block; margin: 8px 0 0; }
.email-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.email-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.email-addr { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.email-add { display: flex; gap: 8px; }
.email-add input { flex: 1; min-width: 0; border: 1px solid #dcdcdc; border-radius: 10px; background: #fff; padding: 11px 12px; font-size: 16px; min-height: var(--tap); outline: none; }
.email-add input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.info-admin { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.info-admin > * { min-width: 0; }
@media (min-width: 820px) { .info-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); } .policies-admin { grid-column: 1 / -1; } }
.info-form h3 { margin-bottom: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.img-preview.doc { width: 132px; height: 100px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.subtab {
  border: 0; background: none; cursor: pointer; padding: 12px 16px; min-height: 46px; margin-bottom: -1px;
  font-weight: 500; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent;
}
.subtab.active { color: var(--brown-dark); border-bottom-color: var(--gold); }
.ct-field { border: 0; padding: 0; margin: 0 0 16px; }
.ct-field legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; flex: 1 1 110px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.seg input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.rte { border: 1px solid #dcdcdc; border-radius: 12px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .18); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--cream); border-bottom: 1px solid var(--line); }
.rte-bar button {
  min-height: 38px; padding: 6px 11px; border: 1px solid transparent; border-radius: 8px; background: transparent;
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer;
}
.rte-bar button:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.rte-area { min-height: 240px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; outline: none; font-weight: 400; }
.rte-area:empty::before { content: attr(data-placeholder); color: #8a8a8a; font-style: italic; }

/* Preview */
.preview-card { max-width: 1040px; padding: 26px 20px 24px; }
.preview-card h2 { margin: 0 44px 4px 0; font-family: var(--serif); font-weight: 600; font-size: 28px; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.seg-buttons { display: inline-flex; background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-buttons button { border: 0; background: transparent; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg-buttons button.active { background: var(--surface); color: var(--brown-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .10); }
.preview-stage { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; overflow: auto; }
.preview-frame { margin: 0 auto; transition: max-width .3s var(--ease); }
.preview-frame.mobile { max-width: 375px; }
.preview-frame.mobile .info-card { padding: 22px 18px 24px; }
.preview-frame.mobile .info-title { font-size: 26px; }
.preview-frame.mobile .rich { font-size: 16px; }
.preview-frame.desktop { max-width: 980px; }

/* ---------- Seasonal Collection ---------- */
.seasonal-section { padding-bottom: 12px; }
.seasonal-head { text-align: center; margin: 4px 0 18px; }
.seasonal-title {
  margin: 0; display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--ink); letter-spacing: .3px;
}
.seasonal-title::before, .seasonal-title::after { content: ""; flex: 0 1 64px; height: 1px; background: var(--gold); }
.seasonal-title span { position: relative; padding: 0 2px; }
.seasonal-sub { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); }
@media (min-width: 640px) { .seasonal-title { font-size: 38px; } .seasonal-title::before, .seasonal-title::after { flex-basis: 110px; } .seasonal-sub { font-size: 19px; } }

.carousel { position: relative; }
.car-track {
  display: grid; grid-auto-flow: column; gap: 14px;
  grid-auto-columns: 78%;               /* phones: 1 card + a peek of the next */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 2px 18px; outline: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-track:focus-visible { box-shadow: 0 0 0 2px var(--gold); border-radius: 12px; }
.car-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.car-track.dragging * { pointer-events: none; }
@media (min-width: 600px)  { .car-track { grid-auto-columns: calc((100% - 28px) / 2.35); gap: 18px; } }
@media (min-width: 900px)  { .car-track { grid-auto-columns: calc((100% - 40px) / 3.2); gap: 20px; } }
@media (min-width: 1100px) { .car-track { grid-auto-columns: calc((100% - 60px) / 4); } }
@media (hover: hover) and (pointer: fine) { .car-track { cursor: grab; } }
.car-btn {
  position: absolute; top: 40%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--gold); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car-btn.prev { left: -12px; }
.car-btn.next { right: -12px; }
.car-btn:hover:not(:disabled) { background: #111; color: #fff; border-color: #111; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) { .car-btn { display: grid; } }
@media (min-width: 1280px) { .car-btn.prev { left: -22px; } .car-btn.next { right: -22px; } }
.carousel.no-overflow .car-btn { display: none; }
.seasonal-card { height: 100%; }
.seasonal-card .card-desc { display: -webkit-box; }
@media (max-width: 480px) {
  .seasonal-title { font-size: 27px; gap: 10px; }
  .seasonal-title::before, .seasonal-title::after { flex-basis: 28px; }
  .seasonal-sub { font-size: 16px; }
}
.badge.seasonal { background: #fff; color: var(--accent); border: 1px solid var(--gold); letter-spacing: 1.4px; }
.row-title .badge.seasonal { padding: 1px 6px; }
.availability { margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: var(--accent); }
.badge.availability-badge { background: #111; color: #fff; }
.seasonal-bar { justify-content: space-between; }
.seasonal-switch { font-size: 15px; font-weight: 600; color: var(--ink); }
.seasonal-help { margin: 0 0 12px; }
.seasonal-hidden-note { margin: 0 0 12px; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: 10px; color: var(--ink-soft); }
.seasonal-qty-hint { margin: -6px 0 14px; }

/* ---------- White + Black + Gold finishing ---------- */
.site-header { border-bottom-color: #e6dcc6; }
.brand-name, .section-title, .cat-title, .card-name, .pd-name, .footer-name, .apply-cta h2, .info-title, .promo-card h3 { color: var(--ink); }
.brand-text { border-left-color: var(--gold); }
.nav-cta { border-color: var(--gold); color: var(--ink); }
.nav-cta:hover { background: #111; border-color: #111; color: #fff; }
.chip.active { background: #111; border-color: #111; color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.btn-primary { background: #111; border-color: #111; color: #fff; }
.btn-primary:hover { background: #000; border-color: var(--gold); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--gold); }
.btn-secondary:hover { background: var(--champagne); border-color: var(--gold); }
.quick-link.primary { background: #111; border-color: #111; }
.quick-link:not(.primary) { border-color: #e2d6bd; }
.card { border-color: #ececec; }
.card-price::before { background: #e6d9bf; }
.price { color: var(--ink); }
.ph { background: linear-gradient(160deg, #fafafa, #f3f3f3); }
.promo-banner { background: #fff; border-color: var(--gold); }
.apply-cta { background: #fff; border-color: #e6d9bf; }
.site-footer { border-top-color: #e6dcc6; }
.toast { background: #111; border: 1px solid var(--gold); }
.admin-top { border-bottom-color: #e6dcc6; }
.stat b { color: var(--ink); }
.search:focus-within, .cat-select-btn[aria-expanded="true"] { border-color: var(--gold); }

.toggle input:checked + span { background: var(--gold); }
.badge.new { background: #111; color: #fff; }

/* ---------- Delivery Areas strip (white / black / gold) ---------- */
.deliver-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px;
  padding: 9px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); text-align: center;
}
.deliver-label { font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: #111; white-space: nowrap; }
.deliver-states { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 2px; min-width: 0; max-width: 100%; }
.deliver-states li { font-size: 14px; font-weight: 600; letter-spacing: 1.2px; color: #111; white-space: nowrap; line-height: 1.5; }
.deliver-states li + li::before { content: "•"; color: #b08d57; margin: 0 9px; font-weight: 400; }
@media (max-width: 480px) { .deliver-strip { padding: 8px 12px; gap: 2px 10px; } .deliver-states li + li::before { margin: 0 7px; } }

/* Delivery Areas (admin) */
.delivery-admin .panel-head { flex-wrap: wrap; }
.state-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.state-add .field { margin: 0; flex: 0 1 200px; }
#stateInput { text-transform: uppercase; font-size: 18px; letter-spacing: 2px; font-weight: 600; }
.state-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.state-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.state-row.inactive { opacity: .6; }
.state-code { font-size: 18px; font-weight: 700; letter-spacing: 1.5px; min-width: 48px; margin-right: auto; }
.delivery-preview { border: 1px dashed var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.delivery-hidden-note { margin: 0; padding: 12px 14px; }

/* ---------- More Information ---------- */
.contact-card {
  max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 22px 18px 20px;
}
@media (min-width: 640px) { .contact-card { padding: 30px 30px 26px; } }
.contact-intro { margin: 0 0 16px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); }
.contact-rows { display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--champagne); border: 1px solid #e6d9bf; color: var(--accent); }
.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-text { min-width: 0; display: flex; flex-direction: column; }
.contact-label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.contact-value:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 480px) {
  .contact-row { grid-template-columns: 40px minmax(0, 1fr); }
  .contact-icon { width: 40px; height: 40px; }
  .contact-value { font-size: 16px; }
  .contact-btn { grid-column: 1 / -1; width: 100%; }
}
.contact-panel { grid-column: 1 / -1; }
.contact-preview .contact-card { box-shadow: none; max-width: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 200; transform: translateX(-50%);
  background: var(--brown-dark); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .2); max-width: calc(100% - 32px); width: max-content; text-align: center;
  animation: fadeIn .25s var(--ease) both;
}
.toast.error { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
