.product-page { padding: 40px 0 80px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.product-gallery { position: sticky; top: 120px; }
.gallery-main { background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-xl); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 32px; margin-bottom: 14px; overflow: hidden; }
.gallery-main .filter-svg { width: 180px; height: 180px; opacity: 0.55; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease, transform .4s ease; }
.gallery-main img:hover { transform: scale(1.02); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-thumb { border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-alt); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: border-color var(--transition), transform var(--transition); overflow: hidden; }
.gallery-thumb:hover { border-color: var(--primary); transform: translateY(-1px); }
.gallery-thumb.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(76,184,214,0.15); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.product-info__brand { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.product-info__brand a { color: inherit; transition: opacity var(--transition); }
.product-info__brand a:hover { opacity: .75; }
.product-info__title { font-family: var(--font-heading); font-size: 30px; line-height: 1.2; margin-bottom: 10px; color: var(--dark); }
.product-info__code { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.product-info__code span { color: var(--text); font-weight: 600; }
.product-stock { display: inline-flex; align-items: center; gap: 8px; background: #F0FAF4; color: #1A6B38; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 20px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: #00A651; box-shadow: 0 0 0 4px rgba(0,166,81,0.15); }
.product-specs h3 { margin: 0 0 10px; font-size: 18px; color: var(--dark); }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.specs-table td { border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 14px; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }

.product-buy { border: 1.5px solid var(--border); border-radius: 14px; padding: 18px; background: var(--bg-card); box-shadow: 0 4px 14px rgba(15,23,42,0.04); }
.product-buy__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.qty-control { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--bg); }
.qty-btn { width: 38px; height: 38px; background: var(--bg-alt); font-size: 20px; cursor: pointer; transition: background var(--transition), color var(--transition); }
.qty-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.qty-input { width: 52px; border: 0; text-align: center; font-size: 15px; background: transparent; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; }
.product-price { font-family: var(--font-heading); font-size: 30px; line-height: 1; font-weight: 800; color: var(--dark); transition: color .2s ease, transform .2s ease; }
.product-price__cur { font-size: 18px; font-weight: 600; color: var(--text-light); margin-left: 2px; }
.product-price.is-flash { color: var(--primary); transform: scale(1.04); }

.btn-cart { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: var(--radius-sm); padding: 13px 16px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); box-shadow: 0 6px 16px rgba(35,96,196,0.25); }
.btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(35,96,196,0.32); }
.btn-cart svg { width: 18px; height: 18px; }
.btn-cart-secondary { width: 100%; margin-top: 8px; padding: 11px 16px; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-weight: 600; border: 1.5px solid var(--border); cursor: pointer; transition: border-color var(--transition), color var(--transition); }
.btn-cart-secondary:hover { border-color: var(--primary); color: var(--primary); }

.product-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--border); display: grid; grid-template-columns: 1fr; gap: 8px; }
.product-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-light); }
.product-trust svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.product-tabs { margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs-nav { display: flex; gap: 8px; overflow-x: auto; }
.tab-btn { padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--text-light); font-weight: 600; white-space: nowrap; cursor: pointer; background: transparent; transition: color var(--transition), border-color var(--transition); }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding-top: 8px; }
.tab-panel.active { display: block; animation: tabFade .25s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tab-description p { margin-bottom: 12px; line-height: 1.65; color: var(--text); }
.tab-description ul { padding-left: 16px; list-style: disc; }
.full-specs-table { width: 100%; border-collapse: collapse; }
.full-specs-table td { border-bottom: 1px solid var(--border); padding: 10px 0; }
.full-specs-table td:first-child { width: 40%; color: var(--text-muted); }

.related-section { padding: 28px 0 64px; margin-top: 24px; border-top: 1px solid var(--border); }
.related-section .section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.related-section .section-title { font-family: var(--font-heading); font-size: 24px; margin: 0; color: var(--dark); }
.related-section .section-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: opacity var(--transition); }
.related-section .section-link:hover { opacity: .75; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-grid .product-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--transition), transform var(--transition); }
.related-grid .product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.single-product-empty { padding: 64px 0; }
.single-product-empty__inner { text-align: center; max-width: 520px; margin: 0 auto; padding: 48px 24px; border: 1.5px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg-alt); }
.single-product-empty__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-card); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin: 0 auto 16px; }
.single-product-empty__icon svg { width: 32px; height: 32px; }
.single-product-empty__title { font-family: var(--font-heading); font-size: 24px; color: var(--dark); margin-bottom: 8px; }
.single-product-empty__text { color: var(--text-muted); margin-bottom: 18px; }
.single-product-empty__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.single-product-empty .btn-primary { display: inline-flex; align-items: center; padding: 11px 20px; background: var(--primary); color: #fff; font-weight: 600; border-radius: var(--radius-sm); transition: background var(--transition); }
.single-product-empty .btn-primary:hover { background: var(--primary-dark); }
.single-product-empty .btn-ghost { display: inline-flex; align-items: center; padding: 10px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-weight: 600; background: var(--bg); transition: border-color var(--transition), color var(--transition); }
.single-product-empty .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.gallery-main img { cursor: zoom-in; }

/* ---------- Image lightbox ---------- */
.image-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
}
.image-lightbox.is-open { display: flex; }
.image-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,12,20,0.88);
  cursor: zoom-out;
}
.image-lightbox__figure {
  position: relative; z-index: 2;
  margin: 0; padding: 0;
  max-width: min(94vw, 1200px); max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.image-lightbox__img {
  max-width: min(94vw, 1200px); max-height: 84vh;
  object-fit: contain; border-radius: 8px;
  background: #fff;
  transition: opacity .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  pointer-events: auto;
}
.image-lightbox__caption {
  margin-top: 14px;
  color: #cdd5e0; font-size: 13px; letter-spacing: .4px;
  pointer-events: none;
}
.image-lightbox__close,
.image-lightbox__arrow {
  position: absolute; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background var(--transition), transform var(--transition);
}
.image-lightbox__close { top: 24px; right: 24px; width: 44px; height: 44px; }
.image-lightbox__close:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.image-lightbox__close svg { width: 22px; height: 22px; }
.image-lightbox__arrow { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.image-lightbox__arrow:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.05); }
.image-lightbox__arrow svg { width: 24px; height: 24px; }
.image-lightbox__arrow--prev { left: 24px; }
.image-lightbox__arrow--next { right: 24px; }
.image-lightbox.is-single .image-lightbox__arrow { display: none; }

@media (max-width: 600px) {
  .image-lightbox__close { top: 14px; right: 14px; width: 38px; height: 38px; }
  .image-lightbox__arrow { width: 40px; height: 40px; }
  .image-lightbox__arrow--prev { left: 10px; }
  .image-lightbox__arrow--next { right: 10px; }
  .image-lightbox__img { max-height: 76vh; }
}

@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } .product-gallery { position: static; } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } .product-info__title { font-size: 24px; } .gallery-thumbs { grid-template-columns: repeat(5, 1fr); } }
