@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-amber: #8a5a2b;
  --brand-amber-dark: #5c3a1a;
  --brand-sage: #7c8a6e;
  --brand-cream: #f6efe1;
  --brand-cream-deep: #e9dcc0;
  --brand-text: #2c2620;
  --brand-muted: #7a6f5d;
  --shadow-soft: 0 10px 26px rgba(90, 63, 27, 0.12);
}

* { box-sizing: border-box; }

button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--brand-text);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(255,253,247,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brand-cream-deep);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
  color: var(--brand-amber-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-align: center;
}

nav.site-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--brand-text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

nav.site-nav a:hover { color: var(--brand-amber); }

.header-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hamburger-btn {
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--brand-amber-dark);
  padding: 2px 4px;
  border-radius: 0;
  box-shadow: none;
}

.icon-btn {
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--brand-amber-dark);
  padding: 4px 8px;
  text-decoration: none;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fffdf9;
  box-shadow: 6px 0 24px rgba(0,0,0,0.14);
  transition: left 0.25s ease;
  z-index: 101;
  padding: 24px;
}

.side-menu.open { left: 0; }

.side-menu a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--brand-text);
  font-size: 15.5px;
  border-bottom: 1px solid var(--brand-cream-deep);
}

.side-menu a:hover { color: var(--brand-amber); }

.side-menu-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  padding: 10px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-amber-dark);
  border-top: 1px solid var(--brand-cream-deep);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  font-family: inherit;
}

.ailment-caret {
  transition: transform 0.2s ease;
  font-size: 10px;
}

.side-menu-section-title.open .ailment-caret { transform: rotate(90deg); }

.ailment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.ailment-list.open {
  max-height: 400px;
  padding-top: 8px;
}

.ailment-list a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brand-text);
  text-decoration: none;
}

.ailment-list a:hover { background: var(--brand-cream-deep); }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,38,32,0.4);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  z-index: 102;
}

.search-overlay.open { display: flex; }

.search-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  width: min(90vw, 480px);
  box-shadow: var(--shadow-soft);
}

.search-box input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 10px;
}

.search-box-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box-row input { flex: 1; }

.search-exit-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--brand-amber-dark);
  padding: 4px 8px;
}

/* ---------------- Promo boxes ---------------- */
.promo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.promo-row.single {
  max-width: 320px;
  margin: 0 auto 56px;
}

.promo-box {
  position: relative;
  display: block;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}

.promo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,38,32,0.1), rgba(44,38,32,0.55));
}

.promo-box h3 {
  position: absolute;
  bottom: 16px;
  left: 18px;
  color: #fff;
  margin: 0;
  font-size: 22px;
  z-index: 1;
}

.promo-box-product { height: 240px; }

.promo-box-eyebrow {
  position: absolute;
  top: 16px;
  left: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.promo-box-price {
  position: absolute;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  z-index: 1;
}

.promo-box-product h3 {
  bottom: 40px;
}

/* ---------------- Horizontal product carousel ---------------- */
.carousel-section { margin-bottom: 56px; }

.carousel-row {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.carousel-track { -webkit-overflow-scrolling: touch; }

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .product-card {
  min-width: calc(50% - 10px);
  scroll-snap-align: start;
}

/* Bestsellers shows one product at a time instead of two. */
#bestsellersCarousel.carousel-track .product-card {
  min-width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  z-index: 2;
}

.carousel-arrow.prev { left: -6px; }
.carousel-arrow.next { right: -6px; }

/* ---------------- Ingredient spotlight carousel ---------------- */
.ingredient-spotlight {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.ingredient-spotlight img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.ingredient-spotlight-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.read-more-btn {
  background: none;
  border: 1.5px solid var(--brand-amber);
  color: var(--brand-amber-dark);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
}

.read-more-btn:hover { background: var(--brand-amber); color: #fff; }

.ingredient-detail {
  display: none;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.6;
  background: #f1e9d8;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.ingredient-detail p { margin: 0 0 12px; }
.ingredient-detail p:last-child { margin-bottom: 0; }

.ingredient-detail.open { display: block; }

.hero {
  position: relative;
  text-align: center;
  padding: 100px 24px 92px;
  background-color: var(--brand-cream);
  background-image:
    linear-gradient(rgba(246,239,225,0.32), rgba(246,239,225,0.48)),
    url("images/hero-apothecary.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--brand-cream-deep);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--brand-amber-dark);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(246,239,225,0.9), 0 1px 3px rgba(246,239,225,0.9);
}

.hero p {
  max-width: 540px;
  margin: 0 auto 30px;
  color: #4a4030;
  font-size: 17.5px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(246,239,225,0.85);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--brand-amber);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(90, 63, 27, 0.2);
}

.btn.secondary {
  background: transparent;
  color: var(--brand-amber-dark);
  border: 1.5px solid var(--brand-amber);
  box-shadow: none;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-amber-dark);
  margin-bottom: 6px;
  text-align: center;
}

.section-subtitle {
  color: var(--brand-muted);
  margin-bottom: 40px;
  text-align: center;
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.product-card {
  background: #fffdf9;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(90, 63, 27, 0.18);
}

.product-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #efe6d3, var(--brand-cream-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-sage);
  font-size: 12.5px;
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.product-photo::before {
  content: '\1F33F';
  font-size: 30px;
  opacity: 0.35;
  position: absolute;
}

.product-photo span {
  position: relative;
  background: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 44px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.product-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-amber);
  font-weight: 700;
}

.product-desc {
  font-size: 13px;
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.45;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag-pill {
  font-size: 10.5px;
  background: #f1e9d8;
  color: var(--brand-amber-dark);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
}

.product-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--brand-text);
}

.product-body .status {
  font-size: 12px;
  color: var(--brand-sage);
  font-weight: 500;
  margin-top: 2px;
}

.stock-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

.stock-badge.low { background: #fef3c7; color: #92400e; }
.stock-badge.out { background: #fee2e2; color: #991b1b; }

.size-select {
  padding: 6px 8px;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--brand-text);
  background: #fff;
}

.placeholder-banner {
  background: #fbf1dd;
  border: 1px solid #e3cd9a;
  color: #6b5417;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 32px;
  text-align: center;
}

footer.site-footer {
  background: #fffdf9;
  border-top: 1px solid var(--brand-cream-deep);
  padding: 32px 24px;
  text-align: center;
  color: var(--brand-muted);
  font-size: 13px;
}

.disclaimer-box {
  background: #f1e9d8;
  border: 1px solid #ddc99a;
  border-radius: 12px;
  padding: 18px;
  font-size: 12.5px;
  color: #4a4a4a;
  line-height: 1.55;
  margin-top: 32px;
}

.disclaimer-box b { color: var(--brand-text); }

.price-tier {
  background: #fffdf9;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.price-tier h3 {
  margin: 0 0 4px;
  color: var(--brand-amber-dark);
  font-size: 20px;
}

.price-tier .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-amber);
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  cursor: pointer;
  font-size: 21px;
  background: none;
  border: none;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--brand-sage);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #fffdf9;
  box-shadow: -6px 0 24px rgba(0,0,0,0.14);
  transition: right 0.25s ease;
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
}

.cart-drawer.open { right: 0; }

.cart-drawer h2 {
  margin-top: 0;
  font-size: 22px;
  color: var(--brand-amber-dark);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-cream-deep);
}

.cart-line-name { font-size: 14px; font-family: 'Inter', sans-serif; }
.cart-line-price { font-size: 13px; text-align: right; color: var(--brand-muted); }

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
}

.cart-line-controls button {
  border: 1px solid var(--brand-cream-deep);
  background: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--brand-amber-dark);
}

.cart-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--brand-muted);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 38, 32, 0.25);
  display: none;
  z-index: 99;
}

body.cart-open .cart-overlay {
  display: block;
}

.add-to-cart-btn {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-amber);
  background: #fff;
  color: var(--brand-amber-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.add-to-cart-btn:hover { background: var(--brand-amber); color: #fff; }

.add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.add-to-cart-btn:disabled:hover { background: #fff; color: var(--brand-amber-dark); }

.product-card-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-card-buttons .add-to-cart-btn,
.product-card-buttons .buy-now-btn {
  flex: 1;
  margin-top: 0;
}

.buy-now-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-amber);
  background: var(--brand-amber);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.buy-now-btn:hover { background: var(--brand-amber-dark); }

.buy-now-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-field-block { margin-bottom: 18px; }

.checkout-field-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-amber-dark);
  margin-bottom: 6px;
}

.ailment-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ailment-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--brand-cream-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  color: var(--brand-text);
  cursor: pointer;
}

.family-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.family-member {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}

.family-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--brand-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
  font-size: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-member h3 { margin: 0; font-size: 17px; color: var(--brand-amber-dark); }

