/* Beauty Style Cosmetics — shared styles */

:root {
  --white: #ffffff;
  --bg-hero: #fdf2f5;
  --bg-soft: #fef7fa;
  --accent: #e59fb6;
  --accent-dark: #d889a3;
  --accent-cta: #f2a1bc;
  --text: #222222;
  --text-muted: #666666;
  --footer-bg: #0f172a;
  --footer-border: #e59fb6;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --container: min(1200px, 92vw);
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.logo__img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */
.hero {
  background: var(--bg-hero);
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero__title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--outline {
  background: var(--white);
  color: var(--accent);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: var(--bg-hero);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1.1;
}

.hero__stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
}

.hero__img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.hero__img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  max-width: 200px;
}

.hero__badge-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.hero__badge p {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Section titles */
.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--white {
  background: var(--white);
}

.section--soft {
  background: var(--bg-soft);
}

/* Featured products / catalog grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.product-card__top {
  position: relative;
  margin-bottom: 1rem;
}

.product-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  width: 100%;
  background: var(--bg-hero);
}

.product-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--white);
}

.badge--pink {
  background: var(--accent);
}
.badge--blue {
  background: #3b82f6;
}
.badge--gold {
  background: #d4a853;
}

.stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.product-card__sku {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.product-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.product-card__desc {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Ingredients */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ingredient {
  text-align: center;
}

.ingredient__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--bg-hero);
}

.ingredient h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.ingredient p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Treatments */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.treatment-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.treatment-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229, 159, 182, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.treatment-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.treatment-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.treatment-card ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.treatment-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Newsletter CTA */
.newsletter {
  background: var(--accent-cta);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.newsletter h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.newsletter > .container > p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.newsletter-form input {
  min-width: 240px;
  flex: 1;
  max-width: 360px;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form .btn {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

.newsletter-form .btn:hover {
  background: var(--bg-hero);
}

.newsletter-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.newsletter-features article {
  font-size: 0.9rem;
}

.newsletter-features .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.newsletter-features strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  border-top: 6px solid var(--footer-border);
}

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

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.social {
  display: flex;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.social a:hover {
  opacity: 0.85;
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* Catalog page */
.page-hero {
  background: var(--bg-hero);
  padding: 2.5rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
}

.catalog-section {
  padding: 3rem 0 4rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Contact page */
.contact-section {
  padding: 3rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.contact-info p,
.contact-info address {
  font-style: normal;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.contact-info a {
  color: var(--accent);
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 320px;
  background: #e8e8e8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    max-width: 400px;
    margin-inline: auto;
  }

  .hero__visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .product-grid,
  .ingredients-grid,
  .treatments-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .ingredients-grid {
    max-width: 100%;
  }

  .ingredient {
    max-width: 280px;
    margin-inline: auto;
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
  }

  .nav.is-open {
    transform: translateX(0);
  }

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

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

  .hero__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
