/* HAVA HAIR CARE — E-commerce statique */
:root {
  --white: #ffffff;
  --black: #1a1a1a;
  --text-muted: #5c5c5c;
  --rose-gold: #c9a882;
  --rose-gold-dark: #b08d6a;
  --blush: #f5e6e0;
  --blush-dark: #edd9d0;
  --green-badge: #2d8a4e;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(201, 168, 130, 0.2);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --transition: ease 0.3s;
  --nav-height: 118px;
  --container: min(1200px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--rose-gold);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ——— Header / Navbar ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
    padding var(--transition);
}

.site-header.scrolled {
  min-height: 92px;
  padding: 0.4rem 0;
  border-bottom-color: rgba(201, 168, 130, 0.25);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled .logo__img {
  height: 70px;
}

.site-header.scrolled .logo__brand {
  font-size: 1.2rem;
}

.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  line-height: 1.1;
  color: var(--black);
}

.logo:hover {
  color: var(--black);
}

.logo__img {
  height: 86px;
  width: auto;
  max-width: 86px;
  object-fit: contain;
  flex-shrink: 0;
  transition: height var(--transition);
}

.logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  transition: font-size var(--transition);
}

.logo__line {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.8vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose-gold-dark);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo {
    gap: 1rem;
  }

  .logo__img {
    height: 104px;
    max-width: 104px;
  }

  .logo__brand {
    font-size: 1.75rem;
    letter-spacing: 0.16em;
  }

  .logo__line {
    font-size: 0.75rem;
    letter-spacing: 0.48em;
  }
}

@media (min-width: 1024px) {
  .logo__img {
    height: 112px;
    max-width: 112px;
  }

  .logo__brand {
    font-size: 1.9rem;
  }
}

@media (max-width: 420px) {
  .logo {
    gap: 0.5rem;
  }

  .logo__img {
    height: 66px;
    max-width: 66px;
  }

  .logo__brand {
    letter-spacing: 0.1em;
  }

  .logo__line {
    letter-spacing: 0.28em;
  }
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  color: var(--white);
}

.footer-logo:hover {
  color: var(--white);
}

.footer-logo .logo__img,
.footer-logo__img {
  height: 96px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}

.footer-logo .logo__wordmark .logo__brand {
  color: var(--white);
  font-size: 1.5rem;
}

.footer-logo .logo__wordmark .logo__line {
  color: var(--rose-gold);
}

.site-header.scrolled .footer-logo .logo__img {
  height: 96px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: none;
}

.main-nav.open {
  display: flex;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: var(--blush);
  transform: scale(1.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--rose-gold);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--transition), transform var(--transition);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* ——— Hero ——— */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 230, 224, 0.4) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(201, 168, 130, 0.08) 100%
  );
  animation: heroGradient 12s ease infinite alternate;
  z-index: 0;
}

@keyframes heroGradient {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 0.5rem;
}

.hero-content .bilingual {
  font-size: 0.9rem;
  color: var(--rose-gold-dark);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform var(--transition);
}

.hero-image:hover {
  transform: translateY(-4px);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rose-gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-rose {
  background: var(--rose-gold);
  color: var(--white);
}

.btn-rose:hover {
  background: var(--rose-gold-dark);
  animation: pulseBtn 1.5s ease infinite;
}

@keyframes pulseBtn {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 130, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 168, 130, 0);
  }
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

/* ——— Product cards ——— */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(201, 168, 130, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: var(--blush);
  color: #c45c5c;
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.product-card__price {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.product-card__price .mad {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.product-card .btn-add {
  width: 100%;
  padding: 0.75rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: background var(--transition);
}

.product-card:hover .btn-add {
  background: var(--rose-gold);
}

/* ——— Reassurance bar ——— */
.reassurance {
  background: var(--blush);
  padding: 2.5rem 0;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.reassurance-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.reassurance-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.reassurance-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ——— Social / Trending ——— */
.trending {
  background: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.social-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.social-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush);
  object-fit: cover;
  border: 1px solid rgba(201, 168, 130, 0.35);
}

.social-card__header strong {
  font-size: 0.85rem;
}

.social-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.social-card__footer {
  padding: 1rem;
}

.social-likes {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.social-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.social-caption .hashtag {
  color: var(--rose-gold-dark);
}

.trending-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ——— Reviews ——— */
.reviews-section {
  background: var(--blush);
}

.rating-summary {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.rating-summary .score {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-gold-dark);
}

.rating-summary .stars {
  color: var(--rose-gold);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin: 0.25rem 0;
}

.rating-summary p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reviews-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rose-gold) var(--blush);
}

.reviews-scroll::-webkit-scrollbar {
  height: 6px;
}

.reviews-scroll::-webkit-scrollbar-thumb {
  background: var(--rose-gold);
  border-radius: 3px;
}

.review-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-stars {
  color: var(--rose-gold);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.review-author {
  font-weight: 600;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: rgba(45, 138, 78, 0.1);
  color: var(--green-badge);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.review-date {
  color: var(--text-muted);
  width: 100%;
  margin-top: 0.25rem;
}

/* ——— Newsletter ——— */
.newsletter {
  background: linear-gradient(135deg, var(--blush) 0%, var(--white) 100%);
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin-inline: auto;
}

.newsletter-form input {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201, 168, 130, 0.4);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 130, 0.2);
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
  margin-top: var(--nav-height);
  background: var(--blush);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

/* ——— Filters ——— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 130, 0.4);
  background: var(--white);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--rose-gold);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.social-links a:hover {
  background: var(--rose-gold);
  border-color: var(--rose-gold);
  color: var(--white);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.payment-badge {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
  color: var(--rose-gold);
}

/* ——— Search overlay ——— */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: min(500px, 90vw);
}

.search-overlay input {
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
  border: none;
  border-bottom: 2px solid var(--rose-gold);
  outline: none;
  font-family: inherit;
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ——— Toast notification ——— */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 3000;
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ——— Tablet: 768px ——— */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rose-gold);
    transition: width var(--transition);
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-form input {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-scroll .review-card {
    flex: 0 0 280px;
  }
}

/* ——— Desktop: 1024px ——— */
@media (min-width: 1024px) {
  .products-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .reassurance-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-inner {
    gap: 2rem;
  }

  .main-nav {
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--blush);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
      visibility var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--blush);
  }
}
