/* =====================================================
   Product Page - Enhanced Modern Design
   Follows consistent flat design system with cyan 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;
  max-width: 100%;
}

/* 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(23, 162, 184, 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;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e2e8f0;
  max-width: 100%;
}

.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: #17a2b8;
  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: #17a2b8;
  background: #f0fafb;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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: #17a2b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pdp-key-specs-more:hover {
  color: #0e7490;
  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: #17a2b8;
  background: #f0fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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(23, 162, 184, 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(23, 162, 184, 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: #17a2b8;
  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-sparkline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.65rem;
  text-decoration: none;
  color: var(--color-gray-500);
}
.pdp-buy-sparkline:hover {
  color: #0d9488;
}
.pdp-buy-sparkline-svg {
  display: block;
  width: 120px;
  height: 28px;
}
.pdp-buy-sparkline-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.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, #17a2b8 0%, #138496 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(23, 162, 184, 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, #138496 0%, #0f6c7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 162, 184, 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: grid;
  grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
  width: 100%;
}

.pdp-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  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;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.pdp-quick-action-label {
  display: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.pdp-quick-action:hover {
  border-color: #17a2b8;
  color: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(23, 162, 184, 0.15);
}

.pdp-quick-action:focus-visible {
  outline: 2px solid #17a2b8;
  outline-offset: 2px;
}

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

.pdp-wishlist-btn.active i {
  color: #dc2626;
  font-weight: 900;
}

.pdp-compare-btn.active i {
  color: #17a2b8;
}

.pdp-share-menu {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
  margin-top: 8px;
  position: relative;
}

.pdp-share-menu.is-open {
  display: flex;
}

.pdp-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pdp-share-link:hover,
.pdp-share-link:focus-visible {
  background: #17a2b8;
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

@media (max-width: 767px) {
  .pdp-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-quick-action-label {
    display: block;
  }
}

/* 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: 550px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform var(--transition-base);
  display: block;
}

.pdp-gallery-main:hover {
  border-color: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 162, 184, 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: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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: var(--color-primary);
  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: #17a2b8;
}

.pdp-sort-select:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 2px rgba(23, 162, 184, 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-wrapper:not(.is-expanded) .comparison-row--extra {
  display: none;
}

.pdp-offers-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.pdp-offers-expand {
  min-height: 44px;
  padding-inline: 1.25rem;
}

.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, var(--color-primary-light) 0%, #bae6fd 100%);
  border: 1px solid #bae6fd;
}

.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-store-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  line-height: 1.2;
}

.retailer-store-stars {
  display: inline-flex;
  gap: 1px;
  color: #fbbf24;
  font-size: 0.6875rem;
}

.retailer-store-stars .far.fa-star {
  color: #e2e8f0;
}

.retailer-store-score {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.retailer-store-count {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.retailer-store-empty {
  font-size: 0.6875rem;
  color: #94a3b8;
}

/* 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;
}

/* =====================================================
   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: #17a2b8;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #17a2b8;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-deal:hover {
  background: #17a2b8;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

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

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

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

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

/* =====================================================
   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:not(.pdp-comparison-table--book) {
    min-width: 720px;
  }
  .pdp-comparison-table--book {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .pdp-comparison-table:not(.pdp-comparison-table--book) {
    min-width: 680px;
  }
  .pdp-comparison-table--book {
    min-width: 0;
  }
  .price-current {
    font-size: 1.125rem;
  }
  .retailer-avatar {
    width: 36px;
    height: 36px;
  }
  .retailer-name {
    font-size: 0.8125rem;
  }
}

/* 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: #17a2b8;
  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: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  width: 100%;
}

.pdp-specs-tab-grid > .pdp-spec-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .pdp-specs-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Specs tab — book details + description (bypass critical.css width:auto on .row > col) */
.pdp-specs-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.pdp-specs-split > .pdp-specs-split__col {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  .pdp-specs-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .pdp-specs-split > .pdp-specs-split__col--desc:only-child,
  .pdp-specs-split > .pdp-specs-split__col--book:only-child {
    grid-column: 1 / -1;
  }
}

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

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

.pdp-specs-split .pdp-spec-row {
  gap: 0.75rem;
  align-items: flex-start;
}

.pdp-specs-split .pdp-spec-label {
  flex: 0 0 auto;
  max-width: 42%;
  min-width: 5.5rem;
}

.pdp-specs-split .pdp-spec-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .pdp-specs-split .pdp-spec-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .pdp-specs-split .pdp-spec-label,
  .pdp-specs-split .pdp-spec-value {
    max-width: none;
    width: 100%;
    text-align: left;
  }
}

/* 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:not(.pdp-comparison-table--book) {
    min-width: 720px;
  }

  .pdp-comparison-table--book {
    min-width: 0;
  }
  
  .pdp-quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pdp-key-specs-grid,
  .pdp-key-specs-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .pdp-quick-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .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 .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: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 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 var(--color-primary);
  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 var(--color-primary);
  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, #17a2b8 0%, #138496 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(23, 162, 184, 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, #17a2b8 0%, #138496 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%;
}

/* Price Alert Modal Overlay */
.pdp-alert-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: 10000;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.pdp-alert-modal {
  background: var(--color-white);
  border-radius: 8px;
  max-width: 500px;
  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-alert-overlay.is-open .pdp-alert-modal {
  transform: scale(1) translateY(0);
}

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

.pdp-alert-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  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(0, 123, 255, 0.2);
}

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

.pdp-alert-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-alert-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-alert-modal-body {
  padding: var(--space-6);
}

.pdp-alert-text {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  margin: 0 0 var(--space-6);
  line-height: 1.6;
}

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

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

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

.pdp-alert-label--inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.pdp-alert-input {
  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-alert-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pdp-alert-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-alert-submit:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.pdp-alert-submit:active {
  transform: translateY(0);
}

/* =====================================================
   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: var(--color-accent, #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: #17a2b8;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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: #17a2b8;
}

.pdp-spec-group-header i {
  color: #17a2b8;
  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: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 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);
}

.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 #17a2b8;
}

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

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

/* 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(23, 162, 184, 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: #17a2b8;
  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;
  }

  .pdp-alert-modal {
    max-width: 95%;
    margin: var(--space-4);
  }
  
  .pdp-alert-modal-header {
    padding: var(--space-4);
    flex-wrap: wrap;
  }
  
  .pdp-alert-modal-title {
    font-size: var(--font-size-lg);
  }
  
  .pdp-alert-modal-body {
    padding: var(--space-4);
  }
  
  .pdp-alert-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }
  
  .pdp-alert-modal-close {
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
  }
  
  /* 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 — keep wrapper full-width; cards handle books */
  .pdp-comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .pdp--book .pdp-comparison-table-wrapper {
    overflow: visible;
  }

  .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: #17a2b8;
  background: rgba(23, 162, 184, 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: #17a2b8;
  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: #17a2b8;
  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: #138496;
}

.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: #17a2b8;
  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;
}

/* --------------------------------------------------------------------------
   Book-oriented product page (pdp--book)
   -------------------------------------------------------------------------- */

.pdp--book .pdp-hero-media--book .pdp-gallery-main {
  /* background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%); */
  border-radius: 12px;
  /* box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); */
}

.pdp--book .pdp-gallery-main img {
  object-fit: contain;
  padding: 1rem;
}

.pdp-book-genre {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pdp-book-genre:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.pdp-hero-content--book .pdp-title {
  margin-bottom: 0.5rem;
}

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

.pdp-book-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.pdp-book-byline-label {
  color: var(--color-gray-500);
  font-weight: 500;
}

.pdp-book-author {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.pdp-book-author:hover {
  text-decoration: underline;
}

.pdp-book-publisher {
  margin: 0 0 1rem;
  color: var(--color-gray-600);
  font-size: 0.9375rem;
}

.pdp-book-publisher a {
  color: var(--color-gray-800);
  font-weight: 600;
  text-decoration: none;
}

.pdp-book-publisher a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.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.35rem 0.7rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
}

.pdp-book-chip i {
  font-size: 0.75rem;
  opacity: 0.75;
  color: #64748b;
}

/* Roadmap 29: edition-family format switcher */
.pdp-edition-switcher {
  margin: 0 0 1rem;
}

.pdp-edition-switcher-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.pdp-edition-switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-edition-switcher-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

a.pdp-edition-switcher-item:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  text-decoration: none;
}

.pdp-edition-switcher-item.is-current {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  cursor: default;
}

.pdp-edition-switcher-price {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.8;
}

.pdp-book-isbn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.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 #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.pdp-description--book .pdp-description-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.pdp-book-details-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}

.pdp-book-details-link:hover {
  text-decoration: underline;
}

.pdp-buy-card--book .pdp-buy-badge {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.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: #0d6efd;
  text-decoration: none;
}

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

.pdp-comparison-table--book .col-retailer {
  width: 18%;
  min-width: 10rem;
}

.pdp-comparison-table--book .retailer-cell {
  align-items: flex-start;
}

.pdp-comparison-table--book .col-product-name {
  width: 18%;
  min-width: 9rem;
}

.pdp-comparison-table--book .col-format {
  width: 10%;
  min-width: 6.5rem;
}

.pdp-comparison-table--book .col-isbn {
  width: 12%;
  min-width: 8rem;
}

.offer-format-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.offer-isbn-value {
  display: inline-block;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  word-break: break-all;
}

.offer-meta-empty {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.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;
  color: #64748b;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.pdp-gallery-placeholder--book i {
  color: #94a3b8;
}

@media (max-width: 991.98px) {
  .pdp--book .pdp-hero-content--book {
    order: 2;
  }

  .pdp--book .pdp-hero-media--book {
    order: 1;
  }

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

/* Always-visible book meta (details chips + ISBN) */
.pdp-book-meta-block {
  margin: 0.75rem 0 1rem;
  max-width: 100%;
  min-width: 0;
}

.pdp-book-meta-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pdp-book-chips {
  max-width: 100%;
}

.pdp-book-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdp-book-isbn {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pdp-book-isbn-row {
  max-width: 100%;
}

.pdp-book-isbn-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.pdp-description--book,
.pdp-description--book p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdp-secondary-fold {
  margin: 0.75rem 0 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.35rem 0.85rem 0.65rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .pdp-book-isbn {
    padding: 0.65rem 0.75rem;
  }

  .pdp-book-isbn-label {
    min-width: 0;
  }

  .pdp-secondary-fold {
    padding: 0.25rem 0.65rem 0.55rem;
  }

  .pdp-description--book {
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
  }
}

.pdp-secondary-fold-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  padding: 0.45rem 0;
}

.pdp-secondary-fold-summary::-webkit-details-marker {
  display: none;
}

.pdp-secondary-fold-summary::before {
  content: '+';
  display: inline-block;
  width: 1.1rem;
  color: var(--color-primary, #17a2b8);
  font-weight: 700;
}

.pdp-secondary-fold[open] > .pdp-secondary-fold-summary::before {
  content: '–';
}

.pdp-secondary-fold .pdp-book-chips {
  margin-top: 0.35rem;
}

.pdp-secondary-fold .pdp-description {
  margin: 0.25rem 0 0.35rem;
}

.pdp-secondary-fold .pdp-description-heading {
  display: none;
}

.pdp--book .pdp-buy-card--book {
  border-color: rgba(23, 162, 184, 0.35);
  box-shadow: 0 10px 28px rgba(23, 162, 184, 0.12);
}

.pdp--book .pdp-buy-card--book .pdp-btn-primary,
.pdp--book .pdp-buy-card--book a.pdp-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdp--book .pdp-buy-card--book .pdp-btn-primary:hover,
.pdp--book .pdp-buy-card--book a.pdp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 162, 184, 0.25);
}

.pdp-offers-table tbody tr {
  transition: background-color 0.15s ease;
}

.pdp-offers-table tbody tr:hover {
  background: var(--color-primary-light, #e6f7fa);
}

/* =====================================================
   PDP responsive hardening (books + general)
   ===================================================== */

.pdp .container,
.pdp-hero,
.pdp-hero-content,
.pdp-hero-sidebar,
.pdp-comparison,
.pdp-tabs-wrap,
.pdp-price-history-section,
.pdp .related-products-section {
  max-width: 100%;
  min-width: 0;
}

.pdp-title,
.pdp-book-subtitle,
.pdp-book-publisher,
.pdp-book-byline {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdp-buy-card,
.pdp-buy-card .pdp-btn,
.pdp-buy-card a.pdp-btn {
  max-width: 100%;
}

.pdp-buy-card .pdp-btn,
.pdp-buy-card a.pdp-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.pdp-quick-actions {
  width: 100%;
}

.pdp-tabs-wrap {
  width: 100%;
}

.pdp-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdp-price-history-section canvas,
#priceHistoryChart {
  max-width: 100% !important;
  height: auto !important;
}

.pdp-sticky-content {
  max-width: 100%;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

/* Stacked hero: cover → details → buy (books) */
@media (max-width: 1199px) {
  .pdp--book .pdp-hero {
    display: flex;
    flex-direction: column;
  }

  .pdp--book .pdp-hero-media--book {
    order: 1;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

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

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

/* Offer table → stacked cards on tablet/phone */
@media (max-width: 991.98px) {
  .pdp-comparison-table-wrapper {
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .pdp-comparison-table--book {
    min-width: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .pdp-comparison-table--book thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pdp-comparison-table--book tbody {
    display: grid;
    gap: 0.75rem;
  }

  .pdp-comparison-table--book tbody tr.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .pdp-comparison-table--book tbody tr.best-price-row {
    border-color: #86efac;
    background: #f0fdf4;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td.col-retailer {
    grid-column: 1 / -1;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td.col-product-name {
    grid-column: 1 / -1;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td.col-action {
    grid-column: 1 / -1;
  }

  .pdp-comparison-table--book tbody tr.comparison-row > td.col-action::before {
    display: none;
  }

  .pdp-comparison-table--book .offer-product-name {
    -webkit-line-clamp: 3;
  }

  .pdp-comparison-table--book .action-cell {
    width: 100%;
    justify-content: stretch;
  }

  .pdp-comparison-table--book .btn-view-deal {
    width: 100%;
    white-space: normal;
  }

  .pdp-comparison-table--book .pdp-comparison-empty-row {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
  }

  .pdp-comparison-table--book .pdp-comparison-empty-row td {
    display: block;
    width: 100% !important;
    border: 0;
    padding: 0;
  }

  .pdp-tabs {
    flex-wrap: wrap;
  }

  .pdp-tab {
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.25;
    min-width: calc(50% - 0.25rem);
  }
}

@media (max-width: 767.98px) {
  .pdp-comparison-table--book tbody tr.comparison-row {
    grid-template-columns: 1fr;
  }

  .pdp-tab {
    min-width: 100%;
    text-align: left;
  }

  .pdp-sticky-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

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

  .pdp-sticky-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
  }

  .pdp-sticky-actions {
    width: 100%;
  }

  .pdp-sticky-actions .pdp-btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .pdp-sticky {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
  }

  html.has-compare-tray .pdp-sticky {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  .pdp-breadcrumb-list {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .pdp--book .pdp-hero-media--book {
    max-width: 16rem;
  }
}

/* Related rails already use CSS grid; keep cards from overflowing */
.pdp .related-product-card,
.pdp .related-product-name,
.pdp .related-product-brand {
  min-width: 0;
  max-width: 100%;
}

.pdp .related-product-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

