/* ==========================================================================
   TEMUAN.MY.ID - Product Detail Page (PDP) E-Commerce
   Produk: Template Risk Assessment & SoA 93 Kontrol ISO 27001:2022
   Branding Tokens:
   - Deep Navy: #17365D
   - Secondary Blue: #1F4E78
   - Light Blue: #D9EAF7
   - Off-White Background: #F8FAFC
   - Dark Text: #0F172A
   ========================================================================== */

:root {
  --color-navy: #17365D;
  --color-navy-dark: #0f243e;
  --color-blue-secondary: #1F4E78;
  --color-blue-light: #D9EAF7;
  --color-blue-subtle: #edf5fc;
  --color-bg-page: #F8FAFC;
  --color-bg-white: #ffffff;
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-accent: #b9d8f3;

  /* E-Commerce Accents */
  --color-star: #F59E0B;
  --color-danger: #EF4444;
  --color-success: #10B981;
  --color-success-dark: #16A34A;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1ebc59;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(23, 54, 93, 0.08);
  --shadow-lg: 0 12px 28px rgba(23, 54, 93, 0.12);
  --shadow-hover: 0 16px 36px rgba(23, 54, 93, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

body {
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Custom Header with Deep Navy Tone */
.pdp-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.pdp-header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.pdp-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Golos Text', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--color-navy);
  text-decoration: none;
}

.pdp-logo span {
  color: var(--color-blue-secondary);
}

.pdp-logo-badge {
  font-size: 0.7rem;
  background: var(--color-blue-light);
  color: var(--color-navy);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Breadcrumb */
.pdp-breadcrumb {
  padding: 1rem 0 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.pdp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.pdp-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.pdp-breadcrumb a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.pdp-breadcrumb .separator {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.pdp-breadcrumb .active {
  color: var(--color-navy);
  font-weight: 600;
}

/* ==========================================================================
   PRIMARY TWO-COLUMN PRODUCT SHOWCASE (SHOPEE / AMAZON PDP GRID)
   ========================================================================== */
.pdp-main-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.75rem;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pdp-main-card {
    padding: 1rem;
  }
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: INTERACTIVE IMAGE SLIDER & GALLERY
   -------------------------------------------------------------------------- */
.pdp-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.pdp-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
  user-select: none;
}

.pdp-main-image-wrap:hover .pdp-main-image {
  transform: scale(1.02);
}

/* Navigation Buttons on Main Image */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: #ffffff;
  color: var(--color-blue-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.08);
}

.slider-btn-prev { left: 10px; }
.slider-btn-next { right: 10px; }

/* Badge overlays on slider */
.pdp-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  font-weight: 500;
}

.pdp-slide-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(23, 54, 93, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Thumbnail Carousel Strip */
.pdp-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  width: 100%;
}

.pdp-thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.pdp-thumb:hover {
  border-color: var(--color-blue-secondary);
  transform: translateY(-2px);
}

.pdp-thumb.active {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-blue-light);
  transform: translateY(-2px);
}

.pdp-thumb-caption {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: SHOPEE / AMAZON BUY BOX
   -------------------------------------------------------------------------- */
.pdp-buybox {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Category & Standard Tag */
.pdp-tags-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-iso {
  background: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-edition {
  background: var(--color-blue-light);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-accent);
}

/* Product Title */
.pdp-title {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

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

/* Social Proof & Rating Bar (Shopee / Amazon style) */
.pdp-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.pdp-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-star);
  font-weight: 700;
}

.pdp-rating-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.pdp-rating-value {
  color: var(--color-navy);
  font-weight: 800;
}

.pdp-divider-dot {
  color: var(--color-border);
}

.pdp-stat-link {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-text-light);
  cursor: pointer;
}

.pdp-stat-link:hover {
  color: var(--color-navy);
}

.pdp-sold-stat {
  font-weight: 600;
  color: var(--color-text-main);
}

.pdp-sold-stat span {
  font-weight: 800;
  color: var(--color-navy);
}

/* Flash Price Box (Shopee Flash Sale Aesthetic) */
.pdp-price-box {
  background: linear-gradient(135deg, #f0f7fd 0%, var(--color-blue-light) 100%);
  border: 1.5px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdp-flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pdp-flash-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-danger);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdp-flash-timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.timer-box {
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.pdp-price-original {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.pdp-price-current {
  font-family: 'Golos Text', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
}

.pdp-discount-pill {
  background: var(--color-danger);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Amazon Feature Bullets */
.pdp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.pdp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text-main);
}

.pdp-bullets li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-success-dark);
  margin-top: 2px;
}

.pdp-bullets li strong {
  color: var(--color-navy);
}

/* License Variant Selector */
.pdp-variant-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdp-variant-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdp-single-license {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-blue-subtle);
  border: 1.5px solid rgba(30, 75, 124, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.license-badge-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-badge-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.license-badge-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.license-badge-desc {
  font-size: 0.775rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* CTA Action Buttons */
.pdp-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-pdp-buy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(23, 54, 93, 0.25);
  text-decoration: none;
}

.btn-pdp-buy:hover {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 54, 93, 0.35);
  color: #ffffff;
}

.btn-pdp-wa {
  background: #ffffff;
  color: #128C7E;
  border: 1.5px solid #25D366;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-pdp-wa:hover {
  background: #F0FDF4;
  color: #0b6b5e;
  border-color: #1ebc59;
}

/* Micro Guarantees Bar */
.pdp-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.guarantee-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success-dark);
  flex-shrink: 0;
}

/* ==========================================================================
   TABBED CONTENT / AMAZON A+ DEEP DIVE SECTION
   ========================================================================== */
.pdp-tabs-container {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.pdp-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  background: #f8fafc;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pdp-tab-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: 'Golos Text', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.pdp-tab-btn:hover {
  color: var(--color-navy);
  background: #ffffff;
}

.pdp-tab-btn.active {
  color: var(--color-navy);
  background: #ffffff;
  border-bottom-color: var(--color-navy);
}

.pdp-tab-content {
  padding: 2rem;
}

@media (max-width: 768px) {
  .pdp-tab-content {
    padding: 1.25rem;
  }
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   INTERACTIVE TREE FOLDER SECTION (Struktur File 00 s/d 05)
   ========================================================================== */
.tree-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tree-root-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--color-blue-light);
}

.tree-folder {
  margin-bottom: 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.tree-folder-title {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.15s ease;
}

.tree-folder-title:hover {
  background: var(--color-blue-subtle);
}

.tree-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.tree-folder.open .tree-chevron {
  transform: rotate(90deg);
  color: var(--color-navy);
}

.tree-folder-contents {
  display: none;
  padding: 0.6rem 1rem 0.8rem 2.25rem;
  background: var(--color-bg-page);
  border-top: 1px dashed var(--color-border);
}

.tree-folder.open .tree-folder-contents {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tree-file {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--color-text-main);
  padding: 0.25rem 0;
}

.tree-file svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tree-file-xlsx svg {
  color: var(--color-success-dark);
}

.tree-file-pdf svg {
  color: var(--color-danger);
}

.tree-file .file-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: auto;
}

.tag-xlsx {
  background: #DCFCE7;
  color: #166534;
}

.tag-pdf {
  background: #FEE2E2;
  color: #991B1B;
}

/* ==========================================================================
   TAB 2: BEDAH 93 KONTROL GRID
   ========================================================================== */
.controls-4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .controls-4-grid {
    grid-template-columns: 1fr;
  }
}

.control-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.control-code {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.control-count {
  background: var(--color-blue-light);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.control-items-list {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.control-items-list li::before {
  content: "•";
  color: var(--color-blue-secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -0.2em;
}

/* ==========================================================================
   TAB 3: AMAZON STYLE PRODUCT SPECS TABLE
   ========================================================================== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.spec-table tr:nth-child(even) {
  background: #f8fafc;
}

.spec-table th, .spec-table td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  width: 32%;
  text-align: left;
  color: var(--color-text-muted);
  font-weight: 600;
  background: #f1f5f9;
}

.spec-table td {
  color: var(--color-navy);
  font-weight: 600;
}

/* ==========================================================================
   CUSTOMER REVIEWS & SOCIAL PROOF (SHOPEE / AMAZON REVIEW BAR)
   ========================================================================== */
.pdp-reviews-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2rem;
  margin-bottom: 3rem;
}

.pdp-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviews-score-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-blue-subtle);
  border: 1px solid var(--color-border-accent);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.score-big {
  font-family: 'Golos Text', sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
}

.reviews-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .reviews-cards-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reviewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden;
}

.reviewer-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.reviewer-role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.review-verified {
  font-size: 0.7rem;
  color: var(--color-success-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-comment {
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM BUY BAR (SHOPEE APP EXPERIENCE - FLOATING ON SCROLL)
   ========================================================================== */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
  padding: 0.75rem 1rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
}

.pdp-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.sticky-product-name {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  line-height: 1.2;
}

.sticky-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sticky-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.sticky-price {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

.sticky-cta-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-sticky-wa {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #F0FDF4;
  border: 1px solid var(--color-whatsapp);
  color: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-sticky-buy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   IMAGE LIGHTBOX / ZOOM MODAL
   ========================================================================== */
.pdp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pdp-modal.active {
  display: flex;
}

.pdp-modal-content {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  width: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pdp-modal-img {
  max-width: 100%;
  max-height: calc(90vh - 1rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.pdp-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-navy);
  color: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* ==========================================================================
   ENHANCED MOBILE OPTIMIZATIONS (Max Width 768px & 640px)
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 84px !important; /* Mencegah konten tertutup sticky bar di HP */
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .pdp-main-card {
    padding: 1rem 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
  }

  .pdp-grid {
    grid-template-columns: 100%;
    gap: 1.25rem;
  }

  .pdp-title {
    font-size: 1.25rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .pdp-price-current {
    font-size: 1.75rem;
  }

  .pdp-tabs-container {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }

  .pdp-tab-content {
    padding: 1.25rem 0.85rem;
  }

  .pdp-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .pdp-tab-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.825rem;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .pdp-reviews-section {
    padding: 1.25rem 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }

  .pdp-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .btn-pdp-buy {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  /* Top bar wrap */
  .top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    flex-wrap: wrap;
    line-height: 1.35;
    gap: 0.35rem;
  }

  .top-bar .highlight {
    font-size: 0.6875rem;
    padding: 0.1rem 0.35rem;
  }

  /* Slider Thumbnail Touch Friendly */
  .pdp-thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
    padding-bottom: 6px;
  }

  .pdp-thumb {
    flex: 0 0 64px;
    scroll-snap-align: start;
  }

  .pdp-thumb-caption {
    font-size: 0.625rem;
  }

  /* Micro Guarantees 1 Kolom */
  .pdp-guarantees {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  /* Single License Card Mobile */
  .pdp-single-license {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }

  .variant-btn {
    padding: 0.6rem 0.75rem;
  }

  /* Amazon Spec Table Mobile Block */
  .spec-table th, .spec-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8125rem;
  }

  .spec-table th {
    background: #e2e8f0;
    border-bottom: none;
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    font-weight: 700;
  }

  .spec-table td {
    padding: 0.25rem 0.75rem 0.75rem 0.75rem;
  }

  /* Score Review Card */
  .reviews-score-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0.85rem;
  }

  .score-big {
    font-size: 2.25rem;
  }

  /* CTA Mobile Full Width & Center */
  .pdp-cta-group {
    width: 100%;
  }

  .btn-pdp-buy {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    box-sizing: border-box;
  }

  /* Tree Folder Mobile Styling - Rapat & Font Sans-Serif */
  .tree-container {
    padding: 0.5rem 0.4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  .tree-root-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.3;
    word-break: break-word;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
  }

  .tree-root-header svg {
    width: 18px;
    height: 18px;
  }

  .tree-folder {
    margin-bottom: 0.4rem;
    border-radius: var(--radius-sm);
  }

  .tree-folder-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .tree-folder-title svg {
    width: 15px;
    height: 15px;
  }

  .tree-folder-title .tree-chevron {
    width: 14px;
    height: 14px;
  }

  .tree-folder-contents {
    padding: 0.35rem 0.4rem 0.45rem 1.25rem;
    gap: 0.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }

  .tree-file {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    gap: 0.35rem;
    flex-wrap: nowrap;
    line-height: 1.25;
    padding: 0.15rem 0;
  }

  .tree-file svg {
    width: 14px;
    height: 14px;
  }

  .tree-file span:first-of-type {
    word-break: break-word;
    flex: 1;
    min-width: 0;
  }

  .tree-file .file-tag {
    font-size: 0.575rem;
    padding: 0.05rem 0.3rem;
    margin-left: 0.35rem;
    flex-shrink: 0;
  }

  /* Controls Grid (Tab 2) */
  .controls-4-grid {
    grid-template-columns: 100%;
    gap: 1rem;
  }

  .control-card {
    padding: 1rem 0.85rem;
  }

  .control-code {
    font-size: 0.95rem;
  }

  /* Flash deal header */
  .pdp-flash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .pdp-flash-timer {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }

  /* Sticky mobile bottom bar */
  .pdp-sticky-bar {
    padding: 0.6rem 0.85rem;
    gap: 0.65rem;
  }

  .sticky-product-name {
    font-size: 0.65rem;
    max-width: 170px;
  }

  .sticky-price {
    font-size: 0.975rem;
  }

  .btn-sticky-buy {
    padding: 0.55rem 0.85rem;
    font-size: 0.785rem;
    white-space: nowrap;
  }
}

