/* =========================================================
   Montecalvo Orthodontic Lab — products.css
   Clean, modern product showcase page.
   ========================================================= */

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  color: var(--ink);
  max-width: none;
}

.page-hero p {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */
.products-section {
  display: grid;
  gap: 4rem;
  margin-top: 3rem;
}

/* Product feature card */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.product-feature-reverse {
  direction: rtl;
}

.product-feature-reverse > * {
  direction: ltr;
}

/* Product visual (SVG illustration variant — original) */
.product-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(30, 109, 115, 0.08), transparent 60%),
    radial-gradient(circle at bottom right, rgba(212, 111, 77, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(243, 239, 228, 0.3));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(16, 36, 43, 0.02) 50px,
      rgba(16, 36, 43, 0.02) 51px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(16, 36, 43, 0.02) 50px,
      rgba(16, 36, 43, 0.02) 51px
    );
  pointer-events: none;
}

.product-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(21, 48, 50, 0.15));
}

/* Product visual — PHOTO variant
   Clean, editorial photo presentation. Portrait aspect keeps blocks
   compact while showing the full appliance. */
.product-visual.product-visual-photo {
  padding: 0;
  background: transparent;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  box-shadow:
    0 30px 60px -20px rgba(21, 48, 50, 0.35),
    0 12px 30px -10px rgba(21, 48, 50, 0.18);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-visual.product-visual-photo::before {
  display: none;
}

.product-visual.product-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: none;
  border-radius: var(--radius-md);
  display: block;
}

/* Per-product crop tuning — each photo has the appliance in a different spot */
#retainers .product-visual.product-visual-photo img {
  object-position: center 65%;
}

#nightguards .product-visual.product-visual-photo img {
  object-position: center 60%;
}

#sportsguards .product-visual.product-visual-photo img {
  object-position: center 65%;
}

/* Subtle edge vignette so the photo blends into the page rather than
   looking like a hard rectangle stuck onto the background */
.product-visual.product-visual-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.product-feature:hover .product-visual.product-visual-photo {
  transform: translateY(-4px);
  box-shadow:
    0 40px 70px -20px rgba(21, 48, 50, 0.4),
    0 16px 36px -10px rgba(21, 48, 50, 0.22);
}

/* Product content */
.product-content {
  display: grid;
  gap: 2rem;
}

.product-header {
  display: grid;
  gap: 0.7rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e46447 0%, #f29b52 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-badge-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.product-badge-coral {
  background: linear-gradient(135deg, #d46f4d 0%, #b85a3a 100%);
}

.product-header h2 {
  margin: 0;
  max-width: none;
}

.product-tagline {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

/* Product details */
.product-details {
  display: grid;
  gap: 1.8rem;
}

.product-details h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.product-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  box-shadow: 0 0 0 3px rgba(30, 109, 115, 0.12);
}

/* Product specs */
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 36, 43, 0.08);
  border-radius: var(--radius-md);
}

.product-specs.product-specs-single {
  display: inline-flex;
  grid-template-columns: none;
  padding: 1rem 1.4rem;
  width: fit-content;
}

.spec-item {
  display: grid;
  gap: 0.25rem;
}

.spec-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-item span {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
}

/* Product actions */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
  font-weight: 700;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(30, 109, 115, 0.08);
  border-color: var(--teal-dark);
}

/* =========================================================
   SAME-DAY RETAINERS PROMO (compact inline strip inside retainer card)
   ========================================================= */
.sameday-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  background:
    linear-gradient(135deg, rgba(30, 109, 115, 0.96) 0%, rgba(21, 78, 82, 1) 100%);
  color: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(21, 78, 82, 0.18);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1),
              box-shadow 240ms ease;
}

.sameday-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(21, 78, 82, 0.28);
}

.sameday-promo-text {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1;
}

.sameday-promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d46f4d 0%, #e87a55 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(212, 111, 77, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.sameday-promo-text strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sameday-promo-sub {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.sameday-promo-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.sameday-promo-arrow svg {
  width: 0.95rem;
  height: 0.95rem;
}

.sameday-promo:hover .sameday-promo-arrow {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .sameday-promo {
    flex-wrap: wrap;
    padding: 0.85rem;
  }

  .sameday-promo-text {
    gap: 0.6rem;
  }

  .sameday-promo-sub {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .product-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .product-feature-reverse {
    direction: ltr;
  }

  .product-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .product-visual.product-visual-photo {
    max-width: 380px;
  }

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

@media (max-width: 680px) {
  .product-feature {
    padding: 1.6rem;
  }

  .product-visual {
    padding: 1.2rem;
  }

  .product-visual.product-visual-photo {
    padding: 0;
    max-width: 100%;
  }
}
