/* ===== DAILY SKIN TIPS - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@400;700&display=swap');

:root {
  --primary: #c08b8b;
  --primary-dark: #a06868;
  --primary-light: #f5dede;
  --gold: #c9a96e;
  --gold-light: #f0e4c8;
  --dark: #2c2c2c;
  --text: #4a4a4a;
  --text-light: #777;
  --white: #ffffff;
  --off-white: #fef9f6;
  --cream: #fdf6f0;
  --blush: #f8e8e0;
  --gradient-1: linear-gradient(135deg, #fce4ec 0%, #fff3e0 100%);
  --gradient-2: linear-gradient(135deg, #c08b8b 0%, #c9a96e 100%);
  --gradient-3: linear-gradient(135deg, #fdf6f0 0%, #f5dede 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.footer-brand a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  font-family: 'Playfair Display', serif;
  font-size: 50px;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 249, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(192, 139, 139, 0.1);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Fixed box for the logo image so height/width:100% has something to fill.
     Ratio (~3:1) matches the trimmed logo so it fills with no empty space. */
  height: 52px;
  width: 158px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-text span {
  color: var(--primary);
}

/* Logo image (navbar) — fills its .logo box, keeps aspect ratio */
.logo-img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 600px) {
  .logo { height: 42px; width: 128px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--gradient-2) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 139, 139, 0.4);
}

.hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger .hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger .hamburger-bars span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger .hamburger-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 118px;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(192, 139, 139, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero h1 span {
  position: relative;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShimmer 4s linear infinite;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(192, 139, 139, 0.25);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: underlineGrow 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--gradient-2);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192, 139, 139, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(192, 139, 139, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ===== CALL-TO-ACTION PANEL (tips / routine pages) ===== */
.tips-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--gradient-3);
  border: 1px solid rgba(192, 139, 139, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tips-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.tips-cta p {
  color: var(--text-light);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Button group: equal-feeling, centered, wraps cleanly on mobile */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta-buttons .btn {
  justify-content: center;
}

@media (max-width: 480px) {
  .tips-cta {
    padding: 40px 22px;
  }

  .tips-cta h2 {
    font-size: 1.55rem;
  }

  .tips-cta p {
    font-size: 0.95rem;
  }

  /* Stack to full width so both buttons line up perfectly */
  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(192, 139, 139, 0.2);
}

.stat h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-dark);
}

.stat p {
  font-size: 0.85rem;
  margin: 0;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper .hero-img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-image-wrapper .placeholder-img {
  width: 100%;
  height: 520px;
  background: linear-gradient(135deg, #f5dede, #fce4ec, #fff3e0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.hero-image-wrapper .placeholder-img span {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 10px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 20px;
  right: -30px;
}

.floating-card.card-2 {
  bottom: 40px;
  left: -30px;
  animation-delay: 1s;
}

.floating-card.card-3 {
  bottom: 140px;
  right: -20px;
  animation-delay: 2s;
}

.floating-card .fc-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.floating-card .fc-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
}

.floating-card .fc-sub {
  font-size: 0.7rem;
  color: var(--text-light);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* PAGE HERO (inner pages) */
.page-hero {
  padding: 110px 20px 50px;
  text-align: center;
  background: var(--gradient-1);
  position: relative;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* SECTION COMMON */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* TIPS CARDS */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.tip-card-img {
  height: 220px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.tip-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

.blog-featured-img {
  margin-bottom: 30px;
  height: 450px;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.default-thumbnail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

.tip-card-img .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
}

.tip-card-body {
  padding: 24px;
}

.tip-card-body .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tip-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.tip-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.tip-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.tip-card-body .read-more:hover {
  gap: 10px;
}

/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(163px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-2);
  color: var(--white);
}

.category-card:hover .cat-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-card:hover h4,
.category-card:hover p {
  color: var(--white);
}

.cat-icon {
  width: 90px;
  height: 90px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  transition: var(--transition);
  overflow: hidden;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.category-card h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
  transition: var(--transition);
}

.category-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  transition: var(--transition);
}

/* PRODUCT CARDS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-2);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.product-wishlist:hover {
  transform: scale(1.1);
}

.product-img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

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

.product-body {
  padding: 22px;
}

.product-body .product-category {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-body h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 6px 0;
}

.product-body .stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.product-body .stars span {
  color: var(--text-light);
  font-size: 0.78rem;
  margin-left: 6px;
}

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

.product-price .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-price .price .old {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

/* ROUTINE STEPS */
.routine-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.routine-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.routine-step:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  min-width: 55px;
  height: 55px;
  background: var(--gradient-2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.step-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.step-icon {
  font-size: 2rem;
  margin-left: auto;
}

/* Routine steps — responsive: keep the text column readable on small screens */
@media (max-width: 768px) {
  .routine-step {
    gap: 16px;
    padding: 22px 20px;
  }

  .step-number {
    min-width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .step-icon {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  /* The big number + emoji on the same row leaves text too narrow.
     Float the number/icon as a top row, give the text the full width. */
  .routine-step {
    flex-wrap: wrap;
    gap: 12px 14px;
    padding: 20px 18px;
  }

  .step-number {
    order: 1;
    min-width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  /* Decorative emoji sits on the top row beside the number (not a column) */
  .step-icon {
    order: 2;
    margin-left: auto;
    font-size: 1.6rem;
    align-self: center;
  }

  /* Text drops to its own full-width line below the number/icon row */
  .step-content {
    order: 3;
    flex: 1 1 100%;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }

  .step-content p {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  /* No sideways shift on touch — it can clip the card on small screens */
  .routine-step:hover {
    transform: none;
  }
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.testimonial-card .quote {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author .author-info h4 {
  font-size: 0.92rem;
  color: var(--dark);
}

.testimonial-author .author-info span {
  font-size: 0.78rem;
  color: var(--text-light);
}

.testimonial-card .stars {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--gold);
  font-size: 0.9rem;
}

/* NEWSLETTER */
.newsletter {
  background: var(--gradient-2);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.newsletter p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
}

.newsletter-form button {
  padding: 16px 30px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #1a1a1a;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer brand title — elegant text wordmark in place of the logo image.
   Soft pink→gold gradient on the dark footer for a premium, minimal feel. */
.footer-brand {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.15;
  margin-bottom: 18px;
  text-decoration: none;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* fallback where background-clip:text is unsupported */
  transition: opacity 0.3s ease;
}

.footer-brand:hover {
  opacity: 0.85;
}

/* Tablet */
@media (max-width: 992px) {
  .footer-brand { font-size: 1.85rem; letter-spacing: 1.2px; }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-brand { font-size: 1.6rem; letter-spacing: 0.8px; margin-bottom: 14px; }
}

.footer-col>p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Footer contact info */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-contact .contact-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 1px;
}

.footer-contact .contact-text,
.footer-contact a {
  flex: 1;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact a {
  transition: var(--transition);
  word-break: break-word;
}

.footer-contact a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 0;
  font-size: 0.82rem;
}

.footer-bottom p {
  opacity: 0.65;
  margin: 0;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--primary);
}

.footer-legal-links span {
  opacity: 0.3;
  font-size: 0.7rem;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ===== LEGAL / POLICY PAGES ===== */
.legal-layout {
  max-width: 880px;
  margin: 0 auto;
}
.legal-content {
  counter-reset: legal;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 44px;
  box-shadow: var(--shadow);
}
.legal-updated {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 28px 0 22px;
}
.legal-intro {
  background: var(--cream);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.legal-intro p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}
.legal-block {
  padding: 26px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 100px;
}
.legal-block:last-child {
  border-bottom: none;
}
.legal-block h2 {
  counter-increment: legal;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 14px;
}
.legal-block h2::before {
  content: counter(legal);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--gradient-2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.legal-block p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.legal-block p:last-child {
  margin-bottom: 0;
}
.legal-block ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-block li {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 8px;
  font-size: 0.97rem;
}
.legal-block a {
  color: var(--primary-dark);
  font-weight: 600;
}
.legal-block strong {
  color: var(--dark);
}

@media (max-width: 900px) {
  .legal-content {
    padding: 14px 26px;
  }
}

/* COUNTER BAR */
.counter-bar {
  background: var(--gradient-2);
  padding: 50px 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: var(--white);
}

.counter-grid h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.counter-grid p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-card .f-icon {
  font-size: 42px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  background: var(--gradient-3);
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.about-feature span {
  font-size: 1.3rem;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.team-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: var(--gradient-3);
}

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

.team-card-body h3 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-card-body span {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
}

/* BLOG CARDS */
.blog-grid {
  display: grid;
  /* Fluid: fills the row and reflows to fewer columns as the viewport shrinks,
     so it never jumps from 3 cols straight to 1 on tablets. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-card-img {
  height: 220px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}

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

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.blog-meta .created-by {
  color: var(--text-light);
  font-weight: 600;
  margin-left: 6px;
  font-size: 0.9rem;
}

/* Top meta shown above title (date/time + creator) */
.post-top-meta {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.post-top-meta .post-date {
  font-weight: 600;
}

.post-top-meta .created-by {
  font-weight: 600;
}

.blog-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 10px;
  transition: var(--transition);
}

.blog-card:hover h3 {
  color: var(--primary-dark);
}

.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* BLOG DETAIL */
.blog-detail {
  padding-top: 120px;
}

.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.blog-detail-content .blog-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.blog-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin: 30px 0 14px;
}

.blog-body h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 24px 0 10px;
}

.blog-body p {
  margin-bottom: 16px;
}

.blog-body ul,
.blog-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.blog-body ol {
  list-style: decimal;
}

.blog-body li {
  margin-bottom: 8px;
}

.blog-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
}

.blog-body strong {
  color: var(--dark);
}

/* Blog — social share */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.social-share-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

/* Blog — author bio (E-E-A-T) */
.author-bio {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.author-bio-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.author-bio-info .author-bio-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  font-weight: 600;
}

.author-bio-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin: 2px 0 6px;
}

.author-bio-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  transition: var(--transition);
}

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

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  transition: var(--transition);
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-question .icon-toggle {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .icon-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 28px 22px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.gallery-img {
  height: 280px;
  display: flex;
  gap: 0;
  position: relative;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: var(--white);
}

.gallery-label h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}

.gallery-label p {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* INGREDIENTS */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.ingredient-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.ingredient-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary);
}

.ingredient-card .ing-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.ingredient-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.ingredient-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.ingredient-card .benefit-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 2px;
}

/* CART SIDEBAR */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
}

.cart-close {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
  width: 65px;
  height: 65px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info h4 {
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.cart-item-info .price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cart-item-qty a {
  width: 26px;
  height: 26px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  color: var(--dark);
}

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

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-2);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ALERT MESSAGES */
.alert {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #e53935;
}

.alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pagination a:hover {
  background: var(--gradient-2);
  color: var(--white);
}

.pagination .active {
  background: var(--gradient-2);
  color: var(--white);
}

/* SHOP PAGE — search bar */
.shop-search {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 480px;
  margin: 26px auto 0;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow);
}

.shop-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
}

.shop-search input::placeholder {
  color: var(--text-light);
}

.shop-search button {
  border: none;
  cursor: pointer;
  background: var(--gradient-2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.shop-search button:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow);
}

.shop-search-meta {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.shop-search-meta a {
  color: var(--primary);
}

/* SHOP PAGE — sidebar layout */
/* SHOP PAGE — category tabs */
.shop-tabs {
  display: flex;
  flex-wrap: wrap;              /* show every category — wrap onto new rows, no scroll */
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid rgba(192, 139, 139, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
  z-index: 20;
}

.shop-tab {
  position: relative;
  flex: 0 0 auto;               /* keep pill width to its label */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;                 /* consistent pill height across all tabs */
  padding: 0 22px;              /* balanced horizontal padding */
  border: 2px solid transparent;
  background: var(--cream);
  border-radius: 9999px;        /* fully rounded pill */
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;          /* label stays on one line */
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.shop-tab:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.shop-tab:focus-visible {
  outline: none;
  border-color: var(--primary);
}

.shop-tab.active {
  background: var(--gradient-2);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(192, 139, 139, 0.45);
  transform: translateY(-2px);
}

.shop-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(0, 0, 0, 0.06);
  padding: 4px 9px;
  border-radius: 50px;
  transition: var(--transition);
}

.shop-tab:hover .shop-tab-count {
  background: rgba(160, 104, 104, 0.16);
}

.shop-tab.active .shop-tab-count {
  background: rgba(255, 255, 255, 0.28);
}

/* Tablet — tighten spacing so every pill still fits without scrolling */
@media (max-width: 768px) {
  .shop-tabs {
    gap: 8px;
    padding: 12px;
    top: 72px;
  }
  .shop-tab {
    height: 40px;
    padding: 0 16px;
    font-size: 0.85rem;
  }
}

/* Mobile — compact pills, left-aligned wrap */
@media (max-width: 480px) {
  .shop-tabs {
    gap: 6px;
    padding: 10px;
    justify-content: flex-start;
  }
  .shop-tab {
    height: 36px;
    padding: 0 13px;
    font-size: 0.8rem;
  }
}

/* Smooth fade-in when a category is shown */
.shop-cat-block.is-switching {
  animation: shopFadeIn 0.35s ease;
}

@keyframes shopFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shop-empty-tab {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shop-tab-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* SHOP PAGE — category-wise premium cards */
.shop-cat-block {
  margin-bottom: 44px;
}

.shop-cat-block:last-child {
  margin-bottom: 0;
}

.shop-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.shop-category-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--dark);
}

.shop-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.shop-main .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(269px, 1fr));
}

/* Equal-height cards: button always sits at the bottom */
.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card .shop-card-footer {
  margin-top: auto;
  padding-top: 16px;
}

.shop-card .product-img {
  font-size: 64px;
}

/* Tablet */
@media (max-width: 900px) {
  .shop-tabs {
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 12px;
    position: static;          /* free up vertical space on smaller screens */
  }

  .shop-category-head h2 {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .shop-tabs {
    gap: 8px;
    padding: 8px 10px;
    /* allow edge-to-edge scroll so the last pill isn't clipped by the container */
    scroll-padding-inline: 10px;
  }

  .shop-tab {
    height: 40px;
    padding: 0 16px;
    font-size: 0.86rem;
  }
}

/* Product list (frontend category page) */
.product-list-card li:last-child {
  border-bottom: none !important;
}

.product-list-card li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

/* Collapse the full nav into a slide-in menu before the links start to wrap */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    gap: 4px;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 18px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
    z-index: 1002;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .hero-stats {
    /* flex-direction: column; */
    gap: 60px;
  }

  .tips-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .floating-card {
    display: none;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-detail-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .navbar {
    padding: 12px 20px;
  }

  .hero-image-wrapper .placeholder-img,
  .hero-image-wrapper .hero-img {
    height: 320px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero h1 span {
    animation: none;
  }

  .hero h1 span::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ===== SKIN-TYPE QUIZ POPUP ===== */
.skin-quiz-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-2);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(192, 139, 139, 0.45);
  transition: var(--transition);
  animation: sqPulse 2.6s ease-in-out infinite;
}

.skin-quiz-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(192, 139, 139, 0.55);
}

.skin-quiz-fab .sq-fab-emoji {
  font-size: 1.15rem;
}

@keyframes sqPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(192, 139, 139, 0.45);
  }

  50% {
    box-shadow: 0 6px 30px rgba(201, 169, 110, 0.6);
  }
}

.sq-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(44, 44, 44, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sq-overlay[hidden] {
  display: none;
}

.sq-overlay.open {
  opacity: 1;
}

.sq-modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.sq-overlay.open .sq-modal {
  transform: translateY(0) scale(1);
}

.sq-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.sq-close:hover {
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.sq-progress {
  height: 5px;
  background: var(--cream);
}

.sq-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-2);
  transition: width 0.35s ease;
}

.sq-content {
  padding: 40px 34px 34px;
}

.sq-screen {
  text-align: center;
  animation: sqFade 0.35s ease;
}

@keyframes sqFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sq-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.sq-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sq-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.sq-step-count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.sq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.sq-option {
  width: 100%;
  background: var(--off-white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.sq-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(4px);
}

.sq-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.sq-nav {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.sq-back {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.sq-back:hover {
  color: var(--primary-dark);
}

.sq-result-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.sq-tips {
  list-style: none;
  text-align: left;
  max-width: 380px;
  margin: 0 auto 22px;
  padding: 0;
}

.sq-tips li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--cream);
}

.sq-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sq-retake {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.sq-retake:hover {
  color: var(--primary-dark);
}

@media (max-width: 480px) {
  .skin-quiz-fab .sq-fab-text {
    display: none;
  }

  .skin-quiz-fab {
    padding: 14px;
  }

  .sq-content {
    padding: 34px 20px 24px;
  }

  .sq-content h2 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skin-quiz-fab {
    animation: none;
  }
}

/* =================================================================
   RESPONSIVE POLISH — cross-device refinements
   Additive layer: tightens layout on tablets and small phones and
   guards every page against horizontal overflow (long words, wide
   media/tables). Kept at the end so it wins on equal specificity.
   ================================================================= */

/* Long URLs / unbroken words must never push the layout sideways */
p,
li,
h1, h2, h3, h4,
.blog-detail-content,
.tip-card,
.faq-question,
.faq-answer {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Media inside article/content bodies stays inside its column */
.blog-detail-content img,
.blog-detail-content iframe,
.blog-detail-content video,
.blog-detail-content table {
  max-width: 100%;
  height: auto;
}

.blog-detail-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet range: pull oversized headings in a touch */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .section-header h2,
  .counter-grid .counter-number {
    font-size: 2rem;
  }

  /* Stop the hero stretching to full viewport height once it's a single
     stacked column — size it to its content with comfortable padding so the
     CTA buttons sit right under the text (no big empty gap, no overlap with
     the floating quiz button). */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 104px;
    padding-bottom: 48px;
  }

  /* The 60px column gap becomes dead vertical space once stacked — shrink it */
  .hero .container {
    gap: 32px;
  }

  .hero-stats {
    margin-top: 28px;
    padding-top: 22px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 16px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 40px;
    text-align: center;
  }

  .page-hero {
    padding-top: 92px;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 0.95rem;
    /* margin-bottom: 24px; */
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .container {
    gap: 22px;
  }

  .hero-stats {
    margin-top: 22px;
    padding-top: 18px;
    gap: 18px;
  }

  /* Shorter hero image so the section isn't dominated by empty image area */
  .hero-image-wrapper .hero-img,
  .hero-image-wrapper .placeholder-img {
    height: 260px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .page-hero p {
    font-size: 0.98rem;
  }

  /* Comfortable tap targets in the slide-in menu */
  .nav-links a {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  /* Keep the two floating buttons clear of each other / content */
  .back-to-top {
    width: 44px;
    height: 44px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* Very small / older phones */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-buttons .btn,
  .hero-buttons a {
    width: 100%;
    text-align: center;
  }
}