@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=DM+Sans:wght@400;500;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f5f3ed;
  color: #2d2d2d;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== VARIABLES ===== */
:root {
  --parchment: #f5f3ed;
  --sage: #8b9a6d;
  --sage-dark: #7a8960;
  --ink: #2d2d2d;
  --warm-stone: #e8e6df;
  --soft-gray: #f0eeea;
  --clay: #c4a882;
  --border: rgba(45,45,45,0.12);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.section-pad { padding: 64px 0; }
@media (min-width: 1024px) { .section-pad { padding: 96px 0; } }

.text-center { text-align: center; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; }

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: scale(1.02); }
.btn-primary { background: var(--sage); color: #f5f3ed; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-dark { background: var(--ink); color: #f5f3ed; }
.btn-dark:hover { background: var(--sage); }
.btn-outline { background: transparent; color: #f5f3ed; border: 2px solid #f5f3ed; }
.btn-outline:hover { background: rgba(245,243,237,0.1); }
.btn-light { background: #f5f3ed; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 12px 24px; font-size: 14px; }

.input {
  width: 100%;
  background: var(--warm-stone);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  transition: all 0.2s ease;
}
.input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(139,154,109,0.15); }
.input::placeholder { color: rgba(45,45,45,0.45); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
  background: var(--sage);
  color: #f5f3ed;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px 40px 10px 20px;
  position: relative;
}
.announcement .close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #f5f3ed;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
}
.announcement .close:hover { opacity: 1; }
@media (max-width: 640px) {
  .announcement .desktop { display: none; }
  .announcement { padding: 8px 36px 8px 16px; font-size: 12px; }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled, .header:not(.header-home) {
  background: #f5f3ed;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; gap: 24px; }
}
.nav-desktop a, .nav-desktop .nav-dropdown-btn {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 8px 0;
}
.nav-desktop a:hover, .nav-desktop .nav-dropdown-btn:hover { color: var(--sage); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #f5f3ed;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.nav-dropdown-menu a:hover { background: rgba(139,154,109,0.08); }
.nav-dropdown-menu .divider { height: 1px; background: var(--border); margin: 6px 0; }
.nav-dropdown-btn { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); }

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-icons a {
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
}
.header-icons a:hover { color: var(--sage); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--sage);
  color: white;
  font-size: 10px;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn { display: block; background: none; border: none; padding: 4px; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* ===== MOBILE MENU ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }
#searchOverlay.active ~ #searchPanel { display: block !important; }
#searchOverlay { z-index: 55; }
#searchPanel { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: #f5f3ed;
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}
.mobile-panel.active { transform: translateX(0); }
.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-panel-header button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--sage); }
.mobile-nav .section-label {
  padding: 12px 20px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(45,45,45,0.5);
}
.mobile-nav .indent { padding-left: 36px; font-size: 15px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: -72px;
  padding-top: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45,45,45,0.55) 0%, rgba(45,45,45,0.25) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 560px;
  padding: 80px 0;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 36px;
  color: #f5f3ed;
  line-height: 1.05;
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 72px; }
}
.hero p {
  font-size: 16px;
  color: rgba(245,243,237,0.85);
  max-width: 480px;
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .hero p { font-size: 18px; }
}
.hero-actions { margin-top: 32px; }
.hero-actions a + a { margin-top: 12px; display: block; }
.hero .secondary-link {
  font-size: 15px;
  color: #f5f3ed;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.hero .secondary-link:hover { color: var(--clay); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(245,243,237,0.5);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== HERB BORDER ===== */
.herb-border { position: relative; margin-top: -1px; margin-bottom: -1px; }
.herb-wave { display: block; width: 100%; height: 30px; }
@media (max-width: 768px) { .herb-wave { height: 20px; } }
.herb-strip {
  background-color: var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23f5f3ed' stroke-width='1' opacity='0.15'%3E%3Cpath d='M20,40 Q30,20 40,40 T60,40'/%3E%3Cpath d='M120,80 Q130,60 140,80 T160,80'/%3E%3Ccircle cx='80' cy='120' r='8'/%3E%3Cpath d='M160,150 Q170,130 180,150'/%3E%3Cpath d='M40,160 L45,170 L50,160'/%3E%3Ccircle cx='150' cy='40' r='5'/%3E%3Cpath d='M10,100 Q20,85 30,100 Q40,115 50,100'/%3E%3Cpath d='M100,20 L105,10 L110,20'/%3E%3Ccircle cx='180' cy='180' r='6'/%3E%3Cpath d='M70,80 Q80,65 90,80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px;
  background-repeat: repeat;
  height: 100px;
  animation: herbDrift 60s linear infinite;
}
@media (max-width: 768px) { .herb-strip { height: 70px; background-size: 150px; } }
@keyframes herbDrift { from { background-position: 0 0; } to { background-position: -200px 0; } }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--warm-stone);
  padding: 48px 0;
  text-align: center;
}
@media (min-width: 1024px) { .page-header { padding: 80px 0; } }
.page-header h1 {
  font-size: 32px;
  color: var(--ink);
}
@media (min-width: 1024px) { .page-header h1 { font-size: 48px; } }
.page-header p {
  font-size: 16px;
  color: rgba(45,45,45,0.65);
  max-width: 560px;
  margin: 12px auto 0;
}
@media (min-width: 1024px) { .page-header p { font-size: 18px; } }
.breadcrumb {
  font-size: 14px;
  color: rgba(45,45,45,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--sage); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== SUBJECT GRID ===== */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .subject-grid { grid-template-columns: repeat(4, 1fr); }
}
.subject-card {
  background: var(--warm-stone);
  border-radius: 12px;
  aspect-ratio: 1 / 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.subject-card:hover { background: #dedcd5; }
.subject-card:hover svg { transform: scale(1.05); }
.subject-card svg { transition: transform 0.3s; }
.subject-card span {
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== PRODUCT CARD ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: #f5f3ed;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45,45,45,0.06);
  transition: all 0.3s ease;
  display: block;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(45,45,45,0.12);
  transform: translateY(-4px);
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--warm-stone);
  overflow: hidden;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .badge {
  position: absolute;
  top: 12px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.product-card .badge.sale { left: 12px; background: var(--clay); color: #f5f3ed; }
.product-card .badge.digital { right: 12px; background: var(--sage); color: #f5f3ed; }
.product-card .content { padding: 20px; }
.product-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
}
@media (min-width: 1024px) { .product-card h3 { font-size: 18px; } }
.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.product-card .price { font-weight: 700; font-size: 18px; color: var(--sage); }
.product-card .compare { font-size: 14px; color: var(--clay); text-decoration: line-through; }
.product-card .add-cart {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--ink);
  color: #f5f3ed;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.2s;
}
.product-card .add-cart:hover { background: var(--sage); }

/* ===== FEATURES ===== */
.features-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm-stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 18px; }
.feature-item p { font-size: 15px; color: rgba(45,45,45,0.65); margin-top: 4px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(45,45,45,0.5);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--sage); }
.tab-panel { display: none; padding: 32px 0; }
.tab-panel.active { display: block; }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.accordion-btn:hover { background: rgba(139,154,109,0.03); }
.accordion-btn svg { transition: transform 0.2s; flex-shrink: 0; }
.accordion-btn.active svg { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 20px 16px; font-size: 15px; color: rgba(45,45,45,0.7); line-height: 1.6; }
.accordion-body.active { display: block; }

/* ===== CART ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item .remove {
  font-size: 14px;
  color: rgba(45,45,45,0.5);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 4px;
}
.cart-item .remove:hover { color: var(--sage); }
.cart-item .qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-item .qty button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-item .qty button:hover { background: var(--warm-stone); }
.cart-item .qty span {
  width: 36px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 36px;
}
.cart-item .price { font-weight: 700; font-size: 16px; flex-shrink: 0; min-width: 70px; text-align: right; }

.cart-summary {
  background: var(--warm-stone);
  border-radius: 12px;
  padding: 32px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: rgba(45,45,45,0.7);
  margin-bottom: 12px;
}
.cart-summary-row.small { font-size: 14px; color: rgba(45,45,45,0.6); }
.cart-summary-row.total {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 12px;
}

/* ===== CHECKOUT ===== */
.notice-box {
  background: var(--warm-stone);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  font-size: 13px;
  color: rgba(45,45,45,0.7);
  line-height: 1.6;
}
.notice-box a { color: var(--sage); text-decoration: underline; }
.checkout-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 16px;
}
.checkout-fields { display: flex; flex-direction: column; gap: 12px; }
.checkout-fields .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-fields .row.three { grid-template-columns: 1fr 1fr 1fr; }
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.shipping-option:hover { border-color: var(--sage); }
.shipping-option input { margin-right: 12px; }
.shipping-option .label { font-size: 15px; }
.shipping-option .label .detail { font-size: 13px; color: rgba(45,45,45,0.6); margin-left: 8px; }
.shipping-option .price-label { font-weight: 500; }

.card-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-box .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-box label { display: block; font-size: 14px; color: rgba(45,45,45,0.7); margin-bottom: 6px; }
.card-box label .required { color: #dc2626; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(45,45,45,0.8);
  line-height: 1.6;
  cursor: pointer;
  margin-bottom: 12px;
}
.checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.checkbox-label a { color: var(--sage); text-decoration: underline; }
.checkbox-label strong { font-weight: 700; }

/* ===== FILTER BAR ===== */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: #f5f3ed;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-bar select { max-width: 200px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.pill {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  background: var(--warm-stone);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { background: #dedcd5; }
.pill.active { background: var(--sage); color: #f5f3ed; border-color: var(--sage); }

/* ===== TWO COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two-col.lg-right { grid-template-columns: 45% 55%; }
}

/* ===== DARK SECTION ===== */
.dark-section {
  background: var(--ink);
  color: #f5f3ed;
}
.dark-section h2 { color: #f5f3ed; }
.dark-section p { color: rgba(245,243,237,0.8); }

/* ===== BANNER SECTIONS ===== */
.banner-section {
  background: var(--warm-stone);
  padding: 64px 0;
  text-align: center;
}
.banner-section h2 { font-size: 26px; }
@media (min-width: 1024px) { .banner-section h2 { font-size: 40px; } }
.banner-section p { font-size: 16px; color: rgba(45,45,45,0.7); max-width: 600px; margin: 12px auto 0; }
@media (min-width: 1024px) { .banner-section p { font-size: 18px; } }

/* ===== GRID 3 / 4 ===== */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== CARDS ===== */
.card { background: #f5f3ed; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(45,45,45,0.06); }
.card .card-body { padding: 20px; }

/* ===== CTA BOX ===== */
.cta-box {
  background: var(--sage);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}
.cta-box h2 { color: #f5f3ed; font-size: 24px; }
@media (min-width: 1024px) { .cta-box h2 { font-size: 32px; } }
.cta-box p { color: rgba(245,243,237,0.85); margin-top: 12px; font-size: 16px; }
.cta-box .btn { margin-top: 24px; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--warm-stone);
  border-radius: 12px;
  padding: 24px;
}

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 28px; color: var(--ink); }
@media (min-width: 1024px) { .section-title h2 { font-size: 48px; } }
.section-title p { font-size: 16px; color: rgba(45,45,45,0.65); max-width: 600px; margin: 12px auto 0; }
@media (min-width: 1024px) { .section-title p { font-size: 18px; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--soft-gray);
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer a {
  display: block;
  font-size: 15px;
  color: rgba(45,45,45,0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer a:hover { color: var(--sage); }
.footer .tagline { font-size: 14px; color: rgba(45,45,45,0.6); margin-top: 12px; }
.footer .socials { display: flex; gap: 16px; margin-top: 20px; }
.footer .socials a { color: var(--ink); margin-bottom: 0; }
.footer .socials a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p, .footer-bottom a { font-size: 13px; color: rgba(45,45,45,0.5); }
.footer-bottom a:hover { color: var(--sage); }

/* ===== CHAT WIDGET ===== */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: #f5f3ed;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 70;
  transition: background 0.2s;
}
.chat-toggle:hover { background: var(--sage-dark); }
.chat-panel {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #f5f3ed;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  z-index: 70;
  display: none;
  flex-direction: column;
  overflow: hidden;
  height: 500px;
  max-height: calc(100vh - 120px);
}
.chat-panel.active { display: flex; }
.chat-header {
  background: var(--sage);
  color: #f5f3ed;
  padding: 16px 20px;
}
.chat-header h4 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 16px; }
.chat-header p { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: var(--warm-stone); color: var(--ink); }
.chat-msg.user { align-self: flex-end; background: var(--sage); color: #f5f3ed; }
.chat-prompts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chat-prompts button {
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--sage);
  background: rgba(139,154,109,0.08);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-prompts button:hover { background: rgba(139,154,109,0.15); }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.chat-input input { flex: 1; padding: 10px 14px; font-size: 14px; }
.chat-input button {
  background: var(--sage);
  color: #f5f3ed;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-input button:hover { background: var(--sage-dark); }

/* ===== MISC ===== */
.inline-link { color: var(--sage); }
.inline-link:hover { text-decoration: underline; }
.badge-tag {
  display: inline-block;
  background: var(--warm-stone);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.badge-tag.green { background: rgba(139,154,109,0.12); color: var(--sage); }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.rounded-xl { border-radius: 12px; }
.rounded-lg { border-radius: 8px; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-sage { color: var(--sage); }
.text-clay { color: var(--clay); }
.text-muted { color: rgba(45,45,45,0.65); }
.text-muted-light { color: rgba(45,45,45,0.5); }
.bg-warm { background: var(--warm-stone); }
.bg-parchment { background: var(--parchment); }
.list-bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; color: rgba(45,45,45,0.7); }
.list-bullets li::before { position: absolute; left: 0; color: var(--sage); }
.list-numbered { counter-reset: item; }
.list-numbered li { position: relative; padding-left: 36px; margin-bottom: 12px; font-size: 15px; color: rgba(45,45,45,0.7); }
.list-numbered li::before { counter-increment: item; content: counter(item); position: absolute; left: 0; width: 24px; height: 24px; background: var(--sage); color: #f5f3ed; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state svg { margin: 0 auto 16px; color: rgba(45,45,45,0.3); }
.empty-state p { font-size: 18px; color: rgba(45,45,45,0.6); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.timeline-step .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-step .dot.done { background: var(--sage); color: #f5f3ed; }
.timeline-step .dot.pending { background: var(--warm-stone); border: 2px solid rgba(45,45,45,0.2); color: rgba(45,45,45,0.4); }
.timeline-step span { font-size: 15px; }
.timeline-step span.done { font-weight: 500; }
.timeline-step span.pending { color: rgba(45,45,45,0.5); }

/* ===== LEGAL PAGES ===== */
.legal-page h2 {
  font-size: 24px;
  margin-bottom: 16px;
  margin-top: 40px;
}
.legal-page h2:first-child { margin-top: 0; }
.legal-page h3 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 18px; margin-bottom: 8px; margin-top: 24px; }
.legal-page p { font-size: 16px; color: rgba(45,45,45,0.75); line-height: 1.7; margin-bottom: 16px; }
.legal-page ul { margin-bottom: 16px; }
.legal-page ul li { font-size: 16px; color: rgba(45,45,45,0.75); line-height: 1.7; margin-bottom: 8px; }
.legal-page .updated {
  background: var(--warm-stone);
  border-radius: 8px;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  color: rgba(45,45,45,0.6);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-gallery img { border-radius: 8px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.product-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-meta p { font-size: 14px; color: rgba(45,45,45,0.6); margin-bottom: 6px; }
.product-meta .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shipping-box { background: var(--warm-stone); border-radius: 8px; padding: 16px; margin-top: 16px; font-size: 14px; color: rgba(45,45,45,0.7); }

/* ===== SUBJECT HUB CARDS ===== */
.subject-hub-card {
  background: #f5f3ed;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
}
.subject-hub-card:hover { border-color: var(--sage); box-shadow: 0 8px 24px rgba(45,45,45,0.08); }
.subject-hub-card h3 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 20px; margin: 16px 0 8px; transition: color 0.2s; }
.subject-hub-card:hover h3 { color: var(--sage); }
.subject-hub-card p { font-size: 15px; color: rgba(45,45,45,0.65); line-height: 1.6; }
.subject-hub-card .count { font-size: 14px; color: var(--sage); margin-top: 12px; display: inline-block; }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(45,45,45,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(45,45,45,0.3); }
