/* Shared styles, following the brand style guide. */
:root {
  --cream: #FBF4E2;        /* page background */
  --cream-light: #FFF9EA;  /* cards, inputs */
  --paper: #F4E7C3;        /* panels, image wells */
  --amber: #E0A12B;        /* accents, add to cart */
  --green: #2E4628;        /* story band, eyebrows */
  --dark: #2B1D0E;         /* text, primary buttons, footer */
  --wax: #5A4428;          /* secondary text */
  --line: #E6D7AE;         /* borders */
  --error: #B3261E;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.container { width: min(1140px, 100% - 48px); margin-inline: auto; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}

/* ---------- Buttons and tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}
.btn-primary { background: var(--dark); color: var(--cream-light); }
.btn-primary:hover { background: #40301b; }
.btn-secondary { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-secondary:hover { background: var(--dark); color: var(--cream-light); }
.btn-amber { background: var(--amber); color: var(--dark); }
.btn-amber:hover { background: #eab040; }
.btn-green { background: var(--green); color: var(--cream-light); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--amber); color: var(--dark);
}
.tag-green { background: var(--green); color: var(--cream-light); }

.chip {
  padding: 4px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--cream-light); font-size: 13.5px; font-weight: 500; color: var(--dark);
}
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: var(--cream-light); }

/* ---------- Top bar and header ---------- */
.topbar {
  background: var(--green); color: var(--cream-light);
  font-size: 13.5px; text-align: center; padding: 8px 16px;
}
.topbar span + span { margin-left: 22px; }

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header .container {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-block: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.1; display: block; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wax); display: block; margin-top: 2px; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.header-actions { display: flex; justify-content: flex-end; }
.cart-btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hex-bg {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='97' height='168' viewBox='0 0 48.5 84'%3E%3Cpath d='M24.25 0L48.5 14V42L24.25 56L0 42V14Z M24.25 56V84' fill='none' stroke='%23E0A12B' stroke-opacity='.2' stroke-width='.6'/%3E%3C/svg%3E");
}
.hero { border-bottom: 1px solid var(--line); overflow-x: clip; } /* the tilted jar photos may not widen the page */
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding-block: 76px 84px;
}
.hero h1 { font-size: clamp(42px, 6vw, 70px); margin-top: 26px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--green); }
.hero-lead { margin-top: 26px; max-width: 30em; font-size: 18px; color: var(--wax); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: flex; align-items: flex-end; justify-content: center; }
.hero-photo { height: auto; border-radius: 20px; border: 6px solid var(--cream-light); box-shadow: 0 18px 40px rgba(43, 29, 14, .18); }
/* Acacia honey first: larger, on the left and in front; wildflower honey behind it on the right. */
.hero-photo-main { width: 270px; position: relative; z-index: 1; margin-right: -36px; transform: rotate(-3deg); }
.hero-photo-second { width: 230px; margin-bottom: 34px; transform: rotate(4deg); }

/* ---------- Products ---------- */
.section { padding-block: 84px; }
.section-light { background: #FFFAEE; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 12px; max-width: 13em; }
.link-arrow { font-weight: 600; font-size: 15px; white-space: nowrap; text-underline-offset: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.product-img {
  background: var(--paper); border-radius: 14px; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.product-img { overflow: hidden; }
.product-img svg { width: 34%; }
.product-img { position: relative; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-img img.is-photo { object-fit: cover; padding: 0; }
.product-note { margin-top: 16px; font-size: 13px; font-style: italic; color: var(--wax); }
.product-card h3 { font-size: 23px; margin-top: 4px; }
.product-desc { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--wax); flex: 1; }
.chips { display: flex; gap: 8px; margin-top: 14px; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.price { font-family: var(--serif); font-weight: 600; font-size: 19px; white-space: nowrap; }

/* ---------- Awards ---------- */
.awards { padding-block: 64px; }
.awards .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.awards h2 { font-size: clamp(30px, 3.6vw, 40px); margin-top: 12px; }
.awards p { margin-top: 12px; color: var(--wax); max-width: 30em; }
.awards-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 30em; }
.awards-list li { display: flex; align-items: center; gap: 14px; }
.awards-list b { display: block; font-size: 15.5px; }
.awards-list small { display: block; color: var(--wax); font-size: 13.5px; }
.awards-year {
  flex: none; padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.awards-medals { display: flex; gap: 8px; }
.awards-medals img { width: min(150px, 29vw); height: auto; }

/* ---------- Story (green band) ---------- */
.story { background: var(--green); color: var(--cream-light); padding-block: 88px; }
.story .eyebrow { color: #E9BC55; }
.story h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 14px; max-width: 14em; }
.story-lead { margin-top: 18px; max-width: 36em; opacity: .92; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Photo grid: one large photo and five small ones; the last small one opens all photos. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 118px; gap: 10px; }
.gallery-tile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: rgba(251, 244, 226, .08); cursor: zoom-in; }
.gallery-tile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 29, 14, .62);
  color: var(--cream-light); font-family: var(--serif); font-size: 28px; }

.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 14, 7, .88); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: var(--cream-light); font-size: 15px; text-align: center; }
.lightbox .lightbox-counter { opacity: .8; }
.lightbox-close, .lightbox-nav { position: fixed; border: 0; border-radius: 999px; background: rgba(251, 244, 226, .14);
  color: var(--cream-light); width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(251, 244, 226, .26); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.story-item { border-top: 1.5px solid #C99A35; padding-top: 22px; }
.story-num { font-family: var(--serif); font-size: 38px; line-height: 1; color: #E9BC55; }
.story-item h3 { font-size: 23px; margin-top: 16px; }
.story-item p { margin-top: 8px; font-size: 15px; opacity: .9; }

/* ---------- Gift sets ---------- */
.gift .container { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.gift-art {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 34px;
}
.gift-art svg { width: 72px; }
.gift h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 14px; }
.gift p { margin-top: 16px; color: var(--wax); }
.gift-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--cream); padding-block: 56px 28px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 27px; }
.footer-top p { margin-top: 8px; opacity: .9; }
.footer-cols { display: flex; gap: 80px; }
.footer-cols h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; opacity: .9; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(251, 244, 226, .14);
  font-size: 13px; opacity: .85;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--wax); font-size: 14px; }
.input {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid #D9C99B; background: var(--cream-light);
}
.input::placeholder { color: #9A8B6C; }
.input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224, 161, 43, .25); }
.input.is-error { border-color: var(--error); }
.error-msg { color: var(--error); font-size: 13.5px; font-weight: 600; }
.input.is-error:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .18); }
.field-error {
  display: flex; align-items: flex-start; gap: 7px; margin: 0;
  color: var(--error); font-size: 13.5px; font-weight: 600; line-height: 1.4;
  animation: field-error-in .18s ease-out;
}
.field-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px;
  border-radius: 50%; background: var(--error); color: #fff; font-size: 11.5px; font-weight: 700;
}
.terms + .field-error { margin-top: 8px; }
@keyframes field-error-in { from { opacity: 0; transform: translateY(-3px); } }

/* Photo picker: the real file input is hidden, its label is the button. */
.file-pick {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  border: 1.5px dashed #D9C99B; border-radius: 14px; background: var(--cream-light);
}
.file-pick:has(.is-error) { border-color: var(--error); }
.file-pick:has(input:focus-visible) .btn { outline: 3px solid var(--amber); outline-offset: 2px; }
.file-thumb {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden;
  border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: #B9A87F;
}
.file-thumb svg { width: 28px; height: 28px; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { display: grid; gap: 8px; min-width: 0; }
.file-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name.is-empty { color: var(--wax); font-weight: 400; }
.file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-actions .btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 14px; }
.file-actions .btn svg { width: 16px; height: 16px; }

/* Confirmation dialog (forms.js), used instead of the browser's confirm(). */
.confirm-dialog { width: min(440px, calc(100% - 32px)); }
.confirm-dialog h2 { font-size: 24px; }
.confirm-dialog p { margin: 10px 0 0; color: var(--wax); line-height: 1.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-stack { display: grid; gap: 16px; }

.card {
  background: var(--cream-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}

/* ---------- Contact ---------- */
.page-head { padding-block: 64px 12px; }
.page-head h1 { font-size: clamp(38px, 5vw, 56px); margin-top: 14px; }
.page-head p { margin-top: 14px; color: var(--wax); max-width: 34em; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; padding-block: 36px 88px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
.card h2 { font-size: 26px; margin-bottom: 20px; }

/* ---------- Checkout ---------- */
.checkout-header .container { grid-template-columns: 1fr auto 1fr; }
.steps { display: flex; gap: 22px; font-size: 14.5px; color: var(--wax); list-style: none; margin: 0; padding: 0; }
.steps li[aria-current="step"] { color: var(--dark); font-weight: 600; border-bottom: 2px solid var(--amber); }
.secure { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--wax); justify-content: flex-end; }
.secure svg, .secure-note svg { width: 14px; height: 14px; flex: none; }

.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; padding-block: 44px 88px; }
.checkout h1 { font-size: 44px; margin-bottom: 24px; }
.checkout-main { display: grid; gap: 24px; }
.checkout .card h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.secure-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--wax); letter-spacing: 0; }

.ship-options { display: grid; gap: 10px; }
.ship-option {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--cream-light); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.ship-option.is-selected { border-color: var(--dark); background: var(--cream); cursor: default; }
.ship-option > svg { flex: none; }
.ship-option input { accent-color: var(--dark); width: 20px; height: 20px; flex: none; margin: 0; }
.ship-text { flex: 1; }
.ship-title { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ship-title .tag { font-size: 10.5px; padding: 3px 10px; }
.ship-desc { font-size: 13.5px; color: var(--wax); }
.ship-price { font-weight: 600; white-space: nowrap; }

.locker-panel { margin-top: 16px; padding: 18px; background: var(--cream); border: 1px dashed #D9C99B; border-radius: 14px; }
.locker-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 12px; }
.locker-head small { color: var(--wax); font-size: 13px; }
.locker-search { display: flex; gap: 10px; margin: 6px 0 12px; }
.locker-search .btn { border-radius: 12px; padding: 10px 16px; font-size: 14.5px; }
.locker-search svg { width: 15px; height: 15px; }
.locker-list { display: grid; gap: 8px; }
.locker {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 16px; background: var(--cream-light); border: 1.5px solid var(--line); border-radius: 12px;
}
.locker svg { width: 22px; height: 22px; flex: none; }
.locker span { flex: 1; font-size: 13px; color: var(--wax); line-height: 1.4; }
.locker b { display: block; font-size: 14.5px; color: var(--dark); font-weight: 600; }
.locker small { font-size: 12.5px; color: var(--wax); }
.locker[aria-pressed="true"] { border-color: var(--green); background: #DDE8D2; }
[hidden] { display: none !important; }

.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet { padding: 12px; border-radius: 8px; font-weight: 600; border: 1.5px solid var(--dark); background: var(--cream-light); }
.wallet-dark { background: #000; color: #fff; border-color: #000; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--wax); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-input { position: relative; }
.card-input .input { padding-right: 150px; }
.card-brands { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.card-brands span { font-size: 10px; font-weight: 700; padding: 2px 6px; border: 1px solid #D9C99B; border-radius: 4px; background: #fff; }
.terms { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.terms input { width: 18px; height: 18px; accent-color: var(--dark); }

.summary { position: sticky; top: 24px; }
.summary h2 { font-size: 23px; }
.summary-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.summary-thumb { width: 54px; height: 54px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; }
.summary-thumb { overflow: hidden; }
.summary-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.summary-thumb img.is-photo { object-fit: cover; padding: 0; }
.summary-item div { flex: 1; font-size: 13px; color: var(--wax); line-height: 1.35; }
.summary-item b { display: block; font-size: 15px; color: var(--dark); }
.summary-item > span { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.summary-rows { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: grid; gap: 6px; font-size: 14.5px; }
.summary-rows div { display: flex; justify-content: space-between; }
.summary-rows .muted { font-size: 12.5px; color: var(--wax); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--dark); margin: 16px 0 18px; padding-top: 18px; font-weight: 700; }
.summary-total strong { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.summary-note { margin-top: 14px; font-size: 12.5px; color: var(--wax); text-align: center; line-height: 1.5; }

.hint { font-size: 13px; color: var(--wax); }
#payment-element { min-height: 120px; }
.locker-panel { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.locker-chosen { font-weight: 600; }
.locker-chosen.is-empty { font-weight: 400; color: var(--wax); }
#boxnowmap { width: 100%; }
#boxnowmap iframe { width: 100%; min-height: 520px; border: 0; border-radius: 12px; }
#express-checkout:empty { display: none; }

/* ---------- Cart ---------- */
.cart-page { padding-block: 44px 88px; }
.cart-page h1 { font-size: 44px; margin-bottom: 24px; }
.cart-empty { display: grid; justify-items: start; gap: 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.cart-thumb { width: 64px; height: 64px; }
.cart-line-name { flex: 1; min-width: 150px; display: grid; font-size: 14px; color: var(--wax); }
.cart-line-name b { font-size: 17px; color: var(--dark); }
.cart-qty { min-width: 28px; text-align: center; font-weight: 700; }
.cart-line-total { min-width: 84px; text-align: right; }
.stepper form { display: contents; }

.order-complete { display: grid; gap: 22px; justify-items: start; padding-bottom: 88px; }
.order-complete h1, .order-complete p { margin-top: 0; }
.order-complete-card { width: min(520px, 100%); }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #F6EEDB; font-size: 15.5px; }
.admin-side { background: var(--dark); color: var(--cream); padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { padding: 0 8px 22px; }
.admin-side .brand-name { font-size: 21px; color: var(--cream-light); }
.admin-side .brand-sub { color: #D9C99B; font-size: 12px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.admin-nav a:hover { background: rgba(251, 244, 226, .08); }
.admin-nav a[aria-current="page"] { background: var(--amber); color: var(--dark); font-weight: 700; }
.admin-nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-status { margin-top: auto; border-top: 1px solid rgba(251, 244, 226, .14); padding: 16px 8px 0; display: grid; gap: 6px; font-size: 13.5px; }
.admin-status span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7CB86A; margin-right: 10px; }

.admin-main { padding: 32px 36px 56px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 40px; }
.admin-top p { color: var(--wax); margin-top: 6px; }
.admin-tools { display: flex; gap: 12px; }
.admin-tools .input { border-radius: 999px; width: 280px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: var(--cream-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .eyebrow { color: var(--wax); font-size: 12.5px; }
.stat-value { font-family: var(--serif); font-size: 38px; line-height: 1.25; margin-top: 6px; }
.stat small { color: var(--wax); font-size: 14px; }
.panel { background: var(--cream-light); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.panel h2 { font-size: 27px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters .chip { padding: 8px 16px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.pager .btn { text-decoration: none; }
.pager .is-disabled { opacity: .4; pointer-events: none; }
.pager-status { display: grid; text-align: center; font-size: 14px; }
.pager-status small { color: var(--wax); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; min-width: 760px; }
.orders th { text-align: left; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--wax); padding: 12px; border-bottom: 1px solid var(--line); }
.orders td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.orders td:first-child { font-weight: 700; }
.orders td:last-child { text-align: right; }
.orders td small { display: block; color: var(--wax); font-size: 13px; }
.orders td b { font-weight: 600; }
.items { color: var(--wax); }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-paid { background: var(--green); color: var(--cream-light); }
.status-pending { background: var(--amber); color: var(--dark); }
.status-refunded { border: 1px solid #C9B88A; color: var(--wax); }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stock-list li { display: flex; align-items: center; gap: 14px; }
.stock-list i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.stock-list div { flex: 1; font-size: 13.5px; color: var(--wax); line-height: 1.35; }
.stock-list b { display: block; font-size: 16.5px; color: var(--dark); font-weight: 600; }
.panel-green { background: var(--green); border-color: var(--green); color: var(--cream-light); }
.panel-green p { opacity: .92; margin-top: 10px; }
.kv { margin: 10px 0 20px; }
.kv div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(251, 244, 226, .18); }
.panel-green .btn-secondary { border-color: var(--cream-light); color: var(--cream-light); }
.panel-green .btn-secondary:hover { background: var(--cream-light); color: var(--green); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions .js-ship { min-width: 138px; }
.btn-ghost { background: transparent; color: var(--wax); border-color: var(--line); font-weight: 500; }
.btn-ghost:hover { border-color: var(--wax); }
.empty { text-align: center; color: var(--wax); padding: 36px 0 20px; }
.admin-main > .panel { margin-top: 28px; }

.order-dialog {
  width: min(520px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream-light); color: var(--dark); box-shadow: 0 24px 60px rgba(43, 29, 14, .3);
}
.order-dialog::backdrop { background: rgba(43, 29, 14, .5); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head h2 { font-size: 27px; }
.dialog-head small { color: var(--wax); }
.detail-list { margin: 18px 0 0; }
.detail-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.detail-list dt { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wax); padding-top: 3px; }
.detail-list dd { margin: 0; }
.detail-list ul { margin: 0; padding: 0; list-style: none; }
.detail-total dd { font-family: var(--serif); font-weight: 600; font-size: 23px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.stock-table { min-width: 780px; }
.stock-table td:first-child { font-weight: 600; }
.stock-table td:last-child { text-align: right; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #981f18; }
.stock-table .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 12px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #D9C99B; background: var(--cream);
  font-size: 20px; font-weight: 600; line-height: 1;
}
.stepper button:hover { border-color: var(--dark); }
.stepper button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.stepper .input { width: 84px; padding: 9px 8px; text-align: center; font-weight: 700; font-size: 17px; }
.input.is-dirty { border-color: var(--amber); background: #FDEFC8; }
.price-field { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.price-field .input { width: 104px; padding: 9px 10px; text-align: right; font-weight: 700; font-size: 17px; }
.product-dialog { width: min(600px, calc(100% - 32px)); }
.pack-head, .pack-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 36px; gap: 8px; align-items: center; }
.pack-head { font-size: 12.5px; color: var(--wax); }
.pack-row { margin-bottom: 8px; }
.pack-row .input { padding: 10px 12px; min-width: 0; }
.pack-remove { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--wax); }
.pack-remove:hover { background: var(--paper); color: var(--dark); }
.pack-row:only-child .pack-remove { visibility: hidden; }
.status-out { background: #F3D9D6; color: var(--error); }
.stock-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.stock-msg { margin-right: auto; color: var(--wax); font-size: 14.5px; font-weight: 600; }
.btn:disabled { opacity: .45; cursor: default; transform: none; pointer-events: none; }

.admin-logout { padding: 16px 8px 0; }
.admin-logout .btn-ghost { color: var(--cream); border-color: rgba(251, 244, 226, .3); }
.admin-logout .btn-ghost:hover { border-color: var(--cream); }

/* ---------- Admin sign-in ---------- */
.login { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 24px 16px; }
.login .card { width: min(380px, calc(100vw - 32px)); }
.login h1 { font-size: 30px; }
.google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 40px; padding: 0 12px;
  background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; border-radius: 4px;
  font-family: "Roboto", Arial, sans-serif; font-weight: 500; font-size: 14px; line-height: 20px;
}
.google-btn svg { width: 18px; height: 18px; flex: none; }
.google-btn:hover { background: #F8FAFD; box-shadow: 0 1px 2px rgba(60, 64, 67, .3); }
.google-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.google-btn:disabled { opacity: .38; cursor: default; box-shadow: none; background: #FFFFFF; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero .container, .gift .container, .contact-grid, .checkout, .cart-layout, .story-intro { grid-template-columns: 1fr; }
  .story-intro { gap: 32px; }
  .gallery { grid-auto-rows: 96px; }
  .hero .container { padding-block: 48px 56px; }
  .hero-art { order: -1; }
  .hero-photo-main { width: 165px; margin-right: -24px; } .hero-photo-second { width: 140px; margin-bottom: 20px; }
  .story-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { display: none; }
  .checkout-header .container { grid-template-columns: 1fr auto; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-status { margin-top: 20px; }
  .admin-main { padding: 24px 16px 40px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .site-header .container { grid-template-columns: 1fr auto; row-gap: 10px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .brand-sub { display: none; }
  .topbar span + span { display: none; }
  .section, .story { padding-block: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row, .wallets, .stats { grid-template-columns: 1fr; }
  .footer-cols { gap: 48px; }
  .card { padding: 20px; }
  .admin-tools, .admin-tools .input { width: 100%; }
  .admin-tools { flex-wrap: wrap; }
}

/* Contact form: the bot trap stays out of sight, the thank-you replaces the form. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { padding: 18px 0 8px; }
.contact-sent h2 { margin-top: 14px; }
.contact-sent p { margin-top: 10px; color: var(--wax); }

/* Footer credit: the logo (made for dark backgrounds) with a small label on hover or keyboard focus. */
.made-by { position: relative; display: inline-flex; align-items: center; border-radius: 8px; }
.made-by img { height: 44px; width: auto; }
.made-by:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.made-by::after {
  content: attr(data-tip);
  position: absolute; right: 0; bottom: calc(100% + 10px);
  padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  background: var(--cream-light); color: var(--dark); font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.made-by:hover::after, .made-by:focus-visible::after { opacity: 1; transform: none; }
