/* === PRODUCT DETAIL v3 (Tokopedia-like) — Full stylesheet === */

/* Root / Container */
.product-single {
  --pd-gap: 2rem;
  --pd-border: #e2e8f0;
  --pd-bg: #ffffff;
  --pd-muted: #64748b;
  --pd-dark: #0f172a;
  --pd-accent: #0d6efd; /* tema utama situs */
  --pd-radius: 12px;
  --pd-soft: #f8fafc;
  --pd-soft-border: #e5e7eb;
  --pd-danger: #dc2626;
  --pd-success-bg: #dcfce7;
  --pd-success-text: #166534;
  --pd-danger-bg: #fee2e2;
  --pd-danger-text: #b91c1c;
  --pd-shadow: 0 6px 20px -10px rgba(0,0,0,.12);
  --pd-transition: .25s cubic-bezier(.4,.0,.2,1);
  max-width:1280px;
  margin-inline:auto;
}

/* === Sticky Product Header Bar (muncul saat scroll) === */
.pd-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pd-sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pd-sticky-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pd-sticky-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
}

.pd-sticky-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-sticky-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-sticky-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.pd-sticky-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-sticky-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1;
}

.pd-sticky-price-original {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  line-height: 1;
}

.pd-sticky-discount {
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  line-height: 1;
}

.pd-sticky-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.pd-sticky-share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-sticky-share-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.pd-sticky-share-btn:active {
  transform: translateY(0);
}

.pd-sticky-share-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.pd-sticky-btn-chat svg {
  width: 16px !important;
  height: 16px !important;
  max-width: none !important;
  margin-right: 4px;
  flex-shrink: 0;
}

.pd-sticky-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pd-sticky-btn-cart {
  background: #fff;
  color: #0d6efd;
  border: 1px solid #0d6efd;
}

.pd-sticky-btn-cart:hover {
  background: rgba(13, 110, 253, 0.06);
}

.pd-sticky-btn-chat {
  background: #fff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  flex: 0.8;
}

.pd-sticky-btn-chat:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}

.pd-sticky-btn-buy {
  background: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
  box-shadow: 0 2px 8px -2px rgba(13, 110, 253, 0.4);
}

.pd-sticky-btn-buy:hover {
  filter: brightness(0.95);
}

.pd-sticky-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hide on mobile (use existing FAB instead) */
@media (max-width: 880px) {
  .pd-sticky-header {
    display: none;
  }
}

/* === PRINT STYLES (for PDF Export) === */
@media print {
  /* Reset & Base */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  body {
    background: white !important;
    margin: 0;
    padding: 0;
  }
  
  /* Hide all navigation, buttons, and interactive elements */
  nav, header, footer,
  nav *, header *, footer *,
  .navbar, .navbar *,
  .nav-item, .nav-link,
  .pd-sticky-header,
  .pd-sticky-header.visible,
  .pd-breadcrumb,
  .pd-sidebar,
  .pd-mobile-fab,
  .pd-share-btn,
  .pd-sticky-share-btn,
  #pd-share-btn,
  .share-button,
  [data-share-btn],
  button,
  .btn-add-cart,
  .btn-buy,
  .pd-actions,
  .pd-compare-section,
  .pd-compare-btn,
  .pd-compare-info,
  #pd-compare-btn,
  .compare-note,
  .compare-container,
  .compare-dropdown,
  .compare-panel,
  .compare-wrapper,
  [data-compare],
  [id*="compare"],
  [class*="compare"],
  .pd-thumb-gallery,
  .pd-installment-card,
  .pd-installment-card2,
  .inst-alt-banner--compact,
  .qoala-banner-card,
  .tradein-compact-card,
  .pwp-deals-section,
  #pwp-deals-section,
  .pwp-trigger-badge,
  .pd-related-full,
  .pd-scroll-top,
  .stock-info-btn,
  .stock-popover,
  .pd-countdown-modern,
  .pd-share-modal-overlay,
  [id*="promo-"],
  .bottom-nav,
  .pd-buy-form,
  .pd-buy-card,
  .pd-extra-meta,
  .pd-reviews-section,
  #reviews,
  hr,
  .divider,
  .separator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  
  /* Extra aggressive reset for any remaining borders */
  .pd-info-card *,
  .pd-meta-inline *,
  .pd-variants * {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  
  /* Layout restructure */
  .product-single {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  
  /* Reset all shadows and borders for print */
  * {
    box-shadow: none !important;
  }
  
  .pd-top-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 24px !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    page-break-inside: avoid;
    align-items: start !important;
  }
  
  /* Print header with logo - centered and larger */
  .product-single::before {
    content: "" !important;
    display: block !important;
    width: 150px !important;
    height: 50px !important;
    background: url('/assets/img/logo.png') no-repeat center !important;
    background-size: contain !important;
    margin: 0 auto 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Media card - left column */
  .pd-media-card {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    page-break-inside: avoid;
  }
  
  /* Hide desktop image, use mobile slider for both desktop and mobile */
  .pd-main-image {
    display: none !important;
  }
  
  /* Mobile slider - show first image only in print */
  .pd-mobile-slider {
    display: block !important;
    overflow: visible !important;
  }
  
  .pd-mslide {
    display: none !important;
  }
  
  .pd-mslide:first-child {
    display: block !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
  }
  
  .pd-mslide:first-child img {
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  /* Info card - right column */
  .pd-info-card {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    box-shadow: none !important;
  }
  
  /* Title */
  .pd-title-row {
    display: block !important;
    margin-bottom: 10px !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
  
  /* Hide share button in print */
  .pd-title-row .pd-share-btn,
  .pd-title-row #pd-share-btn {
    display: none !important;
  }
  
  .pd-title {
    font-size: 13pt !important;
    color: #000 !important;
    margin: 0 0 10px 0 !important;
    page-break-after: avoid;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
  
  /* Price and QR container - side by side */
  .pd-price-qr-container {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
    margin-bottom: 14px !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
  }
  
  /* Price block - left side */
  .pd-price-block {
    flex: 1 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
  
  .pd-price-row {
    margin-bottom: 8px !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 0 !important;
  }
  
  /* Hide all empty or unnecessary elements in price row */
  .pd-price-row > span:empty,
  .pd-price-row > .sold-inline,
  #pd-sold-inline {
    display: none !important;
  }
  
  .pd-price-current {
    font-size: 18pt !important;
    color: #0d6efd !important;
  }
  
  /* Show price range for variant products in print */
  .pd-price-current[data-price-range]::after {
    content: attr(data-price-range) !important;
    display: block !important;
    font-size: 11pt !important;
    color: #64748b !important;
    margin-top: 4px !important;
    font-weight: normal !important;
  }
  
  /* Hide 'Range:' prefix text */
  .pd-price-current[data-price-range]::after {
    content: attr(data-price-range) !important;
  }
  
  .pd-price-original {
    font-size: 12pt !important;
    color: #64748b !important;
  }
  
  .pd-discount-badge {
    font-size: 10pt !important;
    padding: 2px 6px !important;
  }
  
  /* QR Code section - right side beside price */
  .pd-qr-print {
    display: block !important;
    flex: 0 0 100px !important;
    margin: 0 !important;
    padding: 8px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    text-align: center !important;
    page-break-inside: avoid !important;
    border: 1px solid #cbd5e1 !important;
  }
  
  .pd-qr-label {
    font-size: 6.5pt !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
  
  .pd-qr-image {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* Meta info */
  .pd-meta-inline {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 14px !important;
    font-size: 10pt !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    background: transparent !important;
  }
  
  /* Hide stock badge in print */
  .stock-badge,
  .stock-info-btn {
    display: none !important;
  }
  
  .sku {
    color: #64748b !important;
  }
  
  /* Hide sold badge if empty/zero */
  .sold-inline {
    display: none !important;
  }
  
  /* Hide variant summary section in print */
  .pd-variant-combined,
  #pd-variant-combined,
  .pd-variant-summary,
  [data-role="sold-chip"] {
    display: none !important;
  }
  
  /* Hide compare section completely in print */
  .pd-compare-section,
  .pd-compare-btn,
  #pd-compare-btn,
  .pd-compare-info,
  .compare-note,
  .compare-text,
  .compare-remove {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  /* Variants - show all options with selected highlighted */
  .pd-variants {
    margin: 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  
  /* Add 'Variant:' label before variant groups */
  .pd-variants::before {
    content: "Variant:" !important;
    display: block !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
    border: none !important;
    padding: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  
  .v-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    line-height: 1 !important;
    page-break-inside: avoid !important;
    border: none !important;
    padding: 0 !important;
  }
  
  .v-group:last-child {
    margin-bottom: 0 !important;
  }
  
  .v-label {
    font-weight: 700 !important;
    margin: 0 !important;
    font-size: 9pt !important;
    color: #475569 !important;
    min-width: 60px !important;
    flex-shrink: 0 !important;
    border: none !important;
    padding: 0 !important;
  }
  
  .v-options {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .v-chip {
    border: 1px solid #cbd5e1 !important;
    padding: 3px 10px !important;
    font-size: 9pt !important;
    background: #f8fafc !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    page-break-inside: avoid !important;
  }
  
  /* Highlight selected variant with blue background */
  .v-chip.selected {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    font-weight: 600 !important;
  }
  
  /* Hide radio inputs */
  .v-chip input[type="radio"] {
    display: none !important;
  }
  
  /* Hide "Habis" badge in print */
  .v-chip .chip-badge {
    display: none !important;
  }
  
  /* Short description - HIDDEN in print */
  .pd-short-desc {
    display: none !important;
  }
  
  /* QR Code section - right side beside price */
  .pd-qr-print {
    display: block !important;
    flex: 0 0 100px !important;
    margin: 0 !important;
    padding: 8px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    text-align: center !important;
    page-break-inside: avoid !important;
    border: 1px solid #cbd5e1 !important;
  }
  
  .pd-qr-label {
    font-size: 6.5pt !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
  }
  
  .pd-qr-image {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* Full description - below 2 column layout */
  .pd-full-description {
    border: none !important;
    padding: 0 !important;
    margin: 24px 0 0 0 !important;
    page-break-before: avoid;
    grid-column: 1 / -1 !important;
  }
  
  .pd-full-desc-title {
    font-size: 13pt !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    color: #000 !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 16px !important;
  }
  
  .pd-full-desc-body {
    font-size: 10pt !important;
    line-height: 1.6 !important;
    color: #334155 !important;
  }
  
  .pd-full-desc-body img {
    max-height: 200px !important;
    width: auto !important;
    page-break-inside: avoid;
    display: none !important; /* Hide images in print to save space */
  }
  
  /* Also target #deskripsi img if exists */
  #deskripsi img {
    max-width: 350px !important;
    height: auto !important;
  }
  
  .pd-full-desc-body table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 12px 0 !important;
    font-size: 9pt !important;
  }
  
  .pd-full-desc-body th,
  .pd-full-desc-body td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
  }
  
  /* Print footer */
  .product-single::after {
    content: "Hunter88 Website Official | Printed: " attr(data-print-date);
    display: block;
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 9pt;
    color: #64748b;
    text-align: center;
  }
  
  /* Page breaks */
  .pd-media-card,
  .pd-price-block,
  .pd-full-desc-title {
    page-break-after: avoid;
  }
  
  .pd-full-description {
    page-break-before: auto;
  }
}

/* === Breadcrumb (truncate last item) === */
.pd-breadcrumb{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:.5rem;
  font-size:.72rem;
  margin:.7rem 0 1.2rem .5rem;
  color:var(--pd-muted);
  overflow:hidden;
}
.pd-breadcrumb a{color:var(--pd-accent);text-decoration:none}
.pd-breadcrumb a:hover{text-decoration:underline}
.pd-breadcrumb a,
.pd-breadcrumb span{flex:0 0 auto}
.pd-breadcrumb .current{
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600;
  color:var(--pd-dark);
  padding-right:2px;
}

/* === Top layout === */
.pd-top-layout{
  display:grid;
  gap:var(--pd-gap);
  grid-template-columns:minmax(260px,340px) minmax(460px,1fr) 300px;
  align-items:start;
  margin-bottom:2.4rem;
}

/* === Media column === */
.pd-media-card{
  background:#fff;
  border:1px solid var(--pd-border);
  border-radius:var(--pd-radius);
  padding:1rem 1rem 1.2rem;
}
.pd-main-image{margin:0 0 .8rem;border:1px solid var(--pd-soft-border);border-radius:10px;overflow:hidden;background:#fff;position:relative}
.pd-main-image img{width:100%;display:block;object-fit:contain;aspect-ratio:1/1}

/* Gallery Thumbnails */
.pd-thumb-gallery{margin-top:.6rem;display:flex;flex-wrap:wrap;gap:.55rem}
.pd-thumb-btn{
  border:1px solid var(--pd-soft-border);
  background:#fff;
  cursor:pointer;
  width:64px;height:64px;padding:2px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;border-radius:8px;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  position:relative;
}
.pd-thumb-btn img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.pd-thumb-btn:hover{border-color:var(--pd-accent)}
.pd-thumb-btn.active{border-color:var(--pd-accent);box-shadow:0 0 0 2px rgba(13,110,253,.25)}
.pd-thumb-btn:focus-visible{outline:2px solid var(--pd-accent);outline-offset:2px}
.pd-thumb-btn:active{transform:scale(.96)}

/* === Info column === */
.pd-info-card{
  background:#fff;border:1px solid var(--pd-border);border-radius:var(--pd-radius);
  padding:1.4rem 1.6rem 2rem;
}
.pd-title{margin:0 0 1rem;font-size:1.2rem;line-height:1.25;font-weight:600;color:var(--pd-dark)}
.pd-price-block{margin:0 0 1rem}
.pd-price-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:0 0 .35rem}
.pd-price-current{font-size:2rem;font-weight:700;color:var(--pd-accent)}
.pd-price-original{font-size:.9rem;text-decoration:line-through;color:#94a3b8}
.pd-discount-badge{background:var(--pd-danger);color:#fff;font-size:.68rem;padding:4px 8px 3px;font-weight:600;border-radius:6px;letter-spacing:.5px}
.pd-meta-inline{display:flex;flex-wrap:wrap;gap:.9rem;align-items:center;font-size:.63rem;letter-spacing:.6px;text-transform:uppercase;font-weight:600}
.stock-badge{padding:4px 10px;border-radius:24px;background:var(--pd-soft);color:var(--pd-muted);display:inline-block;line-height:1;vertical-align:middle}
.stock-badge.in{background:var(--pd-success-bg);color:var(--pd-success-text)}
.stock-badge.out{background:var(--pd-danger-bg);color:var(--pd-danger-text)}
.digital-badge{padding:4px 10px;border-radius:24px;background:linear-gradient(135deg,#FF5722 0%,#764ba2 100%);color:#fff;font-size:.63rem;font-weight:600;letter-spacing:.6px;text-transform:uppercase;display:inline-block;line-height:1;vertical-align:middle;border:none}
.sku{color:var(--pd-muted)}
.pd-short-desc{font-size:.85rem;line-height:1.5;margin:0 0 1.2rem;color:#334155;overflow-wrap:anywhere}
.pd-short-desc p{margin:0 0 .75rem}
.pd-short-desc ul,.pd-short-desc ol{margin:.5rem 0 .9rem 1.1rem;font-size:.85rem;line-height:1.45}

/* Meta row for sold and rating badges */
.pd-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* Sales (Terjual) badge inline */
.sold-inline{
  display:inline-block;font-size:.65rem;font-weight:600;color:#475569;
  background:#f1f5f9;padding:3px 8px 4px;border-radius:6px;letter-spacing:.4px;margin-left:0;
}

/* Price row divider */
.price-divider {
  display: inline-block;
  margin: 0 .4rem;
  color: #cbd5e1;
  font-weight: 400;
}

/* Rating badge inline */
.rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 4px;
  background: #fff7ed;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 600;
  color: #ea580c;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
  margin-left: .5rem;
  white-space: nowrap;
}

.rating-inline:hover {
  background: #ffedd5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.1);
}

.rating-inline .star-icon {
  font-size: .75rem;
  color: #f59e0b;
  line-height: 1;
}

.rating-inline .rating-value {
  color: #ea580c;
}

.rating-inline .rating-badge-count {
  color: #9a3412;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .rating-inline {
    font-size: .65rem;
    padding: 3px 8px 4px;
  }
  .rating-inline .star-icon {
    font-size: .7rem;
  }
}

/* Highlight animation for review section */
@keyframes highlightFlash {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(251, 146, 60, 0.1); }
}

.highlight-flash {
  animation: highlightFlash 1.5s ease;
}

/* === Variant chips === */
.pd-variants{margin-top:14px}
.v-group{margin-bottom:12px}
.v-label{font-weight:600;margin-bottom:6px}
.v-options{display:flex;flex-wrap:wrap;gap:8px}
.v-chip{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border:1px solid #d6d9de;border-radius:999px;
  cursor:pointer;background:#fff;transition:.15s ease;user-select:none
}
.v-chip:hover{border-color:#9aa3af;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.v-chip.selected{border-color:#2563eb;background:#eff6ff}
.v-chip.disabled{opacity:.45;cursor:not-allowed}
.v-chip.out{border-style:dashed}
.v-chip input{display:none}
.v-chip .dot{width:14px;height:14px;border-radius:50%;background:var(--dot,#999);box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.v-chip .dot--neutral{background:#9aa3af}
.v-chip .txt{font-size:.95rem;white-space:nowrap}
.v-chip .chip-badge{margin-left:2px;font-size:.72rem;line-height:1;padding:3px 6px;border-radius:6px;background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.pd-variant-summary{margin-top:8px;color:#475569;font-size:.92rem}
.pd-variant-summary .vs-item{display:inline-flex;gap:4px;margin-right:10px}

/* === Buy form (di sidebar kanan untuk desktop) === */
.pd-buy-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1rem 1.4rem;margin:0}
.qty-label{display:block;font-size:.6rem;font-weight:600;letter-spacing:.7px;text-transform:uppercase;color:var(--pd-muted);margin-bottom:.35rem}
.pd-buy-form input[type=number]{width:90px;padding:.55rem .6rem;border:1px solid var(--pd-soft-border);border-radius:6px;font-size:.85rem}
.pd-actions{display:flex;gap:.8rem;flex-wrap:wrap}

/* Tombol senada tema */
.btn-add-cart,.btn-buy,.btn-chat-icon{
  cursor:pointer;border:0;font-weight:700;border-radius:10px;font-size:.9rem;
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  min-height:44px;padding:0 1rem;transition:var(--pd-transition)
}
.btn-add-cart{background:var(--brand-500);color:#fff;box-shadow:0 2px 8px -2px rgba(13,110,253,.35)}
.btn-add-cart:hover{filter:brightness(.95)}
.btn-buy{background:#fff;color:var(--brand-500);border:2px solid var(--brand-500)}
.btn-buy:hover{background:rgba(13,110,253,.06)}
.btn-chat-icon{background:#fff;color:#fb923c;border:2px solid #fb923c;padding:0;width:44px;min-width:44px}
.btn-chat-icon:hover{background:rgba(251, 146, 60, 0.06);border-color:#f97316}
.btn-chat-icon svg{width:20px;height:20px;flex-shrink:0}
.btn-add-cart:disabled,.btn-buy:disabled,.btn-chat-icon:disabled{opacity:.5;cursor:not-allowed}

/* Buy with Voucher Button - Cleaner, more compact design */
.btn-buy-voucher{
  cursor:pointer;border:0;font-weight:600;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:44px;padding:0 14px 0 12px;transition:all 0.3s ease;
  background:linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color:#fff;
  box-shadow:0 3px 10px rgba(124,58,237,0.3);
  position:relative;
  overflow:hidden;
  flex:1 1 auto
}
.btn-buy-voucher:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 16px rgba(124,58,237,0.4)
}
.btn-buy-voucher:active{
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(124,58,237,0.3)
}
.btn-buy-voucher .bv-icon{
  font-size:20px;
  line-height:1;
  flex-shrink:0
}
.btn-buy-voucher .bv-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  flex:1;
  min-width:0;
  font-size:14px;
  line-height:1.2
}
.btn-buy-voucher .bv-text small{
  font-size:10px;
  opacity:0.85;
  font-weight:500;
  letter-spacing:0.3px;
  font-family:monospace
}
.btn-buy-voucher .bv-save{
  font-size:12px;
  font-weight:700;
  background:rgba(255,255,255,0.25);
  padding:4px 8px;
  border-radius:6px;
  white-space:nowrap;
  flex-shrink:0
}

/* Extra meta (opsional) */
.pd-extra-meta{background:var(--pd-soft);border:1px solid var(--pd-border);border-radius:10px;padding:.85rem 1rem;display:grid;gap:.45rem;font-size:.7rem;line-height:1.3}
.pd-extra-meta span{font-weight:600;color:var(--pd-muted);margin-right:.3rem}
.pd-extra-meta a{color:var(--pd-accent);text-decoration:none}
.pd-extra-meta a:hover{text-decoration:underline}

/* === Sidebar === */
.pd-sidebar{display:flex;flex-direction:column;gap:1.2rem}
.pd-side-card{background:#fff;border:1px solid var(--pd-border);border-radius:var(--pd-radius);padding:1rem 1.1rem 1.2rem}
.pd-side-card h3{margin:0 0 .7rem;font-size:.8rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--pd-dark)}
.pd-side-card ul{list-style:none;margin:0;padding:0;display:grid;gap:.45rem;font-size:.7rem;color:#334155}
.pd-side-card li{position:relative;padding-left:13px;line-height:1.25}
.pd-side-card li:before{content:'';width:6px;height:6px;background:var(--pd-accent);border-radius:50%;position:absolute;left:0;top:.45rem}
.pay-logos{display:flex;gap:.4rem;flex-wrap:wrap;margin:.1rem 0 .4rem}
.pay-logos span{font-size:.55rem;background:var(--pd-soft);border:1px solid var(--pd-soft-border);padding:.35rem .55rem;border-radius:6px;font-weight:600;letter-spacing:.5px}

/* Buy card hanya desktop (mobile pakai FAB) */
.pd-buy-card{display:block}
@media (max-width:880px){ .pd-buy-card{display:none} .pd-title-row {padding-right: 0 !important;}}

/* === Full Description === */
.pd-full-description{background:#fff;border:1px solid var(--pd-border);border-radius:var(--pd-radius);padding:1.6rem 1.9rem .6rem;margin:0 0 .8rem}
.pd-full-desc-title{margin:0 0 1.1rem;font-size:1.15rem;font-weight:600;color:var(--pd-dark)}
.pd-full-desc-body{font-size:.9rem;line-height:1.6;color:#334155;overflow-wrap:anywhere}
.pd-full-desc-body p{margin:0 0 1rem}
.pd-full-desc-body ul,.pd-full-desc-body ol{margin:.5rem 0 1rem 1.2rem}
.pd-full-desc-body table{width:100%;border-collapse:collapse;margin:1rem 0 1.2rem}
.pd-full-desc-body table,.pd-full-desc-body th,.pd-full-desc-body td{border-bottom:1px dotted #cbd5e1;vertical-align: top}
.pd-full-desc-body th,.pd-full-desc-body td{padding:.45rem .55rem;text-align:left}
.pd-full-desc-body img{max-width:100%;height:auto;display:block;}

/* === Related (container) === */
.pd-related-full{
  background:#fff;border:1px solid var(--pd-border);
  border-radius:var(--pd-radius);padding:1.4rem 1.6rem 1.9rem;
  margin:0 0 2rem;
}
.pd-related-title{margin:0 0 1.1rem;font-size:1.05rem;font-weight:600;color:var(--pd-dark)}

/* Related Grid (dirapikan: gabung selector agar tidak duplikat) */
.pd-related-grid,
.pd-related-grid--full{
  display:grid !important;
  gap:16px !important;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr)) !important;
  align-items:stretch;
}

/* Fallback jika grid tidak didukung */
@supports not (display:grid){
  .pd-related-grid,
  .pd-related-grid--full{display:flex !important;flex-wrap:wrap}
  .pd-related-grid .pd-related-card,
  .pd-related-grid--full .pd-related-card{flex:0 0 calc(20% - 16px);max-width:calc(20% - 16px)}
  @media (max-width:1100px){
    .pd-related-grid .pd-related-card,
    .pd-related-grid--full .pd-related-card{flex:0 0 calc(25% - 16px);max-width:calc(25% - 16px)}
  }
  @media (max-width:820px){
    .pd-related-grid .pd-related-card,
    .pd-related-grid--full .pd-related-card{flex:0 0 calc(33.333% - 16px);max-width:calc(33.333% - 16px)}
  }
  @media (max-width:580px){
    .pd-related-grid .pd-related-card,
    .pd-related-grid--full .pd-related-card{flex:0 0 calc(50% - 16px);max-width:calc(50% - 16px)}
  }
}

/* Related Card */
.pd-related-card{
  display:flex;flex-direction:column;border:1px solid var(--pd-soft-border);
  background:#fff;border-radius:10px;text-decoration:none;color:inherit;
  overflow:hidden;transition:var(--pd-transition);position:relative;min-width:0;
}
.pd-related-card:hover{transform:translateY(-4px);box-shadow:var(--pd-shadow)}
.pd-related-card .thumb{aspect-ratio:1/1;background:#f1f5f9;overflow:hidden;position:relative}
.pd-related-card img{width:100%;height:100%;object-fit:cover;display:block}
.mini-disc{position:absolute;top:6px;left:6px;background:#dc2626;color:#fff;font-size:.55rem;padding:3px 6px 2px;border-radius:4px;font-weight:600}
.pd-related-card .info{padding:.55rem .65rem .75rem;display:flex;flex-direction:column;gap:.25rem}
.pd-related-card h3{font-size:.68rem;line-height:1.25;margin:0;height:2.5em;overflow:hidden;font-weight:600;color:#334155;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pd-related-card .price{font-size:.7rem;font-weight:600;color:var(--pd-accent)}
.pd-related-card .sold{display:block;font-size:.6rem;font-weight:600;color:#475569;margin-top:2px;letter-spacing:.3px;background:#f1f5f9;padding:2px 6px 3px;border-radius:5px; width: max-content;}
.pd-related-card .price .final {font-size: .82rem; font-weight: 700; color: #0d6efd;}
.pd-related-card .price .ori {font-size: .6rem; text-decoration: line-through; color: #94a3b8;font-weight: 500;}

/* === Mobile slider (scroll-snap) — gambar utama tetap tampil === */
.pd-mobile-slider{display:none}
.pd-mobile-slider img{width:100%;display:block;object-fit:contain;aspect-ratio:1/1}

/* Gallery counter badge */
.pd-gallery-counter{
  position:absolute;
  bottom:12px;
  left:12px;
  background:rgba(255,255,255,0.25);
  color:#9E9E9E;
  padding:4px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:600;
  z-index:100;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  font-variant-numeric:tabular-nums;
  pointer-events:none;
  display:none;
  box-shadow:0 1px 4px rgba(0,0,0,.15);
  line-height:1;
  border:1px solid rgba(0,0,0,0.08);
}

@media (max-width:640px){
  .pd-media-card{border: 0;padding: 0 1rem 0;}
  .pd-info-card {border: 0; padding: 0 1.3rem 0; }
  .pd-side-card {flex: 1 1 !important;}
  .pd-top-layout {gap: 0; margin-bottom: 0;}
  .pd-variants {margin-bottom: 1.5rem;}
  .pd-main-image{display:none}
  .pd-gallery-counter{display:block}
  .pd-mobile-slider-wrapper{
    position:relative;
    margin-bottom:.6rem;
  }
  .pd-mobile-slider{
    display:flex;gap:8px;overflow-x:auto;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  }
  .pd-mslide{
    min-width:100%;flex:0 0 100%;scroll-snap-align:center;
    border:1px solid var(--pd-soft-border);border-radius:10px;overflow:hidden;background:#fff
  }
  .pd-thumb-gallery{display:none} /* hide thumbnails on mobile */
}

/* === Mobile Floating Action Bar === */
.pd-mobile-fab{
  position:fixed;
  left:0;
  right:0;
  bottom:42px; /* Position above bottom-nav (60px min-height + 6px padding) */
  display:none;
  align-items:center;
  gap:.75rem;
  padding:12px 16px;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid rgba(228,231,235,0.6);
  box-shadow:0 -4px 16px -4px rgba(0,0,0,0.12);
  z-index:999; /* Below bottom-nav (1000) */
  transition:bottom .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* When bottom-nav is hidden, move FAB to bottom */
body:has(.bottom-nav.hidden) .pd-mobile-fab {
  bottom: 0;
}
.pd-mobile-fab .mf-actions{display:flex;gap:.5rem;width:100%}
.mf-btn{
  border-radius:10px;
  padding:.6rem 1rem;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:all .2s;
  -webkit-tap-highlight-color:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.mf-buy{
  background:#fb923c;
  color:#fff;
  border:0;
  box-shadow:0 2px 8px rgba(251, 146, 60, 0.3);
  flex:1;
  flex-direction:column;
  padding:.55rem 1rem;
  line-height:1;
  min-height:44px;
  font-family:inherit;
}
.mf-buy .mf-buy-text{
  font-size:11px;
  font-weight:600;
  opacity:0.95;
  font-family:inherit;
}
.mf-buy .mf-buy-price{
  font-size:13px;
  font-weight:800;
  letter-spacing:-0.3px;
  font-family:inherit;
  line-height:1;
}
.mf-buy:active{transform:scale(0.97)}
.mf-cart{
  background:#fff;
  color:#fb923c;
  border:2px solid #fb923c;
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  flex-shrink:0;
  font-family:inherit;
}
.mf-cart:active{transform:scale(0.95)}
.mf-chat{background:#fff;color:#fb923c;border:2px solid #fb923c;width:44px;height:44px;min-height:44px;padding:0;flex-shrink:0;font-family:inherit}
.mf-chat:active{transform:scale(0.95)}
.mf-chat svg{width:20px;height:20px;flex-shrink:0}
.mf-share{
  background:#fff;
  color:#fb923c;
  border:2px solid #fb923c;
  width:44px;
  height:44px;
  padding:0;
  flex-shrink:0;
}
.mf-share:active{transform:scale(0.95)}
.mf-btn:disabled{opacity:.5;cursor:not-allowed}
@media (max-width:640px){
  .pd-mobile-fab{display:flex}
  .product-single{padding-bottom:0;} /* Space for FAB + bottom-nav */
}

/* === Installment cards === */
.pd-installment-card{border:1px solid var(--pd-border);background:#fff;border-radius:var(--pd-radius);padding:1rem 1.1rem 1.25rem;display:flex;flex-direction:column;gap:.85rem}
.pd-installment-card h3{margin:0 0 .2rem;font-size:.78rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--pd-dark)}

.inst-tabs{display:flex;gap:.4rem}
.inst-tab{flex:1 1 0;background:var(--pd-soft);border:1px solid var(--pd-soft-border);padding:.45rem .5rem;font-size:.63rem;font-weight:600;border-radius:6px;cursor:pointer;letter-spacing:.4px;transition:var(--pd-transition)}
.inst-tab.active,.inst-tab:hover{background:var(--pd-accent);color:#fff;border-color:var(--pd-accent)}
.inst-tab:focus{outline:2px solid var(--pd-accent);outline-offset:2px}

.inst-tenors{display:flex;gap:.4rem;flex-wrap:wrap}
.tenor-btn{flex:1 0 auto;background:#fff;border:1px solid var(--pd-soft-border);padding:.42rem .55rem;font-size:.6rem;font-weight:600;border-radius:20px;cursor:pointer;transition:.18s;min-width:56px}
.tenor-btn.active,.tenor-btn:hover{background:#1d7df0;color:#fff;border-color:#1d7df0}

.inst-result{display:flex;flex-direction:column;gap:.45rem;font-size:.63rem}
.inst-line{display:flex;justify-content:space-between;align-items:center;padding:.35rem .55rem;background:var(--pd-soft);border:1px solid var(--pd-soft-border);border-radius:6px}
.inst-line.highlight{background:#1d7df0;color:#fff;border-color:#1d7df0;font-weight:600}
.inst-line .lbl{opacity:.8}
.inst-line .val{font-weight:600;letter-spacing:.3px}
.inst-footnote{font-size:.53rem;line-height:1.25;color:#64748b;margin-top:.2rem}
@media (max-width: 860px){
  .pd-installment-card{order:3}
  .inst-tabs .inst-tab,.inst-tenors .tenor-btn{font-size:.65rem}
  
  /* Voucher button responsive - make it simpler */
  .btn-buy-voucher{
    padding:0 12px;
    gap:8px
  }
  .btn-buy-voucher .bv-icon{
    font-size:18px
  }
  .btn-buy-voucher .bv-text{
    font-size:13px
  }
  .btn-buy-voucher .bv-text small{
    font-size:9px
  }
  .btn-buy-voucher .bv-save{
    font-size:11px;
    padding:3px 6px
  }
}

/* Installment List v2 (eye-catching) */
.pd-installment-card2{
  background:linear-gradient(135deg,#ffffff 0%,#f1f7ff 65%,#e8f2ff 100%);
  border:1px solid var(--pd-border);border-radius:var(--pd-radius);
  padding:1rem 1.05rem 1.2rem;display:flex;flex-direction:column;gap:.5rem;
  position:relative;overflow:hidden
}
.pd-installment-card2:before{
  content:'';position:absolute;width:140px;height:140px;
  background:radial-gradient(circle at center,rgba(29,125,240,.18),rgba(29,125,240,0));
  top:-40px;right:-40px;pointer-events:none
}
.pd-installment-card2 h3{margin:0;font-size:.8rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#0f2f54}
.pd-installment-card2 .inst-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.inst-head-badge{background:#1d7df0;color:#fff;font-size:.55rem;font-weight:600;padding:.25rem .5rem;border-radius:20px;letter-spacing:.4px;box-shadow:0 2px 6px -2px rgba(29,125,240,.6)}

.inst-bank-tabs{display:flex;gap:.45rem}
.bank-tab{flex:1 1 0;background:#fff;border:1px solid var(--pd-soft-border);padding:.5rem .55rem;font-size:.63rem;font-weight:600;border-radius:7px;cursor:pointer;transition:.18s;letter-spacing:.3px}
.bank-tab.active,.bank-tab:hover{background:#1d7df0;color:#fff;border-color:#1d7df0;box-shadow:0 3px 10px -4px rgba(29,125,240,.6)}
.bank-tab:focus{outline:2px solid #1d7df0;outline-offset:2px}

.inst-month-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}
.inst-month-item{display:flex;align-items:center;gap:.65rem;background:#fff;border:1px solid var(--pd-soft-border);border-radius:14px;padding:.55rem .7rem;position:relative;overflow:hidden;transition:.25s}
.inst-month-item:before{content:'';position:absolute;inset:0;opacity:0;background:linear-gradient(90deg,rgba(29,125,240,.08),rgba(29,125,240,0));transition:.25s}
.inst-month-item:hover{transform:translateY(-2px);box-shadow:0 6px 14px -6px rgba(0,40,120,.25)}
.inst-month-item:hover:before{opacity:1}
.tenor-badge{background:#1d7df0;color:#fff;font-weight:700;min-width:42px;text-align:center;padding:.38rem .4rem;font-size:.8rem;border-radius:10px;box-shadow:0 3px 10px -4px rgba(29,125,240,.6)}
.amount{flex:1;font-size:.8rem;font-weight:600;color:#0f2f54;letter-spacing:.3px}
.tag{font-size:.55rem;font-weight:600;padding:.28rem .55rem;border-radius:30px;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}
.tag-zero{background:#16a34a;color:#fff;box-shadow:0 2px 8px -3px rgba(16,180,90,.55)}

.inst-note{font-size:.6rem;font-weight:600;color:#0f2f54;background:#e0f7ed;border:1px solid #b2ebd2;padding:.4rem .6rem;border-radius:8px;letter-spacing:.3px}
.inst-disclaimer{font-size:.52rem;line-height:1.25;color:#64748b;margin-top:-.2rem}

@media (max-width:860px){
  .pd-installment-card2{order:3}
  .tenor-badge{min-width:38px;font-size:.75rem}
  .amount{font-size:.78rem}
}

/* Alt Fintech Banner (compact) */
.inst-alt-banner--compact{
  background:linear-gradient(142deg,#1d7df0 0%,#3c98ff 55%,#67bdff 100%);
  color:#fff;border:0;padding:.95rem .95rem 1.05rem;border-radius:16px;
  box-shadow:0 6px 18px -6px rgba(0,70,160,.45);position:relative;overflow:hidden;min-height:auto;
}
.inst-alt-banner--compact:before,
.inst-alt-banner--compact:after{
  content:'';position:absolute;border-radius:50%;background:rgba(255,255,255,.15);filter:blur(2px);pointer-events:none;
}
.inst-alt-banner--compact:before{width:130px;height:130px;top:-50px;right:-35px}
.inst-alt-banner--compact:after{width:90px;height:90px;bottom:-40px;left:-30px}
.inst-alt-banner--compact .iab-top{margin:0 0 .55rem;display:flex;flex-direction:column;gap:.25rem}
.inst-alt-banner--compact .iab-title{font-size:.74rem;font-weight:700;letter-spacing:.7px;line-height:1.15}
.inst-alt-banner--compact .iab-sub{font-size:.55rem;font-weight:500;opacity:.95;letter-spacing:.4px}

.iab-logos-compact{display:flex;gap:.55rem;align-items:center;margin:0 0 .6rem;flex-wrap:nowrap;justify-content:space-between}
.iab-logos-compact .logo-fin{width:30%}
.iab-logos-compact .logo{
  width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  font-size:.62rem;font-weight:700;letter-spacing:.3px;position:relative;color:#fff;
  box-shadow:0 4px 10px -4px rgba(0,0,0,.35);background:rgba(255,255,255,.15);
  backdrop-filter:blur(4px);transition:.25s;text-shadow:0 1px 2px rgba(0,0,0,.4);user-select:none;
}
.iab-logos-compact .logo:before{
  content:'';position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(140deg,rgba(255,255,255,.35),rgba(255,255,255,0));mix-blend-mode:overlay;opacity:.55;pointer-events:none;
}
.iab-logos-compact .logo:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 8px 18px -6px rgba(0,0,0,.45)}

.iab-cta--compact{
  display:inline-flex;padding:.45rem .85rem;font-size:.58rem;font-weight:700;background:#fff;color:#0f3c6d;border-radius:30px;text-decoration:none;letter-spacing:.55px;box-shadow:0 4px 12px -5px rgba(0,0,0,.35);transition:.25s;
}
.iab-cta--compact:hover{transform:translateY(-2px);box-shadow:0 8px 18px -7px rgba(0,0,0,.45)}
.iab-footnote--compact{margin-top:.45rem;font-size:.46rem;opacity:.85;letter-spacing:.25px}
@media (max-width:860px){
  .inst-alt-banner--compact{order:4;margin-top:.4rem;flex:1 1}
  .iab-logos-compact .logo{width:46px;height:46px}
}

/* === Scroll To Top (baru) === */
.pd-scroll-top{
  position:fixed;
  right:20px;
  bottom:90px;
  width:48px;
  height:48px;
  border-radius:50%;
  background:linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color:#0f2f54;
  border:1px solid rgba(226, 232, 240, 0.8);
  box-shadow:0 8px 20px -8px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:1105;
  opacity:0;
  transform:translateY(12px) scale(.92);
  transition:all .3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.pd-scroll-top:hover{
  box-shadow:0 12px 28px -10px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.15);
  transform:translateY(0) scale(1);
  background:linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border-color:rgba(226, 232, 240, 1);
}
.pd-scroll-top:active{
  transform:translateY(0) scale(.96);
}
.pd-scroll-top:focus-visible{outline:2px solid var(--pd-accent);outline-offset:2px}
.pd-scroll-top.visible{opacity:1;transform:translateY(0) scale(1)}
@media (max-width:640px){
  /* Dynamic positioning via JavaScript */
  .pd-scroll-top{
    right:14px;
    bottom:var(--scroll-top-bottom, calc(68px + 18px + env(safe-area-inset-bottom)));
  }
}

/* === Responsive layout tweaks === */
@media (max-width:1250px){
  .pd-top-layout{grid-template-columns:minmax(260px,330px) 1fr}
  .pd-sidebar{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;gap:1rem}
  .pd-side-card{flex:1 1 250px}
}
@media (max-width:880px){
  .pd-top-layout{grid-template-columns:1fr}
  .pd-sidebar{flex-direction:column; padding: 0 1rem;}
  .pd-title{font-size:1.2rem}
  .pd-price-current{font-size:1.5rem}
}
@media (max-width:640px){
  /* Related: 2 kolom di mobile */
  .pd-related-full{padding:1.2rem;border:0;padding-top: .6rem;margin-bottom:.6rem;}
  .pd-related-grid,.pd-related-grid--full{grid-template-columns:repeat(2,1fr) !important;gap:12px !important}
}
@media (max-width:560px){
  .pd-actions{flex-direction:column}
  .btn-add-cart,.btn-buy,.btn-buy-voucher{width:100%}
  .pd-full-description{padding:1.2rem;border:0;padding-bottom:0;}
}
@media (max-width:380px){
  .pd-related-full{padding:.9rem .7rem 1.1rem}
  .pd-related-grid,.pd-related-grid--full{gap:8px !important}
  .pd-related-card .info{padding:.4rem .48rem .55rem}
}

/* === Modern Countdown (Product Detail) === */
.pd-countdown-modern{
  --cd-bg1:#0ea5e9;          /* sky-500 */
  --cd-bg2:#6366f1;          /* indigo-500 */
  --cd-text:#0b1220;
  --cd-contrast:#ffffff;
  --cd-shadow: 0 8px 24px -10px rgba(0,0,0,.25);
  --cd-border: rgba(255,255,255,.25);
  --cd-box: rgba(255,255,255,.65);
  --cd-box-text:#0f172a;
  --cd-danger:#ef4444;

  display:flex; gap:.75rem; align-items:center;
  background:linear-gradient(135deg,var(--cd-bg1),var(--cd-bg2));
  border:1px solid var(--cd-border);
  color:var(--cd-contrast);
  border-radius:14px;
  padding:.6rem .8rem;
  box-shadow:var(--cd-shadow);
  position:relative;
  overflow:hidden;
  margin-bottom: 1rem;
}

.pd-countdown-modern .pd-cd-icon{
  width:28px;height:28px;flex:0 0 28px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.22);
  border:1px solid var(--cd-border);
  border-radius:10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.pd-countdown-modern .pd-cd-icon svg{width:18px;height:18px;fill:#fff;opacity:.95}

.pd-countdown-modern .pd-cd-body{display:flex;flex-direction:column;gap:.35rem;min-width:0}

.pd-countdown-modern .pd-cd-label{
  font-size:.72rem;font-weight:700;letter-spacing:.4px;opacity:.95;line-height:1;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
}

.pd-countdown-modern .pd-cd-time{
  display:flex; align-items:end; gap:.35rem; flex-wrap:wrap;
  line-height:1;
}

.pd-countdown-modern .unit{
  display:flex; flex-direction:column; align-items:center; gap:.18rem;
  min-width:58px;
}
.pd-countdown-modern .num{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:58px; height:40px; padding:0 .4rem;
  background:var(--cd-box);
  color:var(--cd-box-text);
  border:1px solid rgba(15,23,42,.08);
  border-radius:10px;
  font: 800 1.05rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing:.5px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.55);
}
.pd-countdown-modern .unit-label{
  font-size:.62rem; font-weight:700; opacity:.9; text-shadow:0 1px 0 rgba(255,255,255,.15);
}

.pd-countdown-modern .colon{
  font-weight:900; font-size:1.05rem; opacity:.95; transform: translateY(-2px);
  animation: cdBlink 1.2s infinite steps(2, jump-none);
}
@keyframes cdBlink { 0%{opacity:1} 50%{opacity:.25} 100%{opacity:1} }

.pd-countdown-modern .pd-cd-progress{
  display:none;
  position:relative;
  height:6px; border-radius:999px; overflow:hidden;
  background:rgba(255,255,255,.25);
  border:1px solid rgba(255,255,255,.28);
}
.pd-countdown-modern .pd-cd-progress .bar{
  height:100%; width:0%; background:linear-gradient(90deg,#22c55e,#a3e635);
  box-shadow: 0 2px 8px rgba(0,0,0,.25) inset;
  transition:width .35s ease;
}

/* State saat hampir habis */
.pd-countdown-modern.danger{
  --cd-bg1:#f97316; /* orange-500 */
  --cd-bg2:#ef4444; /* red-500   */
}

/* Responsive */
@media (max-width:640px){
  .pd-countdown-modern{
    padding:.55rem .65rem; border-radius:12px; gap:.6rem;
  }
  .pd-countdown-modern .unit{min-width:52px}
  .pd-countdown-modern .num{min-width:52px;height:36px;font-size:.98rem}
}

/* === Modern Countdown polish (shine + compact) === */
.pd-countdown-modern{
  position:relative;
}
.pd-countdown-modern::after{
  content:"";
  position:absolute; inset:-1px;
  background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 35%),
              radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.08), rgba(255,255,255,0) 60%);
  border-radius: inherit;
  pointer-events:none;
  mix-blend-mode: screen;
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
  0%   { opacity:.35; transform: translateX(-10%) }
  50%  { opacity:.15; transform: translateX(4%) }
  100% { opacity:.35; transform: translateX(-10%) }
}

/* Mode compact (aktifkan dengan data-mode="compact" di elemen) */
.pd-countdown-modern[data-mode="compact"]{
  gap:.55rem; padding:.5rem .6rem; border-radius:12px;
}
.pd-countdown-modern[data-mode="compact"] .unit{
  min-width:46px;
}
.pd-countdown-modern[data-mode="compact"] .num{
  min-width:46px; height:34px; font-size:.92rem;
}
.pd-countdown-modern[data-mode="compact"] .pd-cd-label{
  font-size:.66rem;
}
.pd-countdown-modern[data-mode="compact"] .pd-cd-icon{
  width:24px; height:24px; border-radius:8px;
}
.pd-countdown-modern[data-mode="compact"] .pd-cd-progress{
  height:5px;
}