@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #f8f1e8;
  --paper: #fffaf3;
  --ink: #31271f;
  --soft: #7d6654;
  --line: #e5d3c2;
  --sand: #e6d2bf;
  --green: #5f6538;
  --green-dark: #404626;
  --green-soft: #dfe2cf;
  --green-pale: #eef0e4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(223,226,207,.95), transparent 34rem),
    linear-gradient(180deg, #fbf7f1 0%, var(--cream) 100%);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

.site {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 34px 18px 48px;
}

.lang-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.lang-card {
  width: min(100%, 520px);
  text-align: center;
  background: rgba(255,250,243,.82);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px 18px;
  box-shadow: 0 24px 70px rgba(64,70,38,.12);
}

.logo-img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.landing-logo {
  width: 102px;
  height: 102px;
  margin-bottom: 12px;
}

.mini, .section-label, .tag {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0 auto 14px;
  max-width: 520px;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: clamp(44px, 11vw, 68px);
  line-height: .9;
  letter-spacing: -.8px;
}

.lang-card h1 {
  font-size: clamp(46px, 12vw, 76px);
  margin-bottom: 10px;
}

.intro {
  margin: 0 auto;
  max-width: 430px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.65;
}

.language-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 360px;
}

.language-buttons a,
.category-button,
.subcategory-button,
.product-card a,
.format-button {
  display: block;
  padding: 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.language-buttons a:active,
.category-button:active,
.subcategory-button:active,
.product-card a:active {
  transform: scale(.98);
}

.language-buttons a:first-child,
.category-button,
.product-card a.primary,
.format-button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(64,70,38,.16);
}

.language-buttons a:last-child,
.subcategory-button,
.format-button.secondary {
  background: var(--green-soft);
  color: var(--green-dark);
}

.hero-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  border: 1px solid var(--line);
  margin: 20px 0 0;
  box-shadow: 0 24px 70px rgba(64,70,38,.14);
}

.brand {
  text-align: center;
  padding: 18px 18px 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.back {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch {
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.search {
  width: 100%;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.category-grid, .subcategory-grid, .product-grid {
  display: grid;
  gap: 16px;
}

.category-card {
  min-height: 205px;
  padding: 24px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(64,70,38,.10);
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .85;
  background-size: cover;
  background-position: center;
}

.category-card.skincare::before {
  background:
    radial-gradient(circle at 28% 32%, #fff 0 10%, transparent 11%),
    linear-gradient(135deg, var(--green-pale), #dfc9b4);
}

.category-card.bodycare::before {
  background:
    radial-gradient(circle at 24% 32%, #fff8ec 0 10%, transparent 11%),
    linear-gradient(135deg, #efe6d8, #c9d0ad);
}

.category-card.haircare::before {
  background:
    radial-gradient(circle at 72% 34%, #fffaf3 0 10%, transparent 11%),
    linear-gradient(135deg, #dfe2cf, #b99f86);
}

.category-card.wellness::before {
  background:
    radial-gradient(circle at 42% 40%, #fffaf3 0 11%, transparent 12%),
    linear-gradient(135deg, #eef0e4, #8f9860);
}

.category-card.habits::before {
  background:
    repeating-linear-gradient(90deg, #e8d6c3 0 26px, #f7eee5 26px 42px, var(--green-soft) 42px 52px);
}

.category-card.home::before {
  background:
    radial-gradient(circle at 70% 38%, #fff8ec 0 11%, transparent 12%),
    linear-gradient(135deg, #ead8c6, #9fa47a);
}

.category-card.lifestyle::before {
  background-image: url('../assets/images/rituals.png');
}

.category-card > * { position: relative; z-index: 1; }

.category-card h2, .subcategory-card h2, .empty-card h2 {
  margin: 0 0 8px;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.category-card p, .subcategory-card p, .empty-card p {
  margin: 0 0 18px;
  color: var(--soft);
  line-height: 1.55;
  font-size: 14px;
}

.category-button { width: fit-content; }

.subcategory-card, .empty-card {
  padding: 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255,250,243,.82);
  box-shadow: 0 18px 45px rgba(64,70,38,.08);
}

.empty-card {
  text-align: center;
  padding: 28px 22px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(64,70,38,.08);
}

.product-photo {
  height: 160px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, #fffaf3 0 18%, transparent 19%),
    linear-gradient(135deg, var(--green-soft), #ead7c5);
  margin-bottom: 16px;
}

.product-card h2 {
  margin: 0 0 8px;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.product-card p:not(.tag) {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.55;
  font-size: 14px;
}

.product-actions {
  display: grid;
  gap: 10px;
}

footer {
  text-align: center;
  padding: 24px 0 0;
}

footer p {
  margin: 5px 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .site { padding-top: 52px; }
  .category-card { min-height: 250px; }
  .hero-photo { max-height: 270px; }
}


/* Compact skincare catalog cards */
.compact-product {
  padding: 24px 20px;
}

.compact-product h2 {
  margin-bottom: 6px;
}

.brand-name {
  margin: 0 0 10px !important;
  color: var(--green) !important;
  font-weight: 800;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rating-line {
  margin: 0 0 18px !important;
  color: var(--green-dark) !important;
  font-weight: 800;
  font-size: 15px !important;
}

.perfect-for {
  margin: 0 0 18px;
}

.perfect-for p {
  margin: 4px 0 !important;
  color: var(--soft) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}


/* Editorial product page refinement */
body {
  background:
    radial-gradient(circle at top left, rgba(223,226,207,.82), transparent 34rem),
    linear-gradient(180deg, #fbf7f1 0%, #f7f2ea 100%);
}

.site {
  width: min(100%, 760px);
}

.brand {
  border-bottom: 1px solid var(--line);
  padding: 18px 18px 34px;
}

.brand::after {
  content: "";
  display: block;
  width: min(100%, 680px);
  height: 210px;
  margin: 34px auto 0;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,250,243,.52), rgba(255,250,243,.12)),
    url('../assets/images/rituals.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(64,70,38,.10);
}

.product-header::after {
  display: none;
}

.search {
  border: 0;
  border-bottom: 1px solid rgba(64,70,38,.55);
  border-radius: 0;
  background: transparent;
  padding: 15px 2px 15px 36px;
  margin: 0 0 10px;
  box-shadow: none;
  background-image:
    radial-gradient(circle at 11px 18px, transparent 7px, rgba(64,70,38,.75) 7.5px, rgba(64,70,38,.75) 8.5px, transparent 9px),
    linear-gradient(45deg, transparent 21px, rgba(64,70,38,.75) 21px, rgba(64,70,38,.75) 23px, transparent 23px);
  background-repeat: no-repeat;
  background-size: 34px 34px, 34px 34px;
  background-position: 0 6px, 0 6px;
}

.search:focus {
  outline: none;
  border-bottom-color: var(--green-dark);
}

.product-grid {
  gap: 0;
}

.product-card,
.compact-product,
.editorial-product {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 30px 0 !important;
}

.editorial-product {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
}

.product-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-family: Cormorant Garamond, Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  margin-top: 4px;
}

.editorial-product h2 {
  font-size: 34px;
  margin: 0 0 8px;
}

.brand-name {
  margin: 0 0 12px !important;
  color: var(--green) !important;
  font-weight: 800;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}

.rating-line {
  margin: 0 0 18px !important;
  color: var(--green-dark) !important;
  font-weight: 800;
  font-size: 15px !important;
}

.perfect-for {
  margin: 0 0 22px;
}

.perfect-for p {
  margin: 4px 0 !important;
  color: var(--soft) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.editorial-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2px;
}

.product-card a,
.text-link {
  display: inline-block !important;
  width: auto !important;
  background: transparent !important;
  color: var(--green-dark) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 5px !important;
  border-bottom: 1px solid var(--green-dark);
  text-align: left !important;
  font-weight: 800;
}

.text-link::after,
.product-card a::after {
  content: " →";
}

.product-card a:hover,
.text-link:hover {
  color: var(--green) !important;
  border-bottom-color: var(--green);
}

.category-card {
  box-shadow: 0 20px 55px rgba(64,70,38,.08);
}

@media (max-width: 560px) {
  .site {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand::after {
    height: 170px;
    margin-top: 28px;
    border-radius: 28px;
  }

  .editorial-product {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0 !important;
  }

  .product-mark {
    width: 50px;
    height: 50px;
    font-size: 27px;
  }

  .editorial-actions {
    grid-column: 1;
  }

  .editorial-product h2 {
    font-size: 30px;
  }
}


/* Final editorial refinement */
.site {
  width: min(100%, 980px);
  padding-left: 24px;
  padding-right: 24px;
}

.brand {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.brand::after {
  width: min(100%, 760px);
  height: 245px;
}

.search {
  max-width: 760px;
  display: block;
  margin: 0 auto 18px;
  color: rgba(49,39,31,.68);
}

.search::placeholder {
  color: rgba(125,102,84,.72);
}

.product-grid {
  width: min(100%, 880px);
  margin: 0 auto;
}

.editorial-product {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  padding: 42px 0 46px !important;
}

.editorial-product:first-child {
  padding-top: 38px !important;
}

.product-mark {
  display: none !important;
}

.product-copy {
  width: min(100%, 700px);
}

.editorial-product h2 {
  font-size: clamp(27px, 4vw, 32px);
  line-height: 1.02;
  margin-bottom: 10px;
  max-width: 650px;
}

.brand-name {
  font-size: 11px !important;
  letter-spacing: 2px;
  margin-bottom: 14px !important;
}

.rating-line {
  font-size: 14px !important;
  margin-bottom: 20px !important;
}

.perfect-for {
  margin-bottom: 28px;
}

.perfect-for p {
  font-size: 15px !important;
}

.editorial-actions {
  grid-column: 1 !important;
  margin-top: 12px;
}

.text-link,
.product-card a {
  font-size: 15px;
  padding-bottom: 4px !important;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.text-link:hover,
.product-card a:hover {
  transform: translateX(3px);
}

@media (min-width: 900px) {
  .product-copy {
    margin-left: 84px;
  }
}

@media (max-width: 560px) {
  .site {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand::after {
    height: 185px;
  }

  .product-grid,
  .search {
    width: 100%;
  }

  .product-copy {
    margin-left: 0;
  }

  .editorial-product {
    padding: 34px 0 38px !important;
  }
}


/* Reading catalog refinements */
.variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  max-width: 620px;
}

.variant-actions .text-link,
.variant-actions a {
  margin-right: 0;
}
