/* =============================================
   LUPINFOODY — Main Stylesheet
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #3d6b4f;
  --green-light: #5a8f6e;
  --green-pale: #e8f3ec;
  --gold: #c8972a;
  --gold-light: #f5e6c0;
  --dark: #1a2e1e;
  --body: #3a3a3a;
  --muted: #7a8a7e;
  --bg: #fafaf7;
  --white: #ffffff;
  --border: #dde8e0;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(61,107,79,0.10);
  --shadow-lg: 0 8px 40px rgba(61,107,79,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--dark); border-color: var(--dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-fb {
  background: #1877f2;
  color: var(--white);
  border-color: #1877f2;
  margin-top: 0.5rem;
  width: fit-content;
}
.btn-fb:hover { background: #0e5dc7; border-color: #0e5dc7; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4%;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(250,250,247,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.7rem 4%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dark);
}

.nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-right: auto;
  margin-left: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: var(--green-pale); color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 8rem 6% 4rem;
  background: linear-gradient(135deg, #edf5f0 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,151,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 560px; }

.hero-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-sub strong { color: var(--green); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.hero-photo {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
  border: 1px solid var(--border);
}

.hero-stat { text-align: center; }

.stat-big {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-divider {
  height: 1px;
  background: var(--border);
}

/* ---- SECTION BASE ---- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* ---- ABOUT ---- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--body);
  margin-bottom: 1.2rem;
}

.about-text em { color: var(--green); font-style: italic; }

.about-warning {
  display: flex;
  gap: 0.75rem;
  background: #fff8e6;
  border: 1px solid #f5d88a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.about-warning p { margin: 0; font-size: 0.9rem; color: #7a6010; }
.warning-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.85rem; color: var(--muted); }

/* ---- NUTRITION ---- */
.nutrition { background: var(--bg); }

.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nutrition-bar-wrap { display: flex; flex-direction: column; gap: 1.1rem; }

.nutrition-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  font-size: 0.85rem;
  font-weight: 500;
  width: 130px;
  flex-shrink: 0;
  color: var(--body);
}

.bar-track {
  flex: 1;
  background: var(--border);
  border-radius: 50px;
  height: 34px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  transition: width 1s ease;
}

.bar-fill span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.bar-fill.bar-secondary { background: #8ab89a; }

.bar-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.nutrition-benefits h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--body);
}

.check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- RECIPES ---- */
.recipes { background: var(--white); }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.recipe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.recipe-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.recipe-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.recipe-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.recipe-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.recipe-et {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.recipe-card p {
  font-size: 0.88rem;
  color: var(--body);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.recipe-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

/* ---- BLOG ---- */
.blog { background: var(--bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

/* ---- WHY US ---- */
.why-us {
  background: var(--green);
  padding: 3.5rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.why-item { color: var(--white); }
.why-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.why-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.why-item p { font-size: 0.85rem; opacity: 0.8; }

/* ---- CONTACT ---- */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-item a {
  color: var(--green);
  font-weight: 500;
  transition: opacity 0.2s;
}
.contact-item a:hover { opacity: 0.7; }
.contact-item span { font-size: 0.95rem; color: var(--body); }

.contact-legal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-links a {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.legal-links a::before { content: '→'; }
.legal-links a:hover { gap: 0.7rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer .nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}

.footer-tagline { font-size: 0.85rem; font-style: italic; }
.footer-copy { font-size: 0.78rem; opacity: 0.5; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .about-grid,
  .nutrition-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-actions { justify-content: center; }

  .hero-photo { width: 100%; max-width: 400px; height: 200px; }

  .hero-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    padding: 1.5rem;
  }

  .hero-divider { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(250,250,247,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }

  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.2rem; padding: 0.6rem 1.5rem; }

  .nav-toggle { display: flex; z-index: 200; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---- NAV CART BUTTON ---- */
.nav-cart {
  position: relative;
  background: var(--green-pale);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  z-index: 200;
}
.nav-cart:hover { background: var(--green); color: var(--white); }

.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ---- SHOP ---- */
.shop { background: var(--white); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-card--highlight {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffdf5 0%, var(--bg) 100%);
}

.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.product-badge--gold { background: var(--gold); }

.product-img {
  font-size: 3.5rem;
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: var(--green-pale);
  line-height: 1;
}

.product-card--highlight .product-img { background: var(--gold-light); }

.product-info {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.product-weight {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green);
  font-weight: 700;
}

.btn-add {
  width: 100%;
  justify-content: center;
}

/* ---- CART SIDEBAR ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,46,30,0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(26,46,30,0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
}

.cart-close {
  background: var(--green-pale);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cart-close:hover { background: var(--border); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-item-emoji { font-size: 1.8rem; flex-shrink: 0; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 0.82rem; color: var(--muted); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.qty-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: background 0.15s;
  line-height: 1;
  padding: 0;
}
.qty-btn:hover { background: var(--green-pale); }
.qty-val { font-weight: 600; font-size: 0.9rem; min-width: 18px; text-align: center; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-foot {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
}
.cart-shipping-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -0.3rem;
}
.cart-checkout-btn { width: 100%; justify-content: center; }

/* ---- CHECKOUT MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,46,30,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(540px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--green-pale);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); }

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: var(--body);
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--dark);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  color: var(--body);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--green); background: var(--white); }
.form-row input.invalid { border-color: #c0392b; }

.checkout-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
}

.order-success {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.success-icon { font-size: 3rem; }
.order-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark);
}
.order-success p { color: var(--muted); font-size: 0.95rem; }

/* ---- BLOG PAGE ---- */
.blog-page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%);
  padding: 8rem 6% 4rem;
  text-align: center;
  color: var(--white);
}

.blog-page-hero .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.blog-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 1rem 0 0.75rem;
}

.blog-page-hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 540px;
  margin-inline: auto;
}

.blog-full { background: var(--bg); }

.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-full-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-full-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-full-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.blog-full-card-body .blog-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-full-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.35;
}

.blog-full-card-body p {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.6;
  flex: 1;
}

.blog-full-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.blog-back-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 4%;
  display: flex;
  align-items: center;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green);
  transition: gap 0.2s;
}

.blog-back-link:hover { gap: 0.7rem; }

@media (max-width: 768px) {
  .blog-full-grid { grid-template-columns: 1fr; }
  .blog-page-hero { padding: 7rem 5% 3rem; }
}

/* ---- SHOP MOBILE ---- */
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
}

/* ---- BLOG ARTICLE PAGE ---- */
.blog-article {
  padding-top: 72px;
}

.blog-article-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.blog-article-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

.blog-article-container {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  max-width: 780px;
}

.blog-article-header {
  margin: 1.5rem 0 2rem;
}

.blog-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--dark);
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}

.blog-article-body {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--dark);
  margin: 2.2rem 0 0.75rem;
}

.blog-article-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin: 1.5rem 0 0.5rem;
}

.blog-article-body p {
  margin-bottom: 1.1rem;
}

.blog-article-body ul,
.blog-article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}

.blog-article-body li {
  margin-bottom: 0.5rem;
}

.blog-article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article-body a:hover { color: var(--dark); }

.blog-article-body em {
  font-style: italic;
  color: var(--muted);
}

.blog-article-warning {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .blog-article-hero img { height: 260px; }
}
