/* BeeDance catalog cluster preview: one flavour, five indexable products. */
:root {
  --berry: #6f294d;
  --berry-deep: #321321;
  --berry-soft: #ead4dc;
  --berry-wash: #f6ecef;
  --cluster-cream: #f6f1e8;
  --cluster-line: rgba(43, 29, 24, .16);
  --cluster-radius: 28px;
}

.catalog-cluster-page,
.catalog-variant-page {
  background: var(--cluster-cream);
}

.cluster-main {
  padding-top: var(--nav-height, 78px);
}

.cluster-hero {
  position: relative;
  min-height: min(820px, calc(100svh - var(--nav-height, 78px)));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--berry-deep);
}

.cluster-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(35, 12, 24, .84) 0%, rgba(35, 12, 24, .42) 45%, rgba(35, 12, 24, .06) 78%),
    linear-gradient(0deg, rgba(25, 9, 17, .72) 0%, transparent 54%);
}

.cluster-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-hero-copy {
  max-width: 900px;
  padding-block: clamp(64px, 9vw, 120px);
}

.cluster-eyebrow,
.variant-kicker {
  margin: 0 0 18px;
  color: #ebc296;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.cluster-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: inherit;
  font-size: clamp(3.2rem, 8vw, 8.2rem);
  line-height: .88;
}

.cluster-hero .cluster-lead {
  max-width: 58ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

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

.cluster-hero-actions .button {
  min-height: 50px;
  background: #fff;
  color: var(--berry-deep);
}

.cluster-hero-actions .cluster-button-ghost {
  border: 1px solid rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.cluster-route-nav {
  padding-block: 18px;
  border-bottom: 1px solid var(--cluster-line);
  background: rgba(246, 241, 232, .94);
}

.cluster-route-nav .container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cluster-route-nav .container::-webkit-scrollbar { display: none; }

.cluster-route-nav a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--cluster-line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cluster-route-nav a:hover,
.cluster-route-nav a[aria-current="page"] {
  border-color: var(--berry);
  color: #fff;
  background: var(--berry);
}

.cluster-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding-block: clamp(84px, 11vw, 150px) clamp(52px, 7vw, 90px);
}

.cluster-intro h2,
.cluster-guide-copy h2,
.cluster-architecture h2,
.variant-story h2,
.variant-specs h2,
.variant-related h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.3vw, 5.7rem);
  line-height: .94;
}

.cluster-intro h2 { max-width: 13ch; }

.cluster-intro-copy {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.cluster-intro-copy strong { color: var(--berry); }

.cluster-product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: clamp(90px, 12vw, 170px);
}

.cluster-product-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cluster-line);
  border-radius: var(--cluster-radius);
  color: var(--ink);
  background: rgba(255, 255, 255, .68);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.cluster-product-card:nth-child(1),
.cluster-product-card:nth-child(2) { grid-column: span 6; }

.cluster-product-card:hover,
.cluster-product-card:focus-within {
  z-index: 1;
  transform: translateY(-6px);
  border-color: rgba(111, 41, 77, .5);
  box-shadow: 0 26px 60px rgba(58, 27, 38, .14);
}

.cluster-card-image {
  display: block;
  overflow: hidden;
  background: var(--berry-wash);
}

.cluster-card-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .75, .2, 1);
}

.cluster-product-card:nth-child(1) .cluster-card-image img,
.cluster-product-card:nth-child(2) .cluster-card-image img { aspect-ratio: 4 / 3; }

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

.cluster-card-copy {
  display: grid;
  min-height: 300px;
  padding: clamp(24px, 3vw, 38px);
}

.cluster-card-top,
.cluster-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: baseline;
}

.cluster-card-top span,
.cluster-card-sku {
  color: var(--berry);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cluster-card-price {
  color: var(--ink) !important;
  font-size: .82rem !important;
  letter-spacing: .03em !important;
}

.cluster-card-copy h2 {
  max-width: 12ch;
  margin: auto 0 16px;
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: .96;
}

.cluster-card-copy p {
  max-width: 45ch;
  margin: 0 0 26px;
  color: var(--muted);
}

.cluster-card-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--cluster-line);
}

.cluster-card-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.cluster-card-link:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: -5px;
}

.cluster-banner {
  position: relative;
  min-height: clamp(460px, 62vw, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--berry-deep);
}

.cluster-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(29, 9, 19, .78), rgba(29, 9, 19, .04) 72%);
}

.cluster-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: clamp(42px, 7vw, 86px);
}

.cluster-banner-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: .93;
}

.cluster-banner-copy p {
  max-width: 52ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .82);
}

.cluster-guide {
  display: grid;
  grid-template-columns: minmax(280px, .66fr) minmax(0, 1.34fr);
  gap: clamp(48px, 9vw, 140px);
  padding-block: clamp(90px, 12vw, 170px);
}

.cluster-guide-copy h2 { max-width: 10ch; }
.cluster-guide-copy p { max-width: 40ch; color: var(--muted); }

.cluster-comparison { overflow-x: auto; }
.cluster-comparison table { width: 100%; min-width: 680px; border-collapse: collapse; }
.cluster-comparison th,
.cluster-comparison td { padding: 19px 16px; border-bottom: 1px solid var(--cluster-line); text-align: left; vertical-align: top; }
.cluster-comparison th { color: var(--berry); font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; }
.cluster-comparison td:first-child { font-weight: 750; white-space: nowrap; }
.cluster-comparison a { color: var(--berry); font-weight: 750; text-underline-offset: 4px; }

.cluster-architecture {
  padding-block: clamp(86px, 11vw, 150px);
}

.cluster-architecture-head {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 52px;
}

.cluster-architecture-head p { margin: 0; color: var(--muted); }

.cluster-link-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--cluster-line);
  border-left: 1px solid var(--cluster-line);
}

.cluster-link-map a {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-right: 1px solid var(--cluster-line);
  border-bottom: 1px solid var(--cluster-line);
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.cluster-link-map a:hover { color: #fff; background: var(--berry); }
.cluster-link-map span { color: var(--muted); font-size: .78rem; }
.cluster-link-map a:hover span { color: rgba(255, 255, 255, .7); }
.cluster-link-map strong { font-size: 1.25rem; }

/* Variant page */
.variant-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 24px;
  color: var(--muted);
  font-size: .76rem;
}

.variant-breadcrumbs a { color: inherit; text-underline-offset: 4px; }

.variant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  min-height: min(780px, calc(100svh - 150px));
  overflow: hidden;
  border: 1px solid var(--cluster-line);
  border-radius: var(--cluster-radius);
  background: rgba(255, 255, 255, .7);
}

.variant-gallery {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  background: var(--berry-deep);
}

.variant-gallery-main {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 20px;
}

.variant-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.variant-gallery-thumb {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  background: transparent;
}

.variant-gallery-thumb.is-active { border-color: #e7b87e; }
.variant-gallery-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.variant-gallery-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.variant-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 72px);
}

.variant-kicker { color: var(--berry); }

.variant-hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 4.4vw, 5.1rem);
  line-height: .93;
}

.variant-lead {
  max-width: 42ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.variant-commerce {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--cluster-line);
}

.variant-price small,
.variant-sku small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.variant-price strong { font-size: 1.8rem; }
.variant-sku { text-align: right; font-size: .78rem; font-weight: 750; }

.variant-hero-copy > .button {
  align-self: flex-start;
  min-height: 50px;
  margin-top: 26px;
  background: var(--berry-deep);
  color: #fff;
}

.variant-switcher {
  padding-block: 34px clamp(80px, 9vw, 120px);
}

.variant-switcher-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.variant-switcher-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.variant-switcher-links a {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--cluster-line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .48);
}

.variant-switcher-links a[aria-current="page"] {
  border-color: var(--berry);
  color: #fff;
  background: var(--berry);
}

.variant-switcher-links strong { font-size: .93rem; }
.variant-switcher-links span { color: var(--muted); font-size: .72rem; }
.variant-switcher-links a[aria-current="page"] span { color: rgba(255, 255, 255, .72); }

.variant-story {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 130px);
  padding-bottom: clamp(90px, 11vw, 150px);
}

.variant-story h2 { max-width: 9ch; }

.variant-story-body {
  padding-top: 8px;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
}

.variant-story-body p { max-width: 58ch; margin: 0; color: var(--muted); }

.variant-accent {
  margin-top: 36px;
  padding: 28px;
  border-left: 4px solid var(--berry);
  color: var(--berry-deep);
  background: var(--berry-wash);
  font-weight: 700;
}

.variant-specs {
  padding-block: clamp(84px, 10vw, 140px);
  background: #fff;
}

.variant-specs-grid {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  gap: clamp(50px, 9vw, 130px);
}

.variant-specs h2 { max-width: 9ch; }

.variant-facts { margin: 0; }
.variant-facts > div { display: grid; grid-template-columns: minmax(170px, .5fr) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--cluster-line); }
.variant-facts dt { color: var(--muted); }
.variant-facts dd { margin: 0; font-weight: 700; }

.variant-draft-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 14px;
  color: #5b3d20;
  background: #fbf0d8;
  font-size: .88rem;
}

.variant-draft-note strong { display: block; margin-bottom: 5px; }

.variant-wide-banner {
  margin-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
  border-radius: var(--cluster-radius);
}

.variant-wide-banner img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.variant-faq { padding-bottom: clamp(86px, 11vw, 150px); }
.variant-faq > h2 { max-width: 12ch; margin: 0 0 42px; font-size: clamp(2.5rem, 4.8vw, 5rem); line-height: .95; }
.variant-faq details { max-width: 900px; margin-left: auto; padding: 22px 0; border-bottom: 1px solid var(--cluster-line); }
.variant-faq summary { cursor: pointer; font-weight: 750; }
.variant-faq details p { max-width: 62ch; margin: 14px 0 0; color: var(--muted); }

.variant-related {
  padding-bottom: clamp(100px, 12vw, 170px);
}

.variant-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}

.variant-related-head h2 { max-width: 10ch; }
.variant-related-head a { color: var(--berry); font-weight: 750; text-underline-offset: 5px; }

.variant-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.variant-related-card {
  overflow: hidden;
  border: 1px solid var(--cluster-line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .55);
  transition: transform 200ms ease, border-color 200ms ease;
}

.variant-related-card:hover { transform: translateY(-5px); border-color: var(--berry); }
.variant-related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.variant-related-card div { padding: 20px; }
.variant-related-card span { color: var(--berry); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.variant-related-card strong { display: block; margin-top: 8px; font-size: 1.15rem; }

@media (max-width: 1020px) {
  .cluster-product-card,
  .cluster-product-card:nth-child(1),
  .cluster-product-card:nth-child(2) { grid-column: span 6; }
  .cluster-product-card:last-child { grid-column: 4 / span 6; }
  .cluster-product-card:nth-child(1) .cluster-card-image img,
  .cluster-product-card:nth-child(2) .cluster-card-image img { aspect-ratio: 1; }
  .cluster-link-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-hero { grid-template-columns: 1fr; }
  .variant-gallery { min-height: 680px; }
  .variant-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .cluster-intro,
  .cluster-guide,
  .cluster-architecture-head,
  .variant-story,
  .variant-specs-grid { grid-template-columns: 1fr; }
  .cluster-intro { align-items: start; }
  .cluster-guide { gap: 34px; }
  .variant-switcher-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .variant-switcher-links a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cluster-hero { min-height: 720px; }
  .cluster-hero::after { background: linear-gradient(0deg, rgba(35, 12, 24, .9), rgba(35, 12, 24, .16) 92%); }
  .cluster-hero h1 { font-size: clamp(3rem, 17vw, 5.2rem); }
  .cluster-product-card,
  .cluster-product-card:nth-child(1),
  .cluster-product-card:nth-child(2),
  .cluster-product-card:last-child { grid-column: 1 / -1; }
  .cluster-card-copy { min-height: 270px; }
  .cluster-link-map { grid-template-columns: 1fr; }
  .cluster-link-map a { min-height: 140px; }
  .variant-gallery { min-height: 520px; }
  .variant-hero-copy { padding: 34px 24px 42px; }
  .variant-commerce { grid-template-columns: 1fr; align-items: start; }
  .variant-sku { text-align: left; }
  .variant-facts > div { grid-template-columns: 1fr; gap: 6px; }
  .variant-related-head { align-items: flex-start; flex-direction: column; }
  .variant-related-grid { grid-template-columns: 1fr; }
  .variant-related-card { display: grid; grid-template-columns: 120px 1fr; }
  .variant-related-card img { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cluster-product-card,
  .cluster-card-image img,
  .variant-related-card { transition: none; }
}
