/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-green-800);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-green-700);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(244, 239, 228, 0.4);
}

.btn-outline:hover {
  background: rgba(244, 239, 228, 0.08);
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-800);
  color: var(--color-white);
  flex-shrink: 0;
}

/* Top utility bar */
.topbar {
  background: #264122;
  color: #f5f5f5;
  height: 44px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: 1360px;
  margin: auto;
  padding-left: 250px;
  padding-right: 24px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #f5f5f5;
}

.topbar-item svg {
  flex-shrink: 0;
}

/* Header / Nav */
.site-header {
  background: #f7f4ed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 500;
  overflow: visible;
}

.site-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  align-items: center;
  height: 104px;
  max-width: 1360px;
  margin: auto;
  padding-inline: 24px;
}

/* The wrapper (not the <img>) is what's absolutely positioned across the
   topbar/header seam. .site-header-inner's own top edge IS that seam, so
   a negative top on the wrapper produces the overlap — only ~20-25% of
   the badge, the rest reads as anchored in the white bar. The wrapper is
   taller than the logo and the image sits off-center inside it (margin-
   top, not centered) so the seam crosses the logo's own outer ring
   rather than its middle. */
/* The logo crosses the boundary BELOW the white header bar, dipping onto
   the hero photo — not the seam above (topbar/header). bottom (not top)
   is the anchor: it's measured from the header's own bottom edge. */
.brand {
  grid-column: 1;
  position: absolute;
  left: 20px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  z-index: 100;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.main-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 54px;
}

/* Slim strip that replaces the topbar on mobile — just the language
   switcher, visible up top instead of buried inside the hamburger menu
   (see the ≤1400px block for when it actually shows). */
.mobile-lang-bar {
  display: none;
}

/* Only shown ≤768px (see that block) — a true flex sibling of the
   hamburger and the order button, so it centers itself in whatever
   space is actually left between them (their widths differ per
   language), instead of guessing a fixed pixel/percentage offset. */
.mobile-brand {
  display: none;
}

.main-nav a {
  font-family: "Montserrat", var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #486a3d;
  border-color: #486a3d;
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ddd8ce;
  border-radius: var(--radius-pill);
  font-family: "Montserrat", var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: var(--space-2);
  display: none;
  z-index: 600;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.lang-menu button:hover {
  background: var(--color-cream-soft);
}

.btn-order {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  background: #486a3d;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: "Montserrat", var(--font-body);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-order:hover {
  background: #567a49;
}

.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d63b3b;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cart-badge.visible {
  display: inline-flex;
}

.cart-badge.bump {
  animation: cart-bump 0.35s ease;
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- Cart drawer ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 15, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

body.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-drawer-header h2 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
}

.cart-close:hover {
  background: var(--color-cream-soft);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
}

.cart-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding-block: var(--space-8);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.cart-step {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-green-800);
}

.cart-item-qty {
  min-width: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 50%;
}

.cart-item-remove:hover {
  color: var(--color-red);
  background: var(--color-cream-soft);
}

.cart-drawer-footer {
  padding: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
}

.cart-total strong {
  color: var(--color-green-800);
  font-size: 1.3rem;
}

.btn-checkout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 54px;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #ffffff;
  font-family: "Montserrat", var(--font-body);
  font-weight: 700;
  font-size: 16px;
  transition: background var(--transition-fast);
}

.btn-checkout:hover {
  background: #1fb958;
}

/* ---- Confirmation toast ---- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 950;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-toast p {
  margin: 0;
}

.cart-toast-id {
  color: #5e8f41;
  font-weight: 700;
  margin-top: 4px !important;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
}

/* Hero — see design spec: fixed 680px desktop height, 40/60 split via a
   left-side gradient over a full-bleed image, all copy left-aligned. */
.hero {
  position: relative;
  height: 680px;
  width: 100%;
  overflow: hidden;
  color: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.76) 32%,
    rgba(0, 0, 0, 0.42) 56%,
    rgba(0, 0, 0, 0.12) 70%,
    transparent 78%
  );
}

.hero-inner {
  position: relative;
  height: 100%;
  max-width: 1280px;
  padding-left: 72px;
  padding-right: 72px;
  margin: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 148px;
}

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

.hero-badge-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5e8f41;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Bebas Neue", "Oswald", var(--font-display);
  font-weight: 700;
  font-size: 90px;
  line-height: 82px;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 34px;
  color: #e2e2e2;
  max-width: 460px;
  margin-bottom: 44px;
}

.hero-features {
  display: flex;
  gap: 44px;
  margin-bottom: 44px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  color: #4f7b37;
  flex-shrink: 0;
}

.hero-features span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.35;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  min-width: 176px;
  padding: 0 28px;
  border-radius: 4px;
  background: #3c6231;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  transition: background var(--transition-fast);
}

.hero-cta:hover {
  background: #4a783b;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

/* Seal — a single SVG illustration (rings, gradient, curved textPath
   headline, stars, title, divider, subtitle all drawn inside one viewBox),
   like a vector badge exported from a design tool. All internal layout is
   coordinates inside the SVG — no flex/padding/HTML trying to align it. */
.hero-seal {
  position: absolute;
  right: 150px;
  bottom: 30px;
  width: 196px;
  height: 196px;
}

.seal-arc-text {
  font-family: "Bebas Neue", "Oswald", var(--font-display);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 2px;
  fill: #ffffff;
}

.seal-title-big {
  font-family: "Bebas Neue", "Oswald", var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.25px;
  fill: #ffffff;
}

.seal-title-small {
  font-family: "Bebas Neue", "Oswald", var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.25px;
  fill: #ffffff;
}

.seal-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.2px;
  fill: #ffffff;
}

.seal-stars {
  fill: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .hero {
    height: auto;
    min-height: 680px;
    padding-block: var(--space-8);
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.4) 100%);
  }

  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    line-height: 1.05;
  }

  .hero-inner {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
    padding-top: 0;
    align-items: center;
  }

  .hero-features {
    flex-wrap: wrap;
    gap: var(--space-5);
  }

  .hero-seal {
    position: relative;
    right: auto;
    bottom: auto;
    transform: scale(0.84);
    margin: var(--space-6) auto 0;
  }
}

/* Products */
.products-section {
  padding-block: var(--space-9);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 64px;
  height: 3px;
  background: var(--color-green-800);
}

.products-meta {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.product-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-white);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-chip[aria-pressed="true"] {
  background: var(--color-green-800);
  color: var(--color-white);
  border-color: var(--color-green-800);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-cream-soft);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  loading: lazy;
}

.product-card-body {
  padding: var(--space-4);
}

.product-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: none;
  margin-block: var(--space-1) var(--space-3);
}

.product-card-qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.qty-step {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  font-weight: 700;
  color: var(--color-green-800);
  flex-shrink: 0;
}

.qty-step:hover {
  background: var(--color-cream-soft);
}

.qty-value {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 1.6em;
  text-align: center;
}

.qty-unit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-weight: 700;
  color: var(--color-green-800);
}

.product-card-price span {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* ---- Product search ---- */
.product-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto var(--space-5);
}

.product-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  translate: 0 -50%;
  color: var(--color-text-muted);
  pointer-events: none;
}

.product-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.product-search input:focus {
  border-color: var(--color-green-700);
  box-shadow: 0 0 0 3px rgba(56, 107, 73, 0.15);
}

.product-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding-block: var(--space-8);
}

/* ---- Product card: badge + bigger "add to cart" CTA ---- */
.product-card-media {
  position: relative;
}

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-white);
  z-index: 2;
}

.product-card-badge-bestseller {
  background: var(--color-green-800);
}

.product-card-badge-new {
  background: #2f6db5;
}

.product-card-badge-promo {
  background: var(--color-red);
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  height: 46px;
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-green-800);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--color-green-700);
  transform: translateY(-1px);
}

.btn-add-cart:active {
  transform: translateY(0);
}

/* ---- "Added to cart" confirmation — no overlay, doesn't block browsing ---- */
.cart-added {
  position: fixed;
  top: 96px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  z-index: 940;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-added.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-added-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-green-800);
  margin-bottom: var(--space-4);
}

.cart-added-row svg {
  flex-shrink: 0;
}

.cart-added-row p {
  color: var(--color-text);
  font-size: 0.9rem;
}

.cart-added-row p span:first-child {
  font-weight: 700;
}

.cart-added-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  border-block: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
}

.cart-added-subtotal strong {
  color: var(--color-green-800);
  font-size: 1.1rem;
}

.cart-added-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.btn-outline-sm,
.btn-solid-sm {
  height: 42px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-outline-sm {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--color-text);
}

.btn-outline-sm:hover {
  border-color: var(--color-green-800);
  color: var(--color-green-800);
}

.btn-solid-sm {
  background: var(--color-green-800);
  color: var(--color-white);
}

.btn-solid-sm:hover {
  background: var(--color-green-700);
}

/* ---- Sticky cart bar ---- */
.cart-stickybar {
  position: fixed;
  left: 50%;
  bottom: -80px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 800;
  opacity: 0;
  transition: bottom 0.3s ease, opacity 0.3s ease;
}

.cart-stickybar.visible {
  bottom: 24px;
  opacity: 1;
}

.cart-stickybar-count {
  font-size: 0.85rem;
  color: rgba(244, 239, 228, 0.75);
}

.cart-stickybar-total {
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-stickybar-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 42px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-green-700);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition-fast);
}

.cart-stickybar-btn:hover {
  background: var(--color-green-800);
}

/* About */
.about-section {
  background: var(--color-black);
  color: var(--color-cream);
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: var(--space-8);
}

.about-section h2 {
  color: var(--color-cream);
  margin-bottom: var(--space-4);
}

.about-section p {
  color: rgba(244, 239, 228, 0.8);
  margin-bottom: var(--space-4);
  max-width: 52ch;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Info strip */
.info-strip {
  background: var(--color-green-800);
  color: var(--color-white);
}

.info-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.info-item-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.info-item-value {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--color-black-soft);
  color: rgba(244, 239, 228, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.footer-heading {
  color: var(--color-cream);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-grid a,
.footer-grid p,
.footer-grid li {
  font-size: 0.85rem;
  line-height: 2;
}

.footer-grid a:hover {
  color: var(--color-cream);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 228, 0.1);
  text-align: center;
  padding-block: var(--space-4);
  font-size: 0.78rem;
}

/* Chat widget (stub — see assets/js/modules/chat) */
.chat-widget {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 900;
  transition: bottom 0.3s ease;
}

body.has-cart-items .chat-widget {
  bottom: 96px;
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-green-800);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.chat-fab:hover {
  transform: scale(1.06);
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-panel-header {
  background: var(--color-green-800);
  color: var(--color-white);
  padding: var(--space-4);
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-panel-body {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.chat-panel-footer {
  padding: var(--space-3);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Below this, the fixed 340px/260px side columns don't leave the nav
   enough room to fit "SOBRE NÓS"/"CONTACTOS" etc. on one line at any
   readable font-size — rather than let it wrap (which was the original
   bug), switch straight to the hamburger nav. The logo/actions columns
   keep their exact desktop sizing right up to that point. */
@media (max-width: 1400px) {
  .topbar {
    display: none;
  }

  .site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 80px;
  }

  .brand {
    left: 8px;
    bottom: -11px;
    width: 64px;
    height: 64px;
  }

  .header-actions .btn-order {
    display: none;
  }

  .main-nav ul {
    display: none;
  }

  .main-nav.nav-open ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--space-5);
  }

  .main-nav.nav-open ul li {
    width: 100%;
  }

  .main-nav.nav-open ul a {
    display: block;
    padding-block: var(--space-3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .about-section .container {
    grid-template-columns: 1fr;
  }

  .info-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .info-strip .container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    width: calc(100vw - 2 * var(--space-5));
  }

  .site-header-inner {
    padding-inline: var(--space-4);
  }

  .brand {
    left: 6px;
    bottom: -8px;
    width: 48px;
    height: 48px;
  }

  .header-actions {
    gap: var(--space-2);
  }

  .lang-switch-btn {
    padding: var(--space-2);
  }

  .lang-switch-btn span:not([data-lang-current]) {
    display: none;
  }
}

/* ==========================================================================
   Mobile — a purpose-built layout below 768px, not a shrunk desktop.
   Everything stacks in a single column; nothing sits side by side.
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }

  /* ---- Header: ☰  ·  LOGO (centered, small)  ·  Encomendar ----
     The logo stays fully inside the header bar, not overlapping the
     hamburger or CTA — only a small sliver dips into the hero below. */
  .site-header-inner {
    height: 100px;
    padding-inline: 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions .btn-order {
    display: inline-flex;
    order: 3;
    height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .header-actions .btn-order span:not(.cart-badge) {
    display: none;
  }

  .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .header-actions .nav-toggle {
    order: 1;
    display: inline-flex;
  }

  .header-actions .lang-switch {
    display: none;
  }

  /* The desktop logo (absolutely positioned, sized/placed for a much
     wider header) is swapped for .mobile-brand below — a real flex
     sibling of the toggle and the order button, so it lands truly
     centered between them regardless of how wide "Encomendar" (or its
     translation) happens to be. */
  .brand {
    display: none;
  }

  .mobile-brand {
    display: flex;
    order: 2;
    flex: 1;
    justify-content: center;
  }

  .mobile-brand-logo {
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: contain;
  }

  .main-nav.nav-open ul {
    padding-top: var(--space-4);
  }

  /* Replaces the (hidden) topbar with a slim strip holding just the
     language switcher — visible up top instead of a tap or two deep
     inside the hamburger menu. */
  .mobile-lang-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 36px;
    padding-inline: 20px;
    background: #264122;
  }

  .mobile-lang-bar .lang-switch-btn {
    height: 26px;
    padding: 0 12px;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 13px;
  }

  .mobile-lang-bar .lang-menu {
    top: calc(100% + 8px);
  }

  /* ---- Hero: photo (seal clipped to its corner) → title → description
     → CTA → benefits. No dead black space: the image starts right under
     the header and every gap below is deliberate, not inherited desktop
     padding. ---- */
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    background: var(--color-black);
    padding: 0;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    aspect-ratio: 1 / 1.05;
  }

  .hero-bg img {
    object-position: 68% 55%;
  }

  .hero-overlay {
    display: none;
  }

  /* Pulled up with a negative margin so it visually sits on the image's
     bottom-right corner, painted after (so on top of) the photo — not a
     separate element floating in its own empty space. */
  /* Rests in the dark area below the photo, not perched on the corner
     of the photo itself — just a small 10px tuck so it still reads as
     connected to the image above it. */
  /* Overlaid on the empty upper-left corner of the photo (not the
     meat), same as the desktop treatment sits on its own corner —
     absolute against .hero, which starts exactly where the image does
     since hero-bg is its first flex child. */
  .hero-seal {
    position: absolute;
    top: 58px;
    left: 14px;
    bottom: auto;
    right: auto;
    width: 158px;
    height: 158px;
    margin: 0;
    z-index: 10;
  }

  .hero-inner {
    order: 3;
    height: auto;
    padding: 0 20px 48px;
    display: block;
  }

  .hero-content {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-badge-text {
    order: 1;
    margin-bottom: 10px;
  }

  .hero-title {
    order: 2;
    font-size: 40px;
    line-height: 0.95;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    order: 3;
    width: 100%;
    max-width: 30ch;
    text-align: center;
    margin-bottom: 24px;
  }

  .hero-cta {
    order: 4;
    width: 100%;
    max-width: 320px;
    padding-block: 18px;
  }

  .hero-features {
    order: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    margin-top: 32px;
    margin-bottom: 0;
    width: 100%;
    max-width: 280px;
  }

  .hero-features li {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
    text-align: left;
  }

  /* ---- Section rhythm ---- */
  .products-section,
  .about-section .container,
  .info-strip .container {
    padding-block: 60px;
  }

  /* ---- Products: one per row, everything a size up ---- */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card-media {
    aspect-ratio: 16 / 10;
  }

  .product-card-body {
    padding: 20px;
  }

  .product-card-name {
    font-size: 1.1rem;
  }

  .product-card-price {
    font-size: 1.15rem;
  }

  .product-card-price span {
    font-size: 0.85rem;
  }

  .product-card-footer .btn-icon {
    width: 44px;
    height: 44px;
  }

  /* ---- About: image, then text, then button ---- */
  .about-section .container {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
  }

  /* ---- Info strip: icons stacked with real breathing room ---- */
  .info-strip .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* ---- Footer: fully stacked ---- */
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-block: 60px;
  }

  /* Top-right doesn't work once the screen is this narrow — anchor the
     "added to cart" confirmation to the bottom instead, above the sticky
     bar/WhatsApp bubble rather than competing with the header. */
  .cart-added {
    top: auto;
    bottom: 24px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
  }

  /* Clears the sticky bar sitting at the same bottom offset once it's
     showing, instead of the two stacking on top of each other. */
  body.has-cart-items .cart-added {
    bottom: 96px;
  }

  .cart-stickybar {
    left: 20px;
    right: 20px;
    translate: 0;
    width: auto;
    justify-content: space-between;
    gap: var(--space-3);
  }
}
