
/* ─────────────────────────────────────────────────────────────
   ► PRODUCT PAGE STYLES (Appended)
   Mirror of store.css — keep in sync if this file is linked.
   ───────────────────────────────────────────────────────────── */

.product-page {
  overflow-x: clip;
}

.product-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
  min-width: 0;
  width: 100%;
}

.product-gallery-wrapper,
.product-info-panel {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .product-page-layout {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    gap: 40px;
    align-items: start;
  }

  .product-gallery-wrapper {
    position: sticky;
    top: 92px;
  }
}

.pg-main-swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-bg);
  aspect-ratio: 1/1;
  position: relative;
}

.pg-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.pg-main-slide:hover img {
  transform: scale(1.08);
}

.pg-thumbs-swiper {
  margin-top: 15px;
}

.pg-thumb-slide {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface-bg);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
}

.pg-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide-thumb-active {
  border-color: var(--accent);
  opacity: 1;
}

/* Info Panel */
.product-info-panel h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pip-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.pip-rating {
  color: var(--accent);
  display: inline-flex;
  gap: 4px;
}

.pip-price-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.pip-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--price-color);
  line-height: 1;
}

.pip-price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-inline-start: 10px;
}

.pip-discount-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-inline-start: 10px;
  vertical-align: middle;
}

.pip-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pip-status--in {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.pip-status--out {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Variant Selectors */
.variant-section {
  margin-bottom: 25px;
}

.variant-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.variant-value-display {
  color: var(--accent);
  font-weight: 600;
}

.colors-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.btn-color:hover {
  transform: scale(1.1);
}

.btn-color.selected {
  outline-color: var(--accent);
  transform: scale(1.1);
}

.btn-color.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.sizes-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-size {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--surface-bg);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
  text-align: center;
}

.btn-size:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.05);
}

.btn-size.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--btn-primary-text);
}

.btn-size.disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

/* Action Area */
.pip-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: stretch;
}

.qty-input-group {
  display: flex;
  align-items: center;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 50px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.qty-input {
  width: 50px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart {
  flex: 1;
  height: 50px;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
}

.btn-icon-square {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-color);
  background: var(--surface-bg);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-icon-square:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.pip-whatsapp {
  width: 100%;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.2);
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 20px;
}

.pip-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* Tabs for description and reviews */
.product-tabs {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.nav-tabs-custom {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs-custom::-webkit-scrollbar { display: none; }

.nav-tab-label {
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab-label.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: block;
}

.description-content {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Reviews Section */
.reviews-breakdown {
  display: flex;
  gap: 40px;
  background: var(--surface-bg);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.rb-overall {
  text-align: center;
  min-width: 150px;
}

.rb-overall .rating-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.rb-overall .stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 10px 0;
}

.rb-bars {
  flex: 1;
  min-width: 250px;
}

.rb-bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.rb-star-label {
  width: 45px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rb-progress-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.rb-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.rb-count {
  width: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.review-card {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}
.review-card:last-child {
  border-bottom: none;
}

.rc-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rc-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.rc-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rc-stars {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.rc-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.rc-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Review Form */
.review-form-box {
  background: var(--surface-bg);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-top: 40px;
  border: 1px solid var(--border-color);
}

.review-form-box h3 {
  margin-bottom: 20px;
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  color: rgba(255,255,255,0.2);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: var(--accent);
}

/* Product page upgrade */
.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
  box-sizing: border-box;
}

.product-page img {
  max-width: 100%;
}

.product-page .store-breadcrumb {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.product-page .store-breadcrumb::-webkit-scrollbar {
  display: none;
}

.product-gallery-wrapper,
.product-info-panel,
.product-related-section,
.product-tabs,
.swiper-slide,
.product-card {
  min-width: 0;
}

.pg-gallery-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.pg-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pg-gallery-title-group {
  min-width: 0;
}

.pg-gallery-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pg-gallery-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pg-gallery-counter {
  flex-shrink: 0;
  min-width: 74px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}

.pg-stage {
  position: relative;
}

.pg-main-swiper {
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(var(--accent-rgb), 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  min-height: clamp(320px, 58vw, 680px);
}

.pg-main-slide {
  height: auto;
}

.pg-main-media {
  min-height: inherit;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
}

.pg-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  transition: transform 0.35s ease;
  cursor: zoom-in;
}

.pg-main-slide:hover img {
  transform: scale(1.035);
}

.pg-zoom-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.pg-zoom-chip:hover {
  background: rgba(var(--accent-rgb), 0.92);
  border-color: rgba(var(--accent-rgb), 0.92);
}

.pg-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.pg-nav-btn:hover {
  background: rgba(var(--accent-rgb), 0.95);
  border-color: rgba(var(--accent-rgb), 0.95);
}

.pg-nav-btn--prev {
  right: 18px;
}

.pg-nav-btn--next {
  left: 18px;
}

.pg-main-pagination {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.pg-main-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.35);
  opacity: 1;
}

.pg-main-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

.pg-thumbs-swiper {
  margin-top: 16px;
  overflow: hidden;
  opacity: 1; /* Ensure visible */
}

/* Stable Initial State to prevent stretching before JS runs */
.pg-thumb-slide {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  opacity: 0.5;
  cursor: pointer;
  /* Crucial: Prevent initial expansion */
  width: calc(25% - 10px); 
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pg-thumb-slide {
    width: calc(30% - 8px);
  }
}

.pg-thumb-slide.swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.15);
}

.pg-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pip-price-box,
.variants-container,
.product-tabs,
.review-form-box,
.product-related-section {
  min-width: 0;
}

.pip-price-box {
  border-radius: 22px;
  padding: 18px 20px;
}

.pip-price-line,
.pip-stock-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pip-stock-count,
.qty-help-text,
.description-snippet,
.sku-display,
.variant-title,
.variant-value-display {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pip-status--pending {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.variants-container {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 24px;
}

.variant-section + .variant-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.variant-title {
  align-items: center;
  gap: 12px;
}

.variant-value-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 0.82rem;
}

.colors-grid,
.sizes-grid {
  gap: 10px;
}

.btn-color {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,0.1);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.btn-color::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-color.selected::after {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.btn-color--text {
  width: auto;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text-main);
}

.btn-color--text span {
  font-size: 0.78rem;
  font-weight: 800;
}

.btn-size {
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.btn-size.is-unavailable,
.btn-color.is-unavailable {
  opacity: 0.7;
}

.pip-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.qty-input-group,
.btn-add-cart,
.btn-icon-square,
.pip-whatsapp {
  min-width: 0;
}

.qty-input-group {
  height: 54px;
  border-radius: 16px;
}

.qty-btn {
  width: 44px;
}

.qty-input {
  width: 56px;
}

.btn-add-cart,
.btn-icon-square,
.pip-whatsapp {
  height: 54px;
  border-radius: 16px;
}

.btn-add-cart {
  font-size: 1rem;
  font-weight: 800;
}

.btn-icon-square {
  flex-shrink: 0;
}

.product-tabs {
  margin-top: 28px;
}

.nav-tabs-custom {
  gap: 18px;
}

.product-related-section {
  margin-top: 40px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0 0 6px;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.products-swiper-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.products-swiper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.products-swiper-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.products-swiper .swiper-slide {
  height: auto;
}

.products-swiper .product-card {
  height: 100%;
  margin: 0;
}

.products-swiper-pagination {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.products-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.32);
  opacity: 1;
}

.products-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  isolation: isolate;
}

.product-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 15, 0.97);
  backdrop-filter: blur(18px);
}

.product-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  height: min(86vh, 820px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  isolation: isolate;
  max-width: 100%;
  box-sizing: border-box;
}

.product-lightbox__stage {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.product-lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-lightbox__caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 700;
}

.product-lightbox__close,
.product-lightbox__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
  background: rgba(var(--accent-rgb), 0.95);
  border-color: rgba(var(--accent-rgb), 0.95);
}

.product-lightbox__close {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.product-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 991.98px) {
  .product-page-layout {
    gap: 24px;
  }

  .pg-gallery-shell,
  .product-related-section {
    border-radius: 24px;
  }

  .product-gallery-wrapper {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .product-page .store-breadcrumb {
    margin-bottom: 8px;
    font-size: 0.84rem;
  }

  .product-page-layout {
    gap: 18px;
    margin-bottom: 28px;
  }

  .pg-gallery-shell,
  .product-related-section,
  .review-form-box,
  .reviews-breakdown {
    padding: 16px;
    border-radius: 20px;
  }

  .pg-gallery-head,
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pg-gallery-counter {
    align-self: flex-start;
    min-width: 68px;
  }

  .pg-main-swiper,
  .pg-main-media {
    min-height: auto;
  }

  .pg-main-media {
    aspect-ratio: 1 / 1.08;
    padding: 14px;
  }

  .pg-nav-btn {
    width: 40px;
    height: 40px;
  }

  .pg-nav-btn--prev {
    right: 12px;
  }

  .pg-nav-btn--next {
    left: 12px;
  }

  .pg-zoom-chip {
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .pg-thumb-slide {
    border-radius: 14px;
  }

  .product-info-panel h1 {
    font-size: 1.35rem;
    line-height: 1.45;
  }

  .pip-meta {
    gap: 10px;
    margin-bottom: 16px;
  }

  .pip-price-box {
    padding: 16px;
    margin-bottom: 18px;
  }

  .pip-price {
    font-size: 1.55rem;
  }

  .pip-price-old {
    font-size: 0.95rem;
    margin-inline-start: 8px;
  }

  .description-snippet {
    margin-bottom: 18px !important;
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .variants-container {
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .variant-title {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .colors-grid,
  .sizes-grid {
    gap: 8px;
  }

  .btn-color {
    width: 42px;
    height: 42px;
  }

  .btn-size {
    min-width: calc(33.333% - 6px);
    flex: 1 1 calc(33.333% - 6px);
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .pip-actions {
    grid-template-columns: 1fr;
  }

  .qty-input-group,
  .btn-add-cart,
  .btn-icon-square,
  .pip-whatsapp {
    width: 100%;
  }

  .btn-icon-square {
    height: 50px;
  }

  .qty-help-text {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .nav-tabs-custom {
    gap: 14px;
    margin-bottom: 18px;
  }

  .nav-tab-label {
    font-size: 0.95rem;
  }

  .description-content {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .reviews-breakdown {
    gap: 20px;
  }

  .rb-overall,
  .rb-bars {
    min-width: 0;
    width: 100%;
  }

  .products-swiper-controls {
    display: none;
  }

  .product-related-section {
    margin-top: 28px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .product-lightbox__dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    padding: 60px 10px 80px;
    box-sizing: border-box;
  }

  .product-lightbox__stage {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    padding: 10px;
    max-height: calc(100dvh - 160px);
  }

  .product-lightbox__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-lightbox__close {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
  }

  .product-lightbox__nav {
    position: fixed;
    bottom: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
  }

  .product-lightbox__nav--prev {
    right: 20px;
    left: auto;
  }

  .product-lightbox__nav--next {
    left: 20px;
    right: auto;
  }

  .product-lightbox__caption {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    font-size: 0.8rem;
    padding: 8px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 479.98px) {
  .pg-gallery-shell,
  .product-related-section,
  .review-form-box,
  .reviews-breakdown {
    padding: 12px;
  }

  .pg-gallery-chip,
  .pg-gallery-counter,
  .variant-value-display {
    font-size: 0.75rem;
  }

  .pg-gallery-subtitle,
  .section-subtitle,
  .qty-help-text,
  .description-snippet {
    font-size: 0.84rem;
  }

  .btn-size {
    min-width: calc(50% - 4px);
    flex-basis: calc(50% - 4px);
  }

  .pip-price-line,
  .pip-stock-line {
    align-items: flex-start;
  }

  .pip-whatsapp,
  .btn-add-cart,
  .qty-input-group {
    height: 50px;
  }

  .pg-thumbs-swiper {
    margin-top: 10px;
  }

  .pg-thumb-slide {
    border-radius: 12px;
  }

  .pg-gallery-shell {
    border-radius: 18px;
  }

  .pg-main-swiper {
    border-radius: 16px;
  }
}

/* Product selectors and related section refinements */
.variants-container {
  display: grid;
  gap: 18px;
}

.variant-section {
  margin-bottom: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}

.variant-title {
  margin-bottom: 14px;
}

.variant-title > span:first-child {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.variant-value-display:empty,
.variant-value-display[data-empty="true"] {
  display: none;
}

.colors-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-color.selected {
  transform: scale(1.06);
  border-color: rgba(var(--accent-rgb), 0.7);
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.btn-size {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-size.selected {
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.2);
}

.section-header {
  align-items: center;
}

.section-header > div:first-child {
  flex: 1;
  text-align: center;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.products-swiper-controls {
  justify-content: center;
  align-self: center;
}

@media (max-width: 767.98px) {
  .variant-section {
    padding: 14px;
    border-radius: 16px;
  }

  .sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-header > div:first-child {
    width: 100%;
  }
}

/* Final size chips override */
.sizes-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.sizes-grid .btn-size {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  flex: 0 0 56px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(22, 34, 53, 0.16) !important;
  background: #ffffff !important;
  color: #162235 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

.sizes-grid .btn-size:hover {
  border-color: rgba(22, 40, 61, 0.45) !important;
  background: #f7f9fc !important;
}

.sizes-grid .btn-size.selected {
  background: #16283d !important;
  color: #ffffff !important;
  border-color: #16283d !important;
  box-shadow: 0 12px 28px rgba(22, 40, 61, 0.24) !important;
  transform: translateY(-1px);
}

.sizes-grid .btn-size.selected:hover {
  background: #16283d !important;
}

.sizes-grid .btn-size.disabled,
.sizes-grid .btn-size.is-unavailable {
  background: #f3f5f8 !important;
  color: rgba(22, 34, 53, 0.45) !important;
  border-color: rgba(22, 34, 53, 0.12) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

@media (max-width: 767.98px) {
  .sizes-grid .btn-size {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    flex-basis: 50px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 479.98px) {
  .sizes-grid .btn-size {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    flex-basis: 46px !important;
    font-size: 0.85rem !important;
  }
}
