
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   ► PRODUCT PAGE STYLES (Appended)
   Mirror of store.css — keep in sync if this file is linked.
   ───────────────────────────────────────────────────────────── */

.product-page {
  font-family: 'Tajawal', sans-serif;
  overflow-x: clip;
}

.product-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 40px;
  min-width: 0;
  width: 100%;
}

.product-gallery-wrapper,
.product-info-panel {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .product-page-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .product-gallery-wrapper {
    position: sticky;
    top: 90px;
  }
}

.pg-main-swiper {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-bg);
  max-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-main-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.pg-main-slide img {
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  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: 12px;
}

.pg-thumb-slide {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface-bg);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.pg-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-slide-thumb-active {
  border-color: var(--accent);
  opacity: 1;
}
/* ═══════════════════════════════════════════════════════════════
   Info Panel — Grouped Component Layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Header Group: Brand + Title ── */
.pip-header-group {
  margin-bottom: 12px;
}

.pip-brand-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pip-brand-link:hover {
  color: var(--accent);
}

.product-info-panel h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: var(--text-main);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 768px) {
  .product-info-panel h1 {
    font-size: 2rem;
  }
}

/* ── Meta Row: Rating + SKU side by side ── */
.pip-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.pip-rating {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
}

.pip-rating .fa-star,
.pip-rating .fa-star-half-alt {
  color: var(--accent);
}

.pip-sku {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pip-sku strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ── Price Card: Price + Discount + Stock in one card ── */
.pip-price-card {
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.pip-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pip-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.pip-price-old {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.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;
  vertical-align: middle;
}

.pip-discount-timer {
  background-color: rgba(229, 62, 62, 0.08);
  font-size: 0.82rem;
  color: #e53e3e;
  border: 1px dashed rgba(252, 129, 129, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.pip-stock-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pip-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}

.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 — scoped to override store.css */
.product-page .variant-section {
  margin-bottom: 24px;
}

.product-page .variant-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 12px;
  display: block;
}

.product-page .variant-value-display {
  font-weight: 700;
  color: var(--text-main);
}

.product-page .colors-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-page .btn-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  border: 1px solid rgba(22, 34, 53, 0.15) !important;
  padding: 0;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

.product-page .btn-color:hover {
  transform: scale(1.05);
}

.product-page .btn-color.selected {
  box-shadow: 0 0 0 2px var(--page-bg), 0 0 0 4px var(--text-main) !important;
  outline: none !important;
  transform: none;
}

.product-page .btn-color.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.product-page .sizes-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-page .btn-size {
  min-width: 48px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 50px !important;
  background: transparent !important;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-page .btn-size:hover {
  border-color: var(--text-muted) !important;
  background: transparent !important;
}

.product-page .btn-size.selected {
  background: var(--text-main) !important;
  color: var(--page-bg) !important;
  border-color: var(--text-main) !important;
}

.product-page .btn-size.disabled {
  opacity: 0.25;
  text-decoration: line-through;
  cursor: not-allowed;
  background: transparent !important;
}

/* 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: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 12px;
  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;
}

/* ══════════════════════════════════════════════════════════════
   Gallery Overrides — Match Landing Page Clean Design
   Scoped under .product-page to override store.css "Refresh" styles
   ══════════════════════════════════════════════════════════════ */

.product-page .pg-gallery-shell {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.product-page .pg-gallery-head {
  display: none !important;
}

.product-page .pg-gallery-title-group,
.product-page .pg-gallery-chip,
.product-page .pg-gallery-subtitle,
.product-page .pg-gallery-counter {
  display: none !important;
}

.product-page .pg-stage {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-page .pg-stage .swiper,
.product-page .pg-thumbs-swiper {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.product-page .pg-main-swiper {
  border-radius: 12px !important;
  background: var(--surface-bg) !important;
  border: none !important;
  min-height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
}

.product-page .pg-main-slide {
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.product-page .pg-main-media {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden;
}

.product-page .pg-main-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
  cursor: zoom-in;
  display: block;
  /* Fix blurry/pixelated image rendering caused by browser GPU layers & Swiper transitions */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.product-page .pg-main-slide:hover img {
  transform: scale(1.02);
}

/* Thumbnails — clean small squares like landing page */
.product-page .pg-thumbs-swiper {
  margin-top: 12px !important;
  padding-bottom: 0 !important;
}

.product-page .pg-thumb-slide {
  height: auto;
  border-radius: 8px !important;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  background: var(--surface-bg) !important;
  opacity: 0.6;
  transition: all 0.2s ease;
  cursor: pointer;
}

.product-page .pg-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page .swiper-slide-thumb-active.pg-thumb-slide {
  border-color: var(--accent);
  opacity: 1;
  transform: none !important;
}

/* Override price-card styling from store.css refresh */
.product-page .pip-price-card {
  background: rgba(var(--accent-rgb), 0.04) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.1) !important;
}

.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: 12px;
  overflow: hidden;
  opacity: 1;
}

.pg-thumb-slide {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface-bg);
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  cursor: pointer;
  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: none;
}

.pg-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pip-price-card,
.variants-container,
.product-tabs,
.review-form-box,
.product-related-section {
  min-width: 0;
}

/* kept for backward compat — now mostly handled by new pip-price-row / pip-stock-line */

.pip-stock-count,
.qty-help-text,
.pip-sku,
.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: 1px solid rgba(22, 34, 53, 0.15);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.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;
  }

  .pip-brand-link {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
  }

  .pip-header-group {
    margin-bottom: 8px;
  }

  .product-info-panel h1 {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .pip-meta-row {
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 0.84rem;
  }

  .pip-meta-row .pip-rating {
    gap: 4px;
    font-size: 0.82rem;
  }

  .pip-meta-row .pip-sku {
    font-size: 0.8rem;
  }

  .pip-price-card {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .pip-price {
    font-size: 1.45rem;
  }

  .pip-price-old {
    font-size: 0.88rem;
  }

  .pip-price-row {
    gap: 10px;
    margin-bottom: 8px;
  }

  .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 {
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 12px;
  }

  .qty-input-group {
    grid-column: span 2;
    width: 100%;
  }

  .btn-add-cart {
    grid-column: 1;
    width: 100%;
    height: 54px;
  }

  .btn-icon-square {
    grid-column: 2;
    width: 100%;
    height: 54px;
    margin: 0 !important;
  }

  .pip-whatsapp {
    width: 100%;
  }

  .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 {
    font-size: 0.84rem;
  }

  .btn-size {
    min-width: calc(50% - 4px);
    flex-basis: calc(50% - 4px);
  }

  .pip-price-row {
    align-items: flex-start;
  }

  .pip-actions {
    grid-template-columns: 1fr 50px;
  }

  .pip-whatsapp,
  .btn-add-cart,
  .qty-input-group,
  .btn-icon-square {
    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;
}

/* lp-cta style from landing page — Buy Now button */
.product-page .lp-cta {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: var(--btn-primary-text);
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 0;
}

.product-page .lp-cta:hover {
    filter: brightness(1.1);
}

.product-page .lp-cta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════
   Mobile Overrides — scoped to override store.css mobile styles
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .product-page .product-page-layout {
    gap: 20px !important;
  }

  .product-page .pg-main-swiper {
    border-radius: 12px !important;
  }

  .product-page .product-info-panel h1 {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
  }

  .product-page .pip-price {
    font-size: 1.45rem !important;
  }

  .product-page .pip-price-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .product-page .variant-title {
    display: block !important;
    flex-direction: unset !important;
  }
}
