/* ==========================================================================
   GRAIN CRAFT MILLS — GLOBAL DESIGN SYSTEM & STYLESHEET
   Pure Grains • Better Living
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- 1. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  /* Exact Color Palette */
  --cream-primary: #FBF1DC;
  --cream-secondary: #F2EADF;
  --cream-card: #FAF4E8;
  --olive-primary: #4F5935;
  --olive-hover: #3E4628;
  --deep-olive: #343C25;
  --gold-muted: #B58A45;
  --gold-soft: #D8BE88;
  --gold-light: #F4EBD7;
  --text-brown: #51483B;
  --text-muted: #7A7061;
  --white: #FFFFFF;

  /* Borders & Shadows */
  --border-subtle: 1px solid rgba(79, 89, 53, 0.15);
  --border-gold: 1px solid #B58A45;
  --border-gold-subtle: 1px solid rgba(181, 138, 69, 0.35);
  --shadow-soft: 0 8px 30px rgba(70, 60, 40, 0.08);
  --shadow-card: 0 4px 20px rgba(70, 60, 40, 0.06);
  --shadow-dropdown: 0 16px 40px rgba(52, 60, 37, 0.12);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Allura', cursive;

  /* Layout Spacing */
  --site-max-width: 1360px;
  --header-branding-height: 170px;
  --nav-height: 56px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --radius-arch: 130px 130px 14px 14px;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--cream-primary);
  color: var(--text-brown);
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream-primary);
  color: var(--text-brown);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--deep-olive);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--deep-olive);
  font-weight: 500;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

/* Script Accent */
.script-accent {
  font-family: var(--font-script);
  color: var(--gold-muted);
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 400;
  display: inline-block;
}

.script-accent.olive {
  color: var(--olive-primary);
}

/* Subtle botanical decorative divider */
.crest-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 20px;
}
.crest-divider::before,
.crest-divider::after {
  content: '';
  height: 1px;
  width: 50px;
  background: var(--gold-muted);
  opacity: 0.5;
}
.crest-divider svg {
  color: var(--gold-muted);
  width: 16px;
  height: 16px;
}

/* Layout Container */
.container {
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-spacing {
  padding-top: 90px;
  padding-bottom: 90px;
}

.section-spacing-sm {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--olive-primary);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: var(--deep-olive);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 0.98rem;
  color: var(--text-brown);
  opacity: 0.9;
}

/* --- 3. HEADER COMPONENT --- */
.site-header {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* Top Branding Area (150-190px Desktop) */
.header-branding {
  background-color: var(--cream-secondary);
  background-image: url('../images/header-clean-bg-v4.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 180px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 32px 0 26px;
  border-bottom: 1px solid rgba(181, 138, 69, 0.2);
}

.header-branding-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Left script branding */
.branding-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.branding-left .script-phrase {
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--olive-primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.branding-left .brand-sub-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-brown);
  margin-top: 6px;
  opacity: 0.85;
}

/* Center Logo & Title */
.branding-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.header-logo-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(181, 138, 69, 0.18));
}
.branding-center:hover .header-logo-img {
  transform: scale(1.04);
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: 5px;
  color: var(--deep-olive);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
}
.brand-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.brand-tagline-wrap::before,
.brand-tagline-wrap::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-muted);
  opacity: 0.7;
}
.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--olive-primary);
  text-transform: uppercase;
}

/* Right editorial branding */
.branding-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.branding-right .tradition-block {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 2.2px;
  color: var(--deep-olive);
  font-weight: 600;
  text-transform: uppercase;
  border-left: 1px solid var(--gold-muted);
  padding-left: 12px;
}

/* --- 4. NAVIGATION BAR (BELOW BRANDING) --- */
.site-nav-bar {
  background-color: var(--cream-primary);
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(70, 60, 40, 0.04);
  transition: all 0.3s ease;
}

.site-nav-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Mobile trigger (hidden on desktop) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  color: var(--deep-olive);
  padding: 8px;
}
.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--deep-olive);
  padding: 16px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--olive-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--olive-primary);
  animation: navUnderline 0.25s ease forwards;
}

@keyframes navUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.nav-link .dropdown-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
}
.has-mega-menu:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Nav Utility Icons (Search, User, Cart) */
.nav-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-btn {
  background: transparent;
  color: var(--deep-olive);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.utility-btn:hover {
  color: var(--olive-primary);
  transform: translateY(-1px);
}

.utility-btn svg {
  width: 20px;
  height: 20px;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: 0;
  right: -2px;
  background-color: var(--gold-muted);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* --- 5. LUXURY MEGA MENU --- */
.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--cream-primary);
  border-bottom: 2px solid var(--gold-muted);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  z-index: 999;
}

.has-mega-menu:hover .mega-menu-wrapper,
.mega-menu-wrapper.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 36px 30px 24px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: var(--border-subtle);
}

.mega-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--deep-olive);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(181, 138, 69, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-link-list li a {
  font-size: 0.85rem;
  color: var(--text-brown);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-link-list li a:hover {
  color: var(--olive-primary);
  transform: translateX(4px);
}

.mega-link-list li a .badge-tag {
  font-size: 0.6rem;
  font-weight: 600;
  background: var(--deep-olive);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.mega-col-footer-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--olive-primary);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mega-col-footer-link:hover {
  color: var(--deep-olive);
}

/* Mega menu right promo card */
.mega-promo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: var(--border-gold-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mega-promo-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.mega-promo-content {
  background-color: #FAF4E8;
  padding: 16px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mega-promo-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--olive-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.mega-promo-sub {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--deep-olive);
  margin-bottom: 12px;
}
.btn-mega-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  background: var(--olive-primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  transition: background 0.25s ease;
}
.btn-mega-cta:hover {
  background: var(--olive-hover);
}

/* Mega menu bottom trust strip */
.mega-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 18px;
}
.mega-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mega-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-olive);
}
.mega-trust-icon svg {
  width: 16px;
  height: 16px;
}
.mega-trust-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--deep-olive);
}
.mega-trust-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* --- 6. BUTTONS & UI CONTROLS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--olive-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 89, 53, 0.25);
}
.btn-primary:hover {
  background-color: var(--olive-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 89, 53, 0.32);
}

.btn-secondary {
  background-color: transparent;
  color: var(--olive-primary);
  border: 1.5px solid var(--olive-primary);
}
.btn-secondary:hover {
  background-color: var(--olive-primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--deep-olive);
  border: 1px solid var(--gold-muted);
}
.btn-outline-gold:hover {
  background-color: var(--gold-muted);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.74rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.9rem;
}

/* --- 7. CARDS (CATEGORY, PRODUCT, RECIPE, BLOG) --- */

/* Arched Category Card */
.category-arch-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.category-arch-card:hover {
  transform: translateY(-6px);
}
.arch-image-wrap {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1.2;
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid rgba(181, 138, 69, 0.4);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  background-color: var(--cream-secondary);
}
.arch-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-arch-card:hover .arch-image-wrap img {
  transform: scale(1.08);
}
.category-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--deep-olive);
  font-weight: 600;
  margin-bottom: 4px;
}
.category-link-arrow {
  font-size: 0.8rem;
  color: var(--olive-primary);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.category-arch-card:hover .category-link-arrow {
  transform: translateX(4px);
}

/* Product Card */
.product-card {
  background: var(--white);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(70, 60, 40, 0.12);
  border-color: rgba(181, 138, 69, 0.4);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--gold-soft);
  color: var(--deep-olive);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-olive);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  z-index: 2;
}
.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  color: #C0392B;
  background: var(--white);
}

.product-image-wrap {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.product-image-wrap img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-olive);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-title a:hover {
  color: var(--olive-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gold-muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.product-rating span {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 2px;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-olive);
  margin-bottom: 14px;
}
.product-price .original-price {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Recipe Card */
.recipe-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 138, 69, 0.4);
}
.recipe-img-wrap {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
}
.recipe-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.recipe-card:hover .recipe-img-wrap img {
  transform: scale(1.08);
}
.recipe-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(251, 241, 220, 0.95);
  color: var(--deep-olive);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.recipe-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.recipe-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--deep-olive);
  margin-bottom: 6px;
}
.recipe-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.recipe-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.recipe-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--olive-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.recipe-link:hover {
  color: var(--deep-olive);
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 138, 69, 0.4);
}
.blog-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}
.blog-cat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #FAF4E8;
  color: var(--deep-olive);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.blog-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--deep-olive);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-summary {
  font-size: 0.86rem;
  color: var(--text-brown);
  opacity: 0.85;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(79, 89, 53, 0.1);
  padding-top: 12px;
}
.blog-read-link {
  font-weight: 600;
  color: var(--olive-primary);
}

/* --- 8. TRUST BADGES ROW --- */
.trust-indicators-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  margin: 30px 0;
}
.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.trust-badge-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-olive);
  box-shadow: 0 4px 10px rgba(181, 138, 69, 0.2);
}
.trust-badge-circle svg {
  width: 22px;
  height: 22px;
}
.trust-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--deep-olive);
}

/* --- 9. NEWSLETTER SECTION --- */
.newsletter-section {
  background-color: var(--cream-secondary);
  border-top: var(--border-gold-subtle);
  border-bottom: var(--border-gold-subtle);
  padding: 45px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--site-max-width);
  margin: 0 auto;
}
.newsletter-text-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.newsletter-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive-primary);
  flex-shrink: 0;
}
.newsletter-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--deep-olive);
  margin-bottom: 2px;
}
.newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-brown);
}
.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.newsletter-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid rgba(79, 89, 53, 0.2);
  border-radius: var(--radius-pill);
  outline: none;
  font-size: 0.88rem;
  transition: border-color 0.25s;
}
.newsletter-input:focus {
  border-color: var(--olive-primary);
}
.newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: var(--olive-primary);
  color: var(--white);
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.25s;
}
.newsletter-btn:hover {
  background: var(--olive-hover);
}

/* --- 10. SITE FOOTER --- */
.site-footer {
  background-color: var(--cream-secondary);
  border-top: var(--border-subtle);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(79, 89, 53, 0.15);
}
.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}
.footer-logo-wrap img {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
}
.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--olive-primary);
  font-weight: 600;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gold-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-olive);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 0.85rem;
  color: var(--text-brown);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links li a:hover {
  color: var(--olive-primary);
  transform: translateX(3px);
}
.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-primary);
  border: 1px solid rgba(79, 89, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-olive);
  transition: all 0.25s ease;
}
.social-icon-btn:hover {
  background: var(--olive-primary);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-bottom-tagline {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--deep-olive);
}

/* --- 11. MODALS & DRAWERS --- */

/* Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(52, 60, 37, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--cream-primary);
  z-index: 1001;
  box-shadow: -8px 0 35px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--deep-olive);
}
.close-drawer-btn {
  color: var(--deep-olive);
  padding: 6px;
  transition: transform 0.2s ease;
}
.close-drawer-btn:hover {
  transform: rotate(90deg);
}
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.cart-item-details {
  flex: 1;
}
.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--deep-olive);
  line-height: 1.2;
}
.cart-item-weight {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.cart-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--olive-primary);
  margin-top: 4px;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid rgba(79, 89, 53, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 6px;
  width: fit-content;
}
.cart-qty-btn {
  padding: 2px 8px;
  font-size: 0.85rem;
  background: var(--cream-primary);
  color: var(--deep-olive);
}
.cart-qty-val {
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
}
.cart-item-remove {
  color: var(--text-muted);
  padding: 4px;
  align-self: flex-start;
  transition: color 0.2s;
}
.cart-item-remove:hover {
  color: #C0392B;
}
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: var(--border-gold-subtle);
  background: #F8EFE0;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-brown);
}
.cart-summary-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-olive);
  border-top: 1px solid rgba(79, 89, 53, 0.15);
  padding-top: 10px;
  margin-top: 8px;
}

/* Quick View Modal */
.quick-view-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 820px;
  background: var(--cream-primary);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.quick-view-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}
.quick-view-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  padding: 32px;
  gap: 32px;
  position: relative;
}
.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--deep-olive);
  font-size: 1.2rem;
  padding: 6px;
}

/* Global Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--cream-primary);
  border-bottom: 2px solid var(--gold-muted);
  box-shadow: var(--shadow-dropdown);
  z-index: 1002;
  padding: 30px 24px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.search-modal.is-open {
  transform: translateY(0);
}
.search-modal-inner {
  max-width: 760px;
  margin: 0 auto;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--olive-primary);
  padding-bottom: 8px;
}
.search-input-wrap svg {
  color: var(--olive-primary);
  width: 24px;
  height: 24px;
  margin-right: 12px;
}
.search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--deep-olive);
  outline: none;
}
.search-results-box {
  margin-top: 20px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
  transition: background 0.2s;
}
.search-result-item:hover {
  background: #FAF5EB;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-alert {
  background: var(--deep-olive);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease forwards;
}
@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- 12. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .header-branding-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .branding-left, .branding-right {
    display: none;
  }
  .desktop-nav {
    gap: 20px;
  }
  .mega-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-promo-card {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .trust-indicators-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-text-wrap {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .quick-view-inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
