/* Premium polish layer. Keep this focused on components, not hero motion. */
:root {
  --premium-muted: #6f685c;
  --premium-muted-dark: #c8c1b3;
  --premium-border: rgba(28, 28, 26, 0.16);
  --premium-card-shadow: 0 14px 34px rgba(28, 28, 26, 0.1);
  --premium-card-shadow-hover: 0 18px 44px rgba(28, 28, 26, 0.14);
  --premium-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.form-reassurance {
  max-width: 42rem;
  border-color: rgba(28, 28, 26, 0.14);
  border-radius: 12px;
  padding: 0.72rem 0.86rem;
  background: rgba(255, 248, 231, 0.74);
  color: var(--premium-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.project-intake .form-reassurance,
.quote-modal .form-reassurance {
  background: rgba(183, 255, 74, 0.08);
  color: var(--premium-muted-dark);
}

.product-card {
  display: grid;
  grid-template-rows: auto auto minmax(5.25rem, auto) auto auto;
  align-content: start;
  border-width: 1px;
  box-shadow: var(--premium-card-shadow);
  transition:
    border-color 140ms var(--premium-ease),
    box-shadow 160ms var(--premium-ease),
    transform 160ms var(--premium-ease);
}

.product-card:hover {
  border-color: rgba(28, 28, 26, 0.42);
  box-shadow: var(--premium-card-shadow-hover);
  transform: translateY(-2px);
}

.product-card .tag {
  color: #26733c;
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.2;
}

.product-card h3 {
  min-height: 5.25rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.32rem, 1.75vw, 1.85rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.product-badge {
  border-color: rgba(28, 28, 26, 0.16);
  background: rgba(255, 248, 231, 0.82);
  color: var(--premium-muted);
  font-size: 0.72rem;
  font-weight: 640;
}

.product-price-stack {
  align-self: end;
  border-color: rgba(28, 28, 26, 0.12);
  border-radius: 12px;
  padding: 0.78rem 0.86rem;
  background:
    linear-gradient(135deg, rgba(183, 255, 74, 0.14), rgba(255, 248, 231, 0.92)),
    var(--cream-2);
}

.product-price-stack > span {
  color: #26733c;
  font-size: 0.68rem;
  font-weight: 640;
  letter-spacing: 0;
}

.price {
  font-weight: 760;
  letter-spacing: -0.025em;
}

.price-compare,
.product-card .price-note {
  color: var(--premium-muted);
  font-weight: 560;
}

.product-card a {
  min-height: 46px;
  font-weight: 720;
  letter-spacing: 0;
  box-shadow: none;
  transition:
    background-color 120ms var(--premium-ease),
    border-color 120ms var(--premium-ease),
    color 120ms var(--premium-ease),
    transform 120ms var(--premium-ease);
}

.product-card a:hover {
  transform: translateY(-1px);
}

.gallery-config-summary {
  border: 1px solid rgba(28, 28, 26, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.52);
  color: var(--premium-muted);
}

.gallery-config-summary > strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 720;
}

.gallery-config-summary > span {
  color: var(--premium-muted);
  font-weight: 600;
}

.gallery-config-summary li {
  font-weight: 640;
}

.gallery-config-summary li strong {
  color: var(--ink);
  font-weight: 720;
}

.gallery-actions {
  gap: 0.72rem;
}

.gallery-actions button,
.gallery-actions a {
  min-height: 50px;
  font-weight: 720;
  letter-spacing: 0;
  transition:
    background-color 120ms var(--premium-ease),
    border-color 120ms var(--premium-ease),
    color 120ms var(--premium-ease),
    transform 120ms var(--premium-ease);
}

.gallery-actions button:hover,
.gallery-actions a:hover {
  transform: translateY(-1px);
}

.gallery-actions button[data-gallery-add],
.gallery-actions button[data-cart-open] {
  min-height: 58px;
  padding-inline: 1.25rem;
  font-size: 0.98rem;
  font-weight: 720;
}

.gallery-actions button[data-gallery-add] {
  flex-basis: 360px;
}

.gallery-actions button[data-cart-open] {
  min-width: 170px;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100dvh - 28px));
  overflow: hidden;
}

.cart-note {
  max-width: 34rem;
  color: var(--premium-muted);
  font-weight: 600;
  letter-spacing: 0;
}

.cart-items {
  min-height: 0;
  max-height: clamp(180px, 42dvh, 430px);
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.cart-checkout-panel {
  gap: 0.84rem;
  margin-top: auto;
  border-top-color: rgba(28, 28, 26, 0.18);
  box-shadow: 0 -14px 34px rgba(28, 28, 26, 0.08);
}

.cart-review-actions,
.cart-checkout-details {
  display: grid;
  gap: 0.82rem;
}

.cart-review-actions[hidden],
.cart-checkout-details[hidden] {
  display: none !important;
}

.cart-drawer[data-step="review"] .cart-summary .cart-total-row:nth-child(2) {
  display: none;
}

.cart-drawer[data-step="checkout"] .cart-items {
  display: none;
}

.cart-drawer[data-step="checkout"] .cart-checkout-panel {
  max-height: min(62dvh, 540px);
  overflow: auto;
  overscroll-behavior: contain;
}

.cart-drawer[data-step="checkout"] .cart-note {
  margin-bottom: 0.4rem;
}

.cart-next-step,
.cart-step-back,
.cart-checkout {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 720;
  letter-spacing: 0;
}

.cart-next-step {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.cart-next-step:hover {
  transform: translateY(-1px);
}

.cart-step-back {
  justify-self: start;
  border: 1px solid rgba(28, 28, 26, 0.2);
  padding: 0 1rem;
  background: rgba(255, 248, 231, 0.72);
  color: var(--ink);
}

.cart-checkout-details .form-reassurance,
.cart-review-actions .form-reassurance {
  margin: 0;
  border-color: rgba(28, 28, 26, 0.12);
  background: rgba(255, 248, 231, 0.62);
  color: var(--premium-muted);
}

.gallery-action-icon {
  width: 30px;
  height: 30px;
}

.gallery-action-price {
  font-weight: 680;
  letter-spacing: 0.02em;
}

.gallery-filter-tabs button,
.gallery-pagination button,
.quick-prompts button,
.steps button,
.quote-wizard-steps button {
  font-weight: 680;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Production handoff: keep the animated hero objects behind the message. */
.hero-ctaimages .b-ctaimages__images,
.hero-ctaimages .b-ctaimages__images:last-of-type {
  opacity: 0.18 !important;
  filter: saturate(0.9) contrast(0.92);
}

.hero-ctaimages .b-ctaimages__heading,
.hero-ctaimages .b-ctaimages__content,
.hero-ctaimages .kicker {
  text-shadow:
    0 1px 0 rgba(255, 248, 231, 0.96),
    0 0 18px rgba(255, 248, 231, 0.84),
    0 0 46px rgba(255, 248, 231, 0.72);
}

@media (max-width: 760px) {
  .hero-ctaimages .b-ctaimages__images,
  .hero-ctaimages .b-ctaimages__images:last-of-type {
    opacity: 0.12 !important;
  }

  .product-card {
    grid-template-rows: auto auto auto auto auto;
  }

  .product-card h3 {
    min-height: 0;
  }

  .gallery-actions {
    display: grid;
  }

  .gallery-actions button[data-gallery-add],
  .gallery-actions button[data-cart-open] {
    width: 100%;
    min-width: 0;
  }

  .cart-panel {
    max-height: 100dvh;
  }

  .cart-items {
    max-height: 38dvh;
  }

  .cart-drawer[data-step="checkout"] .cart-checkout-panel {
    max-height: 70dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card a,
  .gallery-actions button,
  .gallery-actions a,
  .cart-next-step {
    transition-duration: 1ms;
    transform: none;
  }
}
