:root {
  --ink: #25180f;
  --muted: #6b5a49;
  --honey: #d99a18;
  --gold: #f2c14e;
  --leaf: #52683e;
  --berry: #8e3f2f;
  --cream: #fff8ea;
  --paper: #fffdf7;
  --line: rgba(37, 24, 15, .14);
  --shadow: 0 20px 55px rgba(62, 38, 17, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.site-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img { width: auto; height: 56px; object-fit: contain; }

.main-nav, .admin-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a, .admin-nav a { padding: 10px 2px; }

.cart-button, .menu-toggle, .icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 800;
}

.cart-button strong {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--berry);
  border-radius: 50%;
  font-size: 12px;
}

.menu-toggle { display: none; padding: 10px 14px; margin-left: auto; }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 18, 10, .86), rgba(29, 18, 10, .42) 52%, rgba(29, 18, 10, .16));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 92px) clamp(36px, 8vw, 92px);
  color: #fff;
}

.hero-logo { width: min(300px, 56vw); margin-bottom: 30px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--honey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 { font-size: clamp(46px, 8vw, 92px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: 24px; line-height: 1.1; }

.hero-copy {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 24, 15, .16); }
.btn.primary { border-color: var(--honey); background: var(--honey); color: #1f1409; }
.btn.ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .1); }
.btn.ghost-dark { background: transparent; color: var(--ink); }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.btn.full { width: 100%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; margin-bottom: 6px; }
.trust-strip span { color: var(--muted); line-height: 1.5; }

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
}

.intro p:last-child, .section-heading > p, .story-copy p, .feature-band p, .contact p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading > p { max-width: 520px; margin: 0; }

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus, select:focus, textarea:focus { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(217, 154, 24, .16); }

input[type="file"] {
  padding: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(68, 43, 17, .08);
}

.product-image-wrap { position: relative; overflow: hidden; background: var(--cream); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image { transform: scale(1.035); }

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--leaf);
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.product-category {
  margin: 0 0 8px;
  color: var(--honey);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price { font-size: 20px; }

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  background: #2b2119;
  color: #fff;
}

.feature-band img { width: 100%; height: 620px; object-fit: cover; }
.feature-band div { padding: clamp(36px, 7vw, 86px); }
.feature-band p { color: rgba(255, 255, 255, .78); }

.story {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.clean-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.clean-list li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  background: var(--honey);
  border-radius: 50%;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-gallery img, .event-grid img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-gallery img:nth-child(2) { margin-top: 56px; }

.event-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  background: var(--cream);
}

.contact-form, .checkout-form, .product-form {
  display: grid;
  gap: 14px;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.form-note { min-height: 22px; margin: 0; color: var(--leaf); font-weight: 700; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(22, 15, 10, .45);
}

.cart-drawer.is-open { display: flex; }

.cart-panel {
  width: min(460px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.icon-button {
  width: 38px;
  height: 38px;
  font-weight: 900;
}

.cart-items { display: grid; gap: 12px; margin: 22px 0; }

.cart-empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cart-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 6px; }
.cart-item h3 { font-size: 17px; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.qty-controls { display: inline-flex; align-items: center; gap: 8px; }
.qty-controls button, .remove-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.qty-controls button { width: 28px; height: 28px; }
.remove-button { padding: 6px 9px; color: var(--berry); font-weight: 800; }

.cart-summary {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-summary div { display: flex; justify-content: space-between; }
.cart-summary .total { font-size: 20px; }
.checkout-form { margin-top: 22px; }
.checkout-form h3 { font-size: 23px; }

.admin-page { background: #f7f1e6; }
.admin-header { background: rgba(255, 253, 247, .94); }
.admin-shell { padding: clamp(24px, 5vw, 56px); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 248, 234, .82), rgba(255, 248, 234, .82)),
    url("IMG_8792.JPG") center/cover;
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .96);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 116px;
  height: auto;
}

.login-card h1 {
  font-size: clamp(38px, 7vw, 58px);
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.admin-hero p { color: var(--muted); line-height: 1.6; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-stats article, .admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(68, 43, 17, .08);
}

.admin-stats article { padding: 18px; }
.admin-stats span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.admin-stats strong { display: block; margin-top: 8px; font-size: 28px; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(360px, .9fr);
  gap: 24px;
}

.admin-card { padding: 22px; overflow: hidden; }

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.product-form {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 22px;
}

.product-form .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.settings-card {
  margin-bottom: 24px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto minmax(160px, .7fr);
  gap: 14px;
  align-items: end;
}

.upload-field span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: none;
}

.image-preview {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.image-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.admin-table th, .admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.admin-table td { font-size: 14px; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }

.status-select { min-width: 145px; padding: 8px; }
.order-lines { color: var(--muted); font-size: 12px; line-height: 1.5; }

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

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .cart-button { margin-left: 0; }
  .hero { min-height: 720px; }
  .trust-strip, .intro, .feature-band, .story, .contact { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { display: grid; }
  .shop-tools { justify-content: stretch; }
  .shop-tools label { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-band img { height: 420px; }
  .event-grid { grid-template-columns: 1fr; }
  .story-gallery img, .event-grid img { height: 320px; }
  .story-gallery img:nth-child(2) { margin-top: 0; }
  .admin-stats { grid-template-columns: 1fr; }
  .product-form { grid-template-columns: 1fr; }
  .settings-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand img { height: 48px; }
  .site-header, .admin-header { min-height: 68px; padding: 10px 14px; }
  .hero-content { margin: 0 18px 34px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-rows: 235px 1fr; }
  .cart-panel { padding: 18px; }
  .admin-shell { padding: 18px; }
  .admin-nav { width: 100%; justify-content: space-between; margin-left: 0; }
}

.admin-subsection {
  border-top: 1px solid rgba(70, 49, 25, 0.14);
  padding-top: 16px;
  margin-top: 6px;
}

.admin-subsection h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #4b3218;
}

.check-row {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 10px;
  font-weight: 700;
}

.check-row input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.payment-instructions {
  text-align: left;
  background: #fff8ea;
  border: 1px solid #ead9b7;
  border-radius: 16px;
  padding: 16px;
  white-space: pre-wrap;
  color: #3f2c18;
}


.captcha-box {
  background: #fff8ea;
  border: 1px solid #ead9b7;
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0 14px;
}
.captcha-label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.captcha-question {
  display: block;
  font-size: 0.92rem;
  color: #5c3b18;
  font-weight: 500;
}
.captcha-box input[name="captcha_answer"] {
  width: 100%;
}
.captcha-refresh {
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: #7c4f18;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* SEO pages and internal link blocks */
.seo-links { padding-top: 36px; }
.seo-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.seo-card { display: block; padding: 20px; border: 1px solid rgba(138,90,21,.18); border-radius: 20px; background: #fff8ea; color: inherit; text-decoration: none; box-shadow: 0 10px 24px rgba(47,36,24,.06); }
.seo-card strong { display: block; margin-bottom: 8px; color: #8a5a15; font-size: 1.05rem; }
.seo-card span { display: block; color: #6f6254; line-height: 1.45; }
.seo-page { padding-top: 100px; }
.seo-hero { max-width: 980px; margin: 0 auto; padding: 80px 24px 54px; text-align: center; }
.seo-hero h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; margin: 10px 0 18px; }
.seo-hero p { max-width: 760px; margin: 0 auto 22px; color: #6f6254; font-size: 1.1rem; line-height: 1.65; }
.seo-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.seo-content-grid article, .faq-grid article { padding: 22px; border: 1px solid rgba(138,90,21,.16); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(47,36,24,.05); }
.seo-content-grid h2, .faq-grid h3 { color: #8a5a15; margin-top: 0; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .seo-card-grid, .seo-content-grid, .faq-grid { grid-template-columns: 1fr; } .seo-page { padding-top: 70px; } }
