:root {
  --ink: #3d251c;
  --muted: #765c4d;
  --forest: #c83a0b;
  --forest-dark: #8f250e;
  --sage: #ef9a28;
  --sage-pale: #fff0c9;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --sand: #f2c66e;
  --gold: #e66b0b;
  --line: rgba(111, 49, 24, .16);
  --shadow: 0 20px 55px rgba(113, 42, 13, .14);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle 700px at 15% 220px, #ffe29a 0, rgba(255, 226, 154, .72) 30%, transparent 78%), var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #f3a32c; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .7rem 1rem; color: white; background: var(--forest-dark); border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.preview-bar { min-height: 28px; margin-bottom: 3px; padding: 0 max(1rem, calc((100% - 1240px) / 2 + 1rem)); display: flex; align-items: center; color: white; background: #d64000; font-size: .82rem; line-height: 1.2; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 3px solid #f3a52d; background-color: #d84301; background-image: url('/assets/brand/alabaster-autumn-clean.jpg'); background-position: center top; background-repeat: no-repeat; background-size: min(900px, calc(100% - 2rem)) auto; box-shadow: 0 7px 22px rgba(92,31,11,.16); }
.header-inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 2rem)); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: min(148px, calc(16.444vw - 5.26px)) auto; align-items: center; }
.brand { grid-column: 1; grid-row: 1; min-width: 0; min-height: 75px; width: min(560px, 100%); display: block; align-self: stretch; text-decoration: none; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.main-nav { grid-column: 1; grid-row: 2; min-height: 43px; display: flex; align-items: center; gap: .2rem; padding: .22rem .55rem; background: #ffd47a; }
.main-nav a { position: relative; padding: .42rem .72rem; color: #79270e; border-radius: 5px; font-size: .9rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.58); }
.main-nav a::after { content: ""; position: absolute; right: 50%; bottom: .22rem; left: 50%; height: 2px; background: var(--forest); transition: .2s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; left: 0; }
.contract-quick-link { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; align-items: center; padding: .45rem 1rem; color: white; background: var(--forest); border-left: 3px solid #ffd47a; font-size: .88rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.contract-quick-link:hover { background: var(--forest-dark); }
.cart-link { grid-column: 2; grid-row: 1; justify-self: end; white-space: nowrap; padding: .58rem .72rem .58rem .9rem; display: inline-flex; align-items: center; gap: .42rem; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; color: white; background: rgba(111,33,15,.72); font-size: .86rem; font-weight: 750; text-decoration: none; }
.cart-link > span { display: none; }
.cart-link::after { content: ""; order: 2; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; display: block; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2l2.1 11.1a2 2 0 0 0 2 1.6h8.9a2 2 0 0 0 1.9-1.5L21 7H5.2'/%3E%3Cpath d='M8.2 10.2h10.9M9 13h9.5'/%3E%3Ccircle cx='9' cy='20' r='1.25' fill='white'/%3E%3Ccircle cx='18' cy='20' r='1.25' fill='white'/%3E%3C/svg%3E"); }
.cart-link b { order: 3; display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; color: white; background: var(--forest); }
.menu-toggle { display: none; border: 0; background: none; }
.category-nav { position: relative; z-index: 20; display: block; border-top: 2px solid #f3a52d; background: #fff2cb; }
.category-nav-inner { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .28rem; padding: .42rem 0 .48rem; }
.category-nav a { min-height: 36px; padding: .38rem .5rem; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(121,39,14,.16); border-radius: 7px; color: #79270e; background: rgba(255,255,255,.55); font-size: .82rem; font-weight: 760; line-height: 1.15; text-align: center; text-decoration: none; }
.category-nav a:hover, .category-nav a:focus-visible { border-color: #ef9a28; background: white; }
.breadcrumb-nav { min-height: 32px; border-top: 1px solid rgba(121,39,14,.16); background: #fffaf0; }
.breadcrumb-inner { width: min(1240px, calc(100% - 2rem)); min-height: 34px; margin: 0 auto; padding: .36rem 0; display: flex; align-items: center; gap: .42rem; list-style: none; color: var(--muted); font-size: .88rem; line-height: 1.2; }
.breadcrumb-inner li { min-width: 0; display: flex; align-items: center; gap: .42rem; white-space: nowrap; }
.breadcrumb-inner li + li::before { content: "›"; color: #b55a25; font-weight: 800; }
.breadcrumb-inner a { color: #79270e; font-weight: 720; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.breadcrumb-inner .current { overflow: hidden; }
.breadcrumb-inner .current span { overflow: hidden; text-overflow: ellipsis; }

.admin-page { min-height: 100vh; padding: clamp(1rem, 4vw, 3rem); }
.admin-shell { width: min(920px, 100%); margin: 0 auto; padding: clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.admin-heading h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 7vw, 4.8rem); }
.admin-toolbar { margin: 2rem 0 1rem; display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: end; gap: .8rem; }
.admin-toolbar label { grid-column: 1 / -1; font-weight: 800; }
.admin-toolbar select { min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.admin-status { min-height: 1.6em; color: var(--muted); font-weight: 700; }
.admin-status.success { color: #27683e; }
.admin-status.notice { color: #8f4c08; }
.admin-status.error { color: #a52b1d; }
.admin-product-list { margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; list-style: none; counter-reset: product-position; }
.admin-product-item { counter-increment: product-position; min-height: 92px; padding: .55rem .7rem; display: grid; grid-template-columns: 2.1rem 76px minmax(0, 1fr) auto; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 4px 14px rgba(92,31,11,.06); }
.admin-product-item::before { content: counter(product-position) "."; color: var(--muted); font-weight: 800; text-align: right; }
.admin-product-item.dragging { opacity: .48; border-color: var(--gold); }
.admin-product-item img { width: 76px; height: 76px; border-radius: 8px; object-fit: contain; background: #fff9e9; }
.admin-product-copy { min-width: 0; display: grid; gap: .18rem; }
.admin-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-copy small { color: var(--muted); }
.admin-product-controls { display: flex; align-items: center; gap: .35rem; }
.admin-product-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); font-size: 1.2rem; font-weight: 800; }
.admin-drag-handle { padding: .45rem; color: var(--muted); font-size: 1.35rem; cursor: grab; }

main { overflow: hidden; }
.hero { position: relative; isolation: isolate; width: min(1240px, calc(100% - 2rem)); min-height: 670px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: 5rem 0 6rem; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: radial-gradient(circle at 88% 14%, rgba(239,154,40,.18), transparent 30%), linear-gradient(105deg, #fff8e8, #fff2d3); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 .65rem; color: var(--gold); font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.04; }
.hero h1 { max-width: 770px; margin: 0; font-size: clamp(3.4rem, 7vw, 7rem); letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: 1.8rem 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.button.primary { color: white; background: linear-gradient(135deg, var(--forest), #e86809); box-shadow: 0 10px 25px rgba(153, 45, 10, .22); }
.button.primary:hover { background: var(--forest-dark); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--paper); }
.button.secondary:hover { border-color: var(--forest); }
.phone-hint { margin: 1.25rem 0 0; color: var(--muted); font-size: .92rem; }
.hero-visual { position: relative; min-height: 540px; display: grid; place-items: center; }
.hero-visual .orb { position: absolute; inset: 5%; border-radius: 47% 53% 61% 39% / 43% 39% 61% 57%; background: linear-gradient(145deg, #ffe29a, #ef8b28); transform: rotate(-8deg); }
.hero-visual::before { content: ""; position: absolute; width: 180px; height: 180px; right: -2%; top: 5%; border: 1px solid rgba(182, 129, 59, .38); border-radius: 50%; }
.hero-visual img { position: relative; z-index: 2; width: min(82%, 470px); max-height: 470px; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(107, 40, 15, .24)); mix-blend-mode: multiply; }
.hero-visual > span { position: absolute; z-index: 3; right: 2%; bottom: 5%; padding: 1rem 1.3rem; color: white; background: var(--forest-dark); border-radius: 50% 50% 48% 52%; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.1; text-align: center; transform: rotate(7deg); }
.hero-visual > span small { font-family: inherit; font-size: .72rem; }

.section { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 5rem 0; }
.section.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; border-top: 1px solid var(--line); }
.section.intro h2, .section-heading h1, .section-heading h2, .phone-panel h2, .product-description h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); }
.section.intro > p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading > a { color: var(--forest); font-weight: 800; }
.owner-intro { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 0; }
.owner-intro > p { width: min(100%, 675px); margin: 1rem auto 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.35; text-align: center; }
.owner-intro > .owner-shop-link { margin-top: .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 800; }
.owner-shop-link a { color: var(--forest-dark); }
.heritage-copy { max-width: 1100px; }
.heritage-banner { display: block; width: min(100%, 675px); height: auto; margin: 0 auto; border-radius: 12px; }
.heritage-copy h3, .fraud-warning h2 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.heritage-copy a { color: var(--forest-dark); font-weight: 750; }
.fraud-warning { margin: 0 0 2rem; padding: 1.4rem 1.6rem; border: 1px solid rgba(200,58,11,.28); border-left: 5px solid var(--forest); border-radius: 14px; background: #fff7e6; }
.fraud-warning h2 { color: var(--forest); }
.fraud-warning p { margin: 0 0 .5rem; font-weight: 750; }
.fraud-warning ul { margin: 0; padding-left: 1.25rem; }
.heritage-lead { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: linear-gradient(135deg, #fff7dc, #fffdf7); box-shadow: 0 12px 35px rgba(113,42,13,.08); }
.heritage-lead > p { max-width: 820px; color: var(--muted); font-size: 1.06rem; }
.heritage-lead blockquote { max-width: 850px; margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--gold); font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.3; }
.allergy-info { margin: 2rem 0 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; background: var(--paper); }
.allergy-info h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1.25rem; color: var(--forest); }
.allergy-info h3 span { color: var(--muted); font-family: inherit; font-size: .92rem; font-weight: 600; }
.allergy-info > p { max-width: 820px; }
.allergen-list { width: min(100%, 650px); margin: 1.25rem 0; }
.allergen-list > div { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(160px, 1fr); gap: 1rem; padding: .18rem 0; }
.allergen-list dt { font-style: italic; }
.allergen-list dd { margin: 0; }
.heritage-copy > .heritage-motto { margin: 1.75rem 0; color: #39753d; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; }
.heritage-topics { margin: 2rem 0; }
.heritage-topics ul { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.heritage-topics li a { display: block; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }
.heritage-topics li a:hover { border-color: var(--forest); }
.seal-panel { margin: 2rem 0; display: grid; grid-template-columns: 135px minmax(0,1fr); align-items: center; gap: 1.4rem; padding: 1.5rem; border-radius: 16px; background: var(--sage-pale); }
.seal-panel-mark { display: block; }
.seal-panel img { display: block; width: 125px; height: auto; margin: auto; filter: brightness(0); }
.seal-panel h3 { margin: 0; }
.seal-panel p { margin: .45rem 0 0; font-size: 1.08rem; }
.bio-seal-banner { display: block; width: min(100%, 900px); height: auto; margin: 0 auto 2rem; border-radius: 14px; }
.heritage-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.heritage-details section { padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.heritage-details ul { margin-bottom: 0; padding-left: 1.25rem; }
.heritage-details li + li { margin-top: .75rem; }
.tinted { position: relative; }
.tinted::before { content: ""; position: absolute; z-index: -1; inset: 0 50%; width: 100vw; transform: translateX(-50%); background: var(--sage-pale); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.category-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card img, .category-mark { width: 100%; height: 130px; object-fit: cover; background: var(--sage-pale); }
.category-card img.category-product-image { padding: .5rem; object-fit: contain; background: linear-gradient(145deg, #fff, #efe9dc); }
.category-mark { display: grid; place-items: center; color: var(--sage); font-size: 3rem; }
.category-card span:last-child { display: flex; flex-direction: column; padding: 1rem; }
.category-card strong { font-family: Georgia, serif; font-size: 1.05rem; }
.category-card small { color: var(--muted); }
.category-shop-back { margin: 2.5rem 0 0; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 30px rgba(112, 45, 17, .05); }
.product-image { aspect-ratio: 1 / .92; display: grid; place-items: center; padding: 1.25rem; background: linear-gradient(145deg, #fff, #f2eee3); }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem; }
.product-card-body > .eyebrow { color: var(--forest); }
.product-card h2 { margin: 0 0 .65rem; font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.15; }
.product-card h2 a { text-decoration: none; }
.product-card-body > p:not(.eyebrow) { margin: 0 0 1.2rem; color: var(--muted); font-size: .9rem; }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; }
.product-actions strong { white-space: nowrap; font-size: 1.05rem; }
.add-button { min-height: 40px; padding: .55rem .78rem; border: 0; border-radius: 999px; color: white; background: var(--forest); font-size: .8rem; font-weight: 800; }
.add-button:hover { background: var(--forest-dark); }

.phone-panel { width: min(1240px, calc(100% - 2rem)); margin: 5rem auto; padding: clamp(2rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-radius: var(--radius); color: white; background: linear-gradient(120deg, #7f210e, #c63a0b 62%, #e96e0a); overflow: hidden; box-shadow: var(--shadow); }
.phone-panel p { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.72); }
.phone-panel > a { flex: 0 0 auto; color: white; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 5rem); line-height: .85; text-decoration: none; }
.phone-panel > a span { display: block; color: var(--sage); font-size: .42em; letter-spacing: .18em; }

.page-hero { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.75rem, 5vw, 4.5rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero.compact { padding-bottom: 2rem; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3.1rem, 7vw, 6.4rem); letter-spacing: -.04em; }
.page-hero > p:last-child { max-width: 720px; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.12rem; }
.page-hero .hero-actions { margin-top: 1.5rem; }
.page-hero .allergy-quick-link { margin: 0 0 1.25rem; }
.page-hero .category-list-link { display: flex; justify-content: flex-end; max-width: none; margin: 1.5rem 0 0; }
.product-description .legacy-subheading { margin-block: 1.33em; font-family: inherit; font-size: 1em; font-weight: 700; line-height: normal; }
.allergy-quick-link a { color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 850; }

.catalog-tools { position: sticky; z-index: 10; top: 88px; display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 1rem; margin: -1.5rem 0 2rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.95); box-shadow: 0 12px 35px rgba(32,52,45,.08); backdrop-filter: blur(10px); }
.catalog-tools.catalog-search { grid-template-columns: minmax(0, 1fr) auto; }
.catalog-tools label, .form-grid label, .detail-buy label { display: grid; gap: .4rem; color: var(--muted); font-size: .8rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid rgba(32,52,45,.24); border-radius: 10px; color: var(--ink); background: white; }
textarea { resize: vertical; }
.catalog-tools p { margin: 0 0 .7rem; color: var(--muted); white-space: nowrap; }
.empty-state { padding: 3rem; text-align: center; }

.product-detail { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.detail-image { min-height: 520px; display: grid; place-items: center; padding: 2rem; border-radius: var(--radius); background: linear-gradient(145deg, white, #eee8da); }
.detail-image img { width: 100%; max-height: 560px; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy h1 { margin: .4rem 0 .5rem; font-size: clamp(2.7rem, 5vw, 5rem); }
.detail-copy .eyebrow a { color: var(--gold); }
.sku { color: var(--muted); font-size: .85rem; }
.detail-short { margin-top: 1.7rem; color: var(--muted); font-size: 1.08rem; }
.detail-price { margin: 1.5rem 0; font-family: Georgia, serif; font-size: 2rem; }
.detail-buy { display: flex; align-items: end; gap: .8rem; }
.detail-buy label { width: 86px; }
.delivery-time { display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; margin: 1.25rem 0 .75rem; padding: .8rem 1rem; border-left: 4px solid var(--gold); border-radius: 8px; color: var(--ink); background: #fff6df; }
.delivery-time strong { color: var(--forest-dark); }
.delivery-time span { color: var(--muted); }
.microcopy { color: var(--muted); font-size: .88rem; }
.category-back { margin-top: .35rem; }
.product-description { max-width: 880px; border-top: 1px solid var(--line); }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.topic-card { min-height: 135px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-family: Georgia, serif; font-size: 1.25rem; text-decoration: none; }
.topic-card b { color: var(--gold); font-family: sans-serif; transition: transform .2s ease; }
.topic-card:hover { border-color: var(--sage); box-shadow: var(--shadow); }
.topic-card:hover b { transform: translateX(4px); }

.prose { max-width: 900px; font-size: 1.02rem; }
.prose h1, .prose h2, .prose h3 { margin: 2.2rem 0 .8rem; }
.prose h1 { font-size: 2.4rem; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.4rem; }
.prose img { height: auto !important; margin: 1.2rem 0; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { padding: .65rem; border: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-card { min-height: 290px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.contact-card.featured { color: white; background: var(--forest-dark); }
.contact-card h2 { margin: 0 0 1rem; font-size: 2rem; }
.contact-card.featured h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.contact-card.featured h2 a { text-decoration: none; }
.contact-card p { color: var(--muted); }
.contact-card.featured p:not(.eyebrow) { color: rgba(255,255,255,.75); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 2rem; align-items: start; }
.cart-items { display: grid; gap: .8rem; }
.cart-item { display: grid; grid-template-columns: 90px minmax(0,1fr) 96px auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cart-item img { width: 90px; height: 90px; padding: .35rem; object-fit: contain; background: #f4f0e7; border-radius: 10px; mix-blend-mode: multiply; }
.cart-item h3 { margin: 0 0 .25rem; font-family: Georgia, serif; font-size: 1.05rem; }
.cart-item p { margin: 0; color: var(--muted); font-size: .85rem; }
.cart-item input { min-height: 40px; }
.cart-item button { border: 0; background: none; color: #8d4439; font-weight: 750; }
.coupon-box { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.coupon-box h2 { margin: 0 0 .85rem; font-size: 1.35rem; }
.coupon-box .eyebrow { margin-bottom: .25rem; }
.coupon-controls { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: .6rem; align-items: end; }
.coupon-controls label { grid-column: 1 / -1; font-size: .82rem; font-weight: 750; }
.coupon-controls input { min-height: 46px; }
.coupon-controls .button { min-height: 46px; border: 0; }
.coupon-remove { min-height: 46px; padding: 0 .7rem; border: 0; color: #8d4439; background: transparent; font-weight: 750; }
.coupon-status { min-height: 1.4em; margin: .75rem 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.coupon-status.success { color: var(--forest); }
.coupon-status.error { color: #8d3028; }
.cart-summary { margin-top: 1rem; padding: 1.25rem; border-radius: 14px; background: var(--sage-pale); }
.summary-row { display: flex; justify-content: space-between; gap: 2rem; }
.summary-row.discount { color: var(--forest); }
.summary-row.total { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 850; }
.cart-empty { padding: 3rem; border: 1px dashed var(--sage); border-radius: var(--radius); text-align: center; }
.cart-empty h2 { margin-top: 0; }
.order-form { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.order-form h2 { margin: 0 0 1.4rem; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid .wide { grid-column: 1 / -1; }
.trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.contact-rule { color: var(--muted); font-size: .82rem; }
.field-check, .address-check { margin: .35rem 0 0; padding: .65rem .75rem; border-left: 3px solid var(--gold); border-radius: 8px; color: #7b3a16; background: #fff6df; font-size: .76rem; font-weight: 650; line-height: 1.45; }
.address-check { grid-column: 1 / -1; }
.field-check[hidden], .address-check[hidden] { display: none; }
.remember-details { margin: 1rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fff8e8; }
.remember-details > p { margin: .55rem 0 0 2rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.forget-details { margin: .65rem 0 0 2rem; padding: 0; border: 0; color: #8e2c10; background: none; font: inherit; font-size: .78rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.remember-status { min-height: 0; }
.remember-status:empty { display: none; }
.required-consents { display: grid; gap: .7rem; margin: 1rem 0 1.2rem; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .7rem; align-items: start; margin: 0; font-size: .82rem; line-height: 1.5; }
.consent input { width: 18px; height: 18px; min-height: 0; margin: .12rem 0 0; }
.consent span { min-width: 0; }
.consent a { overflow-wrap: anywhere; }
.order-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: .25rem; }
.order-actions .button { min-width: 240px; border: 0; }
.order-submit { width: 100%; border: 0; }
.form-status { min-height: 1.5em; margin-bottom: 0; font-weight: 700; }
.form-status.error { color: #8d3028; }
.form-status.success { color: var(--forest); }
.order-review { scroll-margin-top: 1rem; }
.order-review > h2 { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.review-intro { max-width: 760px; margin-bottom: 1.5rem; color: var(--muted); }
.order-review-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 1.5rem; align-items: start; }
.review-side { display: grid; gap: 1.5rem; align-self: start; }
.review-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.review-card > h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.review-items { display: grid; gap: .7rem; }
.review-items .cart-item { grid-template-columns: 70px minmax(0, 1fr) auto; padding: .8rem; box-shadow: none; }
.review-items .cart-item img { width: 70px; height: 70px; }
.review-quantity { white-space: nowrap; color: var(--forest-dark); font-size: 1rem; }
.review-summary { margin-top: 1rem; }
.review-contact { margin: 0; }
.review-contact > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.review-contact > div:last-child { border-bottom: 0; }
.review-contact dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.review-contact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; white-space: pre-line; }
.review-confirmation { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff8e8; }
.review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; margin-top: 1rem; }
.review-actions .button { min-width: 210px; border: 0; }
.order-success { padding: clamp(2rem, 6vw, 4rem); border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--paper); text-align: center; }
.order-success h2 { margin-top: 0; }

.withdrawal-tool { max-width: 900px; padding-top: 3rem; }
.withdrawal-tool > p { color: var(--muted); font-size: 1.05rem; }
.withdrawal-note { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid rgba(230,107,11,.28); border-left: 4px solid var(--gold); border-radius: 10px; background: #fff6df; }
.withdrawal-form { margin-top: 1.5rem; }
.withdrawal-form .form-grid label span { font-weight: 500; }
.withdrawal-next { width: 100%; border: 0; }
.withdrawal-review { scroll-margin-top: 160px; padding: clamp(1.25rem, 4vw, 2.2rem); border: 2px solid var(--gold); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.withdrawal-review h2, .withdrawal-success h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.withdrawal-review dl { margin: 1.5rem 0; display: grid; gap: .65rem; }
.withdrawal-review dl > div { display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.withdrawal-review dt { color: var(--muted); font-size: .82rem; font-weight: 800; }
.withdrawal-review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; white-space: pre-wrap; }
.withdrawal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; }
.withdrawal-success { padding: clamp(1.5rem, 5vw, 3rem); border: 2px solid var(--sage); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.withdrawal-success > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.05rem; }

.site-footer { margin-top: 3rem; padding: 4rem max(1rem, calc((100% - 1240px)/2)); color: rgba(255,248,229,.8); background: #4b1e12; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
.site-footer h2 { color: white; font-family: inherit; font-size: .83rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.site-footer .phone { color: white; font-family: Georgia, serif; font-size: 2.2rem; text-decoration: none; }
.site-footer nav a { display: block; margin: .35rem 0; }
.footer-note { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }

.toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; max-width: min(390px, calc(100% - 2rem)); padding: .85rem 1rem; border-radius: 12px; color: white; background: var(--forest-dark); box-shadow: var(--shadow); transform: translateY(130%); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (min-width: 821px) {
  .site-header {
    background-image: none;
  }
  .header-inner {
    grid-template-rows: 104px auto;
    background-image: url('/assets/brand/alabaster-autumn-clean.jpg');
    background-position: left -22px;
    background-repeat: no-repeat;
    background-size: 900px 148px;
  }
  .brand { width: min(900px, 100%); min-height: 104px; }
  .page-hero h1 { font-size: clamp(3.1rem, 6vw, 4.75rem); }
  .page-hero.compact h1 { max-width: none; font-size: clamp(3.1rem, 5vw, 4rem); }
}

@media (min-width: 821px) and (max-width: 1199px) {
  .cart-layout { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
  .cart-layout { width: min(1440px, calc(100% - 2rem)); grid-template-columns: minmax(500px, .9fr) minmax(600px, 1.1fr); }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 420px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Inhaltsstoffe: dieselbe ruhige Listendarstellung wie bei den aetherischen Oelen. */
.ingredient-list > ul {
  margin: 0;
  padding-left: 1.35rem;
}

.ingredient-list > ul > li {
  margin: 0 0 .8rem;
  padding: 0;
  line-height: inherit;
}

.ingredient-list > ul > li > p {
  margin: 0;
}

.ingredient-list > blockquote,
.ingredient-list > ul > li > ul {
  display: none;
}

.ingredient-list > ul > li br + br {
  display: none;
}

@media (min-width: 821px) and (max-width: 1050px) {
  .main-nav { gap: 0; padding-inline: .3rem; }
  .main-nav a { padding-inline: .38rem; font-size: .78rem; }
  .contract-quick-link { padding-inline: .7rem; font-size: .8rem; }
}

@media (max-width: 820px) {
  .preview-bar { min-height: 28px; padding: .18rem 1rem; justify-content: center; text-align: center; font-size: .72rem; }
  .site-header { background-position: center top; background-size: auto 72px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 72px auto; column-gap: .4rem; }
  .brand { grid-column: 1; grid-row: 1; width: auto; min-height: 68px; }
  .menu-toggle { grid-column: 3; grid-row: 1; width: 46px; height: 46px; display: grid; place-content: center; gap: 4px; padding: 0; }
  .menu-toggle span { width: 23px; height: 2px; display: block; background: white; transition: .2s ease; }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 3; display: none; padding: .8rem 1rem 1.2rem; grid-template-columns: 1fr 1fr; gap: .5rem; border-bottom: 2px solid #ef9a28; background: #fff2cb; box-shadow: 0 16px 30px rgba(91,32,12,.16); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: .85rem; border-radius: 9px; color: var(--ink); background: var(--paper); text-align: center; }
  .main-nav a::after { display: none; }
  .contract-quick-link { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; min-height: 36px; justify-content: flex-end; padding: .35rem .75rem; border: 0; border-top: 2px solid #f3a52d; font-size: .8rem; }
  .category-nav { display: none !important; }
  .breadcrumb-nav { display: none; }
  .cart-link { position: relative; grid-column: 2; grid-row: 1; width: 58px; height: 52px; margin: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0; color: white; background: transparent; font-size: 0; }
  .cart-link::after { width: 40px; height: 40px; }
  .cart-link b { position: absolute; top: 0; right: -1px; min-width: 1.45rem; height: 1.45rem; margin: 0; border: 2px solid #fff7de; color: white; background: var(--forest); font-size: .72rem; line-height: 1; box-shadow: 0 2px 7px rgba(92,31,11,.28); }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 4rem 0; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 5.8rem); }
  .hero-visual { min-height: 400px; }
  .hero-visual img { max-height: 360px; }
  .section.intro { grid-template-columns: 1fr; gap: 1rem; }
  .heritage-details { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { min-height: 380px; }
  .topic-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-panel { align-items: flex-start; flex-direction: column; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .coupon-controls { grid-template-columns: 1fr 1fr; }
  .coupon-controls input { grid-column: 1 / -1; }
  .coupon-controls .button, .coupon-remove { width: 100%; }
}

@media (max-width: 680px) {
  .admin-page { padding: .55rem; }
  .admin-shell { padding: 1rem; border-radius: 16px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-toolbar label { grid-column: auto; }
  .admin-toolbar .button { width: 100%; }
  .admin-product-item { grid-template-columns: 1.5rem 56px minmax(0, 1fr); gap: .55rem; }
  .admin-product-item img { width: 56px; height: 56px; }
  .admin-product-controls { grid-column: 2 / -1; justify-content: flex-end; }
  .admin-drag-handle { display: none; }
}

@media (max-width: 560px) {
  .site-header { background-position: calc(50% - 128px) top; background-size: auto 72px; }
  .site-header::after { content: ""; position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 140px; pointer-events: none; background: linear-gradient(90deg, rgba(216,67,1,0), #d84301 34px, #d84301); }
  .header-inner { width: calc(100% - 1rem); }
  .brand { max-width: none; }
  .hero, .section, .page-hero, .product-detail, .phone-panel { width: calc(100% - 1.25rem); }
  .hero { padding-top: 3rem; }
  .hero-visual { min-height: 320px; }
  .hero-visual img { max-height: 280px; }
  .hero-visual > span { right: 0; bottom: 0; }
  .hero-actions .button { width: 100%; }
  .section { padding: 3.4rem 0; }
  .allergen-list > div { grid-template-columns: 1fr; gap: 0; padding: .35rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .category-card { min-height: 170px; }
  .category-card img, .category-mark { height: 95px; }
  .category-card strong { font-size: .92rem; }
  .seal-panel { grid-template-columns: 1fr; text-align: center; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 120px minmax(0,1fr); }
  .product-image { min-height: 100%; aspect-ratio: auto; padding: .7rem; }
  .product-card-body { padding: 1rem; }
  .product-card h3 { font-size: 1.05rem; }
  .product-card-body > p:not(.eyebrow) { display: none; }
  .product-actions { align-items: flex-start; flex-direction: column; }
  .add-button { width: 100%; }
  .page-hero { padding-top: 2.25rem; padding-bottom: 2rem; }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .catalog-tools { top: 72px; grid-template-columns: 1fr; }
  .catalog-tools p { display: none; }
  .detail-image { min-height: 300px; padding: 1rem; }
  .detail-buy { align-items: stretch; flex-direction: column; }
  .detail-buy label { width: 100%; }
  .delivery-time { grid-template-columns: 1fr; }
  .category-back { width: 100%; }
  .topic-grid, .contact-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 100px; }
  .contact-card { min-height: 0; }
  .cart-item { grid-template-columns: 70px minmax(0,1fr) 82px; gap: .7rem; }
  .cart-item img { width: 70px; height: 70px; }
  .cart-item > button { grid-column: 2 / -1; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .order-actions .button, .review-actions .button { width: 100%; min-width: 0; }
  .review-items .cart-item { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .review-items .cart-item img { width: 62px; height: 62px; }
  .review-contact > div { grid-template-columns: 1fr; gap: .2rem; }
  .withdrawal-review dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .withdrawal-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

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