/* =========================================================
   PIXIE REBELS / HABON PRODUCT DETAIL PAGE STYLES (PC & MOBILE)
   ========================================================= */

:root {
  --pdp-border-color: #e5e7eb;
  --pdp-text-primary: #111111;
  --pdp-text-secondary: #666666;
  --pdp-text-muted: #888888;
  --pdp-btn-black: #000000;
  --pdp-sale-red: #b91c1c;
  --pdp-badge-bg: #f4f4f5;
  --pdp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pdp-font-heading: 'Syne', 'Inter', sans-serif;
}

/* Hide Top Header Promo Banner strictly on Product Detail Page */
.top-header-banner,
#topHeaderBanner {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Page Container */
.pdp-page-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px 80px 28px;
  font-family: var(--pdp-font-sans);
  color: var(--pdp-text-primary);
}

@media (max-width: 1024px) {
  .pdp-page-wrapper {
    padding: 12px 20px 80px 20px;
  }
}

@media (max-width: 768px) {
  .pdp-page-wrapper {
    padding: 0 0 70px 0;
  }
}

/* Breadcrumb Navigation - Hidden */
.pdp-breadcrumb-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pdp-breadcrumb-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pdp-breadcrumb-nav a:hover {
  color: #111;
  text-decoration: underline;
}
.pdp-breadcrumb-separator {
  color: #999;
  font-size: 12px;
  user-select: none;
}

/* Main Product Layout (Desktop: 2 Columns) */
.product-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
  width: 100%;
}

.pdp-gallery-column {
  grid-column: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdp-gallery-container {
  width: 100%;
}

.pdp-info-panel {
  grid-column: 2;
  width: 100%;
}

@media (max-width: 1100px) {
  .product-main-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pdp-gallery-column {
    grid-column: 1;
    display: block;
    width: 100%;
  }
  .pdp-gallery-container {
    grid-column: 1;
  }
  .pdp-info-panel {
    grid-column: 1;
  }
}

/* ---------------------------------------------------------
   LEFT COLUMN: GALLERY (DESKTOP THUMBNAILS + SHOWCASE)
   --------------------------------------------------------- */
.pdp-gallery-container {
  display: flex;
  gap: 12px;
  position: relative;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .pdp-gallery-container {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: 0;
  }
}

/* Vertical Thumbnails on Desktop (Clean stacked list) */
.pdp-thumbnails-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 62px;
  flex-shrink: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.pdp-thumbnails-vertical::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 860px) {
  .pdp-thumbnails-vertical,
  #pdpThumbnailsVertical {
    display: none !important;
  }
}

.pdp-thumb-item {
  width: 62px;
  height: 92px;
  border: 1.5px solid transparent;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.pdp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.pdp-thumb-item:hover {
  border-color: #777777;
  opacity: 0.95;
}

.pdp-thumb-item.active {
  border-color: #000000;
  border-width: 1.5px;
}

/* Main Display Image Frame */
.pdp-main-frame {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

@media (max-width: 860px) {
  .pdp-main-frame {
    aspect-ratio: auto;
    background: transparent;
    overflow: visible;
  }
}

.pdp-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* Floating Wishlist Heart Button - Hidden on desktop to match clean reference screenshot */
.pdp-wishlist-float-btn {
  display: none;
}

@media (max-width: 860px) {
  .pdp-wishlist-float-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #111111;
  }
  .pdp-wishlist-float-btn.active svg {
    fill: #e11d48;
  }
}

/* MOBILE SWIPER / SLIDER */
.pdp-mobile-slider {
  display: none;
}

.pdp-mobile-dots {
  display: none;
}

@media (max-width: 860px) {
  .pdp-showcase-img {
    display: none;
  }

  .pdp-mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }

  .pdp-mobile-slider::-webkit-scrollbar {
    display: none;
  }

  .pdp-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    background: #f4f4f5;
  }

  .pdp-mobile-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
  }

  .pdp-mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 6px 0;
  }

  .pdp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d8;
    transition: all 0.2s ease;
  }

  .pdp-dot.active {
    background: #000000;
    transform: scale(1.25);
  }
}

/* ---------------------------------------------------------
   RIGHT COLUMN: STICKY PRODUCT INFO
   --------------------------------------------------------- */
.pdp-info-panel {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 860px) {
  .pdp-info-panel {
    position: static;
    padding: 0 16px;
    gap: 0;
  }
}

/* Ratings Stars & Count */
.pdp-reviews-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 6px;
}

.pdp-stars {
  color: #000000;
  letter-spacing: 2px;
  font-size: 0.86rem;
}

.pdp-rating-text {
  color: #222222;
  font-size: 0.76rem;
  font-weight: 500;
}

/* Product Title */
.pdp-product-title {
  font-family: var(--pdp-font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 6px 0;
  color: #000000;
}

@media (max-width: 768px) {
  .pdp-product-title {
    font-size: 1.45rem;
  }
}

.pdp-vendor-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  margin: 0 0 6px 0;
}

/* Price Row */
.pdp-price-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 0;
}

.pdp-compare-price {
  font-size: 1.05rem;
  color: #555555;
  text-decoration: line-through;
  font-weight: 400;
}

.pdp-sale-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
}

.pdp-tax-note {
  font-size: 0.72rem;
  color: #777777;
  margin-top: 2px;
}

.pdp-divider-line {
  height: 1px;
  background-color: #e5e5e5;
  margin: 16px 0;
}

/* Sold & Only Left Row */
.pdp-sold-stock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pdp-sold-badge {
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdp-stock-badge {
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Color & Size Meta Header */
.pdp-meta-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-meta-heading {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.pdp-meta-highlight {
  font-weight: 600;
  color: #4f46e5;
}

/* Color Section */
.pdp-color-section {
  margin-bottom: 18px;
}

.pdp-colors-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdp-color-pill {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 3px;
}

.pdp-color-pill:hover {
  border-color: #cbd5e1;
}

.pdp-color-pill.active {
  border-color: #000000;
  box-shadow: none;
}

.pdp-color-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.pdp-color-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}

/* Size Variants */
.pdp-size-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.pdp-size-chart-btn {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  color: #222222;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.pdp-size-chart-btn:hover {
  color: #000000;
}

.pdp-sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-size-btn {
  padding: 8px 16px;
  min-width: 48px;
  min-height: 40px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.pdp-size-btn:hover:not(.sold-out) {
  background: #f8fafc;
}

.pdp-size-btn.active {
  border: 1.8px solid #4f46e5;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
}

.pdp-size-btn.sold-out {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Condition & Category Inline Group (Compact side-by-side on PC & Mobile) */
.pdp-meta-inline-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.pdp-detail-meta-row {
  font-size: 0.78rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.pdp-detail-meta-key {
  font-weight: 700;
  font-size: 0.78rem;
  color: #0f172a;
}

.pdp-detail-meta-val {
  font-weight: 500;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 860px) {
  .pdp-meta-inline-group {
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 10px;
  }
  .pdp-detail-meta-row {
    font-size: 0.75rem;
  }
  .pdp-detail-meta-key,
  .pdp-detail-meta-val {
    font-size: 0.75rem;
  }
}

/* Shipping Selection */
.pdp-shipping-selection-section {
  margin-top: 10px;
  margin-bottom: 20px;
}

.pdp-shipping-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdp-shipping-pill {
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 14px;
  min-height: 36px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: inherit;
}

.pdp-shipping-pill:hover {
  background: #f8fafc;
  border-color: #000000;
}

.pdp-shipping-pill.active {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

/* Strikethrough diagonal line for sold out size */
.pdp-size-btn.sold-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 1px;
  background-color: #b0b0b0;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* Shipping Timeline Notice */
.pdp-shipping-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #111111;
  margin: 16px 0;
}

.pdp-info-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #111111;
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}

/* CTA Buttons */
.pdp-action-buttons {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.pdp-primary-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 15px 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-primary-btn:hover {
  background: #222222;
}

/* Dual Trust Badges (Trustpilot + Instagram) */
.pdp-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.pdp-trust-pill {
  background: #f4f4f4;
  border-radius: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #111111;
  height: 52px;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.pdp-trust-pill:hover {
  background: #eaeaea;
}

.pdp-trust-trustpilot {
  flex-direction: column;
  gap: 3px;
}

.pdp-trustpilot-stars-box {
  background: #000000;
  color: #ffffff;
  padding: 2px 6px;
  display: inline-flex;
  gap: 2px;
  font-size: 0.72rem;
  line-height: 1;
}

.pdp-trust-subtext {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111111;
}

.pdp-trust-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pdp-insta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #111111;
}

.pdp-insta-text {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111111;
}

/* ---------------------------------------------------------
   COMPLETE THE LOOK SECTION
   --------------------------------------------------------- */
.pdp-complete-look-box {
  margin-top: 18px;
  padding-top: 4px;
}

.pdp-complete-look-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pdp-complete-look-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111111;
}

.pdp-complete-look-dot {
  font-size: 0.55rem;
  color: #000000;
}

.pdp-complete-look-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
}

.pdp-complete-look-img-wrap {
  position: relative;
  width: 72px;
  height: 104px;
  flex-shrink: 0;
  background: #f7f7f8;
  overflow: hidden;
}

.pdp-complete-look-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pdp-complete-look-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-complete-look-wish-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111111;
  padding: 0;
  transition: transform 0.15s ease;
  z-index: 2;
}

.pdp-complete-look-wish-btn:hover {
  transform: scale(1.1);
}

.pdp-complete-look-sale {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #c51616;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  text-transform: capitalize;
}

.pdp-complete-look-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pdp-complete-look-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  line-height: 1.3;
}

.pdp-complete-look-title:hover {
  text-decoration: underline;
}

.pdp-complete-look-vendor {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555555;
  text-transform: uppercase;
}

.pdp-complete-look-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.78rem;
  margin-top: 1px;
}

.pdp-compare-price-small {
  color: #888888;
  text-decoration: line-through;
  font-weight: 400;
}

.pdp-sale-price-small {
  color: #111111;
  font-weight: 600;
}

.pdp-complete-look-swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.pdp-swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.pdp-swatch-circle.active {
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 2.5px #000000;
}

/* ---------------------------------------------------------
   ACCORDIONS (COLLAPSIBLE TABS)
   --------------------------------------------------------- */
.pdp-accordions-group {
  margin-top: 18px;
  border-top: 1px solid #e5e5e5;
}

.pdp-accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.pdp-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
  text-align: left;
}

.pdp-accordion-header:hover {
  color: #000000;
}

.pdp-accordion-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
  stroke: #111111;
}

.pdp-accordion-item.open .pdp-accordion-chevron {
  transform: rotate(180deg);
}

.pdp-accordion-content {
  display: none;
  padding: 0 0 16px 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #4b5563;
}

.pdp-accordion-item.open .pdp-accordion-content {
  display: block;
}

.pdp-accordion-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}

.pdp-accordion-content li {
  margin-bottom: 6px;
}

.pdp-accordion-content strong {
  color: #111111;
}

.pdp-accordion-content p {
  margin: 0 0 10px 0;
}

.pdp-accordion-content p:last-child {
  margin-bottom: 0;
}

.pdp-accordion-content img,
.pdp-accordion-content video,
.pdp-accordion-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 10px 0;
}

.pdp-accordion-content a {
  color: #111111;
  text-decoration: underline;
  font-weight: 600;
}

.pdp-accordion-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.pdp-accordion-content th,
.pdp-accordion-content td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: left;
}

/* Custom HTML Block from Product */
.pdp-custom-html-container {
  width: 100%;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #374151;
}

.pdp-custom-html-container img,
.pdp-custom-html-container video,
.pdp-custom-html-container iframe {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Social Proof Customer Ticker Card */
.pdp-social-proof-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f4f4f4;
  border-radius: 9999px;
  padding: 6px 14px 6px 8px;
  margin-top: 16px;
  font-size: 0.74rem;
  color: #333333;
  text-decoration: none;
  transition: background 0.15s ease;
  width: fit-content;
  max-width: 100%;
}

.pdp-social-proof-card:hover {
  background: #eaeaea;
}

.pdp-social-proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pdp-social-proof-text {
  line-height: 1.35;
}

.pdp-social-proof-text strong {
  color: #111111;
}

/* =========================================================
   PRODUCT DETAILS MEDIA (VIDEOS & IMAGES)
   ========================================================= */
.pdp-details-media-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #ebebeb;
  width: 100%;
  box-sizing: border-box;
}

.pdp-details-videos-container,
.pdp-details-images-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.pdp-details-images-container:not(:empty) {
  margin-top: 36px;
}

.pdp-media-group {
  width: 100%;
  box-sizing: border-box;
}

.pdp-media-group-header {
  margin-bottom: 24px;
  text-align: left;
}

.pdp-media-group-badge {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: #e11d48;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pdp-media-group-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.pdp-media-group-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 800px;
}

/* Zigzag / Vertical Alternating Layout */
.pdp-media-zigzag-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  margin-top: 16px;
}

.pdp-media-zigzag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  box-sizing: border-box;
}

.pdp-media-zigzag-row.reverse {
  flex-direction: row-reverse;
}

.pdp-media-zigzag-media {
  flex: 1;
  max-width: 50%;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-media-zigzag-text {
  flex: 1;
  max-width: 46%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pdp-media-item-badge {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: #e11d48;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdp-media-item-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.3;
}

.pdp-media-item-content {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.65;
}

/* Grids 1, 2, 3, 4 */
.pdp-media-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  align-items: start;
  box-sizing: border-box;
}

.pdp-media-grid.grid-1 {
  grid-template-columns: 1fr;
  width: 100%;
}

.pdp-media-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pdp-media-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pdp-media-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.pdp-media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.pdp-media-card-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pdp-media-video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
}

.pdp-media-img {
  width: 100%;
  height: auto;
  max-height: 550px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.pdp-media-card-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  margin-top: 4px;
}

.pdp-media-card-content {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Slider Controls for mobile */
.pdp-media-slider-wrapper {
  position: relative;
  width: 100%;
}

.pdp-media-slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
  color: #111111;
  transition: all 0.2s ease;
}

.pdp-media-slider-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: #ffffff;
}

.pdp-media-slider-btn.prev {
  left: -8px;
}

.pdp-media-slider-btn.next {
  right: -8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdp-details-media-section {
    margin-top: 40px;
    padding-top: 28px;
  }
  .pdp-media-group-title {
    font-size: 1.35rem;
  }
  .pdp-media-zigzag-row {
    flex-direction: column !important;
    gap: 20px;
    margin-bottom: 32px;
  }
  .pdp-media-zigzag-media,
  .pdp-media-zigzag-text {
    max-width: 100% !important;
  }
  .pdp-media-slider-btn {
    display: flex;
  }
  .pdp-media-slider {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 16px !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    padding-bottom: 8px;
  }
  .pdp-media-slider::-webkit-scrollbar {
    display: none;
  }
  .pdp-media-slider .pdp-media-card {
    flex: 0 0 85% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
  }
}

/* ---------------------------------------------------------
   "SHOP THE COLLECTION" / RELATED PRODUCTS GRID
   --------------------------------------------------------- */
.pdp-related-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #ebebeb;
}

.pdp-related-header {
  text-align: center;
  margin-bottom: 24px;
}

.pdp-related-title {
  font-family: var(--pdp-font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111111;
  margin: 0;
}

@media (max-width: 768px) {
  .pdp-related-section {
    margin-top: 40px;
    padding: 30px 0 0 0;
    overflow: hidden;
  }
  .pdp-related-header {
    padding: 0 16px;
    margin-bottom: 20px;
  }
  .pdp-related-title {
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
}

/* 5-Column Grid on Desktop, Horizontal Swipe on Mobile */
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 16px;
}

@media (max-width: 1200px) {
  .pdp-related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .pdp-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile horizontal swipe / lướt ngang */
@media (max-width: 768px) {
  .pdp-related-grid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 16px 24px 16px;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pdp-related-grid::-webkit-scrollbar {
    display: none;
  }

  .pdp-related-grid .pdp-card {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 180px;
    scroll-snap-align: start;
  }

  .pdp-related-grid .pdp-card-img-wrap {
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .pdp-related-grid .pdp-card-title {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdp-related-grid .pdp-card-vendor {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdp-related-grid .pdp-card-price {
    font-size: 0.85rem;
  }
}

/* Related Product Card */
.pdp-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.pdp-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f4f4f5;
  margin-bottom: 10px;
}

.pdp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.pdp-card-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.pdp-card:hover .pdp-card-img-wrap img {
  transform: scale(1.03);
}

.pdp-card:hover .pdp-card-img-secondary {
  opacity: 1;
}

.pdp-card-sale-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  z-index: 2;
}

.pdp-card-wish-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: #111111;
  transition: transform 0.15s, background 0.15s;
}

.pdp-card-wish-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.pdp-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 2px;
}

.pdp-card-vendor {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}

.pdp-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
}

.pdp-card-compare {
  font-size: 0.76rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.pdp-card-price {
  font-weight: 700;
  color: #111111;
}

/* ---------------------------------------------------------
   CUSTOMER REVIEWS SECTION
   --------------------------------------------------------- */
.pdp-reviews-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #ebebeb;
}

@media (max-width: 768px) {
  .pdp-reviews-section {
    margin-top: 40px;
    padding: 30px 16px 0 16px;
  }
}

.pdp-reviews-container {
  max-width: 960px;
  margin: 0 auto;
}

.pdp-reviews-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebebeb;
}

.pdp-reviews-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdp-reviews-score {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.pdp-write-review-btn {
  padding: 10px 20px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pdp-write-review-btn:hover {
  background: #27272a;
}

.pdp-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdp-review-card {
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 14px;
}

.pdp-review-main-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.pdp-review-content-col {
  flex: 1;
  min-width: 0;
}

.pdp-review-date {
  font-size: 0.78rem;
  color: #888888;
  margin-bottom: 6px;
}

.pdp-reviewer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pdp-reviewer-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #111111;
}

.pdp-verified-badge {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pdp-review-stars {
  color: #111111;
  font-size: 0.88rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.pdp-review-variant-tag {
  font-size: 0.72rem;
  color: #6b7280;
  background: #f4f4f5;
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}

.pdp-review-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #333333;
  margin-top: 4px;
  word-break: break-word;
}

.pdp-review-media-col {
  flex-shrink: 0;
}

.pdp-review-media-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pdp-review-media-img {
  width: 78px;
  height: 94px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdp-review-media-img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Reviews Pagination (Load More Reviews) */
.pdp-reviews-pagination {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pdp-more-reviews-btn {
  padding: 12px 32px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pdp-more-reviews-btn:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.pdp-more-reviews-btn:active {
  transform: translateY(0);
}

.pdp-collapse-reviews-btn {
  padding: 10px 24px;
  background: transparent;
  color: #71717a;
  border: 1px solid #d4d4d8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pdp-collapse-reviews-btn:hover {
  color: #000000;
  border-color: #000000;
  background: #f4f4f5;
}

.pdp-reviews-count-status {
  font-size: 0.75rem;
  color: #71717a;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   STICKY BOTTOM ADD TO CART BAR (MOBILE ONLY)
   --------------------------------------------------------- */
.pdp-mobile-sticky-bar {
  display: none;
}

@media (max-width: 860px) {
  .pdp-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .pdp-mobile-sticky-bar.visible {
    transform: translateY(0);
  }

  .pdp-sticky-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .pdp-sticky-thumb {
    width: 42px;
    height: 54px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    background: #f4f4f5;
  }

  .pdp-sticky-details {
    min-width: 0;
  }

  .pdp-sticky-title {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111111;
  }

  .pdp-sticky-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111111;
  }

  .pdp-sticky-btn {
    padding: 12px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    border-radius: 2px;
  }
}

/* ---------------------------------------------------------
   SIZE CHART MODAL
   --------------------------------------------------------- */
.pdp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.pdp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pdp-modal-box {
  background: #ffffff;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.pdp-modal-overlay.active .pdp-modal-box {
  transform: scale(1);
}

.pdp-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.pdp-modal-close-btn:hover {
  color: #000000;
}

.pdp-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.pdp-unit-toggle {
  display: inline-flex;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pdp-unit-btn {
  padding: 6px 16px;
  background: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.pdp-unit-btn.active {
  background: #000000;
  color: #ffffff;
}

.pdp-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 20px;
}

.pdp-size-table th,
.pdp-size-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: center;
}

.pdp-size-table th {
  background: #f9fafb;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.pdp-measure-guide {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.6;
  background: #f9fafb;
  padding: 14px;
  border-radius: 4px;
}

/* =========================================================
   PDP CUSTOM HTML RESPONSIVE POSITIONING
   - Desktop (> 860px): Under product gallery showcase by default
   - Mobile (<= 860px): In product info panel under accordions
   ========================================================= */
.pdp-custom-html-container {
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  max-width: 100%;
}

.pdp-custom-html-container table {
  max-width: 100%;
  box-sizing: border-box;
}

.pdp-custom-html-desktop {
  display: block;
  width: 100%;
  margin-top: 24px;
}

.pdp-custom-html-mobile {
  display: none !important;
  width: 100%;
  margin: 18px 0;
}

/* When admin selects 'in_info' on desktop: */
.pdp-custom-html-desktop.pdp-custom-html-hidden-pc {
  display: none !important;
}
.pdp-custom-html-mobile.pdp-custom-html-show-all {
  display: block !important;
}

/* On Mobile screens (<= 860px) or Mobile Mode Preview in Customizer: Keep in info panel, hide desktop */
@media (max-width: 860px) {
  .pdp-custom-html-desktop {
    display: none !important;
  }
  .pdp-custom-html-mobile {
    display: block !important;
    margin: 18px 0;
  }
}

body.mobile-mode .pdp-custom-html-desktop {
  display: none !important;
}
body.mobile-mode .pdp-custom-html-mobile {
  display: block !important;
  margin: 18px 0;
}

/* Custom HTML Alignment helpers for block & tables */
.pdp-custom-html-container[data-align="center"],
.pdp-custom-html-container.align-center {
  text-align: center;
}
.pdp-custom-html-container[data-align="center"] table,
.pdp-custom-html-container.align-center table {
  margin-left: auto !important;
  margin-right: auto !important;
}

.pdp-custom-html-container[data-align="right"],
.pdp-custom-html-container.align-right {
  text-align: right;
}
.pdp-custom-html-container[data-align="right"] table,
.pdp-custom-html-container.align-right table {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.pdp-custom-html-container[data-align="left"],
.pdp-custom-html-container.align-left {
  text-align: left;
}
.pdp-custom-html-container[data-align="left"] table,
.pdp-custom-html-container.align-left table {
  margin-left: 0 !important;
  margin-right: auto !important;
}

