:root {
  --cream: #fbf7f1;
  --milk: #fffdf9;
  --blush: #f3dfe1;
  --mahogany: #5c342d;
  --berry: #9f2f49;
  --gold: #bd9152;
  --sage: #65745e;
  --ink: #241c18;
  --muted: #7d6a60;
  --line: rgba(92, 52, 45, 0.14);
  --shadow: 0 28px 90px rgba(92, 52, 45, 0.15);
  --font-body: "Poppins", system-ui, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(251, 247, 241, 0.98)),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(92, 52, 45, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 52, 45, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 18px 58px rgba(92, 52, 45, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: block;
  width: 132px;
  height: 46px;
  overflow: hidden;
  border-radius: 999px;
}

.brand img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: 50% 58%;
  transform: translateY(-51px);
}

.header-cta,
.button,
.filter-pill,
.back-button,
.sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta,
.primary-button {
  border: 1px solid transparent;
  background: var(--mahogany);
  color: var(--milk);
}

.header-cta {
  padding: 0 16px;
}

.button {
  padding: 0 18px;
}

.header-cta:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: var(--berry);
}

.glass-button,
.quiet-button,
.back-button,
.sheet-close {
  border: 1px solid rgba(92, 52, 45, 0.16);
  background: rgba(255, 253, 249, 0.64);
  color: var(--mahogany);
}

.glass-button:hover,
.quiet-button:hover,
.back-button:hover,
.sheet-close:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 52, 45, 0.28);
  background: rgba(255, 253, 249, 0.94);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.8), rgba(255, 253, 249, 0.54));
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(680px, 72vh, 860px);
  margin: -18px auto 0;
  padding: 92px 0 54px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 650px;
  margin-top: 18px;
  color: var(--mahogany);
  font-size: clamp(4rem, 8vw, 7.7rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  min-height: 650px;
}

.hero-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 253, 249, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.main-image {
  position: absolute;
  inset: 44px 64px 34px 50px;
  border-radius: 44px;
}

.main-image img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 34px 38px rgba(92, 52, 45, 0.16));
  mix-blend-mode: multiply;
}

.floating-image {
  position: absolute;
  width: 210px;
  height: 250px;
  border-radius: 28px;
}

.floating-image img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.top-card {
  top: 12px;
  right: 2px;
}

.bottom-card {
  bottom: 24px;
  left: 0;
}

.hero-note {
  position: absolute;
  right: 8px;
  bottom: 60px;
  width: min(260px, 44vw);
  padding: 18px 20px;
  border-radius: 22px;
}

.hero-note span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  margin-top: 6px;
  color: var(--mahogany);
  font-family: var(--font-accent);
  font-size: 1.45rem;
  line-height: 1.1;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.56);
  box-shadow: 0 18px 55px rgba(92, 52, 45, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
}

.signal-strip div {
  position: relative;
  min-height: 88px;
  padding: 18px 24px 18px 74px;
  border: 1px solid rgba(92, 52, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.76);
}

.signal-strip div::before {
  position: absolute;
  top: 50%;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px),
    rgba(189, 145, 82, 0.16);
  box-shadow: inset 0 0 0 1px rgba(189, 145, 82, 0.28);
}

.signal-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.signal-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--mahogany);
  font-family: var(--font-accent);
  font-size: 1.55rem;
  line-height: 1.05;
}

.product-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.product-section {
  padding: 70px 0 0;
}

.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 16px;
}

.filter-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.72);
  color: var(--mahogany);
  font-size: 0.58rem;
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.is-selected {
  transform: translateY(-2px);
  background: var(--mahogany);
  color: var(--milk);
}

.gallery-count {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-select-wrap {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.66);
  box-shadow: 0 20px 60px rgba(92, 52, 45, 0.08);
  cursor: pointer;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(92, 52, 45, 0.13);
}

.product-media {
  display: grid;
  place-items: center;
  height: 282px;
  background: #fff;
}

.product-media img {
  width: min(78%, 218px);
  height: 236px;
  object-fit: contain;
}

.product-media.signature {
  background: #fff;
}

.product-media.garden {
  background: #fff;
}

.product-copy {
  display: flex;
  flex: 1;
  padding: 22px;
  flex-direction: column;
}

.product-copy h3 {
  margin-top: 10px;
  color: var(--mahogany);
  font-size: 2rem;
}

.product-copy p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-row span,
.collection-mini span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(189, 145, 82, 0.13);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  margin: 0;
  padding: 24px;
  background: rgba(36, 28, 24, 0.34);
  backdrop-filter: blur(12px);
}

.back-button {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255, 253, 249, 0.88);
}

.product-page-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 70px 28px 28px;
  border-radius: 34px;
}

.product-page-media {
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}

.product-page-media img {
  width: min(78%, 430px);
  height: 500px;
  object-fit: contain;
}

.product-page-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-page-copy h2 {
  margin-top: 12px;
  color: var(--mahogany);
  font-size: clamp(3rem, 5vw, 5.6rem);
}

#detail-subtitle {
  margin: 12px 0 0;
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 1.55rem;
  font-weight: 600;
}

#detail-description {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.size-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.68);
  color: var(--mahogany);
  cursor: pointer;
  text-align: center;
}

.size-option.is-selected {
  border-color: transparent;
  background: var(--mahogany);
  color: var(--milk);
}

.size-option span {
  min-width: 0;
  font-weight: 800;
  font-size: 0.72rem;
  white-space: nowrap;
}

.size-option strong {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
}

.product-summary {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: var(--mahogany);
  color: var(--milk);
}

.product-summary span {
  display: block;
  color: #e0bd7e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-summary strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-accent);
  font-size: 3rem;
  line-height: 1;
}

.product-summary p {
  margin: 10px 0 0;
  color: rgba(255, 253, 249, 0.76);
}

.product-summary .order-note {
  margin-top: 14px;
  color: rgba(255, 253, 249, 0.62);
  font-size: 0.78rem;
}

.site-footer {
  display: grid;
  place-items: center;
  padding: 58px 0 24px;
  color: var(--muted);
}

.site-footer img {
  width: 124px;
  height: 66px;
  object-fit: cover;
  object-position: 50% 58%;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: center;
  padding: 24px;
  background: rgba(36, 28, 24, 0.34);
  backdrop-filter: blur(12px);
}

.mood-sheet {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  margin: 0 auto;
  overflow: auto;
  padding: 24px 20px 20px;
  border-radius: 28px;
}

.sheet-close {
  position: absolute;
  top: 18px;
  right: 20px;
  min-height: 34px;
  padding: 0 14px;
  z-index: 2;
  background: rgba(255, 253, 249, 0.88);
}

.sheet-head {
  max-width: 720px;
  padding-right: 96px;
  margin-bottom: 16px;
}

.sheet-head h2 {
  margin-top: 6px;
  color: var(--mahogany);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.sheet-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sheet-step {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.44);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-title span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--mahogany);
  color: var(--milk);
  font-size: 0.68rem;
  font-weight: 800;
}

.step-title span.is-complete {
  background: var(--berry);
}

.step-title h3 {
  color: var(--mahogany);
  font-size: 1.22rem;
}

.step-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.recipient-step {
  transition: opacity 200ms ease;
}

.recipient-step.is-muted {
  opacity: 0.42;
  pointer-events: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.choice-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.choice-card.compact {
  min-height: 46px;
}

.choice-card:hover,
.choice-card.is-selected {
  border-color: rgba(159, 47, 73, 0.38);
  background: rgba(255, 253, 249, 0.92);
}

.choice-card.is-selected {
  background: var(--mahogany);
  color: var(--milk);
}

.choice-card strong {
  font-family: var(--font-accent);
  font-size: 1.08rem;
  line-height: 1;
}

.choice-card em {
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.35;
}

.choice-card.is-selected em {
  color: rgba(255, 253, 249, 0.72);
}

.sheet-result {
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.mood-result-head {
  margin-bottom: 8px;
}

.mood-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mood-product-card {
  display: flex;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mood-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(92, 52, 45, 0.12);
}

.mood-product-media {
  display: grid;
  place-items: center;
  width: 38%;
  min-width: 130px;
  background: #fff;
}

.mood-product-media.signature {
  background: #fff;
}

.mood-product-media.garden {
  background: #fff;
}

.mood-product-media img {
  width: min(78%, 112px);
  height: 142px;
  object-fit: contain;
}

.mood-product-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 14px;
  flex-direction: column;
}

.mood-product-copy h3 {
  margin-top: 6px;
  color: var(--mahogany);
  font-size: 1.45rem;
}

.mood-product-copy p:not(.eyebrow) {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .hero-section,
  .product-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 560px;
  }

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

@media (max-width: 760px) {
  .site-header {
    width: min(390px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    min-height: 58px;
    padding: 8px 10px 8px 14px;
    gap: 10px;
  }

  .brand {
    width: 118px;
    height: 42px;
  }

  .brand img {
    transform: translateY(-53px);
  }

  .header-cta {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .header-cta:hover {
    transform: translateY(-50%);
  }

  .hero-section,
  .signal-strip,
  .product-section,
  .site-footer {
    width: min(390px, calc(100% - 24px));
  }

  .hero-section {
    min-height: auto;
    padding-top: 70px;
    gap: 34px;
  }

  .hero-copy h1 {
    max-width: 320px;
    font-size: 2.85rem;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 320px;
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 270px;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    min-height: 420px;
    overflow: hidden;
  }

  .main-image {
    inset: 20px 0 44px;
    border-radius: 30px;
  }

  .floating-image {
    display: none;
  }

  .hero-note {
    right: auto;
    left: 0;
    bottom: 12px;
    width: 160px;
  }

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

  .signal-strip {
    gap: 8px;
    padding: 8px;
    border-radius: 28px;
  }

  .signal-strip div {
    min-height: 82px;
    padding: 16px 18px 16px 62px;
    border-radius: 24px;
  }

  .signal-strip div::before {
    left: 18px;
    width: 30px;
    height: 30px;
  }

  .product-section {
    padding-top: 70px;
  }

  .filter-bar {
    display: none;
  }

  .filter-select-wrap {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--mahogany);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .filter-select-wrap select {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    appearance: none;
    background:
      linear-gradient(45deg, transparent 50%, var(--mahogany) 50%) right 18px center / 7px 7px no-repeat,
      linear-gradient(135deg, var(--mahogany) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
      rgba(255, 253, 249, 0.78);
    color: var(--mahogany);
    font: 700 0.76rem var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .product-card {
    min-height: auto;
  }

  .product-page-grid,
  .mood-sheet {
    border-radius: 26px;
  }

  .product-detail {
    padding: 12px;
  }

  .product-page-grid {
    max-height: calc(100vh - 24px);
    gap: 20px;
    padding: 62px 20px 20px;
  }

  .back-button,
  .sheet-close {
    top: 14px;
    right: 16px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.62rem;
  }

  .product-page-media {
    min-height: 300px;
  }

  .product-page-media img {
    height: 270px;
  }

  .product-page-copy h2 {
    font-size: 3rem;
  }

  .size-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .sheet-overlay {
    padding: 12px;
  }

  .mood-sheet {
    max-height: calc(100vh - 24px);
    padding: 18px 14px 14px;
  }

  .sheet-head {
    padding-right: 76px;
  }

  .sheet-head h2 {
    font-size: 2rem;
  }

  .sheet-head p:not(.eyebrow) {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

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

  .sheet-step {
    padding: 10px;
  }

  .step-title {
    margin-bottom: 8px;
  }

  .step-title h3 {
    font-size: 1.08rem;
  }

  .step-title p {
    font-size: 0.68rem;
  }

  .choice-card {
    min-height: 48px;
    padding: 7px 8px;
  }

  .choice-card strong {
    font-size: 0.98rem;
  }

  .choice-card em {
    font-size: 0.54rem;
    line-height: 1.25;
  }

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

  .mood-product-card {
    min-height: 150px;
  }

  .mood-product-media {
    min-width: 112px;
  }

  .mood-product-media img {
    height: 118px;
  }

  .site-footer {
    place-items: center;
  }
}
