:root {
  --ruby-950: #32101f;
  --ruby-900: #48132b;
  --ruby-800: #641c3f;
  --ruby-700: #812954;
  --ruby-600: #a13b6a;
  --pink-300: #f3a9c7;
  --pink-200: #f9cfdf;
  --pink-100: #fceaf1;
  --pearl: #fffaf6;
  --cream: #fff4e8;
  --paper: #ffffff;
  --ink: #25171e;
  --muted: #705963;
  --line: #e8d7df;
  --shadow: 0 26px 80px rgba(72, 19, 43, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #176fa6;
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  color: var(--ruby-900);
  background: white;
  box-shadow: var(--shadow);
  font-weight: 800;
}
.skip:focus { transform: none; }

.topline {
  padding: 0.55rem 1rem;
  color: #fff;
  background: var(--ruby-950);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: 88px;
  padding: 0.8rem clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(232, 215, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.store-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  text-decoration: none;
}
.store-brand img {
  width: 64px;
  height: 56px;
  object-fit: contain;
}
.store-brand span {
  color: var(--ruby-900);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.45rem;
}
.store-brand em { color: var(--ruby-600); font-weight: 400; }
.store-header nav { display: flex; align-items: center; gap: 1.6rem; }
.store-header nav a { text-decoration: none; font-size: 0.84rem; font-weight: 800; }
.store-header nav a:hover { color: var(--ruby-600); }
.cart-button {
  justify-self: end;
  min-height: 44px;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border: 1px solid var(--ruby-800);
  border-radius: 999px;
  color: var(--ruby-800);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  margin-left: 0.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 50%;
  color: white;
  background: var(--ruby-800);
  font-size: 0.72rem;
}

.shop-hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 8vw, 9rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(243, 169, 199, 0.54), transparent 26rem),
    linear-gradient(135deg, #fff 5%, var(--pearl) 58%, #fae4ed 100%);
}
.shop-hero::before,
.shop-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.shop-hero::before {
  width: 420px;
  height: 420px;
  right: -215px;
  bottom: -215px;
  border: 72px solid rgba(100, 28, 63, 0.045);
}
.shop-hero::after {
  width: 10px;
  height: 10px;
  left: 5.5%;
  top: 18%;
  background: var(--ruby-600);
  box-shadow: 34px 10px 0 3px var(--pink-300), 64px -6px 0 1px var(--ruby-800);
}
.eyebrow {
  margin: 0;
  color: var(--ruby-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.product-category {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--ruby-600);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.hero-copy h1 {
  margin: 0.7rem 0 1.25rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.055em;
}
.hero-copy h1 em { color: var(--ruby-600); font-weight: 400; }
.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 1.75rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ruby-800);
  box-shadow: 0 10px 28px rgba(100, 28, 63, 0.2);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.primary:hover { background: var(--ruby-950); transform: translateY(-1px); }
.primary:disabled { cursor: not-allowed; opacity: 0.48; transform: none; }

.editorial-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border-radius: 48% 48% 28px 28px;
  color: white;
  background:
    radial-gradient(circle at 50% 5%, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(155deg, var(--ruby-950), var(--ruby-700));
  box-shadow: 0 40px 90px rgba(50, 16, 31, 0.28);
  overflow: hidden;
}
.editorial-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: 30px;
  border: 35px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.editorial-card span,
.editorial-card small {
  position: relative;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.editorial-card span { color: var(--pink-300); }
.editorial-card strong {
  position: relative;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.86;
}
.editorial-card small { color: var(--pink-200); }

.collection { padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 7vw, 8rem); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0.45rem 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
}
.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.status {
  min-height: 1.5rem;
  margin: 1.4rem 0;
  color: var(--ruby-700);
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 50px rgba(72, 19, 43, 0.06);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, var(--pink-100), var(--pearl));
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media span {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.36rem 0.55rem;
  border-radius: 999px;
  color: var(--ruby-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.product-copy { padding: 1.2rem; }
.product-copy h3 { margin: 0; font-size: 1.1rem; }
.product-copy > p { margin: 0.45rem 0 1rem; color: var(--muted); font-size: 0.84rem; }
.product-copy label { display: grid; gap: 0.38rem; }
.product-copy select {
  width: 100%;
  min-height: 45px;
  padding: 0.65rem 2.2rem 0.65rem 0.75rem;
  border: 1px solid #cdb8c1;
  border-radius: 10px;
  color: var(--ink);
  background: white;
}
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.product-row strong { color: var(--ruby-900); font-size: 1.15rem; }
.product-row button {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ruby-800);
  font-weight: 800;
  cursor: pointer;
}

.promise {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 8vw, 9rem);
  color: white;
  background: linear-gradient(140deg, var(--ruby-950), var(--ruby-800));
  text-align: center;
}
.promise > p { color: var(--pink-300); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.17em; }
.promise h2 {
  margin: 0.7rem 0 2.2rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
}
.promise h2 em { color: var(--pink-300); font-weight: 400; }
.promise div { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }
.promise span { padding: 0.55rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: var(--pink-200); font-size: 0.76rem; font-weight: 700; }

.cart {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(105%);
  color: var(--ink);
  background: white;
  box-shadow: -25px 0 70px rgba(50, 16, 31, 0.22);
  transition: transform 220ms ease;
}
.cart.open { transform: none; }
.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cart-head small { color: var(--ruby-600); font-weight: 800; letter-spacing: 0.14em; }
.cart-head h2 { margin: 0.25rem 0 0; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; font-weight: 400; }
.cart-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--ruby-900);
  background: var(--pink-100);
  font-size: 1.5rem;
  cursor: pointer;
}
.cart-items { overflow-y: auto; padding: 1.2rem; }
.cart-items > p { color: var(--muted); }
.cart-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 74px; height: 88px; border-radius: 9px; object-fit: cover; background: var(--pink-100); }
.cart-line div { display: grid; gap: 0.18rem; min-width: 0; }
.cart-line strong,.cart-line small { overflow: hidden; text-overflow: ellipsis; }
.cart-line small { color: var(--muted); }
.cart-line button { border: 0; color: var(--ruby-600); background: transparent; text-decoration: underline; cursor: pointer; font-size: 0.72rem; font-weight: 800; }
.cart-total { padding: 1.2rem; border-top: 1px solid var(--line); background: var(--pearl); }
.cart-total > span { font-size: 0.82rem; font-weight: 700; }
.cart-total > strong { float: right; color: var(--ruby-900); font-size: 1.2rem; }
.cart-total > small { display: block; clear: both; padding-top: 0.5rem; color: var(--muted); }
.cart-total .primary { width: 100%; margin-top: 1rem; }
.cart-total > p { min-height: 1.3rem; margin: 0.7rem 0 0; color: var(--ruby-700); font-size: 0.8rem; font-weight: 700; }
.scrim {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: rgba(37, 23, 30, 0.55);
  backdrop-filter: blur(3px);
  transition: opacity 200ms ease;
}
.scrim.open { pointer-events: auto; opacity: 1; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem clamp(1.2rem, 7vw, 8rem);
  border-top: 1px solid var(--line);
  background: white;
}
footer img { width: 76px; max-height: 62px; object-fit: contain; }
footer p { margin: 0; color: var(--muted); font-size: 0.8rem; }
footer a { color: var(--ruby-700); font-weight: 800; }

@media (max-width: 920px) {
  .store-header { grid-template-columns: 1fr auto; gap: 1rem; }
  .store-header nav { grid-column: 1 / -1; order: 3; justify-content: center; padding-top: 0.5rem; border-top: 1px solid var(--line); }
  .shop-hero { min-height: auto; grid-template-columns: 1fr; }
  .editorial-card { min-height: 350px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topline { font-size: 0.58rem; }
  .store-header { padding-inline: 0.8rem; }
  .store-brand img { width: 48px; height: 46px; }
  .store-brand span { font-size: 1.1rem; }
  .store-header nav { gap: 0.8rem; overflow-x: auto; justify-content: flex-start; }
  .store-header nav a { white-space: nowrap; font-size: 0.76rem; }
  .cart-button { padding-inline: 0.75rem; }
  .shop-hero { padding-top: 4.5rem; }
  .editorial-card { min-height: 300px; border-radius: 40% 40% 22px 22px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; text-align: left; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 62px 1fr auto; }
  .cart-line img { width: 62px; height: 74px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
