/* =====================================================
   Product Page - Enhanced Modern Design
   Follows consistent flat design system with rose/primary theme
   Enhanced visual hierarchy, modern typography, premium feel
   ===================================================== */

/* =====================================================
   1. Base Layout & Container
   ===================================================== */

.pdp {
  background: linear-gradient(135deg, var(--color-gray-50) 0%, #f8fdff 100%);
  min-height: 100vh;
  padding-bottom: var(--space-16);
  overflow-x: clip;
}

/* Custom container styles for product page only */
.pdp .container:not(.bootstrap-container) {
  max-width: var(--container-max, 1600px);
  width: 92%;
  padding: 0 var(--space-6);
}

@media (max-width: 1400px) {
  .pdp .container:not(.bootstrap-container) {
    width: 95%;
    padding: 0 var(--space-5);
  }
}

@media (max-width: 1200px) {
  .pdp .container:not(.bootstrap-container) {
    width: 97%;
    padding: 0 var(--space-4);
  }
}

@media (max-width: 768px) {
  .pdp .container:not(.bootstrap-container) {
    width: 100%;
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .pdp .container:not(.bootstrap-container) {
    padding: 0 var(--space-3);
  }
}

/* =====================================================
   2. Product Hero Section - Modern E-Commerce Layout
   ===================================================== */

.pdp-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-100);
}

/* Breadcrumb navigation */
.pdp-breadcrumb {
  margin: 0 0 var(--space-5);
}

.pdp-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  max-width: 100%;
}

.pdp-breadcrumb-item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-left: var(--space-1);
}

.pdp-breadcrumb-item a {
  color: var(--color-gray-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.pdp-breadcrumb-item a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.pdp-breadcrumb-item a i {
  font-size: var(--font-size-xs);
}

.pdp-breadcrumb-item.active,
.pdp-breadcrumb-item[aria-current="page"] {
  color: var(--color-gray-900);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .pdp-breadcrumb-item {
    font-size: var(--font-size-xs);
  }

  .pdp-breadcrumb-item.active,
  .pdp-breadcrumb-item[aria-current="page"] {
    white-space: normal;
  }
}

.pdp-hero {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.pdp-hero-media {
  flex: 1;
  min-width: 0;
}

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

.pdp-hero-sidebar {
  flex: 0 0 320px;
  min-width: 0;
}

/* Brand Badge */
.pdp-brand-badge {
  display: inline-block;
  border-radius: 20px;
  margin-bottom: var(--space-2);
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdp-brand-badge a {
  color: var(--bs-blue);
  text-decoration: none;
  font-weight: 600;
}

.pdp-brand-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.3);
}

/* Product Title */
.pdp-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
}

.pdp-subtitle {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

/* Rating & Reviews */
.pdp-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e2e8f0;
}

.pdp-rating-stars {
  display: flex;
  gap: 4px;
}

.pdp-rating-stars i {
  color: #fbbf24;
  font-size: 1.125rem;
}

.pdp-rating-stars i.empty {
  color: #d1d5db;
}

.pdp-rating-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.pdp-rating-divider {
  color: var(--color-gray-300);
  font-weight: 300;
}

.pdp-rating-count {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

.pdp-rating-count a {
  color: #7C4A85;
  text-decoration: none;
  font-weight: 500;
}

.pdp-rating-count a:hover {
  text-decoration: underline;
}

/* Description */
.pdp-description {
  margin-bottom: var(--space-6);
  padding: var(--space-4) 0;
}

.pdp-description p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-700);
  margin: 0 0 var(--space-3);
}

/* Key Specifications */
.pdp-key-specs {
  margin: var(--space-6) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pdp-key-specs-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pdp-key-specs-panel {
  margin-bottom: var(--space-4);
}

.pdp-key-specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.pdp-key-spec-item {
  background: var(--color-gray-50);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pdp-key-spec-item:hover {
  border-color: #7C4A85;
  background: #f0fafb;
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.08);
  transform: translateY(-1px);
}

.pdp-key-spec-item dt {
  margin: 0 0 var(--space-1);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  line-height: 1.3;
}

.pdp-key-spec-item dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.4;
  word-break: break-word;
}

.pdp-key-specs--cosmetic .pdp-key-spec-item dt {
  color: #0f766e;
}

.pdp-key-specs-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7C4A85;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pdp-key-specs-more:hover {
  color: #4A2E4D;
  text-decoration: underline;
}

/* Legacy card grid (older templates) */
.pdp-key-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.pdp-spec-card {
  background: var(--color-gray-50);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: var(--space-4);
  transition: all 0.2s ease;
  text-align: center;
}

.pdp-spec-card:hover {
  border-color: #7C4A85;
  background: #f0fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.1);
}

.pdp-spec-card-label {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.pdp-spec-card-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

/* Buy Card Sidebar */
.pdp-buy-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: var(--space-6);
  box-shadow: 0 8px 24px rgba(124, 74, 133, 0.08);
  transition: all 0.3s ease;
  height: fit-content;
  position: sticky;
  top: var(--space-6);
}

.pdp-buy-card:hover {
  box-shadow: 0 12px 32px rgba(124, 74, 133, 0.15);
  transform: translateY(-2px);
}

.pdp-buy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2);
  background:#10b981;
  color: var(--color-white);
  border-radius: 8px;
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.pdp-buy-badge i {
  font-size: 1.125rem;
}

.pdp-buy-price {
  text-align: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  background: var(--color-gray-50);
  border-radius: 8px;
}

.pdp-buy-price-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: #7C4A85;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}

.pdp-buy-price-original {
  font-size: 1rem;
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.pdp-buy-seller {
  margin-bottom: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pdp-buy-seller-label {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-1);
  font-weight: 500;
}

.pdp-buy-seller-name {
  font-size: 1rem;
  color: var(--color-gray-900);
  font-weight: 600;
}

.pdp-buy-shipping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: #ecfdf5;
  border-radius: 8px;
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #059669;
}

.pdp-buy-shipping i {
  font-size: 1.125rem;
}

.pdp-buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, #7C4A85 0%, #4A2E4D 100%);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(124, 74, 133, 0.4);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.pdp-buy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.pdp-buy-button:hover::before {
  left: 100%;
}

.pdp-buy-button:hover {
  background: linear-gradient(135deg, #4A2E4D 0%, #3A243D 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 74, 133, 0.5);
  color: var(--color-white);
}

.pdp-buy-button:active {
  transform: translateY(0);
}

.pdp-buy-updated {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-gray-500);
  font-style: italic;
}

/* Quick Actions */
.pdp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.pdp-quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 3rem;
  padding: var(--space-3);
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.25rem;
  text-align: center;
}

.pdp-quick-action:hover {
  border-color: #7C4A85;
  color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 74, 133, 0.15);
}

.pdp-quick-action:active {
  transform: translateY(0);
}

/* Image Gallery */
.pdp-gallery-main {
  /* background: var(--color-white); */
  border-radius: 12px;
  /* padding: var(--space-6); */
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  /* border: 1px solid #e2e8f0; */
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.pdp-gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  cursor: default;
  transition: transform var(--transition-base);
  display: block;
}

.pdp-gallery-main:hover {
  border-color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 74, 133, 0.1);
}

.pdp-gallery-main:hover img {
  transform: scale(1.02);
}

.pdp-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-300);
  font-size: 4rem;
  gap: var(--space-3);
}

.pdp-gallery-placeholder span {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdp-gallery-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: #dc2626;
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  z-index: 10;
}

.pdp-gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.pdp-gallery-thumb {
  flex: 1;
  aspect-ratio: 1/1;
  border: 2px solid var(--color-gray-200);
  border-radius: 8px;
  padding: var(--space-1);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.pdp-gallery-thumb:hover,
.pdp-gallery-thumb.active {
  border-color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.2);
}

.pdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================================================
   3. Tabbed Comparison Section - Flat Minimalist Design
   ===================================================== */

.pdp-comparison {
  padding: var(--space-6) 0;
  background: var(--color-white);
  margin-top: var(--space-6);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Tab Navigation — compact pill bar */
.pdp-tabs-wrap {
  margin-bottom: var(--space-4);
}

.pdp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0;
}

.pdp-tabs::-webkit-scrollbar {
  display: none;
}

.pdp-tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.pdp-tab:hover:not(.active) {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.pdp-tab.active {
  color: #2563eb;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

.pdp-tab.active::after {
  display: none;
}

/* Tab Content */
.pdp-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.pdp-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Comparison Header */
.pdp-comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.pdp-comparison-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pdp-comparison-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pdp-comparison-sort label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  font-weight: 500;
  margin: 0;
}

.pdp-sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  min-width: 160px;
  font-weight: 500;
}

.pdp-sort-select:hover {
  border-color: #7C4A85;
}

.pdp-sort-select:focus {
  outline: none;
  border-color: #7C4A85;
  box-shadow: 0 0 0 2px rgba(124, 74, 133, 0.1);
}

/* =====================================================
   Enterprise-Grade Comparison Table
   ===================================================== */

/* Table Wrapper */
.pdp-comparison-table-wrapper {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

.pdp-comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Table Head */
.pdp-comparison-table thead {
  background: #f8fafc;
}

.pdp-comparison-table thead th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
}

/* Table Body Rows */
.pdp-comparison-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  background: var(--color-white);
}

.pdp-comparison-table tbody tr:last-child {
  border-bottom: none;
}

.pdp-comparison-table tbody tr:hover {
  background: #f8fafc;
}

/* Best Price Row */
.pdp-comparison-table tbody tr.best-price-row {
  background: linear-gradient(90deg, #fffbeb 0%, #fffbeb 4px, #ffffff 4px);
  border-left: 4px solid #f59e0b;
}

.pdp-comparison-table tbody tr.best-price-row:hover {
  background: linear-gradient(90deg, #fef3c7 0%, #fef3c7 4px, #fffbf0 4px);
}

/* Recommended Row */
.pdp-comparison-table tbody tr.recommended-row {
  background: linear-gradient(90deg, #f0fdf4 0%, #f0fdf4 4px, #ffffff 4px);
  border-left: 4px solid #16a34a;
}

.pdp-comparison-table tbody tr.recommended-row:hover {
  background: linear-gradient(90deg, #dcfce7 0%, #dcfce7 4px, #f0fdf4 4px);
}

/* Out of Stock Row */
.pdp-comparison-table tbody tr.out-of-stock-row {
  opacity: 0.65;
}

/* Table Cells */
.pdp-comparison-table tbody td {
  padding: 1.125rem 1.25rem;
  vertical-align: middle;
}

/* Column Widths */
.col-retailer { width: 16%; }
.col-product-name { width: 24%; }
.col-rating { width: 12%; }
.col-price { width: 14%; }
.col-stock { width: 10%; }
.col-delivery { width: 16%; }
.col-action { width: 12%; }

.pdp-desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .pdp-comparison-table .pdp-desktop-only {
    display: table-cell;
  }
}

.offer-product-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* =====================================================
   Retailer Cell
   ===================================================== */
.retailer-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.retailer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #F4E7F3 0%, #E8DDEE 100%);
  border: 1px solid #E8B4BC;
}

.retailer-avatar-letter {
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
}

.retailer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.retailer-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.retailer-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Retailer Badges */
.retailer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.recommended-badge {
  background: #dcfce7;
  color: #166534;
}

.recommended-badge i {
  font-size: 0.5625rem;
}

.best-price-badge {
  background: #fef3c7;
  color: #92400e;
}

.best-price-badge i {
  font-size: 0.5625rem;
}

/* =====================================================
   Rating Cell
   ===================================================== */
.rating-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-stars-visual {
  display: flex;
  gap: 1px;
  color: #fbbf24;
  font-size: 0.8125rem;
}

.rating-stars-visual .far.fa-star {
  color: #e2e8f0;
}

.rating-meta {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.rating-count {
  font-size: 0.75rem;
  color: #94a3b8;
}

.rating-empty {
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-style: italic;
}

/* =====================================================
   Price Cell
   ===================================================== */
.price-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-current {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-original {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-diff-info {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}

.price-landed {
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
}

.price-landed strong {
  color: #1e293b;
  font-weight: 700;
}

/* =====================================================
   Stock Cell
   ===================================================== */
.stock-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.stock-cell.in-stock {
  background: #f0fdf4;
  color: #166534;
}

.stock-cell.in-stock i {
  color: #16a34a;
}

.stock-cell.out-stock {
  background: #fef2f2;
  color: #b91c1c;
}

.stock-cell.out-stock i {
  color: #dc2626;
}

/* =====================================================
   Delivery Cell
   ===================================================== */
.delivery-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.delivery-cell .delivery-icon {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.delivery-cell .delivery-icon.fa-shipping-fast {
  color: #16a34a;
}

.delivery-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.delivery-type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.delivery-type.free {
  color: #16a34a;
  font-weight: 700;
}

.delivery-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* =====================================================
   Action Cell
   ===================================================== */
.action-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-view-deal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.25rem;
  background: transparent;
  color: #7C4A85;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #7C4A85;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-deal:hover {
  background: #7C4A85;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.3);
}

.btn-view-deal:active {
  transform: translateY(0);
}

.btn-view-deal i {
  font-size: 0.6875rem;
}

/* Best Deal variant */
.btn-best-deal {
  background: #7C4A85;
  color: var(--color-white);
  border-color: #7C4A85;
}

.btn-best-deal:hover {
  background: #0e8a9e;
  border-color: #0e8a9e;
  color: var(--color-white);
}

/* =====================================================
   Show All Offers Toggle
   ===================================================== */
.pdp-comparison-table tbody tr.pdp-offer-row--extra {
  display: none;
}

.pdp-comparison-table-wrapper.offers-expanded tbody tr.pdp-offer-row--extra {
  display: table-row;
}

.pdp-offers-toggle-row {
  display: flex;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  background: var(--color-white);
  border-top: 1px solid #f1f5f9;
}

.pdp-offers-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: #7C4A85;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid #7C4A85;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-offers-toggle-btn:hover {
  background: #7C4A85;
  color: var(--color-white);
}

.pdp-offers-toggle-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.pdp-comparison-table-wrapper.offers-expanded .pdp-offers-toggle-btn i {
  transform: rotate(180deg);
}

/* =====================================================
   Comparison Summary Bar
   ===================================================== */
.comparison-summary-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.summary-item i {
  color: #94a3b8;
  font-size: 0.875rem;
}

.summary-item.highlight i {
  color: #16a34a;
}

.summary-label {
  color: #64748b;
  font-weight: 500;
}

.summary-value {
  color: #1e293b;
  font-weight: 700;
}

.summary-item.highlight .summary-value {
  color: #16a34a;
}

.summary-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 1199px) {
  .col-retailer { width: 15%; }
  .col-product-name { width: 22%; }
  .col-rating { width: 12%; }
  .col-price { width: 14%; }
  .col-stock { width: 10%; }
  .col-delivery { width: 15%; }
  .col-action { width: 12%; }
}

@media (max-width: 991px) {
  .pdp-comparison-table-wrapper {
    overflow-x: auto;
  }
  .pdp-comparison-table {
    min-width: 850px;
  }
  .comparison-summary-bar {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 767px) {
  .pdp-comparison-table {
    min-width: 800px;
  }
  .price-current {
    font-size: 1.125rem;
  }
  .retailer-avatar {
    width: 36px;
    height: 36px;
  }
  .retailer-name {
    font-size: 0.8125rem;
  }
  .comparison-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .summary-divider {
    display: none;
  }
}

/* Placeholder for Empty Tabs */
.pdp-placeholder {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  background: transparent;
  border-radius: 0;
  border: none;
}

.pdp-placeholder i {
  font-size: 2.5rem;
  color: var(--color-gray-300);
  margin-bottom: var(--space-3);
}

.pdp-placeholder h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 var(--space-2);
}

.pdp-placeholder p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0 0 var(--space-3);
}

.pdp-link-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: #7C4A85;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pdp-link-button:hover {
  background: #0f766e;
  transform: none;
  box-shadow: none;
  color: var(--color-white);
}

/* Specs Tab Grid */
.pdp-specs-tab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Specs tab — book details + description split (Bootstrap row + flex) */
.pdp-specs-split {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  #tab-specifications .pdp-specs-split {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
  }

  #tab-specifications .pdp-specs-split > .pdp-specs-split__col--cosmetic {
    flex: 0 0 34% !important;
    width: 34% !important;
    max-width: 34% !important;
  }

  #tab-specifications .pdp-specs-split > .pdp-specs-split__col--desc {
    flex: 0 0 66% !important;
    width: 66% !important;
    max-width: 66% !important;
  }

  #tab-specifications .pdp-specs-split > .pdp-specs-split__col--desc:only-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.pdp-specs-split .pdp-spec-group {
  height: 100%;
  margin-bottom: 0;
}

.pdp-specs-split .pdp-description-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .pdp-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  .pdp-hero-media {
    order: 1;
    width: 100%;
  }

  .pdp-hero-sidebar {
    order: 2;
    flex: none;
    width: 100%;
  }

  .pdp-hero-content {
    order: 3;
    width: 100%;
  }

  .pdp-key-specs-grid,
  .pdp-key-specs-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 991px) {
  .pdp-hero {
    gap: var(--space-6);
  }
  
  .pdp-tabs {
    flex-wrap: nowrap;
  }
  
  .pdp-tab {
    flex: 0 0 auto;
  }
  
  .pdp-comparison-header {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
  
  .pdp-comparison-sort {
    width: 100%;
  }
  
  .pdp-sort-select {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .pdp-title {
    font-size: 1.75rem;
  }
  
  .pdp-buy-price-value {
    font-size: 2.25rem;
  }
  
  .pdp-tab {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .pdp-comparison-table-wrapper {
    overflow-x: auto;
  }
  
  .pdp-comparison-table {
    min-width: 900px;
  }
  
  .pdp-quick-actions {
    gap: var(--space-2);
  }
  
  .pdp-key-specs-grid,
  .pdp-key-specs-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .pdp-quick-actions {
    gap: var(--space-2);
  }
  
  .pdp-key-specs-grid,
  .pdp-key-specs-list {
    grid-template-columns: 1fr;
  }
}

/* Price History Component Styles */
.pdp-price-history-section {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
}

/* Good Deal Mini Badge in Price Box */
.pdp-good-deal-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  animation: pulseGlow 2s infinite;
}

.pdp-good-deal-mini i {
  font-size: 1.1rem;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  }
}

.pdp-price-history-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}
.pdp-price-history-loading[hidden],
.pdp-price-history-content[hidden],
.pdp-price-history-no-data[hidden],
.pdp-good-deal-banner[hidden] {
  display: none !important;
}

.pdp-price-history-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

.pdp-good-deal-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.pdp-good-deal-banner i {
  font-size: 2rem;
}

.pdp-good-deal-banner strong {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.pdp-good-deal-banner p {
  margin: 0;
  opacity: 0.95;
}

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

.pdp-history-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.pdp-history-period-buttons {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 8px;
}

.pdp-period-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.pdp-period-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.pdp-period-btn.active {
  background: #7C4A85;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 74, 133, 0.3);
}

.pdp-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pdp-stat-card {
  flex: 1 1 calc(33.333% - 1rem); /* 3 columns by default */
  min-width: 200px;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pdp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdp-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pdp-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.pdp-history-chart-container {
  position: relative;
  height: 350px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pdp-history-insights {
  margin-top: 2rem;
}

.pdp-insights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdp-insight-card {
  flex: 1 1 calc(33.333% - 1rem); /* 3 columns by default */
  min-width: 280px;
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s;
}

.pdp-insight-card:hover {
  transform: translateX(4px);
}

.pdp-insight-card i {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.pdp-insight-card strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.pdp-insight-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.pdp-price-history-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.pdp-price-history-no-data i {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.pdp-price-history-no-data h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.pdp-price-history-no-data p {
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .pdp-price-history-section {
    padding: 1rem;
  }
  
  .pdp-history-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pdp-history-period-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .pdp-period-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
  }
  
  .pdp-history-stats {
    flex-wrap: wrap;
  }
  
  .pdp-stat-card {
    flex: 1 1 calc(50% - 0.5rem);
  }
  
  .pdp-stat-value {
    font-size: 1.5rem;
  }
  
  .pdp-history-chart-container {
    height: 250px;
    padding: 1rem;
  }
  
  .pdp-insights-grid {
    flex-direction: column;
  }
  
  .pdp-insight-card {
    flex: 1 1 100%;
    min-width: unset;
  }
}

/* Bootstrap spinner utility if not present */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.pdp-stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #7C4A85 0%, #4A2E4D 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: var(--color-white);
  font-size: var(--font-size-lg);
  box-shadow: none;
  transition: all 0.2s ease;
}

.pdp-stat:hover .pdp-stat-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.15);
}

.pdp-stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-gray-900);
}

.pdp-stat-value.success {
  color: var(--color-success);
}

.pdp-stat-value.error {
  color: var(--color-error);
}

.pdp-stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
}

/* =====================================================
   5. Price History & Alerts
   ===================================================== */

.pdp-price-history {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.pdp-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.pdp-chart-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.pdp-chart-periods {
  display: flex;
  gap: var(--space-2);
}

.pdp-chart-period {
  padding: var(--space-2) var(--space-3);
  background: var(--color-gray-100);
  border: none;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-chart-period:hover,
.pdp-chart-period.active {
  background: linear-gradient(135deg, #7C4A85 0%, #4A2E4D 100%);
  color: var(--color-white);
}

.pdp-chart-container {
  height: 200px;
  margin-bottom: var(--space-4);
}

.pdp-chart-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.pdp-chart-legend span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pdp-chart-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* =====================================================
   Product Review Modal Overlay
   ===================================================== */

.pdp-review-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pdp-review-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pdp-review-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.pdp-review-overlay.is-open .pdp-review-modal {
  transform: scale(1) translateY(0);
}

.pdp-review-modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: #fff3cd;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}

.pdp-review-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent, #FFC107);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--font-size-xl);
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.pdp-review-modal-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
  flex: 1;
}

.pdp-review-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  font-size: var(--font-size-base);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdp-review-modal-close:hover {
  background: var(--color-white);
  color: var(--color-gray-900);
  transform: rotate(90deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdp-review-modal-body {
  padding: var(--space-6);
}

.pdp-review-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pdp-review-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  gap: var(--space-4);
}

.pdp-review-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pdp-review-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  margin: 0;
}

.pdp-review-label .required {
  color: var(--color-danger, #dc3545);
}

.pdp-review-input,
.pdp-review-textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pdp-review-textarea {
  resize: vertical;
  min-height: 120px;
}

.pdp-review-input:focus,
.pdp-review-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pdp-review-hint {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  margin-top: calc(var(--space-1) * -1);
}

.pdp-review-char-counter {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  text-align: right;
  margin-top: var(--space-1);
}

.pdp-star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--space-1);
}

.pdp-star-rating-input input[type="radio"] {
  display: none;
}

.pdp-star-rating-input label {
  cursor: pointer;
  font-size: var(--font-size-2xl);
  color: var(--color-gray-300);
  transition: all 0.2s ease;
  padding: var(--space-1);
}

.pdp-star-rating-input label:hover,
.pdp-star-rating-input label:hover ~ label {
  color: var(--color-accent, #FFC107);
}

.pdp-star-rating-input input[type="radio"]:checked ~ label,
.pdp-star-rating-input input[type="radio"]:checked + label {
  color: #FFC107;
}

.pdp-review-checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.pdp-review-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.pdp-review-submit {
  padding: var(--space-4) var(--space-6);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.pdp-review-submit:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.pdp-review-submit:active,
.pdp-review-submit:disabled {
  transform: translateY(0);
}

.pdp-review-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#reviewFormMessages {
  margin-bottom: var(--space-4);
}

#reviewFormMessages .alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

#reviewFormMessages .alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

#reviewFormMessages .alert-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

#reviewFormMessages .alert i {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

#reviewFormMessages .alert div {
  flex: 1;
}

#reviewFormMessages .alert strong {
  display: block;
  margin-bottom: var(--space-1);
}

#reviewFormMessages .alert p {
  margin: 0;
  font-size: var(--font-size-sm);
}

/* =====================================================
   6. Specifications Section
   ===================================================== */

.pdp-specs {
  padding: var(--space-10) 0;
  background: var(--color-white);
}

.pdp-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  gap: var(--space-6);
}

.pdp-spec-group {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pdp-spec-group:hover {
  border-color: #7C4A85;
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.1);
  transform: translateY(-2px);
}

.pdp-spec-group-header {
  background: var(--color-gray-50);
  padding: var(--space-4);
  font-weight: 700;
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.pdp-spec-group:hover .pdp-spec-group-header {
  background: var(--color-primary-light);
  color: #7C4A85;
}

.pdp-spec-group-header i {
  color: #7C4A85;
  transition: all 0.2s ease;
}

.pdp-spec-group:hover .pdp-spec-group-header i {
  transform: scale(1.1);
}

.pdp-spec-group-body {
  padding: var(--space-4);
}

.pdp-spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

.pdp-spec-row:hover {
  padding-left: var(--space-2);
  background: var(--color-gray-50);
}

.pdp-spec-row:last-child {
  border-bottom: none;
}

.pdp-spec-label {
  color: var(--color-gray-500);
}

.pdp-spec-value {
  color: var(--color-gray-900);
  font-weight: 500;
  text-align: right;
}

/* =====================================================
   7. Reviews Section
   ===================================================== */

.pdp-reviews {
  padding: var(--space-10) 0;
  background: var(--color-gray-50);
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-gray-200);
}

.pdp-reviews .container {
  background: transparent;
}

/* =====================================================
   7. Reviews Section - Two Column Layout
   ===================================================== */

.pdp-reviews-section {
  padding: var(--space-10) 0;
  background: var(--color-gray-50);
}

.pdp-reviews-section .container {
  max-width: 1200px;
}

.pdp-reviews-section .pdp-section-header {
  margin-bottom: var(--space-6);
}

.pdp-reviews-section .pdp-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pdp-reviews-section .pdp-section-title i {
  color: #fbbf24;
  font-size: 1.5rem;
}

/* Left Column: Rating Summary Card */
.pdp-reviews-summary-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-6);
  box-shadow: none;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: all 0.2s ease;
}

.pdp-reviews-summary-card:hover {
  border-color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.1);
}

.pdp-reviews-score {
  text-align: center;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-gray-200);
}

.pdp-reviews-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.pdp-reviews-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-2);
}

.pdp-reviews-stars i {
  color: #fbbf24;
  font-size: 1.25rem;
}

.pdp-reviews-stars i.empty {
  color: #d1d5db;
}

.pdp-reviews-total {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  margin-top: var(--space-2);
}

/* Rating Distribution Bars */
.pdp-reviews-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pdp-review-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pdp-review-bar-label {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pdp-review-bar-label i {
  color: #fbbf24;
  font-size: 0.75rem;
}

.pdp-review-bar-track {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.pdp-review-bar-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.pdp-review-bar-count {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  min-width: 40px;
  text-align: right;
  font-weight: 500;
}

/* Review Cards */
.pdp-review-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.pdp-review-card:hover {
  border-color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.1);
}

.pdp-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.pdp-review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pdp-review-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
}

.pdp-review-name {
  font-weight: 600;
  color: var(--color-gray-900);
}

.pdp-review-verified {
  font-size: var(--font-size-xs);
  color: var(--color-success);
}

.pdp-review-date {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
}

.pdp-review-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
}

.pdp-review-rating i {
  color: #fbbf24;
  font-size: var(--font-size-sm);
}

.pdp-review-text {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  line-height: 1.7;
}

/* =====================================================
   8. Similar Products
   ===================================================== */

.pdp-similar {
  padding: var(--space-10) 0;
  background: var(--color-gray-50);
}

.pdp-similar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  gap: var(--space-5);
}

.pdp-similar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.pdp-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pdp-similar-image {
  aspect-ratio: 1;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-similar-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.pdp-similar-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdp-similar-name a {
  color: inherit;
  text-decoration: none;
}

.pdp-similar-name a:hover {
  color: var(--color-primary);
}

.pdp-similar-price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* =====================================================
   9. Sticky Action Bar
   ===================================================== */

.pdp-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 1px solid #e2e8f0;
  padding: var(--space-4) 0;
  transform: translateY(100%);
  transition: transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

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

/* Sit above mobile bottom nav (~56px) — mirrors .compare-tray offset */
@media (max-width: 991px) {
  .pdp-sticky {
    bottom: 56px;
  }
  body.has-mobile-nav .pdp-sticky,
  body:has(.mobile-nav) .pdp-sticky {
    bottom: 56px;
  }

  /* Reserve space so footer / trailing content isn't hidden underneath the
     fixed sticky buy bar (and the mobile bottom nav, when present) —
     mirrors .has-compare-tray. Class toggled via JS in html/product.php. */
  body.has-pdp-sticky {
    padding-bottom: 6.5rem;
  }
  body.has-pdp-sticky.has-mobile-nav,
  body.has-pdp-sticky:has(.mobile-nav) {
    padding-bottom: 9.5rem;
  }
}

/* Wave 42: the compare tray (html/footer.php + html/js/compare.js) can be
   open at the same time as the PDP sticky buy bar on mobile — e.g. the
   shopper adds the current product to the comparison while browsing.
   Stack them instead of overlapping: mobile bottom nav (~56px) → compare
   tray (~76px) → sticky buy bar on top. Matches .compare-tray's own
   bottom:56px breakpoint in modern-frontend.css. */
@media (max-width: 768px) {
  body.has-pdp-sticky.has-compare-tray .pdp-sticky {
    bottom: 132px;
  }
  body.has-pdp-sticky.has-compare-tray {
    padding-bottom: 13.5rem;
  }
}

@media (min-width: 992px) {
  .pdp-sticky {
    display: none !important;
  }
}

.pdp-sticky-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.pdp-sticky-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pdp-sticky-image {
  width: 48px;
  height: 48px;
  background: var(--color-gray-50);
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

.pdp-sticky-title {
  font-weight: 600;
  color: var(--color-gray-900);
  font-size: var(--font-size-sm);
}

.pdp-sticky-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-success);
}

.pdp-sticky-actions {
  display: flex;
  gap: var(--space-3);
}

/* =====================================================
   10. Enhanced Visual Polish
   ===================================================== */

/* Section Spacing */
.pdp-section-header {
  margin-bottom: var(--space-6);
  padding: 0 var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid #7C4A85;
}

.pdp-section-title {
  position: relative;
  padding-left: 0;
}

.pdp-section-title::before {
  display: none;
}

/* PDP top-5 ingredient explainers — educational USP */
.pdp-ingredient-guide {
  margin: var(--space-8) auto var(--space-10);
  max-width: 920px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  background:
    linear-gradient(165deg, rgba(249, 232, 237, 0.55) 0%, rgba(255, 255, 255, 0.92) 42%, #fff 100%);
  border: 1px solid #eadfe4;
  border-radius: 0;
}
.pdp-ingredient-guide__header {
  margin-bottom: var(--space-5);
}
.pdp-ingredient-guide__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4A2E4D;
}
.pdp-ingredient-guide__lead {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #64748b;
}
.pdp-ingredient-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e8e0e3;
}
.pdp-ingredient-guide__item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8e0e3;
}
.pdp-ingredient-guide__line {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #475569;
}
.pdp-ingredient-guide__name {
  font-family: var(--pdp-font-display, Georgia, 'Times New Roman', serif);
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pdp-ingredient-guide__name:hover {
  color: #7C4A85;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.pdp-ingredient-guide__sep {
  margin: 0 0.35rem 0 0.15rem;
  font-weight: 600;
  color: #1a1a2e;
}
.pdp-ingredient-guide__effect {
  color: #475569;
}
.pdp--beauty .pdp-ingredient-guide__name {
  font-family: var(--pdp-font-display);
  color: var(--pdp-ink, #1a1a2e);
}
.pdp-top-ingredients__guide {
  display: inline-block;
  margin-top: 0.45rem;
  margin-right: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4A2E4D;
  text-decoration: none;
}
.pdp-top-ingredients__guide:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Legacy FAQ accordion (kept for non-PDP reuse / dark theme hooks) */
.pdp-faq {
  margin: var(--space-8) auto var(--space-10);
}
.pdp-faq .pdp-section-header {
  margin-bottom: var(--space-4);
}
.pdp-faq-accordion {
  max-width: 920px;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
}
.pdp-faq-accordion .accordion-item {
  border-bottom: 1px solid #e2e8f0;
}
.pdp-faq-accordion .accordion-item:last-child {
  border-bottom: none;
}
.pdp-faq-accordion .accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.1rem;
  background: #fff;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  cursor: pointer;
}
.pdp-faq-accordion .accordion-header:hover {
  background: #f8fafc;
}
.pdp-faq-accordion .accordion-header i {
  color: #94a3b8;
  transition: transform .15s ease;
}
.pdp-faq-accordion .accordion-item.is-open .accordion-header i {
  transform: rotate(180deg);
}
.pdp-faq-accordion .accordion-body {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: #475569;
  line-height: 1.65;
}
.pdp-faq-accordion .accordion-item.is-open .accordion-body {
  display: block;
}
.pdp-faq-accordion .accordion-body p {
  margin: 0;
}

/* Price Box Enhanced */
.pdp-price-value {
  color: var(--color-gray-900);
}

/* Merchant Logo Enhancement */
.pdp-merchant-logo {
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.pdp-table tbody tr:hover .pdp-merchant-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Action Buttons Enhancement */
.pdp-actions .pdp-btn {
  box-shadow: none;
  border: 1px solid transparent;
}

.pdp-actions .pdp-btn:hover {
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.15);
}

/* Gallery Image Enhancement */
.pdp-gallery-main {
  position: relative;
  /* background: var(--color-white); */
}

.pdp-gallery-main img {
  transition: transform 0.3s ease;
}

.pdp-gallery-main:hover img {
  transform: scale(1.02);
}

/* Review Stars Enhancement */
.pdp-reviews-stars i,
.pdp-rating-stars i {
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

/* Table Row Enhancements */
.pdp-table tbody tr {
  position: relative;
}

.pdp-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #7C4A85;
  transition: width 0.2s ease;
}

.pdp-table tbody tr:hover::before {
  width: 3px;
}

.pdp-table tr.best-price::before {
  width: 4px;
  background: #10b981;
}

/* Filter Buttons Enhancement */
.pdp-filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Alert Box Enhancement */
/* Sticky Bar Enhancement */
.pdp-sticky {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

/* Spec Row Hover */
.pdp-spec-row {
  transition: background-color 0.2s ease;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  border-radius: var(--radius-sm);
  margin-left: calc(-1 * var(--space-2));
  margin-right: calc(-1 * var(--space-2));
}

.pdp-spec-row:hover {
  background: var(--color-gray-50);
}

/* Rating Bar Enhancement */
.pdp-review-bar-fill {
  background: #fbbf24;
  box-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

/* =====================================================
   11. Responsive Design
   ===================================================== */

@media (max-width: 1200px) {
  .pdp-similar-grid {
    flex-wrap: wrap;
  }
  
  .pdp-similar-grid > * {
    flex: 1 1 calc(33.333% - var(--space-4) * 0.667);
  }
}

@media (max-width: 992px) {
  .pdp-header-grid {
    flex-direction: column;
  }

  .pdp-gallery {
    position: static;
  }

  .pdp-specs-grid {
    flex-direction: column;
  }
  
  .pdp-specs-grid > *,
  .pdp-stats > * {
    flex: 1 1 100%;
    min-width: unset;
  }

  .pdp-stats {
    flex: 1 1 calc(50% - var(--space-4) * 0.5);
    min-width: 200px;
  }

  .pdp-similar-grid {
    flex-wrap: wrap;
  }
  
  .pdp-similar-grid > * {
    flex: 1 1 calc(50% - var(--space-4) * 0.5);
  }

  .pdp-reviews-score {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 768px) {
  .pdp {
    padding-bottom: var(--space-12);
  }
  
  .pdp .container {
    width: 100%;
    padding: 0 var(--space-4);
  }
  
  .pdp-header {
  }
  
  .pdp-gallery-main {
    padding: var(--space-3);
    border-radius: var(--radius-lg);
  }
  
  .pdp-gallery-main img,
  .pdp-gallery-placeholder {
    height: 250px;
  }
  
  .pdp-title {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: var(--space-3);
  }
  
  .pdp-price-box {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }
  
  .pdp-price-main {
    font-size: 2rem;
  }
  
  .pdp-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .pdp-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }
  
  /* Modern Table Mobile Styles */
  .pdp-modern-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .pdp-modern-title {
    font-size: 1.25rem;
  }
  
  .pdp-sort-control {
    width: 100%;
  }
  
  .pdp-sort-select {
    flex: 1;
  }
  
  .pdp-modern-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
  }
  
  .pdp-modern-table {
    min-width: 900px;
  }
  
  .pdp-modern-table thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .pdp-modern-table tbody td {
    padding: 1rem 0.5rem;
  }
  
  .retailer-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .retailer-name {
    font-size: 0.875rem;
  }
  
  .price-main {
    font-size: 1.25rem;
  }
  
  .btn-view-deal {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  .pdp-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    padding-bottom: var(--space-4);
  }
  
  /* Reviews Section Mobile */
  .pdp-reviews-section {
    padding: var(--space-6) 0;
  }
  
  .pdp-reviews-section .pdp-section-title {
    font-size: 1.5rem;
  }
  
  .pdp-reviews-summary-card {
    margin-bottom: var(--space-4);
  }
  
  .pdp-reviews-number {
    font-size: 2.5rem;
  }
  
  .pdp-reviews-stars i {
    font-size: 1.125rem;
  }
  
  .pdp-review-bar {
    gap: var(--space-2);
  }
  
  .pdp-review-bar-label {
    min-width: 50px;
    font-size: 0.8125rem;
  }
  
  .pdp-review-bar-track {
    height: 8px;
  }
  
  /* Review Modal Responsive */
  .pdp-review-modal {
    max-width: 95%;
    margin: var(--space-4);
  }
  
  .pdp-review-modal-header {
    padding: var(--space-4);
    flex-wrap: wrap;
  }
  
  .pdp-review-modal-title {
    font-size: var(--font-size-lg);
  }
  
  .pdp-review-modal-body {
    padding: var(--space-4);
  }
  
  .pdp-review-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }
  
  .pdp-review-modal-close {
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
  }
  
  .pdp-review-form-row {
    flex-direction: column;
  }
  
  .pdp-star-rating-input label {
    font-size: var(--font-size-xl);
  }

  .pdp-sticky-info {
    display: none;
  }

  .pdp-sticky-actions {
    width: 100%;
    left: 0;
    right: 0;
    padding: var(--space-3) var(--space-4);
    border-radius: 0;
  }

  .pdp-sticky-actions .pdp-btn {
    flex: 1;
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .pdp-section {
    margin: 0 calc(-1 * var(--space-4));
    padding: var(--space-6) var(--space-4);
  }
  
  .pdp-section-title {
    font-size: 1.25rem;
  }
  
  .pdp-stats {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .pdp-stat {
    padding: var(--space-3);
  }
}

@media (max-width: 640px) {
  .pdp-header {
    padding: 0;
  }
  
  .pdp-gallery-main img {
    height: 200px;
  }
  
  .pdp-title {
    font-size: 1.25rem;
  }
  
  .pdp-price-main {
    font-size: 1.75rem;
  }
  
  .pdp-price-currency {
    font-size: 0.875rem;
  }
  
  .pdp-rating {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .pdp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .pdp-stats {
    flex-direction: column;
  }
  
  .pdp-stat-value {
    font-size: 1.5rem;
  }
  
  .pdp-specs-grid {
    gap: var(--space-3);
  }
  
  .pdp-spec-item {
    padding: var(--space-3);
  }
  
  .pdp-reviews-summary {
    padding: var(--space-4);
  }
  
  .pdp-review-card {
    padding: var(--space-4);
  }
  
  .pdp-filters {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  
  .pdp-filter-btn {
    font-size: 0.8125rem;
    padding: var(--space-1) var(--space-2);
  }
}

/* =====================================================
   12. Dark Theme
   ===================================================== */

[data-theme="dark"] .pdp {
  background: var(--color-gray-900);
}

[data-theme="dark"] .pdp-header,
[data-theme="dark"] .pdp-specs {
  background: var(--color-gray-800);
}

[data-theme="dark"] .pdp-table-wrapper,
[data-theme="dark"] .pdp-price-history,
[data-theme="dark"] .pdp-reviews-summary,
[data-theme="dark"] .pdp-review-card,
[data-theme="dark"] .pdp-similar-card,
[data-theme="dark"] .pdp-stat {
  background: var(--color-gray-800);
}

[data-theme="dark"] .pdp-title,
[data-theme="dark"] .pdp-section-title,
[data-theme="dark"] .pdp-chart-title,
[data-theme="dark"] .pdp-stat-value,
[data-theme="dark"] .pdp-merchant-name,
[data-theme="dark"] .pdp-cell-price,
[data-theme="dark"] .pdp-similar-name,
[data-theme="dark"] .pdp-review-name,
[data-theme="dark"] .pdp-reviews-number {
  color: var(--color-white);
}

[data-theme="dark"] .pdp-table th {
  background: var(--color-gray-800);
  color: var(--color-gray-300);
  border-bottom-color: var(--color-gray-700);
}

[data-theme="dark"] .pdp-table-wrapper {
  border-color: var(--color-gray-700);
}

[data-theme="dark"] .pdp-table td {
  border-color: var(--color-gray-700);
}

[data-theme="dark"] .pdp-sticky {
  background: var(--color-gray-800);
  border-color: var(--color-gray-700);
}

[data-theme="dark"] .pdp-price-box {
  background: rgba(16, 185, 129, 0.15);
}

/* Mobile Responsive Styles for Retailer Logo */
@media (max-width: 768px) {
  .retailer-logo-container {
    width: 60px;
    height: 40px;
    padding: var(--space-1);
  }
  
  .retailer-name {
    font-size: var(--font-size-xs);
  }
  
  .retailer-cell {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .retailer-logo-container {
    width: 50px;
    height: 30px;
  }
  
  .retailer-logo-placeholder {
    font-size: var(--font-size-base);
  }
}

[data-theme="dark"] .pdp-sticky {
  background: rgba(30, 41, 59, 0.98);
}

/* =====================================================
   RESPONSIVE IMPROVEMENTS - Product Page Mobile
   ===================================================== */

/* Stack hero on mobile: image → price → product details */
@media (max-width: 767px) {
  .pdp-hero {
    display: flex !important;
    flex-direction: column;
    gap: var(--space-4);
  }

  .pdp-hero-media {
    order: 1;
    width: 100%;
  }

  .pdp-hero-sidebar {
    order: 2;
    flex: none;
    width: 100%;
  }

  .pdp-hero-content {
    order: 3;
    width: 100%;
  }

  .pdp-gallery-main img {
    height: 280px;
    object-fit: contain;
  }

  .pdp-title {
    font-size: 1.5rem;
  }

  /* Vendor offers table - mobile card layout */
  .pdp-comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
    width: calc(100% + 2 * var(--space-4));
  }

  .pdp-offer-card {
    padding: var(--space-3);
  }

  .pdp-buy-card {
    position: static;
    margin-top: 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }

  .pdp-quick-actions {
    margin-top: var(--space-3);
  }
}

@media (max-width: 480px) {
  .pdp-gallery-main img {
    height: 220px;
  }

  .pdp-title {
    font-size: 1.25rem;
  }

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

  .pdp-gallery-thumbs {
    gap: 4px;
  }

  .pdp-gallery-thumb {
    padding: 2px;
  }
}

/* Landscape mobile product page */
@media (max-height: 500px) and (orientation: landscape) {
  .pdp-gallery-main img {
    height: 200px;
  }

  .pdp-header {
  }
}

/* Touch target improvements for product page */
@media (max-width: 991px) {
  .pdp-tab {
    min-height: 44px;
  }

  .pdp-quick-actions button,
  .pdp-quick-actions a {
    min-height: 44px;
  }
}

/* =====================================================
   Related Products — premium tile cards
   ===================================================== */

.pdp .related-products-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  padding: 3rem 0 3.5rem;
  margin-top: 0;
}

.pdp .related-products-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pdp .related-products-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C4A85;
  background: rgba(124, 74, 133, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
}

.pdp .related-products-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.pdp .related-products-header p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.pdp .related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pdp .related-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pdp .related-product-card:hover {
  border-color: #7C4A85;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.pdp .related-product-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.pdp .related-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.875rem;
  transition: transform 0.35s ease;
}

.pdp .related-product-card:hover .related-product-image {
  transform: scale(1.04);
}

.pdp .related-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2.5rem;
}

.pdp .related-product-badge {
  position: absolute;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.pdp .related-product-badge--offers {
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.pdp .related-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.875rem 1rem 1rem;
  gap: 0.375rem;
}

.pdp .related-product-brand {
  font-size: 0.625rem;
  font-weight: 700;
  color: #7C4A85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp .related-product-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  transition: color 0.2s ease;
}

.pdp .related-product-card:hover .related-product-name {
  color: #4A2E4D;
}

.pdp .related-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.375rem;
}

.pdp .related-product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.pdp .related-product-from {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdp .related-product-price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.pdp .related-product-price sup.curreny {
  font-size: 0.625rem;
  font-weight: 700;
}

.pdp .related-product-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 0.6875rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pdp .related-product-card:hover .related-product-arrow {
  background: #7C4A85;
  color: #ffffff;
  transform: translateX(2px);
}

@media (min-width: 576px) {
  .pdp .related-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (min-width: 992px) {
  .pdp .related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .pdp .related-products-header h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  .pdp .related-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pdp .related-products-section {
    padding: 2rem 0 2.5rem;
  }

  .pdp .related-product-card:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }
}

.pdp-preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.9375rem;
  text-align: center;
}

.pdp-preview-banner strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Cosmetics-oriented product page (pdp--beauty / pdp--book)
   Brand-first editorial stage for fragrance & beauty PDPs
   -------------------------------------------------------------------------- */

.pdp--beauty {
  --pdp-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --pdp-font-ui: "Manrope", var(--font-family);
  --pdp-ink: var(--color-gray-900);
  --pdp-rose: var(--color-primary);
  --pdp-rose-deep: var(--color-primary-dark);
  --pdp-pearl: #FBF6F7;
  --pdp-blush: #F3E4E8;
  --pdp-stage-deep: #2A1C22;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 74, 133, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(196, 165, 116, 0.1), transparent 50%),
    linear-gradient(180deg, var(--pdp-pearl) 0%, var(--color-gray-50) 40%, #fff 100%);
  font-family: var(--pdp-font-ui);
}

.pdp--beauty .pdp-header--beauty {
  background: transparent;
  border-bottom: none;
}

.pdp--beauty .pdp-breadcrumb {
  margin-bottom: var(--space-4);
}

.pdp--beauty .pdp-breadcrumb-item a:hover {
  color: var(--pdp-rose-deep);
  background: var(--color-primary-light);
}

/* Full-bleed atmospheric product stage */
.pdp-stage--beauty {
  position: relative;
  margin: 0 0 var(--space-8);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    linear-gradient(105deg, rgba(42, 28, 34, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, var(--pdp-blush) 0%, var(--pdp-pearl) 55%, #fff 100%);
  overflow: hidden;
}

.pdp-stage--beauty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 70%, rgba(124, 74, 133, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 78% 28%, rgba(196, 165, 116, 0.12) 0%, transparent 38%);
  pointer-events: none;
  animation: pdpBeautyGlow 12s ease-in-out infinite alternate;
}

.pdp-stage--beauty::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 74, 133, 0.28), transparent);
}

@keyframes pdpBeautyGlow {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.pdp-stage--beauty > .container {
  position: relative;
  z-index: 1;
}

.pdp--beauty .pdp-hero {
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 0;
}

/* Product image as dominant visual plane — no card chrome */
.pdp--beauty .pdp-hero-media--beauty .pdp-gallery-main,
.pdp--book .pdp-hero-media--book .pdp-gallery-main {
  /* background: radial-gradient(ellipse at 50% 100%, rgba(124, 74, 133, 0.18) 0%, transparent 55%), linear-gradient(165deg, #3A2830 0%, #161014 52%, #241820 100%); */
  /* border: none; */
  border-radius: 0;
  box-shadow: none;
  /* padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1rem, 3vw, 2rem); */
  /* min-height: clamp(360px, 52vh, 560px); */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.pdp--beauty .pdp-hero-media--beauty .pdp-gallery-main:hover {
  transform: none;
  box-shadow: none;
  border: none;
}

.pdp--beauty .pdp-gallery-main img,
.pdp--book .pdp-gallery-main img {
  object-fit: contain;
  height: clamp(280px, 42vh, 480px);
  padding: 0;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.45));
  mix-blend-mode: multiply;
  animation: pdpBeautyFloat 7s ease-in-out infinite;
}

@keyframes pdpBeautyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.pdp--beauty .pdp-gallery-main:hover img {
  transform: none;
}

.pdp--beauty .pdp-gallery-thumbs {
  margin-top: var(--space-3);
  justify-content: center;
}

.pdp--beauty .pdp-gallery-thumb {
  border-radius: 4px;
  border-color: var(--color-gray-200);
  background: #fff;
}

.pdp--beauty .pdp-gallery-thumb.active {
  border-color: var(--pdp-rose);
}

/* Brand as hero-level signal */
.pdp--beauty .pdp-brand-mark {
  display: block;
  margin: 0 0 0.35rem;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.pdp--beauty .pdp-brand-mark:hover {
  transform: none;
  box-shadow: none;
}

.pdp--beauty .pdp-brand-mark a {
  display: inline-block;
  font-family: var(--pdp-font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--pdp-ink);
  text-decoration: none;
  transition: color 0.25s ease, letter-spacing 0.35s ease;
}

.pdp--beauty .pdp-brand-mark a:hover {
  color: var(--pdp-rose-deep);
  letter-spacing: 0.11em;
}

.pdp--beauty .pdp-hero-content--beauty .pdp-title,
.pdp-hero-content--book .pdp-title {
  font-family: var(--pdp-font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--color-gray-700);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.pdp-beauty-dek {
  font-family: var(--pdp-font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.pdp-beauty-meta {
  margin: 0 0 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.pdp--beauty .pdp-rating {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.35rem;
}

.pdp--beauty .pdp-rating-stars i {
  color: #FFC107;
}

.pdp--beauty .pdp-rating-count a {
  color: #4a916b;
}

.pdp-beauty-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.pdp-beauty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--pdp-ink);
  color: #fff;
  font-family: var(--pdp-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pdp-beauty-cta:hover {
  background: var(--pdp-rose-deep);
  color: #fff;
  transform: translateY(-1px);
}

.pdp-beauty-cta-secondary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 74, 82, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pdp-beauty-cta-secondary:hover {
  color: var(--pdp-rose-deep);
  border-color: var(--pdp-rose);
}

/* Sidebar: quiet panel, not a floating card */
.pdp--beauty .pdp-buy-card--beauty,
.pdp-buy-card--book {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 224, 227, 0.9);
  border-radius: 2px;
  box-shadow: none;
  padding: 1.35rem 1.25rem;
}

.pdp--beauty .pdp-buy-card--beauty:hover,
.pdp-buy-card--book:hover {
  transform: none;
  box-shadow: none;
}

.pdp--beauty .pdp-buy-badge,
.pdp-buy-card--book .pdp-buy-badge {
  background: transparent;
  color: var(--color-gray-600);
  border-radius: 0;
  padding: 0 0 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-content: flex-start;
}

.pdp--beauty .pdp-buy-badge i {
  color: var(--pdp-rose);
  font-size: 0.875rem;
}

.pdp--beauty .pdp-buy-price,
.pdp--beauty .pdp-buy-price--catalog {
  background: transparent;
  border-radius: 0;
  text-align: left;
  padding: 0.5rem 0 1rem;
}

.pdp--beauty .pdp-buy-price-value {
  font-family: var(--pdp-font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--pdp-ink);
}

.pdp--beauty .pdp-catalog-only {
  font-family: var(--pdp-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pdp-ink);
}

.pdp--beauty .pdp-catalog-only-hint {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.55;
}

.pdp--beauty .pdp-buy-seller {
  border-color: var(--color-gray-200);
}

.pdp--beauty .pdp-buy-button {
  background: var(--pdp-rose);
  border-radius: 2px;
  box-shadow: none;
}

.pdp--beauty .pdp-buy-button:hover {
  background: var(--pdp-rose-deep);
}

.pdp--beauty .pdp-search-isbn {
  color: var(--pdp-rose-deep);
}

.pdp--beauty .pdp-quick-action {
  border-radius: 2px;
  border-color: var(--color-gray-200);
}

.pdp--beauty .pdp-quick-action:hover {
  border-color: var(--pdp-rose);
  color: var(--pdp-rose-deep);
}

/* Facts strip below hero — one purpose */
.pdp-beauty-facts {
  padding: 0 0 var(--space-10);
}

.pdp-beauty-facts .pdp-description--beauty {
  max-width: 42rem;
  padding: 0 0 var(--space-6);
  margin: 0;
}

.pdp-beauty-facts .pdp-description-heading {
  font-family: var(--pdp-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--pdp-ink);
  margin: 0 0 0.65rem;
}

.pdp-beauty-facts .pdp-description p {
  color: var(--color-gray-600);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.pdp--beauty .pdp-key-specs--beauty {
  border-top: 1px solid var(--color-gray-200);
  border-bottom: none;
  margin: 0;
  padding: var(--space-6) 0 0;
}

.pdp--beauty .pdp-key-specs-title {
  font-family: var(--pdp-font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.pdp--beauty .pdp-key-spec-item {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-gray-200);
  border-radius: 0;
  padding: 0.85rem 0;
}

.pdp--beauty .pdp-key-spec-item:hover {
  background: transparent;
  border-color: var(--color-gray-200);
  box-shadow: none;
  transform: none;
  border-top-color: var(--pdp-rose);
}

.pdp--beauty .pdp-key-specs-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 1.5rem;
}

.pdp--beauty .pdp-key-specs-more {
  color: var(--pdp-rose-deep);
  font-weight: 600;
}

.pdp-ean-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-ean-inline code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  background: transparent;
}

/* Legacy book hooks kept for compatibility */
.pdp-book-genre {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-gray-600);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.pdp-book-genre:hover {
  color: var(--pdp-rose-deep);
  background: transparent;
}

.pdp-book-subtitle {
  font-family: var(--pdp-font-display);
  font-size: 1.125rem;
  color: var(--color-gray-600);
  font-style: italic;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.pdp-book-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.pdp-book-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-gray-600);
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-gray-300);
}

.pdp-book-chip i {
  color: var(--pdp-rose);
  font-size: 0.75rem;
}

.pdp-book-isbn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}

.pdp-book-isbn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdp-book-isbn-label {
  min-width: 4.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pdp-book-isbn-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: #0f172a;
  background: transparent;
  padding: 0;
}

.pdp-book-isbn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 2px;
  background: #fff;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdp-book-isbn-copy:hover,
.pdp-book-isbn-copy.is-copied {
  border-color: var(--pdp-rose);
  color: var(--pdp-rose-deep);
  background: var(--color-primary-light);
}

.pdp-buy-price--catalog {
  padding: 0.5rem 0 1rem;
}

.pdp-catalog-only {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #334155;
}

.pdp-catalog-only-hint {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.pdp-search-isbn {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.pdp-search-isbn:hover {
  text-decoration: underline;
}

.pdp-comparison-table--book .col-product-name {
  display: none;
}

.pdp-comparison-empty-row .pdp-placeholder--inline {
  padding: 2.5rem 1rem;
  text-align: center;
}

.pdp-comparison-empty-row .pdp-placeholder--inline i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.pdp-comparison-empty-row .pdp-placeholder--inline h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.pdp-comparison-empty-row .pdp-placeholder--inline p {
  margin: 0 auto;
  color: #64748b;
  max-width: 32rem;
}

.pdp-gallery-placeholder--book i {
  color: rgba(255, 255, 255, 0.55);
}

.pdp--beauty .pdp-comparison-title {
  font-family: var(--pdp-font-display);
  font-weight: 600;
}

.pdp--beauty .pdp-tab.active {
  color: var(--pdp-rose-deep);
  border-color: var(--pdp-rose);
}

/* ---- Beauty tab section redesign ---- */
.pdp--beauty .pdp-comparison {
  margin-top: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--color-gray-200);
}

.pdp--beauty .pdp-tabs-wrap {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(251, 246, 247, 0.96) 0%, rgba(251, 246, 247, 0.92) 70%, transparent 100%);
  padding: 0.35rem 0 0.65rem;
  backdrop-filter: blur(8px);
}

.pdp--beauty .pdp-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-gray-200);
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pdp--beauty .pdp-tabs::-webkit-scrollbar {
  display: none;
}

.pdp--beauty .pdp-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  box-shadow: none;
  color: var(--color-gray-500);
  font-family: var(--pdp-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pdp--beauty .pdp-tab i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.pdp--beauty .pdp-tab:hover:not(.active) {
  color: var(--color-gray-800);
  background: transparent;
}

.pdp--beauty .pdp-tab.active {
  color: var(--pdp-ink);
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--pdp-rose);
}

.pdp--beauty .pdp-tab.active i {
  color: var(--pdp-rose);
  opacity: 1;
}

.pdp--beauty .pdp-tab-label--short {
  display: none;
}

.pdp--beauty .pdp-comparison-header {
  padding: 0 0 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.pdp--beauty .pdp-comparison-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.01em;
}

.pdp--beauty .pdp-comparison-title i {
  display: none;
}

.pdp--beauty .pdp-sort-select {
  border-radius: 2px;
  border-color: var(--color-gray-300);
  font-family: var(--pdp-font-ui);
}

.pdp--beauty .pdp-comparison-table-wrapper {
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.pdp--beauty .pdp-comparison-table {
  min-width: 640px;
}

.pdp--beauty .pdp-comparison-table thead th {
  background: var(--pdp-pearl);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  border-bottom: 1px solid var(--color-gray-200);
}

.pdp--beauty .pdp-comparison-table tbody tr:hover {
  background: var(--color-primary-light);
}

.pdp--beauty .pdp-comparison-empty-row .pdp-placeholder--inline {
  padding: 3rem 1.25rem;
}

/* Specs panels — editorial, not cards */
.pdp--beauty #tab-specifications .pdp-spec-group {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.pdp--beauty #tab-specifications .pdp-spec-group:hover {
  border: none;
  box-shadow: none;
  transform: none;
}

.pdp--beauty #tab-specifications .pdp-spec-group-header {
  background: transparent;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0 0 0.75rem;
  margin-bottom: 0.35rem;
  font-family: var(--pdp-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pdp-ink);
  letter-spacing: 0.01em;
  cursor: default;
}

.pdp--beauty #tab-specifications .pdp-spec-group:hover .pdp-spec-group-header {
  background: transparent;
  color: var(--pdp-ink);
}

.pdp--beauty #tab-specifications .pdp-spec-group-header i {
  color: var(--pdp-rose);
  font-size: 0.95rem;
}

.pdp--beauty #tab-specifications .pdp-spec-group:hover .pdp-spec-group-header i {
  transform: none;
}

.pdp--beauty #tab-specifications .pdp-spec-group-body {
  padding: 0.25rem 0 0;
}

.pdp--beauty #tab-specifications .pdp-spec-row {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 0.9375rem;
}

.pdp--beauty #tab-specifications .pdp-spec-row:hover {
  padding-left: 0;
  background: transparent;
}

.pdp--beauty #tab-specifications .pdp-spec-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  padding-top: 0.2rem;
}

.pdp--beauty #tab-specifications .pdp-spec-value {
  text-align: left;
  font-weight: 500;
  color: var(--color-gray-800);
  word-break: break-word;
}

.pdp--beauty #tab-specifications .pdp-spec-value a {
  color: var(--pdp-rose-deep);
  text-decoration: none;
  font-weight: 600;
}

.pdp--beauty #tab-specifications .pdp-spec-value a:hover {
  text-decoration: underline;
}

.pdp--beauty #tab-specifications .pdp-spec-row--ingredients {
  grid-template-columns: 1fr;
}

.pdp--beauty .pdp-ingredients summary {
  cursor: pointer;
  color: var(--pdp-rose-deep);
  font-weight: 600;
  font-size: 0.875rem;
  list-style: none;
}

.pdp--beauty .pdp-ingredients summary::-webkit-details-marker {
  display: none;
}

.pdp--beauty .pdp-ingredients summary::after {
  content: " +";
  font-weight: 700;
}

.pdp--beauty .pdp-ingredients[open] summary::after {
  content: " −";
}

.pdp--beauty .pdp-ingredients-text {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--color-gray-600);
  text-transform: none;
  letter-spacing: 0.01em;
}

.pdp--beauty .pdp-top-ingredients {
  margin-top: 1rem;
}

.pdp--beauty .pdp-top-ingredients__label {
  font-family: var(--pdp-font-ui, inherit);
  color: var(--color-gray-500, #94a3b8);
}

.pdp--beauty .pdp-ingredient-chips--top a {
  background: rgba(124, 74, 133, 0.06);
  border-color: rgba(124, 74, 133, 0.22);
  color: var(--pdp-rose-deep, #4A2E4D);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.pdp--beauty .pdp-ingredient-chips--top a:hover {
  background: rgba(124, 74, 133, 0.12);
  border-color: var(--pdp-rose, #7C4A85);
}

.pdp--beauty #tab-specifications .pdp-ingredient-chips--top {
  margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
  .pdp--beauty .pdp-top-ingredients__more {
    display: block;
  }
}

.pdp--beauty #tab-specifications .pdp-description-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  max-width: 40rem;
}

.pdp--beauty .pdp-specs-split {
  margin-top: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.pdp--beauty #tab-specifications .pdp-specs-split > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .pdp--beauty #tab-specifications .pdp-specs-split {
    display: grid !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    flex-flow: unset !important;
  }

  .pdp--beauty #tab-specifications .pdp-specs-split > .pdp-specs-split__col--cosmetic,
  .pdp--beauty #tab-specifications .pdp-specs-split > .pdp-specs-split__col--desc {
    flex: unset !important;
    width: auto !important;
    max-width: none !important;
  }

  .pdp--beauty #tab-specifications .pdp-specs-split > .pdp-specs-split__col--desc:only-child {
    grid-column: 1 / -1;
  }
}

/* Mobile / tablet responsive fixes */
@media (max-width: 991.98px) {
  .pdp--beauty .pdp-tab-label--full {
    display: none;
  }

  .pdp--beauty .pdp-tab-label--short {
    display: inline;
  }

  .pdp--beauty .pdp-tab {
    padding: 0.8rem 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .pdp--beauty .pdp-stage--beauty {
    padding: 1.25rem 0 1.75rem;
  }

  .pdp--beauty .pdp-hero-media--beauty .pdp-gallery-main,
  .pdp--book .pdp-hero-media--book .pdp-gallery-main {
    min-height: clamp(260px, 48vw, 360px);
  }

  .pdp--beauty .pdp-gallery-main img,
  .pdp--book .pdp-gallery-main img {
    height: clamp(220px, 42vw, 300px);
  }

  .pdp--beauty .pdp-buy-card--beauty {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .pdp--beauty .pdp-comparison {
    padding-left: 0;
    padding-right: 0;
  }

  .pdp--beauty .pdp-comparison-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .pdp--beauty .pdp-comparison-sort {
    width: 100%;
  }

  .pdp--beauty .pdp-sort-select {
    width: 100%;
  }

  .pdp--beauty .pdp-comparison-table {
    min-width: 560px;
  }

  .pdp--beauty #tab-specifications .pdp-spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .pdp--beauty .pdp-beauty-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pdp--beauty .pdp-beauty-cta,
  .pdp--beauty .pdp-beauty-cta-secondary {
    text-align: center;
    justify-content: center;
  }

  .pdp--beauty .pdp-beauty-cta-secondary {
    border-bottom: none;
    padding: 0.65rem 1rem;
    background: var(--color-gray-100);
    color: var(--pdp-ink);
  }

  .pdp--beauty .pdp-key-specs-list {
    grid-template-columns: 1fr;
  }

  .pdp--beauty .pdp-tabs-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
}

@media (max-width: 575.98px) {
  .pdp--beauty .pdp-brand-mark a {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .pdp--beauty .pdp-hero-content--beauty .pdp-title {
    font-size: 1.35rem;
  }

  .pdp--beauty .pdp-tab i {
    display: none;
  }
}

@media (min-width: 1200px) {
  .pdp--beauty .pdp-hero-media--beauty {
    margin-left: calc(-1 * clamp(0px, 4vw, 2.5rem));
    order: 0;
  }

  .pdp--beauty .pdp-hero-content--beauty {
    order: 0;
  }

  .pdp--beauty .pdp-hero-sidebar {
    order: 0;
  }
}

@media (max-width: 1199.98px) {
  .pdp--beauty .pdp-hero-media--beauty,
  .pdp--book .pdp-hero-media--book {
    order: 1;
  }

  .pdp--beauty .pdp-hero-content--beauty,
  .pdp--book .pdp-hero-content--book {
    order: 2;
  }

  .pdp--beauty .pdp-hero-sidebar,
  .pdp--book .pdp-hero-sidebar {
    order: 3;
  }
}

@media (max-width: 991.98px) {
  .pdp--beauty .pdp-brand-mark a {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .pdp--beauty .pdp-hero-content--beauty .pdp-title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-stage--beauty::before,
  .pdp--beauty .pdp-gallery-main img {
    animation: none;
  }
}

/* cache-bust: beauty-tabs-v2 */
