/* ============================================================
   MY MOBİ — Ultra Professional Mobile-Responsive Product Detail CSS
   ============================================================ */

/* Global Reset for Product Detail Page */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

.product-detail-page {
  padding: 24px 0 90px;
  background: #fbf9f6;
  min-height: 85vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.product-detail-page .container {
  max-width: var(--container-max-width, 1360px);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---- Breadcrumb ---- */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
  line-height: 1.4;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.breadcrumb-nav a { color: #64748b; text-decoration: none; font-weight: 500; transition: color .2s; }
.breadcrumb-nav a:hover { color: #c59b6d; }
.breadcrumb-separator { color: #cbd5e1; font-weight: 700; }
.breadcrumb-current { color: #0f172a; font-weight: 700; }

/* ---- Main Grid ---- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pd-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ---- Gallery Section (Trendyol / Lüks E-Ticaret Standardı) ---- */
.pd-gallery-sticky {
  position: sticky;
  top: 90px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pd-main-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 520px;
  min-height: 320px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pd-main-image-wrap:active {
  cursor: grabbing;
}

.pd-slider-track {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-main-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .25s ease, transform .4s cubic-bezier(.16,1,.3,1);
  display: block;
}

.pd-main-image-wrap:hover .pd-main-image {
  transform: scale(1.03);
}

/* Gallery Navigation Arrows */
.pd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.pd-gallery-arrow:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.pd-gallery-arrow.prev { left: 12px; }
.pd-gallery-arrow.next { right: 12px; }

/* Counter Pill */
.pd-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pd-badge-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pd-discount-floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: #e63946;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Thumbnails — Modern Carousel Slider */
.pd-thumbs-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.pd-thumb-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 3;
  outline: none;
  padding: 0;
}

.pd-thumb-nav-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.pd-thumb-nav-btn:active {
  transform: scale(0.95);
}

.pd-thumbs-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 2px 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}

.pd-thumbs-row::-webkit-scrollbar {
  display: none;
}

.pd-thumb-btn {
  flex: 0 0 84px !important;
  width: 84px !important;
  height: 64px !important;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.pd-thumb-btn.active {
  border-color: #c59b6d;
  box-shadow: 0 0 0 2.5px rgba(197, 155, 109, 0.35), 0 4px 10px rgba(197, 155, 109, 0.18);
  transform: translateY(-2px);
}

.pd-thumb-btn:hover {
  border-color: #b08556;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pd-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform .3s ease;
}

.pd-thumb-btn:hover img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .pd-gallery-sticky {
    position: static;
  }
  .pd-main-image-wrap {
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  .pd-thumb-nav-btn {
    display: none !important;
  }
  .pd-thumbs-carousel-wrap {
    gap: 0;
  }
  .pd-thumbs-row {
    gap: 8px;
    padding: 4px 2px 6px;
    scrollbar-width: none;
  }
  .pd-thumbs-row::-webkit-scrollbar { display: none; }
  .pd-thumb-btn {
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 52px !important;
    border-radius: 8px;
  }
}

/* ---- Product Info Pane ---- */
.pd-info-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pd-category-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #c59b6d;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.pd-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.pd-sku-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.pd-stars { color: #f59e0b; font-weight: 700; letter-spacing: 1px; }

/* Price Card */
.pd-price-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.pd-price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #c59b6d 0%, #af8353 100%);
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pd-current-price {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
}

.pd-old-price {
  font-size: 17px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.pd-installment-banner {
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Color Options */
.pd-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-colors-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pd-color-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}

.pd-color-pill.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.pd-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Modular Set Customizer */
.pd-modular-box {
  background: linear-gradient(135deg, rgba(197,168,128,.08) 0%, rgba(197,168,128,.02) 100%);
  border: 1.5px solid rgba(197,168,128,.35);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 22px;
}

.pd-modular-header {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-modular-header small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.pd-modular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: 13px;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-module-row.selected {
  border-color: #c59b6d;
  background: #fdfbf8;
  box-shadow: 0 2px 10px rgba(197, 155, 109, 0.12);
}

.pd-module-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1 1 200px;
  margin: 0;
  user-select: none;
  min-width: 0;
}

.pd-module-check {
  width: 18px;
  height: 18px;
  accent-color: #c59b6d;
  cursor: pointer;
  flex-shrink: 0;
}

.pd-mod-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  white-space: normal;
  word-break: break-word;
}

.pd-mod-badge-included {
  font-size: 11px;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.pd-mod-badge-extra {
  font-size: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

/* Specifications Grid */
.pd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.pd-spec-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s;
}

.pd-spec-item:hover { border-color: #c59b6d; }

.pd-spec-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}

.pd-spec-value {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
}

/* In-Page Action / CTA Row */
.pd-cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
  width: 100%;
}

.pd-qty-wrap {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.pd-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #ffffff;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-qty-btn:hover { background: #0f172a; color: #ffffff; }

.pd-qty-num {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.pd-btn-cart {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #212529 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  letter-spacing: .2px;
}

.pd-btn-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c59b6d 0%, #af8353 100%);
  opacity: 0;
  transition: opacity .3s;
}

.pd-btn-cart:hover::before { opacity: 1; }
.pd-btn-cart > * { position: relative; z-index: 1; }
.pd-btn-cart:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(197,155,109,.4); }
.pd-btn-cart:active { transform: scale(.98); }

.pd-btn-fav {
  width: 50px;
  height: 50px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  color: #94a3b8;
}

.pd-btn-fav:hover, .pd-btn-fav.active {
  border-color: #e63946;
  background: #fff5f5;
  color: #e63946;
}

.pd-btn-fav.active svg { fill: #e63946; stroke: #e63946; }

/* In-Page WhatsApp Button */
.pd-btn-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #1db954 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all .25s;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

.pd-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
}

/* Trust Badges */
.pd-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  width: 100%;
}

.pd-trust-item {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.pd-trust-item span:first-child { font-size: 22px; }
.pd-trust-item strong { display: block; color: #1e293b; font-size: 12px; margin-bottom: 1px; }

/* ---- Tabs Section ---- */
.pd-tabs-wrap {
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  border: 1px solid #edf2f7;
  margin-bottom: 36px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.pd-tabs-nav {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}

.pd-tabs-nav::-webkit-scrollbar { display: none; }

.pd-tab-btn {
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}

.pd-tab-btn.active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  background: #ffffff;
}

.pd-tab-btn:hover:not(.active) { color: #1e293b; background: #f1f5f9; }

.pd-tab-pane {
  display: none;
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  padding: 28px 32px;
}

.pd-tab-pane.active { display: block; }

/* Reviews */
.pd-review-header-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc, #f0f4f8);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.pd-review-score {
  font-size: 48px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -2px;
}

.pd-review-card {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.pd-review-card:last-child { border-bottom: none; margin-bottom: 0; }

.pd-review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.pd-review-text {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
}

/* Related Products */
.pd-related-section { margin-top: 36px; }
.pd-related-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pd-related-title { font-size: clamp(18px, 2.5vw, 22px); font-weight: 800; color: #0f172a; }

/* ===== MOBILE STICKY BOTTOM ACTION BAR ===== */
.pd-mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  gap: 10px;
  align-items: center;
}

.pd-mobile-price-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.pd-mobile-price-badge .mob-price {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.pd-mobile-price-badge .mob-old-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.pd-mobile-cta-btn {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #212529 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.pd-mobile-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c59b6d, #af8353);
  opacity: 0;
  transition: opacity .3s;
}

.pd-mobile-cta-btn:active::before { opacity: 1; }
.pd-mobile-cta-btn > * { position: relative; z-index: 1; }

.pd-mobile-wa-btn {
  width: 46px;
  height: 46px;
  background: #25d366;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37,211,102,.3);
  flex-shrink: 0;
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (Mobile-First / Tablet / Desktop)
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .pd-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    border-radius: 20px;
  }
  .pd-gallery-sticky {
    position: static;
  }
}

/* Mobile Devices (≤768px) */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
  }

  .product-detail-page {
    padding: 10px 0 100px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .product-detail-page .container {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .breadcrumb-nav {
    font-size: 11.5px;
    margin-bottom: 10px;
    gap: 4px;
    width: 100%;
  }

  .pd-grid {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .pd-gallery-sticky {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .pd-main-image-wrap {
    aspect-ratio: 4/3;
    border-radius: 12px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 100%;
  }

  .pd-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .pd-thumbs-track {
    gap: 6px;
    padding-bottom: 4px;
  }

  .pd-thumb-btn {
    width: 60px;
    height: 48px;
    border-radius: 8px;
  }

  .pd-info-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pd-category-tag {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }

  .pd-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .pd-sku-rating {
    font-size: 11.5px;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .pd-price-card {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-price-row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .pd-current-price {
    font-size: 24px;
  }

  .pd-old-price {
    font-size: 14px;
  }

  .pd-installment-info {
    font-size: 11.5px;
  }

  .pd-color-section {
    margin-bottom: 14px;
  }

  .pd-color-options {
    gap: 6px;
    flex-wrap: wrap;
  }

  .pd-color-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  .pd-modular-box {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-modular-header {
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .pd-modular-list {
    gap: 8px;
  }

  .pd-module-row {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-module-row label {
    flex: 1 1 160px;
    min-width: 0;
  }

  .pd-mod-name {
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
  }

  .pd-mod-live-price {
    font-size: 11.5px;
    word-break: break-word;
  }

  .pd-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .pd-spec-item {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .pd-spec-label {
    font-size: 10px;
  }

  .pd-spec-value {
    font-size: 12px;
    word-break: break-word;
  }

  /* In-page CTA buttons */
  .pd-cta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
  }

  .pd-cta-row .quantity-controller {
    height: 42px;
    flex: 0 0 auto;
  }

  .pd-btn-cart {
    flex: 1 1 130px;
    height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  .pd-btn-fav {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .pd-btn-whatsapp {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .pd-trust-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 10px;
  }

  .pd-trust-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-align: left;
  }

  .pd-trust-item span:first-child {
    font-size: 18px;
  }

  .pd-trust-item strong {
    font-size: 11.5px;
  }

  .pd-trust-item span:last-child {
    font-size: 10.5px;
  }

  /* Sticky Bottom Bar */
  body {
    padding-bottom: 74px;
  }

  .pd-mobile-cta-bar {
    display: flex;
  }

  .pd-tabs-wrap {
    border-radius: 14px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .pd-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .pd-tab-btn {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .pd-tab-pane {
    padding: 14px;
    font-size: 13.5px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }

  .pd-review-header-box {
    padding: 12px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }

  .pd-review-score {
    font-size: 34px;
  }
}

/* Extra Small Phones (≤480px) */
@media (max-width: 480px) {
  .product-detail-page .container {
    padding: 0 8px;
  }

  .pd-grid {
    padding: 10px;
    gap: 12px;
    border-radius: 12px;
  }

  .pd-title {
    font-size: 18px;
  }

  .pd-current-price {
    font-size: 21px;
  }

  .pd-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .pd-spec-item {
    padding: 6px 8px;
  }

  .pd-spec-label {
    font-size: 9.5px;
  }

  .pd-spec-value {
    font-size: 11.5px;
  }

  .pd-module-row {
    padding: 8px 10px;
  }
}

/* ════════════════════════════════════════════════════════════
   BED SIZE VARIANTS & 6-PIECE BEDROOM DIMENSIONS
   ════════════════════════════════════════════════════════════ */
.pd-bed-sizes-wrap {
  margin-bottom: 20px;
}

.pd-bed-sizes-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-bed-size-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  outline: none;
  min-width: 90px;
  user-select: none;
}

.pd-bed-size-btn:hover {
  border-color: #c59b6d;
  background: #fdfbf8;
  transform: translateY(-2px);
}

.pd-bed-size-btn.active {
  border-color: #c59b6d;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  border-width: 2px;
}

.pd-bed-size-btn .size-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.pd-bed-size-btn.active .size-name {
  color: #ffffff;
}

.pd-bed-size-btn .size-diff {
  font-size: 11px;
  font-weight: 700;
  color: #c59b6d;
  margin-top: 3px;
}

.pd-bed-size-btn.active .size-diff {
  color: #f6d29b;
}

/* 6-Piece Bedroom Set Dimensions View */
.pd-piece-dimensions-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-top: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.pd-piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pd-piece-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: transform .2s ease, border-color .2s ease;
}

.pd-piece-card:hover {
  border-color: #c59b6d;
  transform: translateY(-2px);
}

.pd-piece-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.pd-piece-dims {
  font-size: 12px;
  font-weight: 700;
  color: #b08556;
}

.pd-piece-note {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}
