/* Inner page banner — simple, no white glow */
.page-hero.page-hero--banner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 2.5rem 0 3.25rem;
  color: #fff;
  display: flex;
  align-items: flex-end;
  background: #0f2740;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

@media (min-width: 992px) {
  body.has-topbar .page-hero.page-hero--banner {
    min-height: 320px;
    padding: 3rem 0 3.75rem;
  }
}

.page-hero.page-hero--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 39, 64, 0.35) 0%, rgba(15, 39, 64, 0.78) 100%),
    var(--page-hero-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero.page-hero--banner::after {
  display: none;
}

.page-hero.page-hero--banner .container {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: 'Sora', 'Poppins', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: none;
}

.page-hero-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-bottom: 0;
  line-height: 1.5;
}

.page-hero.page-hero--banner .breadcrumb-nav {
  opacity: 0.95;
  margin-bottom: 1rem;
}

.page-hero.page-hero--banner .breadcrumb-nav a {
  color: #cbe7fb;
  font-weight: 600;
}

.page-hero.page-hero--banner .breadcrumb-nav a:hover {
  color: #ffffff;
}

.page-hero.page-hero--banner .breadcrumb-nav span {
  color: rgba(255, 255, 255, 0.92);
}

/* Product detail — media block */
.product-media-pf {
  position: sticky;
  top: calc(var(--navbar-h) + 1rem);
}

/* Product main image — cursor zoom (no thumbnail grid) */
.product-zoom-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f4f8;
  box-shadow:
    0 12px 40px rgba(15, 39, 64, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.product-zoom-frame.is-zooming {
  cursor: zoom-out;
  box-shadow:
    0 20px 50px rgba(15, 39, 64, 0.2),
    0 0 0 1px rgba(2, 79, 174, 0.15);
}

.product-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.product-zoom-frame.is-zooming .product-zoom-img {
  transition: transform 0.08s ease-out;
}

.product-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 39, 64, 0.55);
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.product-zoom-frame.is-zooming .product-zoom-hint {
  opacity: 0;
}

@media (hover: none) {
  .product-zoom-frame {
    cursor: pointer;
  }
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.product-hero-detail-row {
  align-items: stretch;
}

.product-info-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 230, 0.95));
  border: 1px solid rgba(2, 79, 174, 0.14);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
  box-shadow: 0 14px 36px rgba(15, 39, 64, 0.08);
  height: 100%;
}

.product-info-lead {
  color: #243447;
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-feature-list {
  margin-bottom: 0;
}

.product-feature-list li {
  margin-bottom: 0.7rem !important;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(2, 79, 174, 0.1);
  align-items: flex-start !important;
}

.product-feature-list li i {
  margin-top: 0.15rem;
}

@media (max-width: 991.98px) {
  .page-hero.page-hero--banner {
    min-height: 220px;
    padding: 1.75rem 0 2.25rem;
    border-radius: 0;
    margin-top: 0;
  }

  .product-media-pf {
    position: static;
    margin-bottom: 0.5rem;
  }

  .product-info-panel {
    padding: 1rem;
  }
}

/* —— Product pages: tighter section gaps —— */
body[data-page="products"] .section,
body[data-page="product-detail"] .section {
  padding: 2rem 0;
}

@media (max-width: 991.98px) {
  body[data-page="products"] .section,
  body[data-page="product-detail"] .section {
    padding: 1.35rem 0;
  }
}

@media (max-width: 575.98px) {
  body[data-page="products"] .section,
  body[data-page="product-detail"] .section {
    padding: 1.1rem 0;
  }
}

/* All inner pages — tighter vertical rhythm */
body[data-page]:not([data-page="index"]) .section {
  padding: var(--section-py, 2.35rem) 0;
}

body[data-page]:not([data-page="index"]) .mb-5 {
  margin-bottom: 2rem !important;
}

body[data-page]:not([data-page="index"]) .py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

@media (max-width: 991.98px) {
  body[data-page]:not([data-page="index"]) .section {
    padding: var(--section-py-mobile, 1.35rem) 0;
  }

  body[data-page]:not([data-page="index"]) .mb-5 {
    margin-bottom: 1.35rem !important;
  }

  body[data-page]:not([data-page="index"]) .py-5 {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
  }
}
