/* =========================================================
   MALA MUJER — UNIVERSES V2
   Shared system for Eros / Medusa / Musas / Ninfas / Olimpo
   ========================================================= */

:root {
  --obsidian: #0b0a08;
  --soft-black: #171513;
  --warm-ivory: #f3eee5;
  --soft-champagne: #c7b08a;
  --warm-taupe: #b8a58d;
  --deep-coffee: #59483a;
  --mist: rgba(243, 238, 229, 0.72);
  --line-dark: rgba(243, 238, 229, 0.08);
  --line-light: rgba(23, 21, 19, 0.12);
  --page-gutter: clamp(24px, 4.2vw, 72px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  background: var(--obsidian);
  color: var(--warm-ivory);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  width: 100%;
  min-height: 78px;
  padding: 17px var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(11, 10, 8, 0.86);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.94;
}

.wordmark {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.4vw, 38px);
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 229, 0.76);
}

.nav a {
  position: relative;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--warm-ivory);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--soft-champagne);
  transition: width 0.35s ease;
}

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

/* =========================================================
   LABEL
   ========================================================= */

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 229, 0.54);
}

/* =========================================================
   UNIVERSE SHOWCASE
   Desktop remains the original editorial composition:
   copy left / image right.
   ========================================================= */

.collection-showcase {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(44px, 5.5vw, 92px);
  padding: clamp(58px, 7vw, 96px) var(--page-gutter) clamp(72px, 8vw, 112px);
  background:
    radial-gradient(circle at 20% 52%, rgba(199, 176, 138, 0.045), transparent 28%),
    var(--obsidian);
}

.collection-showcase-text {
  width: 100%;
  max-width: 535px;
  justify-self: start;
  padding-bottom: 2vh;
}

.collection-showcase-text h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(5rem, 8.2vw, 8rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
  color: var(--warm-ivory);
}

.collection-motto {
  font-family: "Monsieur La Doulaise", cursive;
  font-size: clamp(2.35rem, 3.4vw, 3.35rem);
  line-height: 0.95;
  color: rgba(243, 238, 229, 0.9);
  margin-bottom: 30px;
}

.collection-summary {
  max-width: 450px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--mist);
  margin-bottom: 34px;
}

.collection-showcase-image {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.collection-showcase-image img {
  width: 100%;
  height: min(78svh, 820px);
  min-height: 570px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.collection-showcase-image:hover img {
  transform: scale(1.018);
}

/* =========================================================
   CTA
   ========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: var(--warm-ivory);
  color: var(--obsidian);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;
}

.btn-primary:hover {
  background: var(--soft-champagne);
  transform: translateY(-2px);
}

/* =========================================================
   PRODUCTS
   ========================================================= */

.products-section {
  padding: clamp(84px, 9vw, 132px) var(--page-gutter);
  background: var(--warm-ivory);
  color: var(--soft-black);
}

.products-intro {
  max-width: 820px;
  margin-bottom: clamp(42px, 5vw, 64px);
}

.products-intro .section-label {
  color: var(--deep-coffee);
}

.products-intro h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 17px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.products-grid-medusa {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

.product-card {
  min-width: 0;
}

.product-image {
  overflow: hidden;
  background: #e7e0d6;
}

.product-image img {
  width: 100%;
  height: clamp(420px, 45vw, 620px);
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.product-info {
  padding-top: 16px;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 4px;
}

.product-price {
  font-size: 0.84rem;
  color: var(--deep-coffee);
}

.product-type {
  font-size: 0.78rem;
  color: var(--deep-coffee);
  margin-bottom: 5px;
}

.product-old-price {
  font-size: 0.78rem;
  color: var(--deep-coffee);
  text-decoration: line-through;
  opacity: 0.65;
  margin-bottom: 2px;
}

.sale-price {
  color: var(--soft-black);
  font-weight: 600;
}

/* =========================================================
   HELP / SHARED LOWER CONTENT
   ========================================================= */

.help-intro {
  padding: 140px var(--page-gutter) 60px;
  background: var(--obsidian);
  color: var(--warm-ivory);
  text-align: center;
}

.help-intro h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  margin-top: 14px;
}

.help-intro .section-label {
  color: var(--soft-champagne);
}

.help-block {
  padding: 90px var(--page-gutter);
  background: var(--warm-ivory);
  color: var(--soft-black);
  border-top: 1px solid var(--line-light);
}

.help-block.dark {
  background: #16120f;
  color: var(--warm-ivory);
}

.help-block .section-label {
  color: var(--deep-coffee);
}

.help-block.dark .section-label {
  color: var(--soft-champagne);
}

.help-block h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin: 14px 0 42px;
}

.help-subblock {
  max-width: 720px;
  margin-bottom: 40px;
}

.help-subblock h3 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: inherit;
}

.help-subblock p {
  color: inherit;
  opacity: 0.85;
}

.help-note {
  font-size: 0.88rem;
  opacity: 0.65;
  margin-top: 14px;
}

.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.size-table th,
.size-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.92rem;
}

.size-table th {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--deep-coffee);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  min-height: 280px;
  padding: 72px var(--page-gutter) 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 56px;
  background: var(--obsidian);
  border-top: 1px solid var(--line-dark);
}

.footer-brand {
  font-size: 0.76rem;
  letter-spacing: 0.4em;
  margin-bottom: 12px;
}

.footer > div:first-child > p:last-child {
  font-family: "Monsieur La Doulaise", cursive;
  font-size: 2rem;
  line-height: 1;
  color: rgba(243, 238, 229, 0.82);
}

.footer-links {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: 520px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 238, 229, 0.72);
}

.footer-links a {
  position: relative;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--soft-champagne);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--warm-ivory);
}

.footer-links a:hover::after {
  width: 100%;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 980px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 70px;
  }

  .nav {
    gap: 16px;
    font-size: 0.63rem;
  }

  .collection-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 70px;
    padding-bottom: 82px;
  }

  .collection-showcase-text {
    max-width: 700px;
  }

  .collection-showcase-text h1 {
    font-size: clamp(5rem, 13vw, 7.5rem);
  }

  .collection-showcase-image img {
    height: 66svh;
    min-height: 500px;
  }

  .products-grid,
  .products-grid-medusa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image img {
    height: 520px;
  }

  .footer {
    padding-top: 62px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    min-height: 64px;
    padding: 14px 18px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .wordmark {
    font-size: 0.64rem;
    letter-spacing: 0.28em;
  }

  .nav {
    gap: 9px;
    font-size: 0.53rem;
    letter-spacing: 0.08em;
  }

  .collection-showcase {
    gap: 42px;
    padding: 60px 20px 68px;
  }

  .collection-showcase-text {
    max-width: 100%;
    padding-bottom: 0;
  }

  .collection-showcase-text h1 {
    font-size: clamp(4.6rem, 20vw, 6.4rem);
    line-height: 0.84;
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .collection-motto {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
    margin-bottom: 25px;
  }

  .collection-summary {
    max-width: 100%;
    font-size: 0.87rem;
    line-height: 1.85;
    margin-bottom: 28px;
  }

  .btn-primary {
    min-height: 48px;
    padding: 0 23px;
    font-size: 0.72rem;
  }

  .collection-showcase-image img {
    height: 68svh;
    min-height: 430px;
  }

  .products-section {
    padding: 72px 20px 82px;
  }

  .products-intro {
    margin-bottom: 38px;
  }

  .products-intro h2 {
    font-size: clamp(2.5rem, 11vw, 3.7rem);
    line-height: 0.98;
  }

  .products-grid,
  .products-grid-medusa {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-image img {
    height: 470px;
  }

  .product-info {
    padding-top: 14px;
  }

  .footer {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 20px 42px;
  }

  .footer-links {
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 100%;
    gap: 12px 22px;
  }
}

/* =========================================================
   MOTION
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  .collection-showcase-text {
    animation: universeTextIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .collection-showcase-image {
    animation: universeImageIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
  }

  .products-intro,
  .product-card {
    animation: universeRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .product-card:nth-child(2) {
    animation-delay: 0.06s;
  }

  .product-card:nth-child(3) {
    animation-delay: 0.12s;
  }

  .product-card:nth-child(4) {
    animation-delay: 0.18s;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
