/* =========================
   Eins Skincare - style.css
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fffaf6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* =========================
   Layout Helpers
   ========================= */

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* =========================
   Header / Navigation
   ========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  border-bottom: 1px solid #eadfd4;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  text-decoration: none;
  color: #222;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.site-header nav a:hover {
  opacity: 0.7;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch button {
  border: 1px solid #d9c6b5;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #5b4634;
  transition: all 0.2s ease;
}

.lang-switch button:hover {
  background: #f5ede6;
}

.lang-switch button.active {
  background: #8a674d;
  color: #fff;
  border-color: #8a674d;
}

/* =========================
   Hero Sections
   ========================= */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: #f4ece5;
}

.hero img,
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #efe7df;
}

.hero.has-image img,
.page-hero img {
  position: absolute;
  inset: 0;
}

.hero-overlay,
.page-hero-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero.has-image::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.28);
  z-index: 1;
}

.hero-content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 760px;
}

.hero-content p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  height: 420px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
}

.page-hero-overlay h1 {
  font-size: 48px;
  margin: 0 0 12px;
}

.page-hero-overlay p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

/* =========================
   Buttons
   ========================= */

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #8a674d;
  color: #fff;
  border: 1px solid #8a674d;
}

.btn-primary:hover {
  background: #765741;
  border-color: #765741;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   Content Sections
   ========================= */

.section-intro,
.content-section {
  padding: 64px 8%;
}

.section-intro h2,
.content-section h2 {
  font-size: 32px;
  margin: 0 0 14px;
  color: #222;
}

.section-intro p,
.content-section p {
  font-size: 16px;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* =========================
   Cards / Features
   ========================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card,
.info-card,
.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.feature-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p,
.info-card p {
  margin: 0;
  color: #555;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================
   Products Grid
   ========================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 8% 64px;
}

.product-card {
  padding: 16px;
}

.product-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3ede7;
}

.product-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  color: #222;
}

.product-card p {
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.product-card a {
  text-decoration: none;
  font-size: 14px;
  color: #8a674d;
  font-weight: 600;
}

.product-card a:hover {
  text-decoration: underline;
}

/* =========================
   Product Detail Page
   ========================= */

.product-page {
  padding: 40px 8%;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-gallery .main-image {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: #f3ede7;
  aspect-ratio: 1 / 1;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumbs img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #f3ede7;
  aspect-ratio: 1 / 1;
}

.product-info h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.2;
}

.product-info .subtitle {
  margin: 0 0 18px;
  font-size: 18px;
  color: #8a674d;
  line-height: 1.7;
}

.product-info > p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.product-meta h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.product-meta p,
.product-meta li {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.product-meta ul {
  margin: 0;
  padding-left: 20px;
}

/* =========================
   Lists
   ========================= */

.clean-list {
  padding-left: 18px;
  color: #555;
  line-height: 2;
  margin: 0;
}

/* =========================
   Contact Form
   ========================= */

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddcfc2;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: #fff;
  color: #222;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b48d70;
  box-shadow: 0 0 0 3px rgba(180, 141, 112, 0.12);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid #eadfd4;
  color: #777;
  font-size: 14px;
  background: #fff;
}

/* =========================
   Home Page Optional Blocks
   ========================= */

.home-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.home-highlight-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.home-highlight-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.home-highlight-card p {
  margin: 0;
  line-height: 1.8;
  color: #555;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 18px 24px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-overlay h1 {
    font-size: 38px;
  }

  .hero-content {
    padding: 84px 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .site-header nav {
    justify-content: center;
    gap: 14px 18px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px 48px;
  }

  .section-intro,
  .content-section,
  .product-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature-grid,
  .info-grid,
  .home-section-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p,
  .page-hero-overlay p {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .page-hero {
    height: 320px;
  }

  .page-hero-overlay h1 {
    font-size: 30px;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 72px 0;
  }

  .hero-content h1 {
    font-size: 34px;
  }

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

  .product-info h1 {
    font-size: 28px;
  }

  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}
