/* =========================================
   BLOOM HEALTH — styles.css
   Inspired by Moom Health
   ========================================= */

/* === TOKENS === */
:root {
  --cream: #faf8f4;
  --cream-dark: #f0ece3;
  --sand: #e8dfc8;
  --sage: #4a7c5c;
  --sage-light: #6fa882;
  --sage-dark: #2d6a4f;
  --blush: #f2a07b;
  --blush-light: #fce4d6;
  --coral: #e07558;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #888;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.14);
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--sage-dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  padding: 8px 0;
  width: 100%;
}

.announcement-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
  gap: 0;
  font-size: 0;
}

.announcement-track span {
  font-size: 0.78rem;
  display: inline-block;
}

.announcement-track span {
  display: inline-block;
  padding-right: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  border-color: var(--sand);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo span {
  color: var(--blush);
}

.footer-logo {
  font-size: 1.7rem;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: none;
  gap: 32px;
  min-width: 580px;
  grid-template-columns: 1fr 1fr auto;
}

.has-dropdown:hover .dropdown {
  display: grid;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.dropdown-col a {
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color var(--transition);
}

.dropdown-col a:hover {
  color: var(--sage-dark);
}

.dropdown-all {
  font-weight: 600;
  color: var(--sage) !important;
  margin-top: 8px;
}

.dropdown-promo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition);
}

.promo-card:hover {
  transform: scale(1.02);
}

.promo-card.green {
  background: #e8f5e9;
}

.promo-card.coral {
  background: var(--blush-light);
}

.promo-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--sage-dark);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.promo-card.coral .promo-tag {
  background: var(--coral);
}

.promo-card p {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}

.nav-icon:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--sage-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.cart-btn:hover {
  background: var(--sage);
  transform: scale(1.03);
}

.cart-count {
  background: var(--blush);
  color: var(--white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 100px 32px 40px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-section {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.mobile-section a {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
}

/* === HERO === */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 92vh;
  min-height: 560px;
  max-height: 610px;
}

.hero-slides {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
}

.hero-bg {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s;
}

.slide1-bg {
  background: linear-gradient(135deg, #fef6f0 0%, #f9e8df 40%, #ecdcf5 100%);
}

.slide2-bg {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 40%, #fff8e1 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: rgba(74, 124, 92, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-title em {
  color: var(--sage-dark);
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 420px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero product card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.product-card-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: floatHero 4s ease-in-out infinite;
}

.product-card-hero.glow {
  background: linear-gradient(135deg, #fde8ef, #e8d5f5);
}

.product-card-hero.sale {
  background: linear-gradient(135deg, #e8f5e9, #fff8e1);
}

@keyframes floatHero {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

.product-icon {
  font-size: 4rem;
}

.product-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 2px solid rgba(240, 120, 140, 0.25);
  animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.product-sub {
  font-size: 0.8rem;
  color: var(--text-mid);
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sage-dark);
}

.sale-badge {
  background: var(--coral);
  color: white;
  font-weight: 800;
  font-size: 1.8rem;
  padding: 12px 20px;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

.sale-icons {
  font-size: 2rem;
}

/* Hero controls */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  background: var(--sage-dark);
  width: 24px;
  border-radius: 4px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--sand);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--sage-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--sage);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
}

.btn-ghost:hover {
  background: var(--cream-dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 18px 32px;
  overflow: hidden;
}

.trust-items {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 20px;
}

.trust-icon {
  font-size: 1.1rem;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--sand);
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.section-header.light * {
  color: white;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* === WELCOME === */
.welcome-section {
  padding: 80px 0 0;
}

/* === PRODUCTS === */
.products-section {
  padding: 40px 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border: 2px solid var(--blush);
}

.product-card-img,
.product-card-coconut {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-coconut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
}

.product-card-emoji {
  font-size: 5rem;
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: white;
}

.product-badge.bestseller {
  background: var(--coral);
}

.product-badge.new {
  background: var(--sage-dark);
}

.product-card-body {
  padding: 20px 22px 22px;
}

.product-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.btn-add {
  display: inline-flex;
  padding: 9px 18px;
  background: var(--cream-dark);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.btn-add:hover {
  background: var(--sage-dark);
  color: white;
}

.products-cta {
  text-align: center;
  margin-top: 48px;
}

/* === STANDARDS === */
.standards-section {
  padding: 96px 0;
  background: var(--white);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.standard-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  background: var(--cream);
  transition: transform var(--transition), box-shadow var(--transition);
}

.standard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.standard-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.standard-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.standard-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}

.standard-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage-dark);
  padding-bottom: 2px;
}

/* === INSTAGRAM === */
.instagram-section {
  padding: 96px 0;
}

.ig-handle {
  color: var(--sage-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--sage-dark);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.ig-item {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.ig-item:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg);
}

/* === FOOTER === */
.footer {
  background: #111;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: var(--cream);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .logo span {
  color: var(--blush);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: white;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ig-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ig-item:nth-child(n+5) {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .burger {
    display: flex;
  }

  .logo {
    font-size: 1.3rem;
  }

  .cart-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .hero-section {
    height: 85vh;
    min-height: 500px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 24px;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-cta-group {
    justify-content: center;
  }

  .trust-bar {
    padding: 14px 16px;
  }

  .trust-items {
    gap: 0;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .quiz-inner {
    grid-template-columns: 1fr;
  }

  .quiz-visual {
    display: none;
  }

  .quiz-content {
    padding: 60px 0;
  }

  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ig-item:nth-child(n+4) {
    display: none;
  }

  .newsletter-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-input {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .welcome-section {
    padding: 60px 0 0;
  }

  .products-section {
    padding: 32px 0 60px;
  }

  .hero-cta-group .btn {
    padding: 9px 20px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 60px 0 80px;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ig-item:nth-child(n+3) {
    display: none;
  }

  .press-logos {
    gap: 20px;
  }

  .press-logo {
    font-size: 0.9rem;
  }
}

/* === ACTIVE NAV === */
.nav-item.active-nav {
  background: var(--cream-dark);
  color: var(--text-dark);
  font-weight: 600;
}

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, #faf8f4 0%, #f0ece3 100%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--sand);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text-dark);
  margin: 8px 0 14px;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FILTER BAR === */
.filter-bar {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  padding: 14px 0;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.filter-tab.active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: white;
}

.sort-select-wrap {
  flex-shrink: 0;
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand);
  background: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.sort-select:focus {
  border-color: var(--sage);
}

/* === ALL PRODUCTS GRID (3 columns x 4 rows) === */
.all-products-section {
  padding: 48px 0 96px;
}

.all-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-mid);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .all-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .all-products-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    top: 60px;
  }

  .filter-tab {
    font-size: 0.75rem;
    padding: 7px 12px;
  }
}

/* ============================================
   CART SIDEBAR
   ============================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.12);
}

.cart-sidebar.open {
  transform: translateX(0);
}

/* Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}

.cart-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}

.cart-close:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

/* Body */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-light);
  text-align: center;
}

.cart-empty-icon {
  font-size: 3rem;
}

.cart-empty p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
}

.cart-empty span {
  font-size: 0.85rem;
}

/* Cart items */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.cart-item-cat {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background var(--transition), border-color var(--transition);
}

.qty-btn:hover {
  background: var(--cream-dark);
  border-color: var(--sage);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-light);
  cursor: pointer;
  margin-left: 4px;
  padding: 4px 0;
  text-decoration: underline;
  transition: color var(--transition);
}

.remove-btn:hover {
  color: var(--coral);
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sage-dark);
  flex-shrink: 0;
}

/* Footer */
.cart-footer {
  border-top: 1px solid var(--sand);
  padding: 20px 28px 28px;
  flex-shrink: 0;
  background: var(--cream);
}

.cart-summary {
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 5px 0;
}

.cart-summary-row.total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-summary-divider {
  height: 1px;
  background: var(--sand);
  margin: 10px 0;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-continue {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
}

.cart-checkout {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  padding: 15px;
}

/* Mobile */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100vw;
  }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.search-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 80px 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.search-overlay.open .search-container {
  transform: translateY(0);
}

/* Search bar */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}

.search-icon-input {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.search-clear:hover {
  background: var(--cream-dark);
  color: var(--text-dark);
}

/* Results area */
.search-results {
  overflow-y: auto;
  padding: 16px 20px 20px;
  flex: 1;
}

.search-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  padding: 24px 0;
}

.search-results-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* Individual result card */
.search-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.search-result-card:hover {
  background: var(--cream);
  border-color: var(--sage-light);
  transform: translateX(3px);
}

.search-result-img {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.search-result-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sage-dark);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-result-info {
  flex: 1;
}

.search-result-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.search-result-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.search-result-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.search-add-btn {
  padding: 7px 14px;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.search-add-btn:hover {
  background: var(--sage-dark);
  color: white;
}

/* Empty / no results */
.search-empty {
  text-align: center;
  padding: 32px 0 16px;
  color: var(--text-mid);
}

.search-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.search-empty p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

/* View all link */
.search-view-all {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  padding: 12px;
  border-top: 1px solid var(--sand);
  margin-top: 4px;
  transition: background var(--transition);
  border-radius: 0 0 var(--radius) var(--radius);
}

.search-view-all:hover {
  background: var(--cream);
}

/* Mobile */
@media (max-width: 680px) {
  .search-container {
    margin: 60px 12px 0;
  }
}

.hero-product-img {
  width: 380px;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: contain;
}

.product-card-hero.glow {
  background: none;
  padding: 0;
  overflow: hidden;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--sand);
  background: var(--white);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--sage-dark);
}

.breadcrumb span {
  color: var(--text-light);
}

/* Detail layout */
.detail-section {
  padding: 56px 0 96px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Image column */
.detail-image-col {
  position: sticky;
  top: 100px;
}

.detail-image-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-image-main {
  border-radius: 24px;
  overflow: visible;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.detail-image-main>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: 24px;
}

.detail-emoji {
  font-size: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: white;
}

.detail-badge.new {
  background: var(--sage-dark);
}

.detail-badge.bestseller {
  background: var(--coral);
}

/* Info column */
.detail-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.detail-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.detail-review-count {
  font-size: 0.82rem;
  color: var(--text-light);
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 24px;
}

.detail-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Benefits */
.detail-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.detail-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.detail-benefits-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 10px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage);
}

/* Meta grid */
.detail-meta {
  margin-bottom: 32px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}

.detail-meta-key {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.detail-meta-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Purchase row */
.detail-purchase {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.detail-add-btn {
  flex: 1;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
}

/* Trust items */
.detail-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-trust-item {
  font-size: 0.82rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Product name link style */
.product-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.product-card-name a:hover {
  color: var(--sage-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-image-col {
    position: static;
  }

  .detail-purchase {
    flex-direction: column;
  }

  .detail-add-btn {
    width: 100%;
  }
}

/* Detail image thumbnails */
.detail-thumb-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid var(--sand);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
}

.detail-thumb:hover {
  transform: scale(1.05);
  border-color: var(--sage-light);
}

.detail-thumb.active {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 2px var(--sage-dark);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Full width image hero slide */
.hero-slide .hero-content.hero-fullimage {
  display: block;
  padding: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
}
.hero-fullimage .hero-visual {
  width: 100%;
  height: 100%;
  display: flex;
}
.hero-fullimage .product-card-hero {
  width: 100%;
  height: 100%;
  border-radius: 0;
  animation: none;
  box-shadow: none;
  overflow: hidden;
}
.hero-fullimage .hero-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
  background: transparent;
}

/* ============================================
   MOBILE OPTIMISATION
   ============================================ */

@media (max-width: 768px) {

  /* General */
  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* Hero */
  /* ── MOBILE HERO COMPLETE REWRITE ── */
  .hero-section {
    position: relative;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .hero-slides {
    height: auto !important;
  }

  .hero-slide {
    position: relative !important;
    inset: auto !important;
    opacity: 0;
    pointer-events: none;
    display: none !important;
    flex-direction: column !important;
  }

  .hero-slide.active {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
  }

  .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    padding: 0 !important;
    gap: 0 !important;
    text-align: center;
  }

  /* Image FIRST on mobile */
  .hero-visual {
    display: flex !important;
    order: 1;
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .hero-product-img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .product-card-hero {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    animation: floatHero 4s ease-in-out infinite !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  /* Text SECOND on mobile */
  .hero-text {
    order: 2;
    padding: 20px 20px 24px !important;
    position: relative;
    z-index: 2;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    margin-bottom: 10px !important;
    line-height: 1.15 !important;
  }

  .hero-desc {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }

  .hero-cta-group {
    justify-content: center !important;
    gap: 8px !important;
  }

  .hero-cta-group .btn {
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
  }

  /* Dots inside hero, bottom right */
  .hero-dots {
    position: absolute !important;
    bottom: 10px !important;
    right: 14px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 10 !important;
    display: flex !important;
  }

  .hero-arrow {
    display: none !important;
  }

  /* Trust bar */
  /* ── MOBILE TRUST BAR COMPLETE REWRITE ── */
  .trust-bar {
    padding: 8px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .trust-bar::-webkit-scrollbar {
    display: none !important;
  }

  .trust-items {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    padding: 0 12px !important;
    gap: 0 !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  .trust-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-mid) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .trust-icon {
    font-size: 13px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  .trust-item span:last-child {
    display: inline !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .trust-divider {
    width: 1px !important;
    height: 16px !important;
    background: var(--sand) !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
  }

  /* Welcome */
  .welcome-section {
    padding: 48px 0 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .section-desc {
    font-size: 0.9rem;
  }

  /* Products grid */
  .products-section {
    padding: 24px 0 48px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .all-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card-img,
  .product-card-coconut {
    height: 280px;
  }

  .product-card-coconut img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    background: #fff;
  }

  .product-card-coconut {
    background: #fff !important;
  }

  .product-card-name {
    font-size: 1.2rem;
  }

  .product-card-body {
    padding: 16px 16px 18px;
  }

  .product-card-tagline {
    font-size: 0.8rem;
  }

  .product-card-price {
    font-size: 1rem;
  }

  .btn-add {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  /* Standards */
  .standards-section {
    padding: 48px 0;
  }

  .standards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .standard-card {
    padding: 24px 20px;
  }

  /* Instagram */
  .instagram-section {
    padding: 48px 0;
  }

  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ig-item:nth-child(n+4) {
    display: none;
  }

  /* Footer */
  .footer {
    padding: 40px 0 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Cart sidebar */
  .cart-sidebar {
    width: 100vw;
  }

  .cart-header {
    padding: 18px 20px;
  }

  .cart-body {
    padding: 16px 20px;
  }

  .cart-footer {
    padding: 16px 20px 24px;
  }

  .cart-title {
    font-size: 1.3rem;
  }

  /* Search */
  .search-container {
    margin: 48px 12px 0;
  }

  .search-input {
    font-size: 0.95rem;
  }

  /* Product detail */
  .detail-section {
    padding: 32px 0 64px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-image-col {
    position: static;
  }

  .detail-image-main {
    aspect-ratio: auto;
    height: 320px;
    overflow: hidden;
  }

  .detail-image-main>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
  }

  .detail-name {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .detail-price {
    font-size: 1.6rem;
  }

  .detail-purchase {
    flex-direction: column;
    gap: 12px;
  }

  .detail-add-btn {
    width: 100%;
    justify-content: center;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Breadcrumb */
  .breadcrumb .container {
    font-size: 0.75rem;
  }

  /* Page hero */
  .page-hero {
    padding: 40px 0 32px;
  }

  .page-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .announcement-bar {
    font-size: 11px !important;
    padding: 6px 0 !important;
  }

  .announcement-track span {
    font-size: 11px !important;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .trust-item span:not(.trust-icon) {
    display: none;
  }

  .trust-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 430px) {
  .announcement-bar {
    font-size: 5px !important;
    padding: 5px 0 !important;
  }

  .announcement-track span {
    font-size: 5px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .all-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 0 32px;
  }

  .detail-grid {
    gap: 40px;
  }

  .container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {

  /* Horizontal scroll for homepage products */
  .products-section .products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 8px 16px 16px;
    scrollbar-width: none;
  }

  .products-section .products-grid::-webkit-scrollbar {
    display: none;
  }

  .products-section .products-grid .product-card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
    opacity: 1;
    transform: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .products-section .products-grid .product-card-coconut,
  .products-section .products-grid .product-card-img {
    height: 240px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #fff !important;
  }

  .products-section .products-grid .product-card-coconut img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    border-radius: 0;
  }
}