/* Root variables for colors and fonts */
:root {
  --primary-color: #4b2e2e; /* dark coffee brown */
  --secondary-color: #8a5a44; /* warm medium brown */
  --accent-color: #d4a373; /* golden caramel */
  --light-color: #f6f2ed; /* light beige for backgrounds */
  --text-color: #2e2e2e;
  --white: #ffffff;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--light-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

header .logo img {
  /* Increase the logo size slightly for better prominence in the header */
  height: 60px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 1.2rem;
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent-color);
}

/* Cart count bubble */
nav .cart-icon span {
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  padding: 0 6px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  /* Use a local image for the hero background to avoid broken links.  The image
     depicts an Ethiopian coffee ceremony and provides a warm, inviting
     atmosphere.  The parallax effect remains for depth. */
  background: url('../assets/coffee_ceremony.jpg') center/cover no-repeat;
  background-attachment: fixed; /* parallax effect */
  /* Offset the hero content downward to prevent it from being overlapped by the
     fixed header on smaller viewports */
  padding-top: 80px;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--white);
}

.hero-content p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  color: var(--light-color);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid var(--accent-color);
  color: var(--white);
  background: var(--accent-color);
}

.btn:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Section base styling */
section {
  padding: 4rem 0;
}

section.dark {
  background: var(--primary-color);
  color: var(--light-color);
}

section.light {
  background: var(--light-color);
  color: var(--primary-color);
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

/* Text section */
.text-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--primary-color);
}

/* Cards for beans/events */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

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

.card .card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.card p {
  flex-grow: 1;
  margin: 0.5rem 0 1rem;
  color: var(--secondary-color);
}

.card .price {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card button {
  align-self: flex-start;
  background: var(--accent-color);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.card button:hover {
  background: var(--primary-color);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 2rem 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

/* Responsive navigation */
@media (max-width: 992px) {
  nav ul {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: var(--white);
    padding-top: 1rem;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Animate on scroll base */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast message */
#toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 2000;
}

#toast.show {
  opacity: 1;
}

/* Checkout form */
.checkout-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.checkout-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.checkout-form button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  background: var(--accent-color);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-form button:hover {
  background: var(--primary-color);
}
/* Production hardening + UX refinements */
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  display: none;
  font-weight: 600;
}
.form-status.success { display:block; background:#e9f7ef; color:#1f6b3a; }
.form-status.error { display:block; background:#fff0f0; color:#8f1d1d; }
.form-help { font-size: 0.85rem; color: var(--secondary-color); margin-top: -0.6rem; margin-bottom: 0.9rem; }
.honeypot { position:absolute !important; left:-10000px !important; opacity:0 !important; height:1px !important; width:1px !important; overflow:hidden !important; }
.security-note { font-size:0.9rem; opacity:.85; margin-top:1rem; }
.checkout-actions { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-top:1rem; }
.checkout-actions button { max-width: 360px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(212,163,115,.35); border-color: var(--accent-color); }
.card img { background: #ead9c3; }
@media (max-width: 760px) { .card-grid[style] { grid-template-columns: 1fr !important; } }

/* Improved section contrast */
section.dark {
  background: linear-gradient(135deg, #4b2e2e 0%, #6a4038 100%);
  color: var(--light-color);
}
section.dark h2,
section.dark h3,
section.dark p,
section.dark li,
section.dark .text-section {
  color: var(--light-color);
}

/* Page intro */
.page-intro {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}
.page-intro.compact {
  margin-bottom: 2.5rem;
}
.page-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.3rem 0 1rem;
  color: var(--primary-color);
}
.page-intro p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--secondary-color);
}
.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
}
.section-heading.center {
  max-width: 840px;
  text-align: center;
  margin: 0 auto 2rem;
}
.section-heading.center p {
  color: var(--secondary-color);
  line-height: 1.75;
}

/* Modern forms */
.modern-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--primary-color);
}
.modern-form label span {
  color: var(--accent-color);
}
.modern-form input,
.modern-form textarea,
.modern-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  border: 1px solid #d9d0c6;
  border-radius: 14px;
  background: #fff;
  color: var(--text-color);
  font: inherit;
  margin: 0;
}
.modern-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--secondary-color) 50%), linear-gradient(135deg, var(--secondary-color) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}
.modern-form textarea {
  resize: vertical;
  min-height: 170px;
}
.modern-form small {
  display: block;
  margin-top: 0.5rem;
  color: var(--secondary-color);
  line-height: 1.5;
}
.form-grid {
  display: grid;
  gap: 1.1rem 1.25rem;
}
.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field.full {
  grid-column: 1 / -1;
}
.form-panel .card-content,
.checkout-form-wrap .card-content,
.info-panel .card-content,
.checkout-summary .card-content {
  padding: 2rem;
}
.section-copy {
  color: var(--secondary-color);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.modern-form button,
.checkout-form button {
  margin-top: 1rem;
  min-width: 220px;
  width: auto;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.modern-form button:hover,
.checkout-form button:hover {
  background: var(--primary-color);
}
.contact-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: start;
}
.contact-info-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-color);
}
.contact-info-list p,
.contact-info-list a {
  color: var(--secondary-color);
  line-height: 1.65;
  text-decoration: none;
}
.map-wrap {
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 18px;
}
.checkout-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #efe7de;
}
.cart-name { color: var(--primary-color); font-weight: 600; }
.cart-price { color: var(--secondary-color); font-weight: 700; }
.remove-btn {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  background: #f4ebe2;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.remove-btn:hover { background: #ead9c7; }

/* Story page */
.story-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(50, 24, 22, 0.46), rgba(50, 24, 22, 0.38)), url('../assets/coffee_ceremony.jpg') center/cover no-repeat;
  color: var(--white);
}
.story-hero-content {
  max-width: 760px;
  padding: 5rem 0;
}
.story-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.14;
  margin: 0.6rem 0 1rem;
  color: var(--white);
}
.story-hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}
.story-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.story-split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}
.story-split.reverse .story-media { order: 1; }
.story-split.reverse .story-copy { order: 2; }
.story-copy h2,
.map-copy h2,
.story-banner-box h2 {
  text-align: left;
  margin: 0.35rem 0 1rem;
}
.story-copy p,
.map-copy p,
.note-list li {
  color: var(--secondary-color);
  line-height: 1.8;
  font-size: 1.04rem;
}
.story-media img,
.map-card img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(44, 23, 20, 0.12);
}
.story-quote {
  margin: 1.4rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent-color);
  background: #fffaf5;
  color: var(--primary-color);
  border-radius: 0 16px 16px 0;
  font-weight: 600;
}
.accent-soft {
  background: linear-gradient(180deg, #fbf8f4 0%, #f5eee6 100%);
}
.feature-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 14px 35px rgba(44, 23, 20, 0.08);
}
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}
.feature-card p {
  margin: 0;
  color: var(--secondary-color);
  line-height: 1.7;
}
.map-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2rem;
  align-items: start;
}
.note-list {
  padding-left: 1.1rem;
  margin: 1.1rem 0;
}
.note-list li + li { margin-top: 0.65rem; }
.story-banner {
  position: relative;
  background-size: cover;
  background-position: center;
}
.story-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(57, 28, 25, 0.55), rgba(57, 28, 25, 0.55));
}
.story-banner .container {
  position: relative;
  z-index: 1;
}
.story-banner-box {
  max-width: 720px;
  padding: 4.5rem 0;
}
.story-banner-box h2,
.story-banner-box p { color: var(--white); }
.story-banner-box p { line-height: 1.8; font-size: 1.08rem; }

@media (max-width: 980px) {
  .contact-layout,
  .checkout-layout,
  .story-split,
  .story-split.reverse,
  .map-layout,
  .feature-grid.three {
    grid-template-columns: 1fr;
  }
  .story-split.reverse .story-media,
  .story-split.reverse .story-copy { order: unset; }
}

@media (max-width: 760px) {
  .form-grid.two-col { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modern-form button,
  .checkout-form button,
  .checkout-actions button { width: 100%; max-width: none; }
  .story-hero { min-height: 58vh; }
  .story-copy h2,
  .map-copy h2,
  .story-banner-box h2 { text-align: left; }
}
.form-panel.card:hover,
.info-panel.card:hover,
.checkout-summary.card:hover,
.checkout-form-wrap.card:hover,
.map-card.card:hover {
  transform: none;
}
.map-card img {
  height: auto;
  object-fit: contain;
}

/* ===== Home page upgrade ===== */
.home-hero-upgraded {
  min-height: 100vh;
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 120px;
}
.hero-content-left {
  text-align: left;
  max-width: 700px;
}
.hero-content-left h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}
.hero-content-left p {
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}
.hero-actions,
.inline-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}
.hero-side-card {
  justify-self: end;
  width: min(420px, 100%);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  padding: 1.7rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.hero-side-card h3 {
  color: var(--white);
  margin: 1rem 0 0.65rem;
  font-size: 1.55rem;
}
.hero-side-card p {
  color: rgba(255,255,255,0.86);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.hero-side-top {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.mini-pill {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.hero-mini-stats div {
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.hero-mini-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--white);
}
.hero-mini-stats span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator span {
  display: block;
  width: 28px;
  height: 46px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.72);
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 9px;
  width: 5px;
  height: 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  transform: translateX(-50%);
  animation: scrollPulse 1.7s infinite;
}
@keyframes scrollPulse {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}
.intro-ribbon-section {
  padding-top: 0;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.intro-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(255,255,255,0.94);
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(44,23,20,0.10);
  padding: 1.3rem;
}
.intro-ribbon-item {
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #fcfaf8;
}
.intro-ribbon-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}
.intro-ribbon-item span {
  color: var(--secondary-color);
  line-height: 1.6;
}
.home-split-first {
  padding-top: 1rem;
}
.image-stack {
  position: relative;
  min-height: 520px;
}
.stack-main {
  width: 82%;
  height: 440px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(44,23,20,0.12);
}
.stack-float {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 56%;
  height: 270px;
  object-fit: cover;
  border-radius: 24px;
  border: 8px solid #fff;
  box-shadow: 0 18px 45px rgba(44,23,20,0.16);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}
.editorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 320px;
  box-shadow: 0 18px 42px rgba(44,23,20,0.10);
}
.editorial-card.large {
  min-height: 420px;
}
.editorial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.editorial-card:hover img,
.origin-card:hover img,
.promo-panel:hover { transform: scale(1.04); }
.editorial-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(31,16,15,0.04) 0%, rgba(31,16,15,0.72) 58%, rgba(31,16,15,0.88) 100%);
}
.editorial-overlay h3,
.editorial-overlay p,
.promo-panel-overlay h3,
.promo-panel-overlay p {
  color: var(--white);
}
.editorial-overlay h3 {
  margin: 0.4rem 0 0.6rem;
}
.editorial-overlay p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}
.editorial-overlay.small {
  padding: 1.35rem;
}
.origin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.origin-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(44,23,20,0.08);
}
.origin-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.origin-card-content {
  padding: 1.2rem 1.2rem 1.35rem;
}
.origin-card-content h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}
.origin-card-content p {
  margin: 0;
  color: var(--secondary-color);
  line-height: 1.65;
}
.home-banner-box {
  max-width: 640px;
}
.dual-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.promo-panel {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(44,23,20,0.12);
  transition: transform 0.6s ease;
}
.promo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,16,15,0.14) 10%, rgba(31,16,15,0.74) 100%);
}
.promo-panel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem;
  z-index: 1;
}
.promo-panel-overlay h3 {
  margin: 0.45rem 0 0.75rem;
  font-size: 1.6rem;
}
.promo-panel-overlay p {
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}

@media (max-width: 1100px) {
  .home-hero-grid,
  .editorial-grid,
  .origin-grid,
  .dual-promo-grid,
  .intro-ribbon {
    grid-template-columns: 1fr 1fr;
  }
  .editorial-card.large,
  .intro-ribbon-item:first-child {
    grid-column: 1 / -1;
  }
  .hero-side-card {
    justify-self: stretch;
  }
}

@media (max-width: 860px) {
  .home-hero-grid,
  .editorial-grid,
  .origin-grid,
  .dual-promo-grid,
  .intro-ribbon {
    grid-template-columns: 1fr;
  }
  .home-hero-grid {
    padding-top: 110px;
  }
  .hero-content-left,
  .hero-content {
    text-align: left;
  }
  .hero-content-left p {
    max-width: none;
  }
  .image-stack {
    min-height: auto;
  }
  .stack-main {
    width: 100%;
    height: 340px;
  }
  .stack-float {
    position: relative;
    width: 70%;
    height: 220px;
    margin: -60px 0 0 auto;
  }
  .intro-ribbon-section {
    margin-top: -28px;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn,
  .inline-actions .btn {
    text-align: center;
  }
  .stack-float {
    width: 82%;
  }
  .promo-panel {
    min-height: 360px;
  }
  .hero-mini-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Luxury header, typography and UI polish ===== */
body {
  line-height: 1.6;
}
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}
header {
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(75,46,46,0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
header.scrolled {
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 28px rgba(33,18,18,0.08);
  backdrop-filter: blur(14px);
}
header .container {
  height: 76px;
}
header .logo {
  display: inline-flex;
  align-items: center;
  position: relative;
}
header .logo::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,163,115,0.9), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
header .logo:hover::after {
  opacity: 1;
}
header .logo img {
  height: 62px;
  filter: drop-shadow(0 6px 14px rgba(75,46,46,0.08));
}
nav ul li {
  margin-left: 0.7rem;
}
nav a,
.lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 600;
}
nav a:hover {
  color: var(--primary-color);
  background: rgba(212,163,115,0.14);
}
.lang-switch button {
  border: 1px solid rgba(75,46,46,0.10);
  background: rgba(255,255,255,0.8);
  cursor: pointer;
}
.lang-switch button:hover {
  background: rgba(212,163,115,0.14);
}
nav .cart-icon a {
  background: rgba(75,46,46,0.06);
}
nav .cart-icon span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn,
.card button,
.product-card-premium button,
.shop-highlight-meta button {
  box-shadow: 0 10px 24px rgba(212,163,115,0.25);
}
.btn:hover,
.card button:hover,
.product-card-premium button:hover,
.shop-highlight-meta button:hover {
  transform: translateY(-2px);
}
section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.text-section,
.card p,
.product-body p,
.page-intro p,
.section-copy {
  line-height: 1.8;
}
.card,
.origin-card,
.feature-card,
.promo-panel,
.product-card-premium,
.shop-highlight-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover,
.origin-card:hover,
.feature-card:hover,
.product-card-premium:hover,
.shop-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(44,23,20,0.12);
}

/* ===== Premium shop page ===== */
.shop-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f3ee 0%, #efe2d2 100%);
}
.shop-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,163,115,0.28) 0%, rgba(212,163,115,0) 72%);
}
.shop-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
}
.shop-hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.3rem);
  line-height: 1.08;
  margin: 0.45rem 0 1rem;
  color: var(--primary-color);
}
.shop-hero-copy p {
  max-width: 620px;
  color: var(--secondary-color);
  line-height: 1.85;
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
}
.shop-highlight-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(75,46,46,0.08);
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(44,23,20,0.10);
}
.shop-highlight-image {
  position: relative;
}
.shop-highlight-image img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}
.shop-highlight-body {
  padding: 1.5rem;
}
.mini-pill.dark {
  background: rgba(75,46,46,0.08);
  color: var(--primary-color);
}
.shop-highlight-body h3 {
  margin: 0.8rem 0 0.65rem;
  color: var(--primary-color);
  font-size: 1.55rem;
}
.shop-highlight-body p {
  color: var(--secondary-color);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.shop-highlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.shop-highlight-meta strong {
  font-size: 1.45rem;
  color: var(--primary-color);
}
.shop-highlight-meta button,
.product-card-premium button {
  border: none;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.shop-benefits-section {
  padding-top: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.shop-benefits-ribbon {
  box-shadow: 0 16px 35px rgba(44,23,20,0.08);
}
.shop-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 2rem;
}
.filter-pill {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--secondary-color);
  border: 1px solid #eadfd2;
  font-weight: 600;
}
.filter-pill.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}
.product-grid.premium-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.product-card-premium {
  overflow: hidden;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 14px 35px rgba(44,23,20,0.08);
}
.product-card-premium.wide-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}
.product-media {
  position: relative;
}
.product-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.wide-card .product-media img {
  height: 100%;
  min-height: 320px;
}
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-color);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.product-body {
  padding: 1.35rem;
}
.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: #9a7867;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-body h3 {
  margin: 0.7rem 0 0.55rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}
.product-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
}
.product-notes li {
  padding: 0.45rem 0.7rem;
  background: #f7f1ea;
  color: var(--primary-color);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.price-block strong {
  display: block;
  font-size: 1.45rem;
  color: var(--primary-color);
}
.price-block span {
  color: var(--secondary-color);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .shop-hero-grid,
  .product-grid.premium-grid,
  .product-card-premium.wide-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shop-highlight-meta,
  .product-bottom {
    align-items: stretch;
  }
  .shop-highlight-meta button,
  .product-card-premium button {
    width: 100%;
  }
}

/* ===== v5 polish: active nav, mobile, microinteractions, luxe footer ===== */
nav a.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(75,46,46,0.18);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
#cart-count.pulse {
  animation: cartPulse 0.55s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.card button.added,
.product-card-premium button.added,
.shop-highlight-meta button.added {
  background: #2f8f5b;
  box-shadow: 0 10px 24px rgba(47,143,91,0.22);
}

.shop-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
}
.filter-pill {
  cursor: pointer;
  transition: var(--transition);
}
.filter-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
}
.product-card-premium.is-hidden {
  display: none;
}

footer {
  position: relative;
  background: radial-gradient(circle at top center, rgba(212,163,115,0.18), rgba(212,163,115,0) 28%), linear-gradient(135deg, #412626 0%, #251515 100%);
  color: var(--light-color);
  padding: 3.25rem 0 2.2rem;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(1120px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,163,115,0.7), transparent);
}
footer .container {
  gap: 0.45rem;
}
footer p {
  margin: 0.2rem 0;
  line-height: 1.75;
}
footer a {
  position: relative;
  color: #e7c8a7;
}
footer a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
footer a:hover {
  color: #f3dbc1;
}

@media (max-width: 992px) {
  body.menu-open {
    overflow: hidden;
  }
  nav ul {
    top: 82px;
    right: -110%;
    width: min(340px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    margin-right: 12px;
    border-radius: 24px;
    padding: 1rem 0.8rem 1.1rem;
    box-shadow: 0 18px 48px rgba(33,18,18,0.16);
  }
  nav ul.active {
    right: 0;
  }
  nav ul li {
    width: 100%;
    margin: 0.3rem 0;
  }
  nav ul li a,
  .lang-switch button {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 16px;
  }
  nav .cart-icon a {
    justify-content: space-between;
  }
  .shop-hero-grid,
  .home-hero-grid,
  .contact-layout,
  .checkout-layout,
  .story-split,
  .story-split.reverse,
  .map-layout,
  .feature-grid.three,
  .editorial-grid,
  .origin-grid,
  .dual-promo-grid,
  .product-grid.premium-grid,
  .product-card-premium.wide-card,
  .intro-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header .container {
    height: 74px;
  }
  header .logo img {
    height: 56px;
  }
  section {
    padding: 3.25rem 0;
  }
  .hero-content-left h1,
  .shop-hero-copy h1,
  .story-hero h1,
  .page-intro h1 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }
  .hero-side-card,
  .shop-highlight-card,
  .card,
  .feature-card,
  .origin-card,
  .product-card-premium {
    border-radius: 22px;
  }
  .hero-content-left p,
  .page-intro p,
  .section-copy,
  .story-copy p,
  .map-copy p,
  .text-section {
    font-size: 1rem;
  }
  .intro-ribbon,
  .shop-benefits-ribbon {
    padding: 0.95rem;
  }
  .shop-results-meta {
    font-size: 0.95rem;
  }
}

/* ===== v6 final polish: quantity, product modal, improved checkout ===== */
.product-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.1rem;
}
.qty-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--primary-color);
}
.qty-input {
  width: 72px;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #eadfd2;
  text-align: center;
  font: inherit;
  color: var(--primary-color);
  background: #fff;
}
.details-btn {
  border: 1px solid #eadfd2 !important;
  background: #fff !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
  padding: 0.65rem 0.95rem !important;
  border-radius: 999px !important;
  font-weight: 700;
  cursor: pointer;
}
.details-btn:hover {
  background: #f7f1ea !important;
  transform: translateY(-2px);
}
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.product-modal.open {
  display: flex;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31,16,15,0.64);
  backdrop-filter: blur(8px);
}
.product-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 96vw);
  max-height: min(88vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}
.product-modal-dialog img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.modal-body {
  padding: 2.2rem;
}
.modal-body h2 {
  text-align: left;
  margin: 0.45rem 0 1rem;
  color: var(--primary-color);
}
.modal-body p {
  color: var(--secondary-color);
  line-height: 1.8;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--primary-color);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44,23,20,0.12);
}
.brew-box {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: #f7f1ea;
  border-radius: 18px;
  color: var(--primary-color);
}
.brew-box strong,
.brew-box span {
  display: block;
}
.brew-box span {
  margin-top: 0.3rem;
  color: var(--secondary-color);
  line-height: 1.65;
}
body.modal-open {
  overflow: hidden;
}
.cart-row.enhanced {
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
}
.cart-name strong,
.cart-name span {
  display: block;
}
.cart-name span {
  margin-top: 0.25rem;
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f7f1ea;
  border-radius: 999px;
  padding: 0.28rem;
}
.cart-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary-color);
  font-weight: 800;
  cursor: pointer;
}
.cart-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--primary-color);
}
.empty-cart {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  padding: 1.2rem;
  background: #fbf8f4;
  border-radius: 20px;
  color: var(--secondary-color);
}
.empty-cart strong {
  color: var(--primary-color);
  font-size: 1.15rem;
}
.lang-switch button {
  position: relative;
}
.lang-switch button::after {
  content: 'soon';
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 0.58rem;
  background: var(--accent-color);
  color: white;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .product-modal-dialog {
    grid-template-columns: 1fr;
  }
  .product-modal-dialog img {
    min-height: 260px;
    max-height: 320px;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .cart-row.enhanced {
    grid-template-columns: 1fr auto;
  }
  .cart-qty,
  .cart-price,
  .remove-btn {
    justify-self: start;
  }
  .cart-price {
    font-size: 1.1rem;
  }
}

@media (max-width: 560px) {
  .product-tools {
    align-items: stretch;
  }
  .qty-label,
  .details-btn {
    width: 100%;
    justify-content: space-between;
  }
  .qty-input {
    width: 88px;
  }
}

/* ===== v7 wordmark header + modern footer ===== */
.logo-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-wordmark::after {
  display: none !important;
}
.wordmark-main {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
header .logo.logo-wordmark:hover .wordmark-main {
  color: #5d3630;
}

footer {
  padding: 3.4rem 0 2.2rem;
}
.footer-modern {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  text-align: left !important;
}
.footer-brand-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.1rem;
  align-items: center;
}
.footer-logo {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.14));
}
.footer-brand-copy h3 {
  margin: 0 0 0.45rem;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #f1d7bc;
}
.footer-brand-copy p,
.footer-info-block p,
.footer-bottom-line p {
  margin: 0;
  color: rgba(246,242,237,0.86);
  line-height: 1.75;
}
.footer-info-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.footer-info-block strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #f5e6d3;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.footer-info-block a {
  color: #e7c8a7;
  text-decoration: none;
}
.footer-bottom-line {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(231,200,167,0.2);
}

@media (max-width: 992px) {
  .footer-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-info-block {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wordmark-main {
    font-size: 1.65rem;
  }
  .footer-brand-block {
    grid-template-columns: 88px 1fr;
    align-items: start;
  }
  .footer-logo {
    max-width: 88px;
  }
  .footer-info-block {
    grid-template-columns: 1fr;
  }
}

/* ===== v8 refined wordmark ===== */
header .container {
  gap: 1.4rem;
}
.logo-wordmark {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  min-width: 230px;
  padding: 0.1rem 0;
  text-decoration: none;
}
.logo-wordmark::before,
.logo-wordmark::after {
  content: '';
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,163,115,0), rgba(212,163,115,0.98) 22%, rgba(138,90,68,0.98) 78%, rgba(212,163,115,0));
}
.logo-wordmark::before {
  width: 100%;
  opacity: 0.85;
}
.logo-wordmark::after {
  width: 72%;
  opacity: 0.7;
}
.wordmark-main {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 2.08rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  color: #4b2e2e;
  background: linear-gradient(180deg, #6a4038 0%, #4b2e2e 46%, #2e1715 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.72);
}
.wordmark-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8a5a44;
  padding-left: 0.18rem;
  white-space: nowrap;
}
header .logo.logo-wordmark:hover .wordmark-main {
  background: linear-gradient(180deg, #7d4b3e 0%, #59332e 45%, #351a18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
header .logo.logo-wordmark:hover .wordmark-sub {
  color: #a06a51;
}

@media (max-width: 992px) {
  .logo-wordmark {
    min-width: 200px;
  }
  .wordmark-main {
    font-size: 1.82rem;
    letter-spacing: 0.09em;
  }
  .wordmark-sub {
    font-size: 0.52rem;
    letter-spacing: 0.28em;
  }
}

@media (max-width: 640px) {
  .logo-wordmark {
    min-width: auto;
    max-width: 185px;
    gap: 0.12rem;
  }
  .wordmark-main {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }
  .wordmark-sub {
    font-size: 0.46rem;
    letter-spacing: 0.22em;
  }
  .logo-wordmark::after {
    width: 78%;
  }
}


/* ===== v9 branding refinement ===== */
.logo.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 255px;
}
.wordmark-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid rgba(138,90,68,0.35);
  background: radial-gradient(circle at 30% 30%, rgba(244,224,204,0.85), rgba(212,163,115,0.2) 55%, rgba(212,163,115,0.05) 100%);
}
.wordmark-mark::before {
  content: '';
  position: absolute;
  inset: 7px 11px;
  border-radius: 60% 40% 60% 40%;
  background: linear-gradient(180deg, #6a4038 0%, #4b2e2e 100%);
  transform: rotate(35deg);
}
.wordmark-mark::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%) rotate(35deg);
  background: rgba(246,242,237,0.65);
}
.wordmark-lines {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.18rem;
  position: relative;
}
.wordmark-lines::before,
.wordmark-lines::after {
  content: '';
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212,163,115,0), rgba(212,163,115,0.98) 22%, rgba(138,90,68,0.98) 78%, rgba(212,163,115,0));
}
.wordmark-lines::before { width: 100%; opacity: 0.82; }
.wordmark-lines::after { width: 72%; opacity: 0.68; }
.wordmark-main {
  font-size: 1.72rem;
  letter-spacing: 0.11em;
}
.wordmark-sub {
  font-size: 0.57rem;
  letter-spacing: 0.34em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 700;
  border: 1px solid rgba(75,46,46,0.10);
  background: rgba(255,255,255,0.8);
  text-decoration: none;
}
.lang-switch a:hover {
  background: rgba(212,163,115,0.14);
}
@media (max-width: 640px) {
  .logo.logo-wordmark { min-width: auto; gap: 0.55rem; }
  .wordmark-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .wordmark-main { font-size: 1.34rem; letter-spacing: 0.08em; }
  .wordmark-sub { font-size: 0.45rem; letter-spacing: 0.20em; }
}

/* ===== v9 overrides to replace earlier wordmark styles cleanly ===== */
.logo-wordmark::before,
.logo-wordmark::after {
  content: none !important;
  display: none !important;
}
.logo-wordmark {
  flex-direction: row !important;
  align-items: center !important;
}
@media (max-width: 992px) {
  nav ul li a,
  .lang-switch button,
  .lang-switch a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 16px;
  }
}

/* ===== v10 logo refinement ===== */
.footer-brand-block {
  grid-template-columns: 150px 1fr;
  align-items: start;
}
.footer-logo {
  max-width: 150px;
  width: 100%;
  object-fit: contain;
  background: transparent;
}
@media (max-width: 640px) {
  .footer-brand-block {
    grid-template-columns: 110px 1fr;
  }
  .footer-logo {
    max-width: 110px;
  }
}

/* ===== v14 release candidate fixes ===== */
#product-modal-content,
.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  min-height: 100%;
}
.product-modal-layout {
  width: 100%;
}
.product-modal-media {
  position: relative;
  min-width: 0;
}
.product-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 30px 0 0 30px;
}
.product-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.modal-notes {
  margin-top: 1rem;
}
.modal-body {
  text-align: left;
}

.footer-brand-block {
  grid-template-columns: minmax(170px, 195px) 1fr;
  gap: 1.4rem;
  align-items: center;
}
.footer-logo-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.8rem 1rem;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,247,235,0.42) 0%, rgba(255,244,228,0.18) 32%, rgba(255,244,228,0.06) 56%, rgba(255,244,228,0.00) 76%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(231,200,167,0.16);
}
.footer-logo-shell::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 42%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255,241,215,0.42) 0%, rgba(255,238,210,0.26) 32%, rgba(255,236,208,0.10) 56%, rgba(255,236,208,0.00) 82%);
  filter: blur(11px);
}
.footer-logo-shell::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,248,236,0.00), rgba(255,245,228,0.15) 45%, rgba(255,241,220,0.24) 100%);
  pointer-events: none;
}
.footer-logo {
  position: relative;
  z-index: 1;
  max-width: 170px;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.30)) drop-shadow(0 0 24px rgba(255,236,208,0.18));
}

@media (max-width: 820px) {
  #product-modal-content,
  .product-modal-layout,
  .product-modal-dialog {
    grid-template-columns: 1fr;
  }
  .product-modal-media img {
    min-height: 260px;
    max-height: 320px;
    border-radius: 30px 30px 0 0;
  }
}
@media (max-width: 640px) {
  .footer-brand-block {
    grid-template-columns: 120px 1fr;
    align-items: start;
  }
  .footer-logo {
    max-width: 112px;
  }
}

/* ===== v15 final visual polish ===== */
.hero-content-left h1 {
  min-height: 2.22em;
  display: flex;
  align-items: flex-start;
}
.home-hero-upgraded .hero-actions {
  margin-top: 0.2rem;
}
#product-modal-content,
.product-modal-layout {
  align-items: stretch;
}
.product-modal-dialog {
  overflow: hidden;
}
.product-modal-info {
  background: #fff;
}
.footer-logo-shell::before {
  bottom: 0;
  height: 54%;
  background: radial-gradient(circle at 50% 62%, rgba(255,244,224,0.58) 0%, rgba(255,239,214,0.35) 32%, rgba(255,232,202,0.15) 58%, rgba(255,232,202,0.00) 85%);
  filter: blur(12px);
}
.footer-logo-shell::after {
  height: 56%;
  background: linear-gradient(180deg, rgba(255,248,236,0.00), rgba(255,246,231,0.20) 45%, rgba(255,239,218,0.34) 100%);
}
.footer-logo {
  filter:
    drop-shadow(0 14px 30px rgba(0,0,0,0.34))
    drop-shadow(0 0 28px rgba(255,236,208,0.22));
}
@media (max-width: 820px) {
  .hero-content-left h1 {
    min-height: 2.55em;
  }
}
@media (max-width: 560px) {
  .hero-content-left h1 {
    min-height: 3.05em;
  }
}


/* ===== v16 usability and bilingual map refinements ===== */
html[lang="en"] .hero-content-left h1 {
  min-height: 3.15em;
}
html[lang="en"] .hero-content-left p {
  min-height: 5.4em;
}
.shop-hero .btn-secondary,
.shop-cart-btn {
  background: rgba(75,46,46,0.08);
  border-color: rgba(75,46,46,0.20);
  color: var(--primary-color);
  backdrop-filter: blur(8px);
}
.shop-hero .btn-secondary:hover,
.shop-cart-btn:hover {
  background: rgba(212,163,115,0.20);
  color: var(--primary-color);
}
.shop-highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.giftbox-flag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(248,243,238,0.94);
  color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(44,23,20,0.12);
}
.giftbox-note {
  margin: -0.1rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary-color);
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(212,163,115,0.10);
  border: 1px solid rgba(212,163,115,0.18);
}
.ethiopia-map-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,246,241,0.96));
  border-radius: 30px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(44,23,20,0.08);
  border: 1px solid rgba(75,46,46,0.06);
}
.map-heading {
  text-align: left;
  margin-bottom: 1.1rem;
}
.map-heading h2 {
  margin-bottom: 0.35rem;
}
.map-heading p {
  margin: 0;
  color: var(--secondary-color);
}
.ethiopia-map-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.ethiopia-map-board {
  position: relative;
  min-height: 500px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f9f3ec 0%, #f7efe6 100%);
  border: 1px solid #eadccd;
  overflow: hidden;
}
.ethiopia-shape {
  position: absolute;
  left: 14%;
  top: 6%;
  width: 58%;
  height: 83%;
  background: #d7b08a;
  clip-path: polygon(28% 0%, 55% 10%, 76% 18%, 81% 35%, 79% 53%, 89% 70%, 84% 91%, 68% 100%, 43% 93%, 23% 80%, 10% 53%, 14% 36%, 8% 22%);
  box-shadow: inset 0 0 0 2px rgba(75,46,46,0.06);
}
.region-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid #e4c1a0;
  box-shadow: 0 0 0 2px rgba(75,46,46,0.12);
  flex: 0 0 auto;
}
.pin-label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  min-width: 128px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #eadccd;
  font-weight: 700;
  color: var(--primary-color);
  box-shadow: 0 10px 22px rgba(44,23,20,0.06);
}
.region-pin.ghimbi { left: 18%; top: 18%; }
.region-pin.harrar { right: 9%; top: 31%; }
.region-pin.sidamo { left: 27%; top: 64%; }
.region-pin.yirgacheffe { left: 31%; top: 72%; }
.map-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.45;
}
.region-cards {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.region-card {
  padding: 1.05rem 1.1rem;
  background: rgba(255,248,242,0.95);
  border: 1px solid #eadccd;
  border-radius: 18px;
}
.region-card-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.region-card-title h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.35rem;
}
.region-card-title span {
  color: var(--accent-color-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.region-card p,
.map-footnote {
  margin: 0;
  color: var(--secondary-color);
  line-height: 1.5;
}
.map-footnote {
  font-size: 0.9rem;
  padding: 0.1rem 0.2rem 0;
}
@media (max-width: 980px) {
  .ethiopia-map-grid {
    grid-template-columns: 1fr;
  }
  .ethiopia-map-board {
    min-height: 470px;
  }
}
@media (max-width: 820px) {
  html[lang="en"] .hero-content-left h1 {
    min-height: 3.55em;
  }
  html[lang="en"] .hero-content-left p {
    min-height: 6.4em;
  }
}
@media (max-width: 640px) {
  .shop-highlight-meta {
    align-items: stretch;
  }
  .shop-highlight-actions {
    width: 100%;
    justify-content: stretch;
  }
  .shop-highlight-actions button,
  .shop-highlight-actions .details-btn {
    flex: 1 1 100%;
  }
  .ethiopia-map-section {
    padding: 1.2rem;
  }
  .ethiopia-map-board {
    min-height: 430px;
  }
  .pin-label {
    min-width: 106px;
    padding: 0.45rem 0.72rem;
    font-size: 0.95rem;
  }
  .region-pin.ghimbi { left: 14%; top: 17%; }
  .region-pin.harrar { right: 4%; top: 31%; }
  .region-pin.sidamo { left: 18%; top: 64%; }
  .region-pin.yirgacheffe { left: 20%; top: 74%; }
  html[lang="en"] .hero-content-left h1 {
    min-height: 4em;
  }
  html[lang="en"] .hero-content-left p {
    min-height: 6.8em;
  }
}


/* ===== v17 final release polish ===== */
html {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(212,163,115,0.55);
  outline-offset: 3px;
}

.hero-actions .btn,
.inline-actions .btn,
.shop-highlight-actions button {
  justify-content: center;
}

.home-hero-upgraded .hero-actions .btn,
.shop-hero .hero-actions .btn {
  min-width: 210px;
}

.hero-content-left .eyebrow,
.shop-hero-copy .eyebrow {
  letter-spacing: 0.14em;
}

.hero-content-left p,
.shop-hero-copy p {
  text-wrap: pretty;
}

.shop-highlight-card,
.product-card-premium,
.feature-card,
.promo-panel,
.origin-card {
  border: 1px solid rgba(75,46,46,0.06);
}

.product-body,
.shop-highlight-body {
  text-wrap: pretty;
}

.shop-highlight-body h3,
.product-body h3,
.feature-card h3 {
  text-wrap: balance;
}

.product-card-premium button,
.shop-highlight-meta button,
.btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.giftbox-note {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.story-banner-box {
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.footer-bottom-line {
  border-top: 1px solid rgba(255,255,255,0.10);
}

.product-modal-dialog {
  width: min(1080px, calc(100vw - 2rem));
  max-height: min(90vh, 920px);
}

.product-modal-info {
  padding: 2rem;
}

.map-heading p,
.region-card p,
.map-caption,
.map-footnote {
  text-wrap: pretty;
}

@media (max-width: 992px) {
  .home-hero-grid,
  .shop-hero-grid {
    gap: 1.5rem;
  }

  .product-modal-info {
    padding: 1.5rem;
  }
}

@media (max-width: 820px) {
  .home-hero-upgraded .hero-actions .btn,
  .shop-hero .hero-actions .btn {
    min-width: 190px;
  }

  .story-banner-box {
    padding: 1.35rem;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }

  .home-hero-upgraded .hero-actions,
  .shop-hero .hero-actions,
  .inline-actions {
    width: 100%;
  }

  .home-hero-upgraded .hero-actions .btn,
  .shop-hero .hero-actions .btn,
  .inline-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-content-left p,
  .shop-hero-copy p {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .product-modal-dialog {
    width: calc(100vw - 1rem);
    max-height: 92vh;
    border-radius: 24px;
  }

  .product-modal-info {
    padding: 1.15rem 1rem 1.25rem;
  }

  .shop-highlight-card,
  .product-card-premium,
  .feature-card,
  .promo-panel,
  .origin-card,
  .ethiopia-map-section {
    border-radius: 22px;
  }

  .footer-brand-copy p,
  .footer-info-block p {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== v18 production-ready cleanup + story layout refinement ===== */
.origin-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.origin-copy {
  padding-top: 1rem;
}
.origin-copy h2 {
  margin: 0.15rem 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  text-wrap: balance;
}
.origin-copy p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--secondary-color);
}
.origin-bullets {
  margin: 1.35rem 0 1.6rem;
  padding-left: 1.3rem;
  color: var(--secondary-color);
}
.origin-bullets li {
  margin-bottom: 0.95rem;
  line-height: 1.7;
}
.origin-bullets strong {
  color: var(--primary-color);
}
.origin-visual {
  min-width: 0;
}
.ethiopia-map-section {
  width: 100%;
}
.ethiopia-map-board {
  min-height: 540px;
}
.ethiopia-svg {
  position: absolute;
  left: 10%;
  top: 5%;
  width: 54%;
  height: 78%;
  overflow: visible;
}
.ethiopia-svg path {
  fill: #d7b08a;
  stroke: rgba(123, 80, 49, 0.28);
  stroke-width: 2.5;
}
.ethiopia-shape {
  display: none;
}
.region-pin.ghimbi { left: 11%; top: 18%; }
.region-pin.harrar { left: 49%; top: 30%; }
.region-pin.sidamo { left: 22%; top: 61%; }
.region-pin.yirgacheffe { left: 33%; top: 69%; }
.region-card-title {
  align-items: flex-start;
}
.region-card-title span {
  display: inline-flex;
  align-items: center;
}
@media (max-width: 1100px) {
  .origin-showcase {
    grid-template-columns: 1fr;
  }
  .origin-copy {
    padding-top: 0;
  }
}
@media (max-width: 980px) {
  .ethiopia-map-board {
    min-height: 500px;
  }
}
@media (max-width: 640px) {
  .origin-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .ethiopia-map-board {
    min-height: 450px;
  }
  .ethiopia-svg {
    left: 8%;
    width: 58%;
    height: 76%;
  }
  .region-pin.ghimbi { left: 6%; top: 18%; }
  .region-pin.harrar { left: 49%; top: 30%; }
  .region-pin.sidamo { left: 11%; top: 61%; }
  .region-pin.yirgacheffe { left: 18%; top: 70%; }
}


/* ===== v20 flexible story map, same split layout, no fixed text image ===== */
.map-card.card {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 45px rgba(44, 23, 20, 0.08);
  border: 1px solid rgba(75,46,46,0.06);
}
.map-card.card:hover {
  transform: none;
}
.coffee-map-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 1.3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,246,241,0.98));
  box-shadow: inset -8px -8px 0 rgba(225, 211, 195, 0.65);
}
.coffee-map-title h3 {
  margin: 0 0 0.25rem;
  color: var(--primary-color);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.15;
}
.coffee-map-title p {
  margin: 0 0 0.95rem;
  color: var(--secondary-color);
  line-height: 1.5;
  font-size: 0.95rem;
}
.coffee-map-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.02fr) minmax(230px, 0.98fr);
  gap: 1rem;
  align-items: start;
}
.coffee-map-svg-wrap {
  min-width: 0;
}
.coffee-map-svg {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(180deg, #fbf7f2, #f7efe7);
  border: 1px solid #eadccd;
  border-radius: 18px;
}
.ethiopia-outline {
  fill: #d7b08a;
  stroke: rgba(93, 58, 44, 0.30);
  stroke-width: 2;
}
.map-marker line {
  stroke: rgba(93, 58, 44, 0.75);
  stroke-width: 2.2;
}
.map-marker circle {
  fill: var(--primary-color);
  stroke: #e5bea0;
  stroke-width: 5;
}
.map-marker rect {
  fill: rgba(255,255,255,0.97);
  stroke: #eadccd;
  stroke-width: 1.4;
  filter: drop-shadow(0 5px 7px rgba(44,23,20,0.10));
}
.map-marker text {
  fill: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  dominant-baseline: middle;
}
.coffee-map-caption,
.map-footnote {
  margin: 0.55rem 0 0;
  color: var(--secondary-color);
  font-size: 0.78rem;
  line-height: 1.35;
}
.coffee-region-list {
  display: grid;
  gap: 0.7rem;
}
.coffee-region-list article {
  padding: 0.8rem 0.9rem;
  border: 1px solid #eadccd;
  border-radius: 16px;
  background: rgba(255,248,242,0.96);
}
.coffee-region-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.coffee-region-list strong {
  color: var(--primary-color);
  font-size: 1.02rem;
}
.coffee-region-list span {
  color: var(--accent-color-dark);
  font-size: 0.78rem;
  font-weight: 600;
}
.coffee-region-list p {
  margin: 0;
  color: var(--secondary-color);
  font-size: 0.86rem;
  line-height: 1.42;
}
@media (max-width: 1180px) {
  .coffee-map-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .coffee-map-inner {
    grid-template-columns: minmax(230px, 1fr) minmax(230px, 1fr);
  }
}
@media (max-width: 680px) {
  .coffee-map-card {
    padding: 1rem;
  }
  .coffee-map-inner {
    grid-template-columns: 1fr;
  }
  .coffee-region-list p {
    font-size: 0.84rem;
  }
}


/* ===== v22 mobile fixes ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
nav { margin-left: auto; }

.turnstile-placeholder-wrap {
  width: 100%;
}
.turnstile-placeholder {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(75,46,46,0.18);
  background: #f7f1ea;
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  header .container {
    height: 82px;
  }
  header .logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  nav {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    display: flex !important;
    margin-left: auto;
    width: 46px;
    height: 46px;
    padding: 12px 10px;
    border-radius: 14px;
    align-items: center;
    justify-content: space-between;
    background: rgba(75,46,46,0.06);
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
  }
  .nav-toggle span {
    width: 100%;
  }
  nav ul {
    top: 90px;
    left: 16px;
    right: 16px;
    width: auto !important;
    max-width: none;
    height: auto;
    max-height: calc(100svh - 108px);
    margin: 0;
    padding: 0.9rem;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 48px rgba(33,18,18,0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }
  nav ul.active {
    right: 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  nav ul li {
    width: 100%;
    margin: 0.22rem 0 !important;
    min-width: 0;
  }
  nav ul li a {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  nav .cart-icon a {
    justify-content: space-between;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .animate {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-side-card,
  .scroll-indicator {
    display: none !important;
  }
  .home-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 108px;
    gap: 0;
  }
  .home-hero-upgraded {
    min-height: auto;
  }
  .hero-content-left {
    max-width: none;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  #hero {
    height: auto;
    min-height: 78svh;
    align-items: flex-end;
  }
  .hero-content-left h1 {
    min-height: 2.7em;
  }
  .hero-content-left p {
    margin-bottom: 1.25rem;
  }
  .product-grid.premium-grid {
    gap: 1rem;
  }
  .product-card-premium .product-body {
    padding: 1.15rem;
  }
}


/* Event notes */
.event-note {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(212,163,115,0.12);
  border: 1px solid rgba(212,163,115,0.20);
  color: var(--primary-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== v27 mobile hero scroll-gap fix ===== */
@media (max-width: 768px) {
  #hero {
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    background-attachment: scroll;
    background-position: center center;
    padding-top: 96px;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .home-hero-upgraded {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .home-hero-grid {
    min-height: calc(100svh - 96px);
    min-height: calc(100dvh - 96px);
    align-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero {
    min-height: 100svh !important;
    min-height: 100dvh !important;
    align-items: center !important;
  }

  .hero-content-left {
    padding-bottom: 0;
  }
}

/* ===== v28 desktop hero white-gap fix ===== */
#hero {
  min-height: 100vh;
  height: 100vh;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center center !important;
  overflow: hidden;
}
.home-hero-upgraded {
  min-height: 100vh;
  height: 100vh;
}
.home-hero-grid {
  min-height: calc(100vh - 120px);
}
.intro-ribbon-section {
  margin-top: 0 !important;
}
.hero-content-left h1 {
  min-height: 3.18em;
}
html[lang="en"] .hero-content-left h1 {
  min-height: 3.18em;
}
@media (max-width: 1100px) {
  #hero,
  .home-hero-upgraded {
    height: auto;
    min-height: 100vh;
  }
  .home-hero-grid {
    min-height: auto;
  }
}
@media (max-width: 768px) {
  #hero,
  .home-hero-upgraded {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero-content-left h1,
  html[lang="en"] .hero-content-left h1 {
    min-height: 2.7em;
  }
}
