/* Ẩn nút tăng giảm mặc định trên input[type=number] */
input[type=number].no-spinner::-webkit-inner-spin-button, 
input[type=number].no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number].no-spinner {
  -moz-appearance: textfield;
}
:root {
  --pd-bg: #f5f7fb;
  --pd-surface: #ffffff;
  --pd-border: #e5e7eb;
  --pd-primary: #0f6fba;
  --pd-primary-dark: #084f86;
  --pd-accent: #f97316;
  --pd-text: #0f172a;
  --pd-muted: #6b7280;
}

body.product-detail-page {
  background: var(--pd-bg);
  color: var(--pd-text);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.hero-section {
  position: relative;
  padding: 30px 0 10px;
  /* background: #ffffff; */
  overflow: hidden;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 1.2rem;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
}

.product-gallery {
  background: var(--pd-surface);
  border-radius: 10px;
  border: 1px solid var(--pd-border);

  padding: 24px;
}

.product-gallery__viewport {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pd-border);
  background: #050c1a;
  position: relative;
}

.product-gallery__viewport img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  display: block;
  background: #000;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.gallery-nav--prev { left: 16px; }
.gallery-nav--next { right: 16px; }

.product-gallery__viewport:hover .gallery-nav,
.product-gallery__viewport:focus-within .gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: rgba(5, 12, 26, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-zoom-btn:hover,
.gallery-zoom-btn:focus-visible {
  background: rgba(15, 111, 186, 0.9);
  transform: scale(1.05);
}

.product-gallery__counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}

.product-gallery__thumbs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
}

.product-gallery__thumb {
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.product-gallery__thumb[aria-current="true"] {
  border-color: var(--pd-primary);
  transform: translateY(-2px);
}

.purchase-card {
  background: var(--pd-surface);
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--pd-border);
  /* box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08); */
  position: sticky;
  top: 110px;
}

.purchase-card .label {
  text-transform: uppercase;
  color: var(--pd-muted);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.purchase-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pd-accent);
}

.purchase-card .cta-primary {
  background: var(--pd-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.2s ease;
}

.purchase-card .cta-primary:hover {
  background: var(--pd-primary-dark);
}

.hotline-card {
  margin-top: 16px;
  background: #035c85;
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.product-content-section {
  padding-bottom: 80px;
}

.product-content-card {
  background: var(--pd-surface);
  border-radius: 10px;
  border: 1px solid var(--pd-border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
  padding: 32px;
  margin-top: 24px;
}

.product-content-card h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}


.detail-accordion .accordion-button {
  font-weight: 600;
}

.related-products {
  padding: 0px 0 100px;
}

.related-products .card {
  border: 1px solid var(--pd-border);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.related-products .card-img-top {
  height: 160px;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 26, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1080;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.gallery-lightbox__dialog {
  position: relative;
  width: min(960px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 40px 90px rgba(5, 12, 26, 0.35);
}

.gallery-lightbox__stage {
  position: relative;
  background: #050c1a;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__stage img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  backdrop-filter: blur(4px);
}

.gallery-lightbox__nav--prev { left: 16px; }
.gallery-lightbox__nav--next { right: 16px; }

.gallery-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 12, 26, 0.08);
  color: var(--pd-text);
  font-size: 1.2rem;
}

.gallery-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--pd-muted);
  font-size: 0.95rem;
}

body.product-detail-page.lightbox-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .product-hero {
    padding-top: 90px;
  }

  .purchase-card {
    position: static;
    margin-top: 24px;
  }

  .product-gallery__viewport img {
    height: 320px;
  }

  .gallery-nav,
  .gallery-zoom-btn {
    opacity: 1;
    pointer-events: auto;
  }

  .gallery-lightbox__dialog {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .product-gallery {
    padding: 16px;
  }

  .product-gallery__thumb img {
    height: 64px;
  }
}