/* Fallback/Suggested Variables (if not already in style.css) */
:root {
  --primary-color: #d4a373; /* Elegant warm tone */
  --primary-hover: #bc8f63;
  --text-dark: #333333;
  --text-light: #666666;
  --light-bg: #fcfcfc;
  --white: #ffffff;
  --border-color: #eaeaea;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius: 6px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Soft elegant gradient */
  padding: 0rem 2rem 8rem; /* Extra padding at bottom for overlapping features */
  position: relative;
}

.hero-slider {
  max-width: 1400px;
  margin: 0 auto;
}

.slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  animation: fadeIn 1s ease-out;
}

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

.slide-content {
  flex: 1;
  max-width: 600px;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.highlight {
  color: var(--primary-color);
}

.slide-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.slide-image {
  flex: 1;
  text-align: right;
}

.slide-image img {
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

/* --- Features Section --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--white);
  max-width: 1200px;
  margin: -4rem auto 4rem; /* Overlaps hero section */
  border-radius: 0px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.feature-item {
  text-align: center;
  padding: 1rem;
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Section Headers --- */
.section-header, .categories h2, .instagram-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2, .categories h2, .instagram-section h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  font-weight: 700;
}

.view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: var(--transition);
}
.view-all:hover {
  color: var(--text-dark);
}

/* --- Categories Section (Modern Bento Layout) --- */
.bento-categories {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.bento-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bento-item {
  position: relative;
  background: #a1a1a1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  display: flex;
  overflow: hidden;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
  z-index: 0;
}

.bento-item .bento-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.bento-item:hover {
  box-shadow: none;
}

.bento-item.green {
  background: #607d75;
  color: #ffffff;
}

/* Sizing & Shapes */
.bento-baby { width: 25%; aspect-ratio: 1; }
.bento-body-wash { width: 50%; }
.bento-hair { width: 25%; aspect-ratio: 1; border-radius: 50%; }
.bento-collection { width: 45%; }
.bento-skin { width: 25%; aspect-ratio: 1; border-radius: 50%; }
.bento-bath { width: 30%; border-radius: 0 200px 200px 0; }

/* Flexbox Content Formatting */
.bento-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2.5rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.align-center {
  justify-content: center;
  align-items: center;
}

.align-bottom {
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

/* Clean Typography */
.bento-content h2 {
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

.bento-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
}

.bento-content p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.85;
  font-family: sans-serif;
}

.bento-link {
  margin-top: auto;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: sans-serif;
  font-weight: 600;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .bento-categories {
    margin: 2rem auto;
    padding: 0 1.5rem;
  }

  .bento-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .bento-item {
    width: 100% !important;
    min-height: 180px;
    border-radius: 12px !important;
  }

  .bento-body-wash, .bento-collection, .bento-bath {
    grid-column: span 2;
  }

  .bento-baby, .bento-hair, .bento-skin {
    aspect-ratio: 1;
    min-height: auto;
  }

  .bento-content {
    padding: 1.5rem;
  }

  .bento-content h2 { font-size: 2rem; }
  .bento-content h3 { font-size: 1.4rem; }
  .bento-content p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .bento-row { gap: 0.8rem; margin-bottom: 0.8rem; }
  .bento-content h2 { font-size: 1.6rem; }
  .bento-content h3 { font-size: 1.2rem; }
}

/* Simplified Bento layout for small phones: unify text and reveal images */
@media (max-width: 600px) {
  .bento-categories {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .bento-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .bento-item {
    width: 100% !important;
    min-height: 140px;
    aspect-ratio: auto;
    border-radius: 8px !important;
    overflow: hidden;
    background-position: center center;
  }

  /* Remove complex shapes for small screens */
  .bento-hair, .bento-skin, .bento-baby,
  .bento-body-wash, .bento-collection, .bento-bath {
    border-radius: 8px !important;
    width: 100% !important;
  }

  /* Make images more visible by reducing overlay and keeping content background transparent */
  .bento-item::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03));
  }

  .bento-content {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
    background: transparent;
    color: var(--white);
  }

  /* Uniform text appearance: white, slight shadow for contrast */
  .bento-content h2, .bento-content h3, .bento-content p, .bento-link {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  .bento-content h2 { font-size: 1.25rem; font-weight:700; }
  .bento-content h3 { font-size: 1rem; }
  .bento-content p { display:none; }

  /* Make link match other text but with a subtle dark translucent pill for legibility */
  .bento-link {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.35);
    color: var(--white) !important;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }
}

/* --- Featured Products --- */
.featured-products {
  padding: 2rem 0.8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
/* --- Facebook Section --- */
.instagram-section {
  padding: 5rem 2rem;
  background: var(--light-bg);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.instagram-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .hero { padding: 4rem 2rem 6rem; }
  .slide-content h1 { font-size: 2.8rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem 8rem; text-align: center; }
  .slide { flex-direction: column; text-align: center; gap: 2rem; }
  .slide-content { max-width: 100%; }
  .slide-image img { max-height: 400px; }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin: -5rem 1.5rem 3rem;
    padding: 2rem;
  }
  
  .section-header h2, .categories h2, .instagram-section h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .slide-content h1 { font-size: 2.2rem; }
  .features { grid-template-columns: repeat(2, 1fr); margin: -4rem 1rem 3rem; padding: 1.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .featured-products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .category-image-wrap { aspect-ratio: 1 / 1; }
  .hero { padding: 2rem 1rem 6rem; }
}