/* Rocky Mountain Treasures — "wood & wildflowers" theme */
:root {
  --forest: #15321f;
  --pine: #22502f;
  --pine-2: #2f6a3f;
  --moss: #79a33c;
  --lupine: #5f46a8;
  --lupine-2: #8a6fd9;
  --sun: #ece36f;
  --wood: #a8713d;
  --wood-light: #ecd7b2;
  --bark: #4e321d;
  --cream: #fbf6ea;
  --paper: #fffdf8;
  --barn: #b3302a;
  --ink: #23291f;
  --muted: #5f6858;
  --line: #e6dcc8;
  --radius: 18px;
  --shadow: 0 16px 34px -16px rgba(21, 50, 31, .35);
  --shadow-lg: 0 30px 60px -22px rgba(21, 50, 31, .5);
  --display: "Shrikhand", "Georgia", serif;
  --head: "Bree Serif", Georgia, serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--pine-2); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.15; color: var(--forest); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
main, .site-footer { overflow-x: clip; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--forest); padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--lupine-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
/* Blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; box-shadow: 0 6px 24px -12px rgba(0,0,0,.5); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 50, 31, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: repeating-linear-gradient(90deg, var(--wood) 0 22px, #8f5c2f 22px 26px); opacity: .9; }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand .slice { width: 46px; height: 46px; flex: none; }
.brand-text { font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--sun); text-shadow: 2px 2px 0 rgba(0,0,0,.35); letter-spacing: .01em; }
.brand-text small { display: block; font-family: var(--body); font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #cfe3c0; margin-top: 4px; text-shadow: none; }
.nav > ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a, .nav button.drop { color: #eef4e8; text-decoration: none; font: 700 .95rem/1 var(--body); padding: .65rem .85rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover, .nav button.drop:hover, .has-drop:focus-within > button.drop { background: rgba(255,255,255,.12); }
.nav a[aria-current="page"] { color: var(--sun); }
.nav button.drop svg { width: 14px; height: 14px; transition: transform .25s; }
.has-drop { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(640px, 92vw); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-drop:hover .mega, .has-drop:focus-within .mega, .has-drop.open .mega { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover button.drop svg, .has-drop.open button.drop svg { transform: rotate(180deg); }
.mega a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: .45rem .6rem; border-radius: 10px; gap: .6rem; }
.mega a:hover { background: #f1ead9; color: var(--pine); }
.mega img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--wood-light); }
.mega .all { grid-column: 1 / -1; justify-content: center; background: var(--forest); color: var(--sun); margin-top: .3rem; }
.mega .all:hover { background: var(--pine); color: var(--sun); }
.tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 0; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--sun); color: var(--forest); font: 800 .72rem/21px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--forest); }
.cart-btn.bump { animation: bump .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.92) rotate(6deg); } }
.searchbar { position: absolute; left: 0; right: 0; top: 100%; background: var(--forest); padding: 0 0 1rem; display: none; }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: .5rem; }
.searchbar input { flex: 1; font: 600 1.05rem var(--body); padding: .85rem 1.2rem; border-radius: 999px; border: 0; background: #fff; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--forest); padding: 1.5rem 1.25rem 3rem; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav a, .nav button.drop { font-size: 1.15rem; padding: .9rem 1rem; width: 100%; justify-content: space-between; }
  .mega { position: static; translate: none; width: auto; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr 1fr; margin: .3rem 0 .6rem; }
  .has-drop.open .mega { display: grid; }
  .mega a { font-size: .95rem; padding: .5rem; }
  .brand-text { font-size: 1.1rem; }
}
@media (max-width: 560px) { .brand-text { font-size: 1rem; max-width: 9.5em; } .brand-text small { display: none; } .brand .slice { width: 40px; height: 40px; } .tools { gap: .25rem; } .icon-btn { width: 40px; height: 40px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: 999px; border: 0; font: 800 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.6,1), box-shadow .25s, background .25s, color .25s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sun { background: var(--sun); color: var(--forest); box-shadow: 0 10px 24px -10px rgba(236,227,111,.9), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-sun:hover { background: #f4ec85; }
.btn-pine { background: var(--pine); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.btn-pine:hover { background: var(--pine-2); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.btn-line { background: transparent; color: var(--pine); border: 2px solid var(--pine); }
.btn-line:hover { background: var(--pine); color: #fff; }
.btn-lupine { background: var(--lupine); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.btn-lupine:hover { background: #6d53bd; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; color: #fff; background: var(--forest); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,50,31,.55), rgba(21,50,31,.15) 40%, rgba(21,50,31,.35) 70%, rgba(21,50,31,.9)); }
.hero-inner { text-align: center; padding: 4rem 0 7rem; position: relative; z-index: 2; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 9vw, 7.2rem); line-height: .95; color: var(--sun); margin: 0 0 .4rem; -webkit-text-stroke: 2px #1d1d0f; paint-order: stroke fill; text-shadow: 4px 5px 0 rgba(0,0,0,.45), 0 0 40px rgba(0,0,0,.35); }
.hero-title span { display: inline-block; }
.hero-tag { font-family: var(--head); font-size: clamp(1.3rem, 2.6vw, 2rem); color: #fff; margin: 0 0 1rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-tag b { color: var(--sun); font-weight: 400; }
.hero p.lead { max-width: 40rem; margin: 0 auto 2rem; font-size: 1.15rem; color: #f1f5ec; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hero-search { margin: 2rem auto 0; max-width: 560px; display: flex; background: #fff; border-radius: 999px; padding: .35rem; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; background: transparent; font: 600 1.05rem var(--body); padding: .6rem 1.1rem; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search button { border-radius: 999px; }

/* Hanging ornaments that sway on their hemp strings */
.ornaments { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: 1; }
.orn { position: absolute; top: 0; width: var(--s, 110px); transform-origin: 50% 0; }
.orn::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: var(--len, 120px); margin-left: -1px; background: repeating-linear-gradient(180deg, #d9c08d 0 4px, #b49660 4px 7px); }
.orn img { position: relative; margin-top: var(--len, 120px); width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 30px -10px rgba(0,0,0,.6), 0 0 0 4px var(--wood), 0 0 0 7px #7d5028; background: #fff; }
.orn::after { content: ""; position: absolute; left: 50%; top: calc(var(--len, 120px) - 8px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9d3a5, #9c7a45); }
@media (prefers-reduced-motion: no-preference) {
  .orn { animation: sway var(--d, 5s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
  .hero-bg img { animation: drift 30s ease-in-out infinite alternate; }
  .hero-title span { animation: drop-in .9s cubic-bezier(.3,1.5,.5,1) backwards; }
  .hero-title span:nth-child(2) { animation-delay: .15s; }
  .hero .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero .rise:nth-of-type(1) { animation-delay: .35s; } .hero .rise:nth-of-type(2) { animation-delay: .5s; }
  .hero .rise:nth-of-type(3) { animation-delay: .65s; } .hero .rise:nth-of-type(4) { animation-delay: .8s; }
}
@keyframes sway { from { transform: rotate(calc(var(--a, 6deg) * -1)); } to { transform: rotate(var(--a, 6deg)); } }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-60px) rotate(-6deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@media (max-width: 1200px) { .orn.hide-md { display: none; } }
@media (max-width: 900px) { .orn.hide-sm { display: none; } .orn { --s: 64px !important; --len: 24px !important; } }

/* Wavy divider */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 90px); color: var(--cream); z-index: 3; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.paper { background: var(--paper); }
.section.forest { background: radial-gradient(ellipse at 15% 0%, var(--pine-2), var(--forest) 70%); color: #e3ecdc; }
.section.forest h2, .section.forest h3 { color: #fff; }
.kicker { display: inline-block; font: 800 .78rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--lupine); margin-bottom: .8rem; }
.forest .kicker { color: var(--sun); }
.center { text-align: center; }
.intro { max-width: 46rem; margin-inline: auto; font-size: 1.12rem; color: var(--muted); }
.forest .intro { color: #c9d8c0; }
.display { font-family: var(--display); font-weight: 400; color: var(--pine); letter-spacing: .01em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Story / specs */
.collage { border-radius: 24px; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); border: 8px solid #fff; }
.collage:hover { transform: rotate(0) scale(1.02); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.spec { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; text-align: center; transition: transform .3s cubic-bezier(.3,1.6,.6,1), box-shadow .3s; }
.spec:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.spec svg { width: 30px; height: 30px; color: var(--wood); margin: 0 auto .4rem; }
.spec b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.15rem; color: var(--forest); line-height: 1.2; }
.spec span { font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr 1fr; } }

/* Wholesale band */
.band { background: linear-gradient(120deg, var(--barn), #8f231e); color: #fff; padding: 2.4rem 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }
.band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.band p { margin: .3rem 0 0; color: #ffe1dd; }
.band .phone { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--sun); text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.3); }

/* Category tiles (round wood slices) */
.cats-section { background: var(--forest); position: relative; isolation: isolate; color: #fff; }
.cats-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.cats-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--forest), rgba(21,50,31,.75) 30%, rgba(21,50,31,.85) 70%, var(--forest)); }
.cats-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--moss); -webkit-text-stroke: 2px #0d1f12; paint-order: stroke fill; text-shadow: 3px 4px 0 rgba(0,0,0,.4); margin: 0 0 .2rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.2rem 1.4rem; margin-top: 3rem; }
.cat { text-decoration: none; text-align: center; color: #fff; display: block; }
.cat .ring { display: block; position: relative; width: min(100%, 190px); aspect-ratio: 1; margin: 0 auto .9rem; border-radius: 50%; padding: 7px; background: conic-gradient(from 0deg, #c4935c, #8a5a2e, #d8b07a, #7b4e27, #c4935c); box-shadow: 0 20px 34px -16px rgba(0,0,0,.7); transition: transform .5s cubic-bezier(.3,1.5,.5,1), box-shadow .4s; }
.cat .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat .ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15), inset 0 -10px 20px rgba(0,0,0,.25); pointer-events: none; }
.cat:hover .ring { transform: translateY(-10px) rotate(-8deg); box-shadow: 0 30px 40px -18px rgba(0,0,0,.8), 0 0 0 4px rgba(236,227,111,.5); }
.cat:hover .ring img { transform: scale(1.08); }
.cat b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--sun); text-shadow: 2px 2px 0 rgba(0,0,0,.45); display: block; line-height: 1.15; }
.cat small { color: #bcd0b2; font-weight: 700; font-size: .85rem; }

/* Marquee of designs */
.marquee { overflow: hidden; padding: 1.2rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.2rem; width: max-content; }
.marquee a { flex: none; width: 130px; text-decoration: none; }
.marquee img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); transition: transform .4s cubic-bezier(.3,1.6,.6,1); }
.marquee a:hover img { transform: scale(1.1) rotate(8deg); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 70s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f1dfbd, #d2ab73); color: var(--bark); margin-bottom: 1rem; box-shadow: inset 0 0 0 3px rgba(78,50,29,.18); }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; padding: 3.2rem 0 4.6rem; color: #fff; background: var(--forest); overflow: hidden; isolation: isolate; }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,50,31,.92), rgba(21,50,31,.6) 60%, rgba(21,50,31,.45)); }
.page-head h1 { color: #fff; margin: 0; text-shadow: 0 3px 18px rgba(0,0,0,.4); }
.page-head h1.display-title { font-family: var(--display); color: var(--sun); -webkit-text-stroke: 1.5px #10220f; paint-order: stroke fill; text-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.page-head p { color: #dfe9d7; font-size: 1.1rem; margin: .6rem 0 0; max-width: 44rem; }
.crumbs { font: 700 .82rem/1 var(--body); letter-spacing: .08em; color: #cfe0c3; margin-bottom: .9rem; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.crumbs span { opacity: .6; margin: 0 .35rem; }
@media (prefers-reduced-motion: no-preference) { .page-head .wrap > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) backwards; } .page-head .wrap > :nth-child(2) { animation-delay: .1s; } .page-head .wrap > :nth-child(3) { animation-delay: .2s; } }

/* Category chips */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem 1rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip:hover { border-color: var(--pine-2); transform: translateY(-2px); }
.chip[aria-current="page"] { background: var(--pine); color: #fff; border-color: var(--pine); }

/* ---------- Product grid ---------- */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 1.4rem; }
.shop-bar .count { color: var(--muted); font-weight: 700; }
.shop-bar form { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.shop-bar input { border: 0; background: transparent; font: 600 .95rem var(--body); padding: .45rem .9rem; width: 220px; }
.shop-bar input:focus { outline: none; }
.shop-bar button { padding: .55rem 1rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
.card { background: #fff; border-radius: 20px; padding: 1rem 1rem 1.1rem; text-align: center; position: relative; border: 1px solid #eee5d3; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card .pic { display: block; position: relative; aspect-ratio: 1; margin-bottom: .8rem; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.card:hover .pic img { transform: rotate(-7deg) scale(1.05); }
.card h3 { font: 700 .95rem/1.3 var(--body); color: var(--ink); margin: 0 0 .35rem; flex: 1; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--pine-2); }
.card .code { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--wood); }
.price { font-family: var(--head); color: var(--pine); font-size: 1.25rem; }
.card .price { display: block; margin-bottom: .6rem; }
.card .rmt-add { align-self: center; padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 760px) { .card { padding: .7rem .6rem .9rem; } .card h3 { font-size: .86rem; } .card .rmt-add { padding: .55rem .8rem; font-size: .82rem; } }
.rmt-add.added { background: var(--moss); color: #fff; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 2.6rem 0 0; list-style: none; padding: 0; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 .8rem; display: grid; place-items: center; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--pine); background: var(--paper); border: 1px solid var(--line); transition: background .2s, color .2s, transform .2s; }
.pager a:hover { background: var(--pine); color: #fff; transform: translateY(-2px); }
.pager [aria-current="page"] { background: var(--forest); color: var(--sun); border-color: var(--forest); }
.pager .gap { border: 0; background: none; min-width: 20px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: 2.5rem 0 1rem; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }
.stage { position: relative; background: radial-gradient(circle at 50% 40%, #fff, #f3ead6 70%); border-radius: 28px; padding: 3.5rem 2rem 2.5rem; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(180deg, #7b4e27, #5c3a1d); border-radius: 28px 28px 0 0; }
.hang { position: relative; width: min(100%, 440px); margin: 0 auto; transform-origin: 50% -40px; }
.hang::before { content: ""; position: absolute; left: 50%; top: -42px; width: 2px; height: 50px; margin-left: -1px; background: repeating-linear-gradient(180deg, #c8ad78 0 4px, #9d7f4c 4px 7px); }
.hang img { width: 100%; height: auto; position: relative; }
.hang { mix-blend-mode: multiply; }
.hang::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -26px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(60,40,15,.28), transparent 70%); }
.stage { background: radial-gradient(circle at 50% 42%, #fffdf7, #f1e6cf 75%); }
@media (prefers-reduced-motion: no-preference) { .hang { animation: settle 2.6s cubic-bezier(.3,.6,.4,1) both; } .stage:hover .hang { animation: wobble 1.6s ease-in-out; } }
@keyframes settle { 0% { transform: rotate(14deg); } 25% { transform: rotate(-9deg); } 45% { transform: rotate(5deg); } 65% { transform: rotate(-2.5deg); } 85% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
@keyframes wobble { 25% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } 85% { transform: rotate(-.8deg); } }
.buy h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3rem; }
.buy .code { font: 800 .8rem/1 var(--body); letter-spacing: .16em; color: var(--wood); }
.buy .price { font-size: 2.2rem; display: block; margin: .6rem 0 1rem; }
.buy .tagline { color: var(--muted); margin-bottom: 1.4rem; }
.rmt-order { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow); max-width: 460px; }
.qty-row { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; }
.qty-row label { display: grid; gap: .3rem; font-weight: 800; font-size: .85rem; color: var(--muted); }
.rmt-qty { font: 700 1rem var(--body); padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 90px; }
.qty-row .btn { flex: 1; min-width: 180px; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .88rem; font-weight: 700; margin: 1.2rem 0 .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rmt-total { font-size: .9rem; color: var(--muted); margin: 0 0 .8rem; text-align: center; }
.rmt-total-amt { font-weight: 800; color: var(--forest); }
.rmt-paid { display: none; margin-top: 12px; padding: 12px 14px; background: #eef9ee; border: 1px solid #b7e1b7; border-radius: 12px; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; max-width: 460px; }
.facts li { display: flex; gap: .55rem; align-items: center; font-weight: 600; font-size: .93rem; }
.facts svg { width: 22px; height: 22px; color: var(--moss); flex: none; }
.meta { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }
.meta a { font-weight: 700; }
.pnav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 0; }
.pnav a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; color: var(--pine); padding: .5rem .8rem .5rem .5rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; max-width: 48%; }
.pnav a.next { padding: .5rem .5rem .5rem .8rem; }
.pnav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pnav img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.pnav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }

/* ---------- Cart ---------- */
.cart-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; padding: 2.5rem 0; }
@media (max-width: 900px) { .cart-wrap { grid-template-columns: 1fr; } }
.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .8rem 1rem .8rem .8rem; animation: rise .4s ease-out backwards; }
.cart-item img { width: 84px; height: 84px; object-fit: contain; }
.cart-item h3 { font: 700 1rem/1.3 var(--body); margin: 0 0 .25rem; }
.cart-item h3 a { color: var(--ink); text-decoration: none; }
.cart-item small { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: .4rem; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--cream); font: 800 1.1rem var(--body); cursor: pointer; color: var(--pine); }
.stepper button:hover { background: var(--wood-light); }
.stepper input { width: 44px; height: 34px; border: 0; text-align: center; font: 700 .95rem var(--body); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.line-total { text-align: right; }
.line-total b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.2rem; color: var(--pine); }
.remove { background: none; border: 0; color: var(--barn); font: 700 .82rem var(--body); cursor: pointer; padding: .2rem 0; }
.remove:hover { text-decoration: underline; }
.totals { background: var(--paper); border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 20px); }
.totals h2 { font-size: 1.5rem; }
.totals dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1.2rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 700; }
.totals .grand { border-top: 2px dashed var(--line); padding-top: .7rem; font-size: 1.2rem; color: var(--forest); }
.empty { text-align: center; padding: 4rem 1rem; }
.empty .slice { width: 120px; height: 120px; margin: 0 auto 1rem; }
@media (max-width: 520px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .line-total { grid-column: 2; text-align: left; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 500; display: flex; align-items: center; gap: .8rem; background: var(--forest); color: #fff; padding: .6rem .7rem .6rem .6rem; border-radius: 999px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5); font-weight: 700; font-size: .95rem; animation: toast-in .45s cubic-bezier(.3,1.5,.5,1); max-width: calc(100vw - 2rem); }
.toast img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast a { flex: none; background: var(--sun); color: var(--forest); text-decoration: none; padding: .5rem .9rem; border-radius: 999px; font-weight: 800; }
.toast.out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(20px); } }
.flyer { position: fixed; z-index: 400; border-radius: 50%; pointer-events: none; object-fit: cover; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .8s cubic-bezier(.5,-0.3,.7,.5), opacity .8s ease-in; }

/* ---------- Prose pages ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; font-size: 1.7rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.price-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; }
.price-card div { background: #fff; border-radius: 18px; padding: 1.3rem 1rem; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--pine); line-height: 1.1; }
.price-card span { font-size: .88rem; color: var(--muted); font-weight: 700; }
@media (max-width: 620px) { .price-card { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; background: #fff; border-radius: 18px; padding: 1.2rem; border: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; color: var(--sun); background: radial-gradient(circle at 35% 30%, var(--pine-2), var(--forest)); box-shadow: 0 0 0 4px var(--wood-light); }
.steps h3 { margin: .1rem 0 .3rem; }
.steps p { margin: 0; color: var(--muted); }
.fit { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.fit li { background: var(--wood-light); color: var(--bark); padding: .4rem .9rem; border-radius: 999px; font-weight: 700; font-size: .92rem; margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.contact-card { background: #fff; border-radius: 22px; padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; transition: transform .35s cubic-bezier(.3,1.5,.5,1), box-shadow .35s; }
a.contact-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.contact-card .ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--pine-2), var(--forest)); color: var(--sun); box-shadow: 0 0 0 5px var(--wood-light); }
.contact-card .ic svg { width: 28px; height: 28px; }
.contact-card h3 { font: 800 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.contact-card p { font-family: var(--head); font-size: 1.2rem; color: var(--forest); margin: 0; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #bccbb3; padding: 4rem 0 1.8rem; position: relative; margin-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px; background: repeating-linear-gradient(90deg, var(--wood) 0 22px, #8f5c2f 22px 26px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font: 800 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #e3ecdc; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-brand p { margin: 1rem 0 0; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.6rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .reveal-pop { animation: reveal-pop linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .sr .reveal, .sr .reveal-pop { opacity: 0; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .sr .reveal { transform: translateY(36px); }
  .sr .reveal-pop { transform: scale(.8) rotate(-6deg); }
  .sr .in.reveal, .sr .in.reveal-pop { opacity: 1; transform: none; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(44px); } }
@keyframes reveal-pop { from { opacity: 0; transform: scale(.75) rotate(-8deg); } }

/* Cross-document page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .25s ease-in both vt-out; }
  ::view-transition-new(root) { animation: .35s ease-out both vt-in; }
  .site-header { view-transition-name: header; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Breadcrumbs on light backgrounds, swinging ornament in listing headers */
.crumbs.light { color: var(--muted); margin: 1.6rem 0 0; }
.crumbs.light a { color: var(--pine); }
.crumbs b { font-weight: 700; }
.head-orn .orn { top: -12px; }
@media (max-width: 760px) { .head-orn { display: none; } }
.cats-section .intro { color: #c9d8c0; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.4rem 0; }
.section.tight { padding-top: 3rem; }
.prose ul.fit { padding: 0; }
.nowrap { white-space: nowrap; }
.mega { list-style: none; margin: 0; }
.mega svg { width: 18px; height: 18px; }
@media (max-width: 980px) { .nav .mega a { justify-content: flex-start; font-size: .95rem; padding: .5rem; } .nav .mega a.all { justify-content: center; } }
.mega .all { display: flex; width: 100%; }
@media (max-width: 420px) { .nav .mega a { font-size: .86rem; gap: .45rem; } .mega img { width: 30px; height: 30px; } }
