:root {
  --bg-night: #120f1f;
  --bg-plum: #241534;
  --bg-ember: #543038;
  --panel: rgba(27, 18, 44, 0.76);
  --panel-strong: rgba(20, 14, 36, 0.94);
  --line: rgba(255, 229, 196, 0.18);
  --text: #f8f0e5;
  --muted: #d8c8bb;
  --gold: #e8c27d;
  --rose: #f3b3a2;
  --mint: #a7d9c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(232, 194, 125, 0.12), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(167, 217, 200, 0.12), transparent 18%),
    radial-gradient(circle at 80% 15%, rgba(243, 179, 162, 0.14), transparent 24%),
    linear-gradient(160deg, #09070f 0%, var(--bg-night) 35%, var(--bg-plum) 68%, var(--bg-ember) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 6rem;
  left: -10rem;
  background: rgba(168, 223, 255, 0.12);
}

body::after {
  right: -8rem;
  bottom: 8rem;
  background: rgba(255, 197, 140, 0.14);
}

a,
button {
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1.5rem clamp(1.25rem, 2vw, 2.5rem) 3rem;
}

.topbar,
.hero-content,
.section,
.footer {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(11, 9, 20, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(22px);
}

.brand {
  width: min(280px, 48vw);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover,
.button:focus-visible,
.cart-button:hover,
.cart-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.95;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero-copy h1,
.section-heading h2,
.ritual-panel h2,
.about-card h2,
.cart-header h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.7rem);
  max-width: 100%;
  overflow-wrap: normal;
}

.hero-text,
.section-heading p,
.featured-ritual p,
.about-card p,
.ritual-list,
.checkout-note,
.product-description {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow,
.card-label,
.product-badge {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.73rem;
  color: var(--gold);
}

.hero-actions,
.featured-price-row,
.product-meta,
.summary-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button,
.cart-button,
.icon-button {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button:disabled:hover,
.button:disabled:focus-visible {
  transform: none;
}

.button,
.cart-button {
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, #f0c588 0%, #d58d7e 100%);
  color: #170f17;
  font-weight: 700;
}

.button-secondary,
.cart-button {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.button-block {
  width: 100%;
  justify-content: center;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1224;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card,
.collection-card,
.product-card,
.ritual-panel,
.about-card,
.cart-drawer {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-card {
  min-height: 460px;
  border-radius: 2rem;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 13, 0.04) 0%, rgba(8, 6, 13, 0.18) 45%, rgba(8, 6, 13, 0.68) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.featured-ritual {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(100%, 380px);
  padding: 1.5rem;
  border-radius: 1.6rem;
  background: rgba(21, 13, 33, 0.82);
  border: 1px solid rgba(255, 229, 196, 0.12);
}

.price,
.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.section {
  padding: 2rem clamp(1.25rem, 2vw, 2.5rem) 4.5rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 2rem;
}

.collection-grid,
.product-grid {
  display: grid;
  gap: 1.25rem;
}

.collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card,
.product-card,
.about-card,
.gallery-card {
  border-radius: 1.6rem;
  padding: 1.5rem;
}

.collection-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-size: 1.3rem;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  padding: 0;
}

.product-badge::before {
  content: "Current Offering";
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.product-card .product-badge,
.product-card .product-name,
.product-card .product-description,
.product-card .product-options,
.product-card .product-meta {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.product-card .product-badge,
.product-card .product-name {
  padding-top: 0.2rem;
}

.product-card .product-meta {
  padding-bottom: 1.5rem;
}

.product-meta {
  margin-top: auto;
  justify-content: space-between;
}

.product-options {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}

.product-options span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-options select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.product-options select:focus-visible {
  outline: 2px solid rgba(232, 194, 125, 0.72);
  outline-offset: 2px;
}

.product-options option {
  color: #170f17;
}

.ritual-panel,
.about-card,
.gallery-card {
  border-radius: 2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.ritual-panel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.ritual-list {
  margin: 0;
  padding-left: 1.25rem;
}

.ritual-guide-image {
  width: 100%;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 229, 196, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.about-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.gallery-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.gallery-card img {
  width: 100%;
  border-radius: 1.35rem;
  object-fit: cover;
  border: 1px solid rgba(255, 229, 196, 0.12);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 3rem;
  color: var(--muted);
}

.footer img {
  width: 3rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.cart-drawer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100vw - 2rem));
  border-radius: 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(calc(100% + 2rem));
  transition: transform 260ms ease;
  z-index: 30;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.icon-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-actions {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.cart-item-actions .button {
  min-width: 7.5rem;
  padding: 0.7rem 0.9rem;
  line-height: 1;
}

.cart-item p,
.cart-item strong {
  margin: 0;
}

.cart-item small {
  color: var(--muted);
}

.cart-footer {
  display: grid;
  gap: 0.8rem;
}

.summary-row {
  justify-content: space-between;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.5);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.checkout-complete {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.checkout-complete img {
  width: 5rem;
}

.checkout-complete h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.checkout-complete p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .hero-content,
  .ritual-panel,
  .about-layout,
  .product-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar {
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

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

  .hero-card {
    min-height: 380px;
  }

  .hero-image {
    min-height: 380px;
  }

  .featured-ritual {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-actions {
    justify-items: stretch;
  }

  .cart-item-actions .button {
    width: 100%;
  }
}
