/* Farm & Me - Premium Editorial E-Commerce Design System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --brand-green: #14432A;
  --brand-green-dark: #0D2D1C;
  --brand-green-light: #1D5C3B;
  --brand-green-soft: #EDF4EF;
  --brand-cream: #FAF7F2;
  --brand-cream-dark: #F3ECE1;
  --brand-sand: #EDE5D8;
  --brand-gold: #C28B38;
  --brand-gold-light: #F7EEDB;
  --brand-charcoal: #1C2320;
  --brand-muted: #57635C;
  --brand-border: #E5DDD0;
  --brand-terracotta: #C85D45;
  --brand-rose: #F4E8E5;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--brand-charcoal);
  background-color: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

/* Editorial Serif Headings */
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Subtle image scale hover */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.035);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--brand-cream-dark);
}
::-webkit-scrollbar-thumb {
  background: #C4B9A6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green-light);
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* Accordion details styling */
details summary::-webkit-details-marker {
  display: none;
}
details summary {
  list-style: none;
}
details[open] summary .accordion-icon {
  transform: rotate(180deg);
}

/* Cart Drawer Animation */
#cart-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#cart-drawer.translate-x-full {
  transform: translateX(100%);
}
#cart-backdrop {
  transition: opacity 0.3s ease;
}

/* Sticky mobile bottom bar */
.sticky-mobile-cta {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -4px rgba(20, 67, 42, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Toast */
#toast-notification {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism subtle overlay */
.glass-nav {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Editorial refinement: keep the brand, give the products more room. */
body .announcement { padding: 9px 16px; background: var(--brand-green); color: var(--brand-cream); text-align: center; font-size: 11px; line-height: 1.6; }
body .announcement strong { margin-left: 3px; letter-spacing: .06em; }
body .brand-logo, body #footer > div > div > div > img { mix-blend-mode: multiply; }
body .editorial-eyebrow { color: #8B632A; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body .refined-hero { padding: 38px 0 30px; background: var(--brand-cream); }
body .hero-intro { max-width: 800px; margin: 0 auto 34px; text-align: center; }
body .hero-intro .editorial-eyebrow { margin-bottom: 14px; }
body .hero-intro h1 { margin-bottom: 18px; }
body .hero-copy { max-width: 620px; margin: auto; color: var(--brand-muted); font-size: 16px; line-height: 1.75; }
body .hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 25px; }
body .primary-link { display: inline-flex; align-items: center; justify-content: center; padding: 15px 27px; border-radius: 999px; background: var(--brand-green); color: var(--brand-cream); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .2s; text-align: center; }
body .primary-link:hover { background: var(--brand-green-dark); }
body .story-link { padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--brand-green); border-bottom: 1px solid #CBC6B8; }
body .hero-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; max-width: 1000px; margin: auto; }
body .hero-image-link { display: block; overflow: hidden; border-radius: 8px; }
body .hero-image-link img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
body .hero-product-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 17px; }
body .hero-product h3 { color: var(--brand-green); font-size: 26px; line-height: 1.2; }
body .hero-product-caption p { font-size: 12px; line-height: 1.6; color: var(--brand-muted); margin-top: 6px; }
body .hero-price { font-weight: 600; color: var(--brand-green); font-size: 16px; }
body .product-detail-link { display: inline-block; margin-top: 13px; padding-bottom: 3px; border-bottom: 1px solid #B4C4B8; font-size: 12px; font-weight: 700; color: var(--brand-green); }
body .product-detail-link:hover { border-color: var(--brand-green); }
body .hero-reassurance { margin-top: 30px; text-align: center; font-size: 12px; color: var(--brand-muted); }
body .hero-reassurance span { padding: 0 12px; }
body .curation-note { padding: 38px 0; border-top: 1px solid var(--brand-border); border-bottom: 1px solid var(--brand-border); text-align: center; }
body .curation-note h2 { font-size: 26px; color: var(--brand-green); }
body .curation-note p { margin-top: 10px; font-size: 14px; color: var(--brand-muted); line-height: 1.7; }
body .product-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 56px; align-items: start; }
body .product-visuals, body .product-information { min-width: 0; }
body .product-main { padding: 0; border: 0; border-radius: 8px; background: transparent; }
body .product-main img { border-radius: 8px; }
body .product-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 9px; margin-top: 12px; }
body .product-thumbnails .gallery-thumb { width: 68px; height: 68px; border-radius: 6px; flex-shrink: 0; }
body .product-intro { margin-bottom: 24px; }
body .product-region { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #8B632A; font-weight: 600; margin-bottom: 12px; }
body .product-intro h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.025em; color: var(--brand-green); }
body .product-statement { margin-top: 14px; color: var(--brand-muted); font-size: 16px; line-height: 1.75; }
body .purchase-module { background: transparent; border: 0; border-top: 1px solid var(--brand-border); border-radius: 0; padding: 22px 0 0; }
body .purchase-module .pack-btn { border-radius: 7px; min-height: 62px; padding: 10px 8px; }
body .purchase-module .pack-btn span { font-size: 11px; line-height: 1.6; }
body .purchase-module .pack-btn span:first-child { font-size: 12px; }
body .purchase-module [id$="-packs-container"] { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
body .purchase-actions { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; padding-top: 8px; align-items: stretch; }
body .purchase-actions > div { width: auto; padding: 8px; }
body .purchase-actions > button { padding: 14px 10px; box-shadow: none; }
body .purchase-note { flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; margin-top: 17px; font-size: 11px; line-height: 1.6; }
body .purchase-note svg { display: none; }
body .purchase-note > span { background: transparent; padding: 0; color: var(--brand-muted); }
body .product-benefits { display: flex; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--brand-border); margin-top: 24px; padding-top: 18px; list-style: none; font-size: 12px; color: var(--brand-green); }
body .product-benefits li::before { content: '·'; margin-right: 8px; color: #8B632A; }
body .product-nutrition { margin-top: 22px; border-radius: 0; border: 0; border-top: 1px solid var(--brand-border); background: transparent; padding: 18px 0 0; }
body .product-nutrition > div > div { border: 0; background: var(--brand-cream); border-radius: 0; padding: 10px; }
body .product-nutrition span, body .product-nutrition p { line-height: 1.6; }
body .product-guide { margin-top: 26px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--brand-border); border-radius: 0; background: transparent; }
body .culinary-section { padding: 72px 0; }
body .culinary-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
body .culinary-photo img { width: 100%; height: auto; border-radius: 8px; }
body .culinary-copy h2, body .principles-layout h2 { font-size: 38px; line-height: 1.2; color: var(--brand-green); margin-top: 12px; }
body .culinary-copy h2 em, body .principles-layout h2 em { font-weight: 400; }
body .culinary-list { margin-top: 24px; }
body .culinary-list > div { padding: 13px 0; border-top: 1px solid var(--brand-border); }
body .culinary-list dt { font-size: 14px; font-weight: 600; color: var(--brand-green); }
body .culinary-list dd { font-size: 13px; color: var(--brand-muted); line-height: 1.7; margin-top: 4px; }
body .origin-article { display: flex; flex-direction: column; }
body .origin-image { background: transparent; }
body .origin-image img { width: 100%; height: auto; border-radius: 6px; }
body .origin-copy { padding: 24px 0 0; }
body .origin-link { padding-top: 18px; }
body .founder-note { max-width: 720px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--brand-border); text-align: center; }
body .brand-principles { padding: 64px 0; border-top: 1px solid var(--brand-border); background: #EEE8DC; }
body .principles-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
body .principles-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 17px 0; border-top: 1px solid #D6CFBF; }
body .principles-list dt { font-size: 14px; font-weight: 600; color: var(--brand-green); }
body .principles-list dd { font-size: 14px; line-height: 1.7; color: var(--brand-muted); }
body .delivery-utility { background: transparent; border: 0; border-top: 1px solid var(--brand-border); border-radius: 0; padding: 24px 16px 0; margin-top: 40px; }
body .collection-choice { padding: 64px 0; background: white; }
body .collection-choice > div > h2 { font-size: 34px; color: var(--brand-green); text-align: center; }
body .choice-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin: 34px 0 38px; }
body .choice-options article + article { border-left: 1px solid var(--brand-border); padding-left: 40px; }
body .choice-options h3 { font-size: 26px; margin: 9px 0; color: var(--brand-green); }
body .choice-options article > p:not(.editorial-eyebrow) { color: var(--brand-muted); font-size: 14px; line-height: 1.7; }
body .pantry-duo { background: var(--brand-green); color: var(--brand-cream); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 8px; }
body .pantry-duo h3 { font-size: 26px; }
body .pantry-duo p { font-size: 13px; line-height: 1.8; margin-top: 8px; color: #E0E7DF; }
body .duo-action { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
body .duo-action > span { font-size: 30px; }
body .duo-action .primary-link { color: var(--brand-green); background: var(--brand-cream); padding: 14px 22px; }
body .closing-section { padding: 64px 0; background: white; border-top: 1px solid var(--brand-border); }
body .closing-section h2 { margin-bottom: 28px; }
body .closing-product { width: 160px; }
body .closing-product img { width: 100%; height: auto; border-radius: 6px; }
body #mobile-sticky-bar { padding-top: 8px; }
body #sticky-buy-btn { box-shadow: none; padding: 12px 18px; font-size: 11px; }

@media (min-width: 1280px) {
body .purchase-module #makhana-packs-container { grid-template-columns: repeat(4,minmax(0,1fr)); }
body .purchase-module #rice-packs-container { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
body .product-layout { gap: 36px; }
body .product-intro h2 { font-size: 34px; }
body .purchase-actions { grid-template-columns: 1fr 1fr; }
body .purchase-actions > div { grid-column: 1/-1; width: 124px; }
body .culinary-layout { gap: 36px; }
}
@media (max-width: 1023px) {
body .product-layout { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: auto; }
body .product-visuals, body .product-information { display: contents; }
body .product-layout .product-intro { order: 1; width: 100%; }
body .product-layout .product-main { order: 2; width: 100%; }
body .product-layout .product-thumbnails { order: 3; width: 100%; }
body .product-layout .purchase-module { order: 4; width: 100%; margin-top: 14px; }
body .product-layout .product-benefits { order: 5; width: 100%; }
body .product-layout .product-guide { order: 6; width: 100%; }
body .product-layout .product-nutrition { order: 7; width: 100%; }
body .product-intro { margin-bottom: 22px; }
body .product-intro h2 { font-size: 36px; }
body .culinary-layout { grid-template-columns: 1fr; gap: 30px; max-width: 728px; }
body .principles-layout { grid-template-columns: 1fr; gap: 28px; }
body .pantry-duo { align-items: flex-start; }
body .duo-action { flex-direction: column; align-items: flex-end; gap: 12px; }
}
@media (max-width: 639px) {
body .announcement { font-size: 10px; padding: 7px 10px; }
body #main-header > div { padding-top: 10px; padding-bottom: 10px; }
body .brand-logo { height: 40px; }
body .refined-hero { padding: 22px 0 24px; }
body .hero-intro { margin-bottom: 24px; }
body .hero-intro .editorial-eyebrow { font-size: 9px; letter-spacing: .09em; margin-bottom: 12px; }
body .hero-intro h1 { font-size: 30px; line-height: 1.16; margin-bottom: 13px; }
body .hero-copy { font-size: 13px; line-height: 1.7; max-width: 370px; }
body .hero-actions { flex-direction: column; gap: 8px; margin-top: 19px; }
body .hero-actions .primary-link { width: 100%; padding: 14px 20px; }
body .story-link { font-size: 12px; border: 0; padding: 7px 0; }
body .hero-products { gap: 14px; }
body .hero-product-caption { display: block; margin-top: 12px; }
body .hero-product h3 { font-size: 20px; line-height: 1.15; min-height: 46px; }
body .hero-product-caption p { font-size: 10px; line-height: 1.6; min-height: 32px; margin-top: 4px; }
body .hero-price { display: block; margin-top: 7px; font-size: 14px; }
body .product-detail-link { font-size: 11px; margin-top: 8px; }
body .hero-reassurance { font-size: 10px; margin-top: 24px; }
body .hero-reassurance span { padding: 0 5px; }
body .curation-note { padding: 28px 0; }
body .curation-note h2 { font-size: 23px; line-height: 1.4; }
body .curation-note h2 em { display: block; }
body .curation-note p { font-size: 13px; }
body #product-makhana, body #product-rice, body #origin-story { padding-top: 44px; padding-bottom: 44px; }
body .product-region { font-size: 10px; margin-bottom: 10px; }
body .product-intro h2 { font-size: 32px; }
body .product-statement { font-size: 14px; line-height: 1.65; margin-top: 10px; }
body .product-thumbnails { gap: 8px; margin-top: 10px; padding-bottom: 8px; }
body .product-thumbnails .gallery-thumb { width: 52px; height: 52px; }
body .product-layout .purchase-module { margin-top: 12px; padding-top: 18px; }
body .purchase-module [id$="-packs-container"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
body .purchase-module .pack-btn { min-height: 55px; padding: 9px 11px; }
body .purchase-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
body .purchase-actions > div { grid-column: 1/-1; width: 120px; }
body .purchase-actions > button { min-height: 48px; }
body .purchase-note { font-size: 10px; gap: 5px 8px; }
body .product-benefits { flex-direction: column; gap: 9px; margin-top: 22px; font-size: 13px; }
body .product-nutrition { margin-top: 24px; }
body .product-guide > div:first-child { flex-wrap: wrap; gap: 8px; }
body .culinary-section { padding: 44px 0; }
body .culinary-copy h2, body .principles-layout h2 { font-size: 32px; }
body #origin-story > div > div:first-child { margin-bottom: 28px; }
body #origin-story h2 { font-size: 30px; }
body .origin-copy { padding-top: 20px; }
body .origin-copy p { font-size: 13px; }
body .origin-copy ul { line-height: 1.6; }
body .founder-note { margin-top: 28px; padding-top: 24px; }
body .brand-principles, body .collection-choice, body .closing-section { padding: 44px 0; }
body .principles-list > div { grid-template-columns: 1fr; gap: 7px; padding: 18px 0; }
body .principles-list dd { font-size: 13px; }
body .collection-choice > div > h2 { font-size: 30px; line-height: 1.2; }
body .choice-options { gap: 18px; margin: 28px 0; }
body .choice-options article + article { padding-left: 18px; }
body .choice-options .editorial-eyebrow { font-size: 9px; letter-spacing: .05em; }
body .choice-options h3 { font-size: 22px; line-height: 1.2; }
body .choice-options article > p:not(.editorial-eyebrow) { font-size: 12px; }
body .pantry-duo { flex-direction: column; padding: 24px; gap: 20px; }
body .pantry-duo h3 { font-size: 26px; line-height: 1.2; }
body .duo-action { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
body .duo-action .primary-link { font-size: 10px; padding: 13px 17px; }
body .closing-product { width: 128px; }
body .closing-section h2 { font-size: 30px; }
}
