/* LA ELIO — rhode-style minimal. */

:root {
  --bg: #f0efeb;
  --tile: #e7e6e1;
  --ink: #1f1f1d;
  --ink-soft: #8b8a85;
  --green: #1b2f25;
  --cream: #f0efeb;
  --black: #1f1f1d;
  --radius: 16px;
  --pad: clamp(0.75rem, 1.5vw, 1.25rem);
  --sans: 'Inter', -apple-system, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- announce + header ---------- */

.announce {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 0.6rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.9rem calc(var(--pad) * 2);
  background: rgba(244, 242, 237, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  text-transform: lowercase;
}

.nav { display: flex; gap: 1.8rem; }
.nav-right { justify-content: flex-end; }

.nav a, .cart-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s;
}

.nav a:hover, .cart-btn:hover { opacity: 0.55; }

/* ---------- pills ---------- */

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s, opacity 0.25s;
}

.pill:hover { transform: scale(1.03); }
.pill:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.pill-dark { background: var(--black); color: var(--cream); }
.pill-light { background: var(--cream); color: var(--ink); }
.pill-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  height: min(92vh, 950px);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-zoom 9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.header.hidden { transform: translateY(-110%); }
.header { transition: transform 0.35s ease; }

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  background: linear-gradient(transparent, rgba(10, 18, 14, 0.45));
}

.hero-overlay h1 {
  color: var(--cream);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  max-width: 18ch;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 2.2rem 0 1rem;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-video { animation: none; }
  .header, .buybar { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- shop grid ---------- */

.shop { padding: 1rem var(--pad) 0; }

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

.tile-wide { grid-column: span 2; }

.tile {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--tile);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

/* product tile */

.tile-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  z-index: 2;
}

.tile-tag em { font-style: normal; color: var(--ink-soft); }

.tile-media {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 1rem;
}

.tile-media img { max-height: 340px; width: auto; }

.img-main {
  filter: drop-shadow(0 18px 28px rgba(58, 58, 55, 0.25));
  transition: opacity 0.35s;
}

.img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

.product-tile:hover .img-alt { opacity: 1; }
.product-tile:hover .img-main { opacity: 0; }

/* duo + kit composite shots from the single cutout */
.media-duo img, .media-kit img {
  max-height: 300px;
  filter: drop-shadow(0 18px 28px rgba(31, 31, 29, 0.22));
  transition: transform 0.35s;
}

.media-duo img:first-child { transform: rotate(-7deg) translateX(16%); }
.media-duo img:last-child { transform: rotate(6deg) translateX(-16%); }

.media-kit img { max-height: 260px; }
.media-kit img:nth-child(1) { transform: rotate(-9deg) translateX(38%); }
.media-kit img:nth-child(2) { transform: translateY(-4%); z-index: 2; position: relative; }
.media-kit img:nth-child(3) { transform: rotate(9deg) translateX(-38%); }

.product-tile:hover .media-duo img:first-child { transform: rotate(-9deg) translateX(12%); }
.product-tile:hover .media-duo img:last-child { transform: rotate(8deg) translateX(-12%); }
.product-tile:hover .media-kit img:nth-child(1) { transform: rotate(-11deg) translateX(34%); }
.product-tile:hover .media-kit img:nth-child(3) { transform: rotate(11deg) translateX(-34%); }

.tile-info {
  position: relative;
  z-index: 2;
  padding: 1.4rem;
  text-align: center;
  background: linear-gradient(transparent, var(--tile) 30%);
}

.tile-info h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0.5rem;
}

.tile-price { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }

.tile-price s, .pdp-price s, .buybar-info s { color: var(--ink-soft); font-weight: 400; margin-right: 0.2rem; }

.sale-badge {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.tile-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* content tile (cream story) */

.content-tile-bg,
.dark-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-tile-copy,
.dark-tile-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.content-tile-copy { background: linear-gradient(transparent, rgba(244, 242, 237, 0.92) 40%); }

.content-tile-copy h3,
.dark-tile-copy h3 {
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: lowercase;
}

.content-tile-copy p,
.dark-tile-copy p {
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 30ch;
}

.dark-tile { background: var(--green); }
.dark-tile-bg { opacity: 0.85; }
.dark-tile-copy { color: var(--cream); background: linear-gradient(transparent, rgba(20, 37, 29, 0.9) 45%); }

/* ---------- pdp ---------- */

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3.5rem, 8vh, 6rem) calc(var(--pad) * 2) 0;
  align-items: start;
}

.pdp-gallery { position: sticky; top: 90px; }

.pdp-main {
  background: var(--tile);
  border-radius: var(--radius);
  height: min(62vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdp-main img {
  max-height: 82%;
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(58, 58, 55, 0.2));
  transition: opacity 0.25s;
}

.pdp-main img.cover { max-height: 100%; max-width: 100%; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: none; }

.pdp-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; }

.pdp-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--tile);
  cursor: pointer;
  overflow: hidden;
  padding: 6px;
  transition: border-color 0.25s;
}

.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb:nth-child(n+2) img { object-fit: cover; border-radius: 9px; }
.pdp-thumb.active { border-color: var(--ink); }

.pdp-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.pdp-info h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  text-transform: lowercase;
}

.pdp-price { font-size: 1rem; font-weight: 600; margin: 0.7rem 0 1.2rem; }
.pdp-price span { color: var(--ink-soft); font-weight: 400; }

.pdp-desc { font-size: 0.92rem; line-height: 1.7; max-width: 46ch; margin-bottom: 1.6rem; }

.pdp-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2rem; }

.pdp-acc { border-top: 1px solid rgba(58, 58, 55, 0.15); }
.pdp-acc:last-of-type { border-bottom: 1px solid rgba(58, 58, 55, 0.15); }

.pdp-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: '+'; font-size: 1rem; font-weight: 400; }
.pdp-acc[open] summary::after { content: '−'; }

.pdp-acc p { font-size: 0.85rem; line-height: 1.65; color: var(--ink-soft); padding-bottom: 1.1rem; max-width: 50ch; }

/* ---------- sticky buy bar ---------- */

.buybar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 120%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(244, 242, 237, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(58, 58, 55, 0.1);
  border-radius: 999px;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  box-shadow: 0 12px 32px rgba(58, 58, 55, 0.16);
  z-index: 150;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.buybar.show { transform: translate(-50%, 0); }

.buybar img { height: 44px; width: auto; }

.buybar-info { display: flex; flex-direction: column; line-height: 1.3; }
.buybar-info strong { font-size: 0.8rem; font-weight: 600; text-transform: lowercase; }
.buybar-info span { font-size: 0.7rem; color: var(--ink-soft); }

.buybar .pill { padding: 0.7rem 1.4rem; }

/* ---------- ritual ---------- */

.ritual { padding: clamp(3.5rem, 8vh, 6rem) var(--pad) 0; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
}

.ritual-card {
  background: var(--tile);
  border-radius: var(--radius);
  padding: 2rem 1.8rem 2.4rem;
}

.ritual-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}

.ritual-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: lowercase;
  margin: 0.9rem 0 0.6rem;
}

.ritual-card p { font-size: 0.86rem; line-height: 1.65; color: var(--ink-soft); }

.ingredients {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 2.2rem 1rem 0;
  text-transform: lowercase;
}

/* ---------- values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
  padding: clamp(3.5rem, 8vh, 6rem) calc(var(--pad) * 2);
}

.value p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  text-transform: lowercase;
}

.value strong { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.value-label {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
}

/* ---------- social + footer ---------- */

.social {
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4rem) 1rem;
}

.social h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  text-transform: lowercase;
  margin-bottom: 1.4rem;
}

.footer {
  border-top: 1px solid rgba(31, 31, 29, 0.12);
  padding-top: clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 calc(var(--pad) * 2) 1.5rem;
}

.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a:hover { opacity: 0.55; }

.footer-note { font-size: 0.66rem; color: var(--ink-soft); text-transform: lowercase; }

.footer-wordmark {
  font-size: clamp(5rem, 19vw, 19rem);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  line-height: 0.78;
  text-align: center;
  color: var(--ink);
  margin-bottom: -0.08em;
  user-select: none;
}

/* ---------- cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 28, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 200;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--bg);
  color: var(--ink);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: none; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid rgba(58, 58, 55, 0.12);
}

.cart-header h3 { font-size: 1.2rem; font-weight: 500; text-transform: lowercase; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; }

.cart-empty { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 2rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(58, 58, 55, 0.1);
}

.cart-item img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  background: var(--tile);
  border-radius: 10px;
}

.cart-item-info { flex: 1; }

.cart-item-name { font-size: 0.95rem; font-weight: 600; text-transform: lowercase; }

.cart-item-meta { font-size: 0.68rem; color: var(--ink-soft); margin: 0.25rem 0 0.6rem; }

.cart-item-row { display: flex; justify-content: space-between; align-items: center; }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(58, 58, 55, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.qty-control button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
}

.qty-control span { font-size: 0.8rem; min-width: 1ch; text-align: center; }

.cart-item-price { font-size: 0.85rem; font-weight: 600; }

.remove-item {
  background: none;
  border: none;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
}

.cart-footer { padding: 1.4rem 1.6rem; border-top: 1px solid rgba(58, 58, 55, 0.12); }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.btn-checkout { width: 100%; }

.cart-note { font-size: 0.65rem; color: var(--ink-soft); text-align: center; margin-top: 0.7rem; text-transform: lowercase; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--black);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid, .ritual-grid, .values, .pdp { grid-template-columns: 1fr; }

  .tile-wide { grid-column: auto; }

  .pdp-gallery { position: static; }

  .buybar { width: calc(100% - 2rem); justify-content: space-between; }

  .tile { min-height: 480px; }

  .nav-left { display: none; }

  .header { grid-template-columns: auto 1fr; }
  .logo { justify-self: start; }
  .nav-right { justify-self: end; }

  .hero { height: 72vh; }
}
