/* Liquid Stone - product configurator
   Signature: the price threshold becomes a live material gauge. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-page {
  background: #f7f5f1;
  color: var(--graphite);
}

.product-site-header {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
}

.product-site-header .wordmark,
.product-site-header .nav-phone {
  color: var(--graphite) !important;
}

.product-site-header .btn-primary {
  background: var(--graphite) !important;
  color: var(--paper) !important;
}

.product-site-header .container {
  gap: 28px;
}

.product-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  color: var(--graphite-soft);
}

.product-nav a {
  transition: color var(--dur-s) var(--ease);
}

.product-nav a:hover { color: var(--copper); }

@media (min-width: 940px) {
  .product-nav { display: flex; }
  .product-site-header .nav-right { margin-left: 10px; }
}

.product-hero {
  padding: 112px 0 clamp(88px, 9vw, 144px);
  background:
    radial-gradient(circle at 7% 18%, rgba(169, 104, 63, 0.07), transparent 28%),
    #f7f5f1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 36px;
  color: var(--graphite-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.breadcrumbs a:hover { color: var(--copper); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(480px, 0.96fr);
  gap: clamp(52px, 7vw, 112px);
  align-items: start;
}

.product-visual-column {
  position: sticky;
  top: 108px;
  min-width: 0;
}

.product-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(38, 36, 31, 0.08);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(38, 36, 31, 0.025);
  pointer-events: none;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 67%;
  transition: transform 1.2s var(--ease);
}

.product-photo:hover img { transform: scale(1.018); }

.primer-photo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(38, 36, 31, 0.92);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(38, 36, 31, 0.18);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.primer-photo-badge strong { color: var(--copper-soft); }

.zoom-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(252, 250, 246, 0.86);
  backdrop-filter: blur(8px);
  font-size: 11px;
  color: var(--graphite-soft);
}

.zoom-hint svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.product-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--paper);
}

.product-proof span {
  padding: 15px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--graphite-faint);
}

.product-proof span + span { border-left: 1px solid var(--line); }
.product-proof strong { color: var(--graphite); font-weight: 700; }

.product-config { min-width: 0; }

.product-intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.product-intro h1 {
  margin-top: 14px;
  font-size: clamp(48px, 5.3vw, 76px);
}

.product-intro p {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--graphite-soft);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.product-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-soft);
}

.product-meta .meta-primer {
  border-color: var(--copper);
  background: var(--copper);
  color: #fffdf9;
}

.starting-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.starting-price > span:first-child {
  font-size: 12px;
  color: var(--graphite-faint);
}

.starting-price strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.starting-price small {
  margin-left: 4px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--graphite-soft);
}

.starting-price > span:last-child {
  margin-left: auto;
  font-size: 11px;
  color: var(--graphite-faint);
}

.starting-price .primer-inline { color: var(--copper); }

.config-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.config-heading > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.config-heading h2,
.offer-card h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.config-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.config-heading output,
.surface-help {
  font-size: 12px;
  color: var(--graphite-faint);
}

.product-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-color {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: rgba(252, 250, 246, 0.58);
  color: var(--graphite-soft);
  text-align: left;
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}

.product-color:hover {
  border-color: rgba(169, 104, 63, 0.45);
  transform: translateY(-1px);
}

.product-color.is-selected {
  border-color: var(--copper);
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 0 0 1px var(--copper);
}

.product-color img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.product-color span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1.15;
}

.surface-control {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  height: 72px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.surface-control > button {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: var(--graphite-soft);
  transition: background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
}

.surface-control > button:hover { background: var(--stone-100); color: var(--copper); }
.surface-control > button:first-child { border-right: 1px solid var(--line); }
.surface-control > button:last-child { border-left: 1px solid var(--line); }

.surface-control label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.surface-control input {
  width: min(160px, 60%);
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--graphite);
  font: 600 30px/1 var(--font-display);
  letter-spacing: -0.035em;
  text-align: right;
  appearance: textfield;
}

.surface-control input::-webkit-outer-spin-button,
.surface-control input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.surface-control b { font-size: 14px; font-weight: 500; color: var(--graphite-faint); }

.surface-slider { margin-top: 24px; }

.surface-slider input[type="range"] {
  --range-progress: 4.95%;
  width: 100%;
  height: 6px;
  margin: 10px 0 4px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  background: linear-gradient(to right, var(--copper) 0 var(--range-progress), var(--stone-300) var(--range-progress) 100%);
  cursor: pointer;
}

.surface-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.surface-slider input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  appearance: none;
  background: var(--copper);
  box-shadow: 0 0 0 1px rgba(38, 36, 31, 0.18), 0 5px 16px rgba(38, 36, 31, 0.2);
}

.surface-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--stone-300);
}

.surface-slider input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--copper);
}

.surface-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 1px rgba(38, 36, 31, 0.18), 0 5px 16px rgba(38, 36, 31, 0.2);
}

.surface-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(169, 104, 63, 0.2), 0 5px 16px rgba(38, 36, 31, 0.2);
}

.tier-labels {
  position: relative;
  height: 14px;
  margin-top: 9px;
  font-size: 9px;
  color: var(--graphite-faint);
}

.tier-labels span { position: absolute; white-space: nowrap; transform: translateX(-50%); }
.tier-labels span:nth-child(1) { left: 0; transform: none; }
.tier-labels span:nth-child(2) { left: 25%; }
.tier-labels span:nth-child(3) { left: 50%; }
.tier-labels span:nth-child(4) { right: 0; transform: none; }

.tier-message {
  margin-top: 16px;
  font-size: 12px;
  color: var(--graphite-soft);
}

.offer-card {
  margin-top: 32px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--graphite);
  color: var(--paper);
}

.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(252, 250, 246, 0.14);
}

.offer-top .eyebrow { color: var(--copper-soft); }
.offer-top h2 { margin-top: 8px; font-size: 24px; }

.selected-material {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid rgba(252, 250, 246, 0.28);
  border-radius: 50%;
}

.selected-material img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.offer-lines { margin: 20px 0 0; }

.offer-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  font-size: 12px;
}

.offer-lines dt { color: rgba(252, 250, 246, 0.58); }
.offer-lines dd { margin: 0; font-weight: 600; }

.offer-lines .offer-included {
  margin-top: 5px;
  padding: 12px 14px;
  background: rgba(169, 104, 63, 0.2);
  color: var(--copper-soft);
}

.offer-lines .offer-included dt { color: rgba(255, 252, 247, 0.72); }

.offer-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(252, 250, 246, 0.14);
}

.offer-total span {
  padding-bottom: 6px;
  font-size: 12px;
  color: rgba(252, 250, 246, 0.62);
}

.offer-total output {
  font: 600 clamp(38px, 5vw, 54px)/0.95 var(--font-display);
  letter-spacing: -0.055em;
}

.offer-note {
  margin-top: 20px;
  max-width: 55ch;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(252, 250, 246, 0.56);
}

.offer-note .primer-inline { color: var(--copper-soft); }

.offer-cta {
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  background: var(--paper);
  color: var(--graphite);
}

.offer-cta:hover { background: var(--copper-soft); color: var(--graphite); }
.offer-cta svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.response-time { margin-top: 12px; text-align: center; font-size: 10px; color: rgba(252, 250, 246, 0.46); }

.product-palette {
  padding: var(--section-pad) 0;
  --palette-surface: var(--bg);
  background: linear-gradient(
    180deg,
    #f7f5f1 0,
    color-mix(in srgb, #f7f5f1 42%, var(--palette-surface)) var(--section-blend-mid),
    var(--palette-surface) var(--section-blend),
    var(--palette-surface) 100%
  );
}

.product-palette-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.product-palette-head h2 {
  margin-top: 14px;
  font-size: clamp(42px, 5.2vw, 72px);
}
.product-palette-head > p {
  max-width: 44ch;
  color: var(--graphite-soft);
}
@media (min-width: 880px) {
  .product-palette-head { grid-template-columns: 1.15fr 0.85fr; }
  .product-palette-head > p { justify-self: end; }
}
.product-palette .color-card { cursor: pointer; }
.product-palette .color-card.is-selected {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper), 0 22px 48px rgba(38, 36, 31, 0.1);
}
.product-palette .color-card.is-selected::after {
  content: attr(data-selected-label);
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  padding: 6px 9px;
  border-radius: 2px;
  background: var(--graphite);
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .product-palette .color-card.is-selected::after { right: 15px; top: 15px; padding: 5px 7px; }
}

.product-details,
.price-explainer {
  padding: var(--section-pad) 0;
}

.product-gallery { --surface-from: var(--paper); }

.product-details {
  --product-surface: var(--stone-100);
  background: linear-gradient(
    180deg,
    var(--bg) 0,
    color-mix(in srgb, var(--bg) 42%, var(--product-surface)) var(--section-blend-mid),
    var(--product-surface) var(--section-blend),
    var(--product-surface) 100%
  );
}

.details-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.details-head h2,
.price-explainer h2 { margin-top: 14px; font-size: clamp(42px, 5.2vw, 72px); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.details-grid article {
  min-height: 280px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--stone-100);
}

.details-grid article > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
}

.details-grid h3 { margin-top: 88px; font-size: 19px; letter-spacing: -0.025em; }
.details-grid p { margin-top: 12px; font-size: 13px; color: var(--graphite-soft); }

.price-explainer {
  --product-surface: var(--paper);
  background: linear-gradient(
    180deg,
    var(--stone-100) 0,
    color-mix(in srgb, var(--stone-100) 42%, var(--product-surface)) var(--section-blend-mid),
    var(--product-surface) var(--section-blend),
    var(--product-surface) 100%
  );
}

.price-explainer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: end;
}

.price-explainer-grid > div:first-child > p {
  margin-top: 28px;
  max-width: 52ch;
  color: var(--graphite-soft);
}

.product-price-table { border-top: 1px solid var(--graphite); }

.product-price-table > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.product-price-table span { color: var(--graphite-soft); }
.product-price-table strong { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.04em; }

.product-footer {
  padding: 54px 0;
  background: var(--graphite);
  color: var(--paper);
}

.product-footer .container {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
}

.product-footer .wordmark { color: var(--paper); }
.product-footer p,
.product-footer span { display: block; margin-top: 6px; font-size: 11px; color: rgba(252, 250, 246, 0.5); }
.product-footer a:not(.wordmark) { display: inline-block; margin-top: 8px; font-size: 13px; }
.product-footer a:hover { color: var(--copper-soft); }

.product-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 36px rgba(12, 44, 24, 0.25);
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}

.product-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(12, 44, 24, 0.34); }
.product-whatsapp svg { width: 31px; fill: #fff; }
.product-whatsapp svg path + path { fill: #25d366; }

.mobile-offer-bar { display: none; }

.product-lightbox {
  width: min(92vw, 940px);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.product-lightbox::backdrop { background: rgba(20, 18, 15, 0.85); backdrop-filter: blur(6px); }
.product-lightbox img { width: 100%; max-height: 92vh; object-fit: contain; }
.product-lightbox button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(38, 36, 31, 0.84);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

@media (max-width: 1020px) {
  .product-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 42px;
  }
  .product-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .product-site-header .nav-phone { display: none; }
  .product-layout { grid-template-columns: 1fr; }
  .product-visual-column { position: static; }
  .product-photo { aspect-ratio: 1 / 1; }
  .product-photo img { object-position: center 70%; }
  .product-proof span { padding-inline: 6px; }
  .price-explainer-grid { grid-template-columns: 1fr; align-items: start; }
  .product-footer .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-page { padding-bottom: 78px; }
  .product-site-header { padding: 13px 0; }
  .product-site-header .container { gap: 12px; }
  .product-site-header .wordmark { font-size: 19px; }
  .product-site-header .btn { display: none; }
  .product-hero { padding-top: 82px; padding-bottom: 82px; }
  .breadcrumbs { margin: 10px 0 22px; }
  .product-layout { gap: 38px; }
  .product-photo { aspect-ratio: 4 / 5; }
  .product-photo img { object-position: center 67%; }
  .primer-photo-badge { top: 12px; left: 12px; padding: 9px 11px; font-size: 9px; }
  .zoom-hint { right: 12px; bottom: 12px; }
  .product-proof span { font-size: 9px; }
  .product-intro h1 { font-size: 48px; }
  .product-intro p { margin-top: 20px; font-size: 14px; }
  .starting-price { flex-wrap: wrap; gap: 10px; }
  .starting-price > span:last-child { flex: 1 0 100%; margin-left: 0; }
  .config-block { padding: 28px 0; }
  .product-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-color { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .product-color img { width: 34px; height: 34px; }
  .product-color span { font-size: 9.5px; }
  .surface-control { grid-template-columns: 48px 1fr 48px; height: 66px; }
  .surface-control input { font-size: 27px; }
  .offer-card { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .offer-total { align-items: flex-start; flex-direction: column; gap: 8px; }
  .details-head { display: block; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid article { min-height: 190px; padding: 18px 15px; }
  .details-grid h3 { margin-top: 42px; font-size: 15px; line-height: 1.2; }
  .details-grid p { margin-top: 8px; font-size: 11.5px; line-height: 1.5; }
  .product-footer { padding: 48px 0; }
  .product-footer .container { grid-template-columns: 1fr; gap: 26px; }
  .product-whatsapp { right: 16px; bottom: 92px; width: 52px; height: 52px; }
  .product-page .whatsapp-widget { bottom: 76px; }
  .mobile-offer-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 89;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--gutter);
    border-top: 1px solid var(--line);
    background: rgba(252, 250, 246, 0.94);
    backdrop-filter: blur(12px);
  }
  .mobile-offer-bar > div { display: grid; }
  .mobile-offer-bar span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite-faint); }
  .mobile-offer-bar strong { font-size: 18px; letter-spacing: -0.03em; }
  .mobile-offer-bar .btn { padding: 11px 16px; font-size: 12px; }
}
