:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --card: #fbfaf6;
  --ink: #1c1915;
  --muted: #6f675e;
  --line: #ddd4c6;
  --pine: #234237;
  --pine-deep: #173028;
  --clay: #b85c38;
  --gold: #c6a15b;
  --danger: #8f2d2d;
  --ok: #1f6b45;
  --shadow: 0 16px 40px rgba(28, 25, 21, .08);
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.announce { background: var(--pine); color: #f6f1e6; text-align: center; padding: 10px 16px; font-size: .92rem; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 239, 230, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row, .nav-row, .tools, .actions, .row-between, .inline-links { display: flex; align-items: center; gap: 12px; }
.top-row { min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.logo img { height: 42px; width: auto; }
.logo-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--pine); color: #f6f1e6; border-radius: 10px; }
.logo-type span { color: var(--clay); }
.search { position: relative; flex: 1; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 12px 16px; min-width: 0; }
.search button, .btn { background: var(--pine); color: #f6f1e6; border: 0; border-radius: 999px; padding: 12px 18px; min-height: 44px; }
.btn.ghost, .text-btn, .icon-btn { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tools a, .nav-row a, .foot a { text-decoration: none; }
.tools a b, .mobile-cart b { background: var(--clay); color: white; border-radius: 99px; padding: 0 6px; font-size: .75rem; margin-left: 4px; }
.nav-row { gap: 18px; overflow: auto; padding: 0 0 12px; }
.nav-row a, .text-btn { white-space: nowrap; }
.menu-toggle, .mobile-search, .mobile-cart, .dock { display: none; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 12px; }
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; background: rgba(23, 32, 28, .45); z-index: 30; }
.drawer-panel { background: var(--card); width: min(420px, 100%); height: 100%; padding: 20px; overflow: auto; display: grid; align-content: start; gap: 10px; }
.drawer-panel a, .foot a { display: block; padding: 8px 0; text-decoration: none; }
.banner { padding: 12px 14px; border-radius: 12px; }
.banner.ok { background: #e5f2ea; }
.banner.bad { background: #f8e6e2; color: var(--danger); }
.hero { padding: 28px 0 8px; display: grid; gap: 16px; }
.hero-slide { display: grid; gap: 20px; background: var(--pine); color: #f6f1e6; border-radius: 28px; padding: 32px 24px; min-height: 280px; align-items: center; }
.hero-slide .btn { background: var(--gold); color: var(--ink); }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
h1, h2, .card-name { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05; margin: 8px 0; }
.band { padding: 28px 0; }
.band-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.cards, .cats, .promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card, .cats a, .promo { background: var(--card); border-radius: 18px; text-decoration: none; overflow: hidden; box-shadow: var(--shadow); }
.photo { aspect-ratio: 3 / 4; background: var(--paper-2); display: grid; overflow: hidden; }
.photo img, .cats img, .promo img, .hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-empty { display: grid; place-items: center; min-height: 160px; color: var(--muted); background: linear-gradient(160deg, #efe6d6, #e7d3c4); }
.photo-empty.large { min-height: 320px; border-radius: 24px; }
.card { padding-bottom: 12px; }
.card-name, .price, .cats span, .promo span { display: block; padding: 8px 12px 0; overflow-wrap: anywhere; }
.card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; line-height: 1.3; }
.price s, .muted { color: var(--muted); font-weight: 400; margin-left: 6px; }
.empty-catalog, .news, .summary, .panel, .auth-card { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.empty-catalog { margin: 20px 0; }
.news { display: grid; gap: 16px; margin: 10px auto 30px; }
.news form, .filters, .stack, .variant-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filters input, .filters select, .stack input, .stack select, .stack textarea, .variant-row input, .auth-card input { width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 12px; min-height: 44px; }
.stack textarea { min-height: 120px; }
.stack label, .auth-card label { display: grid; gap: 6px; width: 100%; }
.check { display: flex !important; align-items: center; gap: 8px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-bottom: 20px; }
.trust article { padding: 8px 0; }
.foot { background: var(--pine-deep); color: #f6f1e6; padding: 36px 0 96px; }
.foot-grid { display: grid; gap: 22px; }
.legal { opacity: .75; }
.page { padding: 24px 0 40px; }
.product { display: grid; gap: 22px; padding-top: 24px; min-width: 0; }
.product-copy { min-width: 0; }
.gallery { display: grid; gap: 10px; min-width: 0; }
.gallery-stage { background: var(--paper-2); border-radius: 20px; overflow: hidden; }
.product-photo { width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #f7f3ec; margin-inline: auto; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--paper-2); line-height: 0; }
.thumb.is-on { border-color: var(--pine); }
.thumbs img { width: 68px; height: 88px; object-fit: cover; object-position: center top; border-radius: 10px; }
.price.big { font-size: 1.7rem; margin: 6px 0 10px; }
.lead { margin-top: 0; }
.facts { display: grid; gap: 0; margin: 14px 0 18px; }
.facts div { display: grid; grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); margin: 0; }
.facts dd { margin: 0; }
.ship-note { margin: 18px 0; padding: 14px 14px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ship-note h2 { font-size: 1.05rem; margin: 0 0 6px; }
.ship-note ul { list-style: none; margin: 0; padding: 0; }
.ship-note li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.option { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { font-weight: 650; padding: 0; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 18px; }
.summary p, .row-between { display: flex; justify-content: space-between; gap: 12px; }
.total { font-size: 1.2rem; }
.pager { display: flex; gap: 8px; padding: 16px 0; }
.pager a { padding: 8px 12px; border-radius: 10px; background: var(--card); text-decoration: none; }
.steps { padding-left: 18px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); display: none; z-index: 25; max-width: 100%; }
.dock a { flex: 1; min-width: 0; text-align: center; text-decoration: none; padding: 10px 2px 12px; font-size: clamp(.64rem, 2.7vw, .78rem); min-height: 52px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: white; border: 1px solid var(--line); border-radius: 16px; margin-top: 6px; z-index: 5; }
.suggest a { display: flex; justify-content: space-between; padding: 10px 14px; text-decoration: none; }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #efeae1; }
.side { background: var(--pine-deep); color: #f6f1e6; padding: 18px 14px 40px; }
.side a, .side summary { color: #f6f1e6; text-decoration: none; }
.side details { margin: 14px 0; }
.side details a { display: block; padding: 6px 8px; border-radius: 8px; }
.side button, .admin button { min-height: 40px; }
.admin-main { padding: 18px; }
.admin-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.panel { margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats article, .bars { background: var(--card); border-radius: 18px; padding: 16px; }
.bars { display: flex; align-items: end; gap: 10px; height: 160px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; }
.bars span { display: block; width: 100%; background: var(--pine); border-radius: 8px 8px 0 0; min-height: 4px; }
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); }
.integration { border-top: 1px solid var(--line); padding-top: 16px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
@media (max-width: 767px) {
  .wrap { width: min(1180px, calc(100% - 16px)); }
  .tools, .nav-row, .menu-toggle { display: none; }
  .menu-toggle, .mobile-search, .mobile-cart { display: inline-flex; align-items: center; justify-content: center; padding-inline: 8px; min-width: 40px; }
  .search { display: none; }
  .top-row { gap: 6px; min-width: 0; }
  .logo { min-width: 0; flex: 1; }
  .logo-type { font-size: clamp(.92rem, 4.2vw, 1.15rem); white-space: nowrap; overflow: hidden; }
  .dock { display: flex; }
  .admin { grid-template-columns: 1fr; }
  .side { padding-bottom: 12px; }
  .hero-slide { padding: 24px 18px; }
  .band-head { display: grid; }
}
@media (min-width: 768px) {
  .hero-slide { grid-template-columns: 1.2fr .8fr; padding: 48px; }
  .foot-grid, .split { grid-template-columns: 1.2fr .8fr .8fr; }
  .split { grid-template-columns: 1.4fr .8fr; }
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

body.store {
  --paper: #f3efe7;
  --paper-2: #e7dfd2;
  --card: #fffcf8;
  --ink: #1c1814;
  --muted: #6e655c;
  --line: #e4dcd0;
  --pine: #8d3d22;
  --pine-deep: #241f1b;
  --clay: #8d3d22;
  --gold: #8d3d22;
  --shadow: 0 12px 32px rgba(48, 32, 18, .06);
  background:
    radial-gradient(900px 280px at 10% -10%, rgba(141, 61, 34, .08), transparent 60%),
    var(--paper);
}
body.store .util { background: #2a241f; color: #f6f1ea; font-size: .86rem; }
body.store .util-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 36px; padding: 6px 0; }
body.store .util-note { margin: 0; min-width: 0; }
body.store .util-links { display: flex; gap: 14px; flex: none; }
body.store .util-links a { color: #f6f1ea; text-decoration: none; }
body.store .top { background: rgba(255, 252, 248, .92); }
body.store .logo-mark { border-radius: 50%; }
body.store .search { border-radius: 14px; box-shadow: inset 0 0 0 1px transparent; }
body.store .search button { border-radius: 10px; margin: 4px; }
body.store .nav-row { border-top: 1px solid var(--line); padding: 8px 0; }
body.store .nav-row a, body.store .text-btn { color: var(--ink); text-decoration: none; font-size: .95rem; }
body.store .tools a { padding: 8px 2px; }
body.store h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.02em; }
body.store .hero { padding-top: 22px; }
body.store .hero-slide {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  align-items: stretch;
}
body.store .hero-slide .btn { background: var(--pine); color: #fffaf6; }
body.store .hero-slide .btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfc4b4; }
body.store .hero-copy p { max-width: 38rem; color: var(--muted); }
body.store .hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: var(--ink); }
body.store .eyebrow { color: var(--pine); }
body.store .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
body.store .hero-steps { list-style: none; margin: 0; padding: 8px 8px 8px 18px; display: grid; gap: 14px; border-left: 1px solid var(--line); }
body.store .hero-steps li { display: grid; gap: 2px; }
body.store .hero-steps span { color: var(--muted); font-size: .92rem; }
body.store .empty-catalog, body.store .news, body.store .summary, body.store .panel {
  border: 1px solid var(--line);
  box-shadow: none;
}
body.store .empty-catalog { display: grid; gap: 18px; }
body.store .prep { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.store .prep li { border: 1px dashed var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); }
body.store .trust { gap: 14px; }
body.store .trust article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
body.store .trust h2 { font-size: 1.05rem; margin: 0 0 6px; }
body.store .trust p { margin: 0; color: var(--muted); }
body.store .news { align-items: center; border-radius: 24px; }
body.store .news form { flex: 1; min-width: min(100%, 280px); }
body.store .news input { flex: 1; min-width: 160px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 44px; }
body.store .foot { padding-top: 42px; }
body.store .foot a { opacity: .92; }
body.store .foot h2 { font-size: 1rem; }
body.store .card, body.store .cats a, body.store .promo { border: 1px solid var(--line); box-shadow: none; }
body.store .card-name { font-size: 1.02rem; }
body.store .price { font-weight: 650; }
body.store .product-photo { background: #f6f1ea; }
body.store .thumb.is-on { border-color: var(--clay); }
body.store .page { padding-top: 28px; }
body.store .narrow { width: min(460px, 100%); margin: 12px auto 28px; }
body.store .narrow form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
body.store .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: center; }
body.store .filters .btn, body.store .filters .check { width: auto; }
body.store .drawer-panel { border-right: 1px solid var(--line); }
body.store .drawer-panel a { border-bottom: 1px solid var(--line); }
body.store .dock { padding-bottom: env(safe-area-inset-bottom); }
body.store .dock a[aria-current="page"] { color: var(--pine); font-weight: 650; }
body.store .suggest { box-shadow: var(--shadow); }
@media (max-width: 767px) {
  body.store .util-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  body.store .hero-steps { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  body.store .foot { padding-bottom: 108px; }
  body.store .hero-actions .btn { flex: 1; text-align: center; }
}
@media (min-width: 768px) {
  body.store .empty-catalog { grid-template-columns: 1.4fr .8fr; align-items: end; }
  body.store .foot { padding-bottom: 42px; }
  body.store .news { grid-template-columns: 1fr 1fr; }
}
