/* ===== SKINCARE - Glow & Grace ===== */
/* Premium pastel color palette: soft pinks, rose gold, cream, lavender */

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

:root {
  --primary: #d4a0a0;
  --primary-dark: #c4838b;
  --secondary: #e8d5d0;
  --accent: #f0e6e0;
  --bg: #fdf8f5;
  --bg-alt: #faf0ec;
  --text: #4a3f3f;
  --text-light: #8a7a7a;
  --white: #ffffff;
  --rose-gold: #c9a08b;
  --lavender: #dcd0e0;
  --shadow: 0 4px 20px rgba(212, 160, 160, 0.15);
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4, .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text);
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--primary-dark);
  font-weight: 700;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-dark);
  transition: width 0.3s;
}

.nav a:hover {
  color: var(--primary-dark);
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1556228578-0d85b1a4d571?w=1920&q=80') center/cover fixed;
  position: relative;
  margin-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 248, 245, 0.85), rgba(212, 160, 160, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background: #b06a72;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 131, 139, 0.4);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 30px;
}

.featured-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.best-grid {
  grid-template-columns: repeat(3, 1fr);
}

.new-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 160, 160, 0.25);
}

.product-img {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.highlight {
  position: relative;
}

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

/* Category Card */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  transition: transform 0.3s;
}

.cat-card:hover {
  transform: scale(1.03);
}

.cat-img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}

.cat-card:hover .cat-img {
  transform: scale(1.1);
}

.cat-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--white);
  font-size: 1.3rem;
}

/* Offers */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.offer-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--secondary);
  transition: all 0.3s;
}

.offer-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.offer-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

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

/* Reviews */
.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stars {
  color: #e8b84b;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.review-card p {
  font-style: italic;
  margin-bottom: 14px;
  color: var(--text-light);
}

.review-card cite {
  font-style: normal;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Newsletter */
.newsletter {
  background: var(--bg-alt);
}

.newsletter-box {
  text-align: center;
  max-width: 600px;
}

.newsletter-box h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.newsletter-box p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

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

.contact-info p {
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

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

/* Footer */
.footer {
  background: var(--bg-alt);
  padding: 60px 0 30px;
  border-top: 1px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
}

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

.footer ul {
  list-style: none;
}

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

.footer li a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--secondary);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .best-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--secondary);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .featured-grid,
  .cat-grid,
  .best-grid,
  .reviews-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

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

  .product-img {
    height: 200px;
  }

  .cat-card {
    height: 220px;
  }
}
