/* Bad Beaver Woodworking - site styles */
:root {
  --cream: #f9eee8;
  --cream-2: #f3e2da;
  --card: #fdf6f2;
  --plum: #7b5862;
  --plum-dark: #5f414a;
  --ink: #4a2f35;
  --ink-soft: #6f565b;
  --line: #dcc6bf;
  --wood: #6b3a26;
  --wood-dark: #4d2716;
  --gold: #e9c98f;
  --ok: #3f6b4a;
  --err: #a33b3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(74, 47, 53, .06), 0 8px 24px rgba(74, 47, 53, .08);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.eyebrow { font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 28px;
  background: var(--plum); color: #fff; border: 2px solid var(--plum);
  border-radius: 999px; font: 600 1.05rem/1.2 var(--serif);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; stroke-width: 2.2; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.announcement { background: var(--plum); color: #fff; text-align: center; padding: 8px 16px; font-size: .92rem; }
.site-header { position: relative; z-index: 20; background: var(--cream); padding: 12px 0 0; }
.header-bar {
  width: min(var(--wrap), 100% - 24px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 28px; height: 28px; stroke-width: 1.8; }
.menu-toggle { justify-self: start; }
.header-actions { justify-self: end; display: flex; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--plum); color: #fff; font: 700 .72rem/20px var(--sans); text-align: center;
}
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand-logo { width: clamp(170px, 24vw, 260px); mix-blend-mode: multiply; }
.brand-name { font: 700 clamp(1.35rem, 3.2vw, 2.15rem)/1.1 var(--serif); color: var(--ink); margin-top: -2px; white-space: nowrap; }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; padding: 12px 16px 4px; }
.main-nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--plum); }
.main-nav .nav-cta { color: var(--plum); }
.paw-rule { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 0 14px; color: var(--ink); }
.paw-rule span { width: min(160px, 26vw); height: 2px; background: var(--ink-soft); opacity: .6; }
.paw-rule svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.search-panel {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); display: flex; gap: 8px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.search-panel input { flex: 1; }

@media (max-width: 600px) {
  .header-bar { grid-template-columns: 44px minmax(0, 1fr) 88px; }
  .brand { min-width: 0; }
  .brand-logo { width: 150px; }
  .brand-name { white-space: normal; text-align: center; font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .header-actions { gap: 0; }
  .icon-btn { width: 44px; height: 44px; }
  .icon-btn svg { width: 25px; height: 25px; }
}
@media (max-width: 899px) {
  .main-nav { display: none; }
  .paw-rule { padding-bottom: 8px; }
}
@media (min-width: 900px) {
  .menu-toggle { visibility: hidden; }
}

/* ---------- Drawers (menu + cart) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(50, 30, 34, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 50; width: min(400px, 92vw);
  background: var(--cream); display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, .2); transition: transform .3s ease; visibility: hidden;
}
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { font: 400 1.4rem var(--serif); }
.mobile-menu > a { padding: 16px 24px; font: 400 1.25rem var(--serif); text-decoration: none; border-bottom: 1px solid var(--cream-2); }
.mobile-menu > a:hover { background: var(--cream-2); }
.mobile-menu-cats { padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { text-align: center; padding: 48px 12px; color: var(--ink-soft); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--cream-2); align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cart-line h4 { font-size: 1.05rem; margin: 0 0 4px; }
.cart-line .price { font-size: .95rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .95rem; }
.cart-remove { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 4px; }
.cart-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 4px; }
.cart-note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.cart-secure { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; }
.cart-secure svg { width: 15px; height: 15px; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: clamp(460px, 62vw, 680px); display: flex; align-items: center; overflow: hidden; margin-top: -1px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(249, 238, 232, .96) 0%, rgba(249, 238, 232, .82) 38%, rgba(249, 238, 232, .1) 68%, transparent 100%);
}
.wave-top, .wave-bottom { position: absolute; left: 0; width: 100%; height: clamp(36px, 6vw, 90px); z-index: 2; fill: var(--cream); stroke: none; }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.hero-copy { position: relative; z-index: 3; padding: 80px 0; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 30ch; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(249, 238, 232, .97) 0%, rgba(249, 238, 232, .88) 45%, rgba(249, 238, 232, .15) 75%, transparent 100%); }
  .hero-bg { object-position: 75% 30%; }
  .hero-copy { padding: 200px 0 56px; }
}

/* Category icons row */
.cat-icons { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0 10px; }
.cat-icons a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; text-align: center; padding: 8px 6px; font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.cat-icons a + a { border-left: 2px solid var(--line); }
.cat-icons svg { width: clamp(52px, 7vw, 82px); height: auto; stroke-width: 1.3; transition: transform .25s; }
.cat-icons a:hover svg { transform: translateY(-4px); }
@media (max-width: 600px) {
  .cat-icons { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .cat-icons a:nth-child(3) { border-left: 0; }
  .cat-icons a { font-size: 1rem; }
}

/* Image tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); padding: 26px 0 50px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / .93; box-shadow: var(--shadow); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: 10%; right: 10%; bottom: 14px; padding: 9px 12px; text-align: center;
  background: rgba(82, 58, 60, .72); color: #fff; border-radius: 10px; font-size: 1.1rem; backdrop-filter: blur(2px);
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .tile span { font-size: .95rem; left: 6%; right: 6%; }
}

/* Plum band */
.band { background: var(--plum); color: #fff; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; }
.band-item { display: flex; gap: 22px; align-items: center; padding: 30px clamp(12px, 3vw, 40px); text-decoration: none; color: #fff; }
.band-item + .band-item { border-left: 2px solid rgba(255, 255, 255, .5); }
.band-item svg.big { width: 52px; height: 52px; flex: none; stroke-width: 1.3; }
.band-item h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 4px; }
.band-item p { margin: 0; opacity: .9; font-size: .98rem; }
.band-item .chev { width: 26px; height: 26px; margin-left: auto; flex: none; stroke-width: 2; }
a.band-item:hover { background: var(--plum-dark); }
@media (max-width: 760px) {
  .band-grid { grid-template-columns: 1fr; }
  .band-item + .band-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .4); }
}

/* Portfolio teaser */
.teaser { padding: 50px 0 clamp(70px, 9vw, 120px); text-align: center; }
.teaser-head { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 18px; }
.teaser-head .rule { height: 2px; background: var(--ink-soft); opacity: .5; }
.sprig { width: clamp(50px, 8vw, 100px); height: auto; fill: var(--plum); stroke: var(--plum); stroke-width: 0; }
.sprig .stroke { fill: none; stroke-width: 2.5; }
.sprig.flip { transform: scaleX(-1); }
.teaser h2 { margin: 0; }
.teaser p { margin: 6px 0 20px; font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 600px) { .teaser-head .rule { display: none; } .teaser-head { grid-template-columns: auto 1fr auto; } }

/* ---------- Page banners (inner pages) ---------- */
.page-banner { position: relative; height: clamp(170px, 24vw, 280px); overflow: hidden; margin-top: -1px; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .banner-text {
  position: absolute; right: clamp(16px, 7vw, 100px); top: 50%; transform: translateY(-40%); z-index: 3;
  font: 400 clamp(1.15rem, 2.6vw, 2rem)/1.25 var(--serif); text-align: right; max-width: 22ch; color: var(--ink);
}
.banner-text::after { content: ""; display: block; width: 40%; height: 2px; background: var(--ink-soft); margin: 14px 0 0 auto; opacity: .6; }
@media (max-width: 600px) { .page-banner .banner-text { display: none; } }

.breadcrumbs { font-size: .95rem; color: var(--ink-soft); margin: 20px 0 10px; }
.breadcrumbs a { color: var(--ink); }
.breadcrumbs span { margin: 0 8px; }
.page-head { padding-bottom: 18px; border-bottom: 2px solid var(--line); margin-bottom: 26px; }
.page-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 62ch; margin: 0; }

/* ---------- Shop ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 22px; border-radius: 999px;
  border: 2px solid var(--ink-soft); background: transparent; color: var(--ink); font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer;
}
.pill:hover { border-color: var(--plum); }
.pill[aria-current="true"], .pill.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(74, 47, 53, .05); transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .img-link { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-2); }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px 20px 20px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card .price { font-size: 1.2rem; margin-bottom: 4px; }
.product-card .short { font-size: .95rem; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.badge { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--cream-2); color: var(--plum-dark); }
.badge.sold { background: #eee0dc; color: var(--err); }
.empty-state { text-align: center; padding: 60px 16px; color: var(--ink-soft); grid-column: 1 / -1; }
.skeleton { background: linear-gradient(90deg, var(--cream-2), var(--card), var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 380px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); margin: 46px 0 80px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-2); }
.trust div { display: flex; align-items: center; gap: 16px; padding: 22px clamp(14px, 3vw, 36px); font-size: 1.02rem; line-height: 1.3; }
.trust div + div { border-left: 2px solid var(--line); }
.trust svg { width: 40px; height: 40px; flex: none; stroke-width: 1.3; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } .trust div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 10px 0 40px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 78px; height: 78px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--plum); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price { font: 400 1.7rem var(--serif); margin: 4px 0 14px; }
.product-info .short { font-size: 1.15rem; color: var(--ink-soft); }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 8px; }
.buy-row .qty { margin: 0; }
.buy-row .qty button { width: 44px; height: 44px; }
.buy-row .btn { flex: 1; min-width: 200px; }
.stock-note { font-size: .92rem; color: var(--ink-soft); }
.info-block { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.info-block h2 { font-size: 1.3rem; margin-bottom: 10px; }
.info-block ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose p { white-space: pre-line; }
@media (max-width: 820px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Generic content ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card svg.big { width: 54px; height: 54px; stroke-width: 1.3; color: var(--plum); margin-bottom: 12px; }
.card p { color: var(--ink-soft); margin: 0; }
.card ul { color: var(--ink-soft); padding-left: 1.1em; margin: 10px 0 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.step { position: relative; padding: 24px 22px 22px; border-top: 3px solid var(--plum); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 1.6rem var(--serif); color: var(--plum); display: block; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.alt-bg { background: var(--cream-2); }

/* Portfolio */
.projects { display: grid; gap: 34px; }
.project { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 26px); }
.project:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.project:nth-child(even) .project-photos { order: 2; }
.project-photos { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.project-photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1 / 1; background: var(--cream-2); }
.project-photos button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.project-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-photos button:hover img { transform: scale(1.03); }
.project-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-soft); margin-bottom: 10px; }
.project-meta span { display: inline-flex; gap: 5px; align-items: center; }
.project-meta svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .project, .project:nth-child(even) { grid-template-columns: 1fr; } .project:nth-child(even) .project-photos { order: 0; } }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(30, 18, 20, .9); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); width: auto; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffaf8;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(123, 88, 98, .18); }
.form-error { color: var(--err); font-weight: 600; margin: 8px 0; }
.form-success { background: #eef4ee; border: 1px solid #c6dbc8; color: var(--ok); border-radius: var(--radius); padding: 26px; text-align: center; }
.form-success h2 { color: var(--ok); }
.hp { position: absolute; left: -5000px; }
.file-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; background: #fffaf8; }
.file-drop input { border: 0; background: none; padding: 6px 0; min-height: 0; }
.file-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.file-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; padding-bottom: 80px; }
.quote-aside { position: sticky; top: 20px; display: grid; gap: 18px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.contact-line svg { flex: none; margin-top: 3px; color: var(--plum); }
@media (max-width: 860px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }

/* Editable page content */
.prose-rich h2 { font-size: 1.55rem; margin-top: 1.4em; }
.prose-rich h2:first-child { margin-top: 0; }
.prose-rich h3 { margin-top: 1.2em; }
.prose-rich ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose-rich li { margin-bottom: .3em; }
.policy-callout { background: var(--cream-2); border-left: 4px solid var(--plum); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.contact-block { line-height: 1.8; }

/* Product options + notes */
.options { display: grid; gap: 14px; margin: 18px 0 4px; }
.option-field select { max-width: 420px; }
.notes-field { margin-top: 14px; }
.notes-field textarea { min-height: 84px; }
.notes-field .hint { font-size: .86rem; color: var(--ink-soft); margin: 6px 0 0; }
.cart-opt { font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }
.cart-note-line { font-style: italic; overflow-wrap: anywhere; }

/* Policy pages */
.policy { max-width: 760px; padding-bottom: 80px; }
.policy h2 { font-size: 1.5rem; margin-top: 1.6em; }
.policy ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
/* Wood-only texture fills the footer; the wavy top edge is drawn separately
   (page color masked into a wave) so it stays a thin strip on any screen size. */
.site-footer {
  --wave: clamp(36px, 7vw, 110px);
  position: relative;
  background: #6a3a25 url("/media/footer-wood-plain.jpg") center top / cover no-repeat;
  color: #f7e9e0; padding: calc(var(--wave) + 30px) 0 34px; margin-top: -1px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: calc(var(--wave) + 1px);
  background: var(--cream); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V4C1330 30 1180 44 1010 50C850 56 760 104 600 104C420 104 250 18 0 10Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V4C1330 30 1180 44 1010 50C850 56 760 104 600 104C420 104 250 18 0 10Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.site-footer > * { position: relative; }
.footer-inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; padding-bottom: 22px; border-bottom: 1px solid rgba(247, 233, 224, .45); }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; padding: 6px clamp(14px, 3vw, 32px); text-decoration: none; font: 400 1.15rem var(--serif); color: #f7e9e0; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.footer-links a + a { border-left: 2px solid rgba(247, 233, 224, .55); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links svg { width: 26px; height: 26px; stroke-width: 1.5; }
.footer-ig svg { width: 32px; height: 32px; }
.footer-ig .fill { fill: currentColor; stroke: none; }
.footer-contact { padding-top: 16px; font-size: .98rem; opacity: .95; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding-top: 10px; font-size: .9rem; }
.footer-legal a { color: #f7e9e0; opacity: .9; }
.footer-contact a { color: #fff; }
.pay-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 22px 0 18px; }
.pay { display: inline-grid; place-items: center; min-width: 74px; height: 44px; padding: 0 10px; border-radius: 6px; background: #f6f2ee; color: #1a1f71; font: 900 1.05rem/1 var(--sans); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pay.visa { font-style: italic; font-size: 1.35rem; letter-spacing: -.02em; }
.pay.mc { position: relative; background: #5b6b78; }
.pay.mc i { position: absolute; width: 26px; height: 26px; border-radius: 50%; top: 9px; }
.pay.mc i:first-child { background: #eb001b; left: 14px; }
.pay.mc i:last-child { background: #f79e1b; right: 14px; mix-blend-mode: hard-light; opacity: .95; }
.pay.amex { background: #2e77bc; color: #fff; font-size: .62rem; text-align: center; line-height: 1.05; letter-spacing: .02em; }
.pay.discover { display: inline-flex; align-items: center; color: #222; font-size: .78rem; letter-spacing: .02em; }
.pay.discover b { color: #f58220; }
.pay.apple { background: #111; color: #fff; font-size: .85rem; }
.pay.gpay { color: #3c4043; font-size: .9rem; }
.copyright { margin: 0; font-size: .95rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
@media (max-width: 600px) {
  .footer-links a { font-size: 1rem; padding: 6px 12px; }
  .footer-links a + a { border-left: 0; }
}

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; z-index: 70; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

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