/* ==========================================================================
   PRODUCT DETAIL PAGE — Custom Layout Styles
   Prefix: qbs-pdp-
   ROLLBACK: Xóa content-single-product.php → classes này không tồn tại → CSS không ảnh hưởng
   ========================================================================== */



/* ==========================================================================
   SECTION 1: HERO BANNER
   ========================================================================== */
.qbs-pdp-hero {
  position: relative;
  height: 200px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.qbs-pdp-hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.qbs-pdp-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.05);
}

.qbs-pdp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.60);
}

.qbs-pdp-hero__overlay--solid {
  background: var(--bg-dark);
}

.qbs-pdp-hero__content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  color: var(--text-on-dark);
  animation: qbsFadeIn .6s ease-out both;
}

/* Breadcrumb */
.qbs-pdp-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-family: var(--font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  opacity: .8;
}

.qbs-pdp-hero__breadcrumb a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color .2s;
}

.qbs-pdp-hero__breadcrumb a:hover {
  color: var(--brand-secondary);
}

.qbs-pdp-hero__sep {
  font-size: 14px !important;
  color: rgba(255, 255, 255, .5);
}

.qbs-pdp-hero__current {
  color: var(--brand-secondary);
}

/* Badge — hidden per client request */
.qbs-pdp-hero__badge {
  display: none;
}

/* Title */
.qbs-pdp-hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: var(--fw-bold) !important;
  color: var(--text-on-dark) !important;
  line-height: var(--lh-tight);
  margin: 0 0 .5rem !important;
  letter-spacing: -.02em;
}

/* Meta row */
.qbs-pdp-hero__meta-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.qbs-pdp-hero__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-body-lg);
  color: rgba(214, 211, 209, .8);
  margin: 0;
}

.qbs-pdp-hero__divider {
  width: 1px;
  height: 1em;
  background: rgba(120, 113, 108, .6);
  display: inline-block;
  vertical-align: middle;
}

.qbs-pdp-hero__sku {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  color: rgba(168, 162, 158, .8);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 2: MAIN CONTENT LAYOUT
   ========================================================================== */
.qbs-pdp-main {
  padding: var(--space-3xl) 0;
}

.qbs-pdp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.qbs-pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* Gallery — reset Flatsome gallery inside our container */
.qbs-pdp-gallery {
  position: relative;
}

.qbs-pdp-gallery .product-gallery {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Make .product-images the positioning context for dots/counter/zoom */
.qbs-pdp-gallery .product-images {
  position: relative !important;
  overflow: hidden !important;
  border-radius: var(--radius-md);
}

/* Thumbnail strip below main image */
.qbs-pdp-gallery .product-thumbnails {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 0 !important;
}

.qbs-pdp-gallery .product-thumbnails .col {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 4px !important;
  margin: 0 !important;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.qbs-pdp-gallery .product-thumbnails img {
  width: 68px !important;
  height: 68px !important;
  object-fit: cover !important;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  display: block !important;
}

.qbs-pdp-gallery .product-thumbnails img:hover {
  opacity: 0.8;
}

.qbs-pdp-gallery .product-thumbnails .is-nav-selected,
.qbs-pdp-gallery .product-thumbnails .flex-active-slide,
.qbs-pdp-gallery .product-thumbnails .is-selected {
  background: rgba(184, 134, 11, 0.08);
}

.qbs-pdp-gallery .product-thumbnails .is-nav-selected img,
.qbs-pdp-gallery .product-thumbnails .flex-active-slide img,
.qbs-pdp-gallery .product-thumbnails .is-selected img {
  opacity: 1;
}

/* Gallery slides — 4:3 frame, full image, no crop */
.qbs-pdp-gallery .product-gallery-slider,
.qbs-pdp-gallery .product-gallery-slider .slide,
.qbs-pdp-gallery .product-gallery .slide,
.qbs-pdp-gallery .woocommerce-product-gallery__image {
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  background: #fff;
}

.qbs-pdp-gallery .product-gallery-slider .slide img,
.qbs-pdp-gallery .product-gallery .slide img,
.qbs-pdp-gallery .woocommerce-product-gallery__image img,
.qbs-pdp-gallery .woocommerce-product-gallery__image a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-height: none !important;
}

/* Hide vertical dots + counter — thumbnails handle navigation now */
.qbs-pdp-gallery__dots,
.qbs-pdp-gallery__counter {
  display: none !important;
}

/* Hide Flatsome default arrows */
.qbs-pdp-gallery .flickity-prev-next-button {
  display: none !important;
}

/* Zoom button — always visible, bottom-right */
.qbs-pdp-gallery .image-tools {
  opacity: 1 !important;
  visibility: visible !important;
}

.qbs-pdp-gallery .image-tools.bottom {
  left: auto !important;
  right: 1rem !important;
  bottom: 1rem !important;
}

.qbs-pdp-gallery .zoom-button {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  border-radius: var(--radius-full) !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Image counter — "01 / 05" bottom-left */
.qbs-pdp-gallery__counter {
  position: absolute;
  bottom: var(--space-md);
  left: 1.25rem;
  z-index: 10;
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.qbs-pdp-gallery__counter-current {
  color: var(--text-on-dark);
  font-weight: var(--fw-semibold);
}


/* Info Panel */
.qbs-pdp-info {
  display: flex;
  flex-direction: column;
}

.qbs-pdp-info__brand {
  display: block;
  color: var(--brand-primary);
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.qbs-pdp-info__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: var(--fw-regular) !important;
  color: var(--text-primary) !important;
  line-height: var(--lh-tight);
  margin: 0 0 .5rem !important;
}

.qbs-pdp-info__subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.qbs-pdp-info__divider {
  width: 4rem;
  height: 2px;
  background: var(--brand-primary);
  margin-bottom: var(--space-xl);
}

.qbs-pdp-info__description {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   SECTION 2b: SPEC CARDS
   ========================================================================== */
.qbs-pdp-specs {
  margin-bottom: 2.5rem;
}

.qbs-pdp-specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.qbs-pdp-specs__card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-left: 3px solid rgba(184, 134, 11, .4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.qbs-pdp-specs__card.qbs-pdp-visible {
  opacity: 1;
  transform: translateY(0);
}

.qbs-pdp-specs__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qbs-pdp-specs__icon {
  color: var(--brand-primary) !important;
  font-size: 20px !important;
  flex-shrink: 0;
}

.qbs-pdp-specs__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qbs-pdp-specs__attr-label {
  font-family: var(--font-label);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin: 0 0 1px;
}

.qbs-pdp-specs__attr-value {
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
  line-height: var(--lh-snug);
}

/* ==========================================================================
   SECTION 2c: CTA BUTTONS
   ========================================================================== */
.qbs-pdp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.qbs-pdp-cta__btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 2rem;
  font-family: var(--font-label);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  transition: all .3s ease;
}

.qbs-pdp-cta__btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--text-on-primary);
  border: none;
}

.qbs-pdp-cta__btn--primary:hover {
  box-shadow: 0 6px 20px rgba(184, 134, 11, .3);
  transform: translateY(-2px);
  color: var(--text-on-primary);
}

.qbs-pdp-cta__btn--secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.qbs-pdp-cta__btn--secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ==========================================================================
   SECTION 2d: META
   ========================================================================== */
.qbs-pdp-meta {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.qbs-pdp-meta__line {
  margin: 0 0 .5rem;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.qbs-pdp-meta__label {
  color: var(--text-muted);
}

.qbs-pdp-meta__value {
  color: var(--text-primary);
}

.qbs-pdp-meta__value a {
  color: var(--text-primary);
  text-decoration: none;
}

.qbs-pdp-meta__value a:hover {
  color: var(--brand-primary);
}

/* Share buttons — circular icons */
.qbs-pdp-meta__share {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.qbs-pdp-meta__share .qbs-pdp-meta__label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin: 0;
}

.qbs-pdp-share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(168, 162, 158, .3);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
  text-decoration: none;
}

.qbs-pdp-share-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.qbs-pdp-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   SECTION 3: TABS
   ========================================================================== */
.qbs-pdp-footer {
  background: var(--bg-secondary);
}

.qbs-pdp-footer .woocommerce-tabs {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.qbs-pdp .woocommerce-tabs .tabs li a {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-body-lg) !important;
}

.qbs-pdp .woocommerce-tabs .tabs li.active a {
  border-bottom: 2px solid var(--brand-primary) !important;
}

/* Additional Info Table — match spec cards style */
.qbs-pdp .woocommerce-tabs .shop_attributes {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 0.625rem !important;
  width: 100%;
}

.qbs-pdp .woocommerce-tabs .shop_attributes tr {
  background: var(--bg-primary) !important;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}

.qbs-pdp .woocommerce-tabs .shop_attributes th,
.qbs-pdp .woocommerce-tabs .shop_attributes td {
  background: none !important;
  border: none !important;
  border-left: 3px solid rgba(184, 134, 11, .4) !important;
  padding: var(--space-md) var(--space-lg) !important;
  vertical-align: middle !important;
}

.qbs-pdp .woocommerce-tabs .shop_attributes th {
  font-family: var(--font-label) !important;
  font-size: 9px !important;
  font-weight: var(--fw-semibold) !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: var(--text-muted) !important;
  width: 50% !important;
  border-left: 3px solid rgba(184, 134, 11, .4) !important;
}

.qbs-pdp .woocommerce-tabs .shop_attributes td {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--text-primary) !important;
  border-left: none !important;
}

.qbs-pdp .woocommerce-tabs .shop_attributes td p {
  margin: 0 !important;
}

/* ==========================================================================
   SECTION 4: RELATED PRODUCTS — Full-bleed grid
   ========================================================================== */
.qbs-pdp-related {
  padding: var(--space-2xl) 0 var(--space-4xl);
  margin-top: var(--space-xl);
}

/* Header — centered */
.qbs-pdp-related__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.qbs-pdp-related__heading {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  font-weight: var(--fw-regular) !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase;
}

.qbs-pdp-related__subheading {
  display: none;
}

/* Grid — 4 columns desktop */
.qbs-pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

/* Card — matches shop grid style */
.qbs-pdp-related__card {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform .3s ease;
}

.qbs-pdp-related__card:hover {
  transform: translateY(-4px);
}

.qbs-pdp-related__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  display: block;
  transition: transform .5s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.qbs-pdp-related__card:hover img {
  transform: scale(1.04);
}

/* Placeholder if no image */
.qbs-pdp-related__card-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
}

/* Text info below image */
.qbs-pdp-related__card-info {
  padding: var(--space-sm) 0;
}

.qbs-pdp-related__card-title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

.qbs-pdp-related__card-sub {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   SECTION 5: INQUIRY CTA BANNER
   ========================================================================== */
.qbs-pdp-inquiry {
  background: var(--bg-dark);
  padding: var(--space-4xl) 0;
  color: var(--text-on-dark);
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.qbs-pdp-inquiry__deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  opacity: .10;
  pointer-events: none;
}

.qbs-pdp-inquiry__deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qbs-pdp-inquiry__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  position: relative;
  z-index: 10;
}

.qbs-pdp-inquiry__text {
  max-width: 640px;
}

.qbs-pdp-inquiry__eyebrow {
  display: block;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--brand-secondary);
  margin-bottom: var(--space-md);
}

.qbs-pdp-inquiry__heading {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: var(--fw-bold) !important;
  color: var(--text-on-dark) !important;
  line-height: var(--lh-tight) !important;
  margin: 0 0 1.5rem !important;
}

.qbs-pdp-inquiry__desc {
  font-size: var(--fs-body-lg);
  color: rgba(168, 162, 158, .8);
  line-height: var(--lh-normal);
  margin: 0;
}

.qbs-pdp-inquiry__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.qbs-pdp-inquiry__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-label);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  transition: all .3s ease;
}

.qbs-pdp-inquiry__btn svg {
  width: 20px;
  height: 20px;
}

.qbs-pdp-inquiry__btn--primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: var(--text-on-primary);
}

.qbs-pdp-inquiry__btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(184, 134, 11, .3);
  transform: translateY(-2px);
  color: var(--text-on-primary);
}

.qbs-pdp-inquiry__btn--secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(120, 113, 108, .5);
}

.qbs-pdp-inquiry__btn--secondary:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text-on-dark);
}

/* ==========================================================================
   LAYOUT: Ẩn breadcrumb mặc định + fix spacing
   Cover tất cả selectors có thể: Flatsome, WooCommerce, custom
   ========================================================================== */
.qbs-pdp .breadcrumb-row,
.single-product .breadcrumb-row,
.single-product .page-title-inner,
.single-product .page-title,
.single-product .shop-page-title,
.single-product .woocommerce-breadcrumb,
.single-product nav.breadcrumbs,
.single-product .breadcrumbs,
.single-product #breadcrumbs {
  display: none !important;
}

.qbs-pdp #content {
  padding-top: 0 !important;
}

/* Ẩn title mặc định WooCommerce trong product-info (vì đã có trong hero + info panel) */
.qbs-pdp .product-info .product_title {
  display: none !important;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes qbsFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 1279px) {
  .qbs-pdp-hero {
    height: 260px;
  }

  .qbs-pdp-hero__content,
  .qbs-pdp-container,
  .qbs-pdp-inquiry__inner {
    padding: 0 2rem;
  }

  .qbs-pdp-grid {
    gap: 3rem;
  }

  .qbs-pdp-inquiry__inner {
    flex-direction: column;
    text-align: center;
  }

  .qbs-pdp-inquiry__text {
    max-width: none;
  }

  .qbs-pdp-inquiry__actions {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .qbs-pdp-inquiry__btn {
    flex: 1;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .qbs-pdp-hero {
    height: 160px;
  }

  .qbs-pdp-hero__content,
  .qbs-pdp-container,
  .qbs-pdp-inquiry__inner {
    padding: 0 1.25rem;
  }

  .qbs-pdp-hero__title {
    font-size: 1.5rem !important;
  }

  .qbs-pdp-hero__subtitle {
    display: none;
  }

  .qbs-pdp-hero__breadcrumb {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qbs-pdp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ── Product image — constrain on mobile ── */
  .product-images,
  .product-gallery-slider,
  .woocommerce-product-gallery {
    max-height: 55vh;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .product-images img,
  .product-gallery-slider img,
  .woocommerce-product-gallery img {
    max-height: 55vh;
    width: 100%;
    object-fit: contain;
  }

  /* Thumbnails row — smaller on mobile */
  .qbs-pdp-gallery .product-thumbnails .col {
    width: 52px !important;
    max-width: 52px !important;
  }

  .qbs-pdp-gallery .product-thumbnails img {
    width: 52px !important;
    height: 52px !important;
  }

  .qbs-pdp-gallery .product-thumbnails {
    gap: 6px;
    margin-top: 8px;
  }

  .qbs-pdp-specs__grid {
    grid-template-columns: 1fr;
  }

  .qbs-pdp-cta {
    flex-direction: column;
  }

  .qbs-pdp-cta__btn {
    min-width: 0;
    width: 100%;
  }

  .qbs-pdp-inquiry {
    padding: 3rem 0;
  }

  .qbs-pdp-inquiry__deco {
    display: none;
  }

  .qbs-pdp-inquiry__heading {
    font-size: 1.5rem !important;
  }

  .qbs-pdp-inquiry__actions {
    flex-direction: column;
  }

  .qbs-pdp-inquiry__btn {
    width: 100%;
  }

  .qbs-pdp-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
  }

  .qbs-pdp-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Small phone (≤480px) — even tighter image ── */
@media (max-width: 480px) {

  .product-images,
  .product-gallery-slider,
  .woocommerce-product-gallery {
    max-height: 45vh;
  }

  .product-images img,
  .product-gallery-slider img,
  .woocommerce-product-gallery img {
    max-height: 45vh;
  }
}