/* ============================================
   DELL-STYLE PRODUCT DETAIL PAGE
   ============================================ */

/* --- Self-contained CSS variables (no dependency on index.css) --- */
:root {
  --color-primary: #003060;
  --color-secondary: #ffa800;
  --color-tertiary: #28b485;
  --color-grey: #dddddd;
  --color-grey-bg: #f9f9f9;
  --color-grey-text: #717171;
  --text-black: #000;
  --text-white: #fff;
  --text-normal: 1.6rem;
  --text-s: 1.4rem;
}
html {
  font-size: 62.5%;
}
/* Restore body font-size so HostX theme elements are unaffected */
body {
  font-size: 1.6rem;
}
/* Fix: Header float:left pushes main-body off-screen on mobile */
section#main-body {
  clear: both;
  width: 100%;
}
/* Ensure the product page container doesn't overflow */
#order-standard_cart.hostx-cart-body-section {
  margin-top: 0 !important;
  overflow-x: clip;
  max-width: 100%;
}

/* --- Breadcrumbs --- */
.pd-breadcrumbs {
  padding: 1.2rem 0;
  font-size: var(--text-s);
  color: var(--color-grey-text);
}
.pd-breadcrumbs a {
  color: var(--color-primary);
  transition: color 0.2s;
}
.pd-breadcrumbs a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.pd-breadcrumbs .separator {
  margin: 0 0.6rem;
  color: #bbb;
}

/* --- Hero Section (2-column) --- */
.pd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

/* --- Gallery (Left Column) --- */
.pd-gallery {
  min-width: 0;
  overflow: hidden;
  position: sticky;
  top: 10rem;
  padding-top: 4rem;
}
.pd-gallery .swiper-slide {
  cursor: pointer;
}
.pd-gallery .pd-main-slider {
  border: 1px solid #eee;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 1.2rem;
}
.pd-gallery .pd-main-slider .slide-container {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 2rem;
  background: #fafafa;
}
.pd-gallery .pd-main-slider .slide-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pd-gallery .pd-main-slider .slide-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.pd-gallery .pd-thumb-slider {
  padding: 0 3rem;
}
.pd-gallery .pd-thumb-slider .thumbnail-container {
  border: 2px solid transparent;
  border-radius: 0.6rem;
  overflow: hidden;
  padding: 0.6rem;
  cursor: pointer;
  transition: border-color 0.2s;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.pd-gallery .pd-thumb-slider .swiper-slide-thumb-active .thumbnail-container {
  border-color: var(--color-primary);
}
.pd-gallery .pd-thumb-slider .thumbnail-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pd-gallery .swiper-button-next,
.pd-gallery .swiper-button-prev {
  color: var(--color-primary);
  width: 3.6rem;
  height: 3.6rem;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pd-gallery .swiper-button-next::after,
.pd-gallery .swiper-button-prev::after {
  font-size: 1.4rem;
  font-weight: bold;
}

/* --- Product Info (Right Column) --- */
.pd-info {
  min-width: 0;
  padding-top: 0.5rem;
}
.pd-info .pd-product-name {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-black);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.pd-info .pd-tagline {
  font-size: var(--text-normal);
  color: var(--color-grey-text);
  margin-bottom: 1.5rem;
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: var(--text-s);
}
.pd-rating .stars {
  display: flex;
  gap: 0.2rem;
}
.pd-rating .stars i {
  color: var(--color-secondary);
  font-size: 1.4rem;
}
.pd-rating .stars i.empty {
  color: #ddd;
}
.pd-rating .review-count {
  color: var(--color-primary);
  cursor: pointer;
}
.pd-rating .review-count:hover {
  text-decoration: underline;
}

/* Price */
.pd-price-section {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.pd-price {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-black);
}
.pd-price-original {
  font-size: 1.8rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 1rem;
}
.pd-price-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  margin-left: 1rem;
}
.pd-price-cycle {
  font-size: var(--text-s);
  color: var(--color-grey-text);
  margin-top: 0.4rem;
}

/* Color Swatches */
.pd-color-section {
  margin-bottom: 2rem;
}
.pd-color-section .pd-section-label {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 0.8rem;
}
.pd-color-swatches {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.pd-color-swatch {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.pd-color-swatch:hover {
  transform: scale(1.1);
}
.pd-color-swatch.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.pd-color-swatch .swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Selectable Config Options */
.pd-config-options {
  margin-bottom: 2rem;
}
.pd-config-group {
  margin-bottom: 1.6rem;
}
.pd-config-group label {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 0.6rem;
}
.pd-config-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-size: var(--text-normal);
  color: var(--text-black);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: auto;
}
.pd-config-group select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Add to Cart Button */
.pd-add-to-cart {
  margin-bottom: 2.5rem;
}
.pd-add-to-cart .pd-cart-btn {
  width: 100%;
  padding: 1.6rem 3rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background: #0d8a3e;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: none;
  letter-spacing: 0;
}
.pd-add-to-cart .pd-cart-btn:hover {
  background: #0a6e31;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 138, 62, 0.35);
}
.pd-add-to-cart .pd-cart-btn i {
  margin-right: 0.8rem;
}

/* Order Summary Mini */
.pd-order-summary {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  background: var(--color-grey-bg);
  border-radius: 0.8rem;
  padding: 1.6rem;
  margin-bottom: 2rem;
  font-size: var(--text-s);
}
/* Override HostX white text + dark background on order summary */
.pd-order-summary #producttotal,
.pd-order-summary #producttotal *,
#order-standard_cart .pd-order-summary #producttotal,
#order-standard_cart .pd-order-summary #producttotal * {
  color: #333 !important;
  background-color: transparent !important;
}
.pd-order-summary .order-summary,
#order-standard_cart .pd-order-summary .order-summary {
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.pd-order-summary .order-summary h2 {
  color: var(--text-black) !important;
  padding: 0 0 1rem !important;
  font-size: 1.6rem !important;
}
.pd-order-summary .summary-totals,
.pd-order-summary .total-due-today {
  color: var(--text-black) !important;
}
.pd-order-summary .total-due-today .amt {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}
.pd-order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.pd-order-summary .summary-total {
  border-top: 1px solid #ddd;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  font-weight: 700;
  font-size: var(--text-normal);
  color: var(--text-black);
}

/* Short Description / Key Features */
.pd-key-features {
  margin-bottom: 2rem;
}
.pd-key-features h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 1rem;
}
.pd-key-features ul {
  list-style: disc;
  padding-left: 2rem;
}
.pd-key-features ul li {
  padding: 0.4rem 0;
  font-size: var(--text-s);
  color: #555;
  line-height: 1.6;
}
.pd-key-features ul li strong {
  color: var(--text-black);
}

/* Addons Section */
.pd-addons {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-bottom: 2rem;
}
.pd-addons h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 1.2rem;
}
.pd-addon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pd-addon-item:hover {
  border-color: var(--color-primary);
}
.pd-addon-item.selected {
  border-color: var(--color-primary);
  background: rgba(0, 48, 96, 0.03);
}
.pd-addon-item input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: var(--color-primary);
}
.pd-addon-item .addon-details {
  flex: 1;
}
.pd-addon-item .addon-name {
  font-weight: 600;
  color: var(--text-black);
  font-size: var(--text-s);
}
.pd-addon-item .addon-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-s);
}

/* ============================================
   BELOW THE FOLD — TABS
   ============================================ */
.pd-tabs-section {
  border-top: 1px solid #eee;
  margin-top: 2rem;
}
.pd-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pd-tabs-nav .pd-tab-btn {
  padding: 1.6rem 3rem;
  font-size: var(--text-normal);
  font-weight: 600;
  color: var(--color-grey-text);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pd-tabs-nav .pd-tab-btn:hover {
  color: var(--text-black);
}
.pd-tabs-nav .pd-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.pd-tab-content {
  display: none;
  padding: 3rem 0;
}
.pd-tab-content.active {
  display: block;
}

/* --- Specifications Table --- */
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.pd-specs-table tr {
  border-bottom: 1px solid #f0f0f0;
}
.pd-specs-table tr:nth-child(even) {
  background: #fafafa;
}
.pd-specs-table td {
  padding: 1.4rem 2rem;
  font-size: var(--text-s);
  vertical-align: top;
}
.pd-specs-table td:first-child {
  width: 25rem;
  font-weight: 600;
  color: var(--text-black);
}
.pd-specs-table td:last-child {
  color: #555;
}
.pd-specs-category {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-black);
  padding: 2rem 0 1rem;
  margin-top: 1rem;
}

/* --- Overview Tab --- */
.pd-overview {
  font-size: var(--text-normal);
  line-height: 1.8;
  color: #555;
}
.pd-overview h2,
.pd-overview h3 {
  color: var(--text-black);
  margin: 2rem 0 1rem;
}
.pd-overview img {
  border-radius: 0.8rem;
  margin: 1rem 0;
}

/* --- Reviews Tab --- */
.pd-reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eee;
}
.pd-reviews-avg {
  text-align: center;
  padding: 2rem;
}
.pd-reviews-avg .big-rating {
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-black);
  line-height: 1;
}
.pd-reviews-avg .rating-out-of {
  font-size: var(--text-s);
  color: var(--color-grey-text);
  margin-top: 0.4rem;
}
.pd-rating-bars .bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: var(--text-s);
}
.pd-rating-bars .bar-label {
  width: 6rem;
  text-align: right;
  color: var(--color-grey-text);
}
.pd-rating-bars .bar-track {
  flex: 1;
  height: 0.8rem;
  background: #eee;
  border-radius: 0.4rem;
  overflow: hidden;
}
.pd-rating-bars .bar-fill {
  height: 100%;
  background: var(--color-secondary);
  border-radius: 0.4rem;
  transition: width 0.5s ease;
}
.pd-rating-bars .bar-count {
  width: 3rem;
  color: var(--color-grey-text);
}

.pd-review-card {
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-review-card .review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pd-review-card .reviewer-name {
  font-weight: 600;
  color: var(--text-black);
}
.pd-review-card .review-date {
  font-size: 1.2rem;
  color: var(--color-grey-text);
}
.pd-review-card .review-title {
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 0.6rem;
}
.pd-review-card .review-text {
  font-size: var(--text-s);
  color: #555;
  line-height: 1.7;
}

/* --- Q&A Tab --- */
.pd-qa-section .qa-item {
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-qa-section .qa-question {
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 0.8rem;
}
.pd-qa-section .qa-answer {
  font-size: var(--text-s);
  color: #555;
  padding-left: 2rem;
  border-left: 3px solid var(--color-primary);
}

/* ============================================
   STICKY ADD-TO-CART BAR
   ============================================ */
.pd-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  z-index: 1001;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.pd-sticky-bar.visible {
  transform: translateY(0);
}
/* Sticky tabs (left side) */
.sticky-tabs {
  display: flex;
  align-items: center;
  gap: 0;
}
.sticky-tab {
  padding: 1.4rem 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-grey-text);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.sticky-tab:hover {
  color: var(--text-black);
}
.sticky-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
/* Sticky right (price + cart) */
.sticky-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.pd-sticky-bar .sticky-price {
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-black);
}
.pd-sticky-bar .sticky-cart-btn {
  padding: 1rem 2.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: #0d8a3e;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pd-sticky-bar .sticky-cart-btn i {
  margin-right: 0.6rem;
}
.pd-sticky-bar .sticky-cart-btn:hover {
  background: #0a6e31;
  box-shadow: 0 2px 8px rgba(13, 138, 62, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media only screen and (max-width: 900px) {
  /* Single column layout */
  .pd-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 1.6rem 2rem;
  }
  .pd-gallery {
    min-width: 0;
    overflow: hidden;
    position: relative;
    top: 0;
  }
  /* Add side padding to info column */
  .pd-info {
    padding: 0 0.4rem;
  }
  .pd-info .pd-product-name {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  .pd-price {
    font-size: 2.6rem;
  }
  .pd-price-section {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }
  /* Better dropdown styling */
  .pd-config-group {
    margin-bottom: 1.4rem;
  }
  .pd-config-group label {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    display: block;
  }
  .pd-config-group select {
    font-size: 1.4rem;
    padding: 1.2rem 3rem 1.2rem 1.2rem;
    border-radius: 0.8rem;
    border: 2px solid #ddd;
    -webkit-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 1.2rem center;
    background-size: 12px 8px;
    white-space: normal;
    text-overflow: ellipsis;
  }
  /* Trust bar - bigger, 2x2 grid */
  .pd-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.8rem;
    border: 1px solid #eee;
  }
  .pd-trust-item {
    font-size: 1.2rem;
    font-weight: 500;
    color: #444;
    gap: 0.6rem;
  }
  .pd-trust-item i {
    font-size: 1.4rem;
    color: var(--color-primary);
  }
  /* Tab navigation - scrollable pills */
  .pd-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0 1.6rem;
    scrollbar-width: none;
  }
  .pd-tabs-nav::-webkit-scrollbar { display: none; }
  .pd-tabs-nav .pd-tab-btn {
    padding: 1.2rem 1.8rem;
    font-size: 1.3rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Tabs content - add padding */
  .pd-tab-content {
    padding: 2rem 1.6rem;
  }
  .pd-tabs-section {
    margin-top: 1rem;
  }
  /* Overview content - constrain images, fix overflow */
  .pd-overview img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.6rem;
  }
  .pd-overview iframe,
  .pd-overview video {
    max-width: 100% !important;
    height: auto !important;
  }
  .pd-overview table {
    width: 100% !important;
    overflow-x: auto;
    display: block;
  }
  .pd-overview div[style*="display:flex"],
  .pd-overview div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }
  /* Breadcrumbs - add padding */
  .pd-breadcrumbs {
    padding: 1rem 1.6rem;
  }
  /* Reviews summary */
  .pd-reviews-summary {
    grid-template-columns: 1fr;
  }
  .pd-specs-table td:first-child {
    width: 12rem;
  }
  /* Sticky bar — dual bars on mobile: tabs at top, price at bottom */
  .pd-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: block;
  }
  .pd-sticky-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .sticky-tabs {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    scrollbar-width: none;
  }
  .sticky-tabs::-webkit-scrollbar { display: none; }
  .sticky-tab {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  .sticky-right {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    padding: 1.2rem 1.6rem 1.6rem;
    padding-bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
  }
  .pd-sticky-bar .sticky-price {
    font-size: 2.2rem;
    font-weight: 700;
  }
  .pd-sticky-bar .sticky-cart-btn {
    padding: 1.2rem 2.4rem;
    font-size: 1.5rem;
    border-radius: 5rem;
    letter-spacing: 0.2px;
  }
  /* Key features - better spacing */
  .pd-key-features {
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
  }
  .pd-key-features h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .pd-key-features ul li {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 0.3rem 0;
  }
  /* Add to cart button */
  .pd-add-to-cart {
    margin-bottom: 1.5rem;
  }
  .pd-add-to-cart .pd-cart-btn {
    padding: 1.6rem 2rem;
    font-size: 1.6rem;
    border-radius: 1rem;
  }
  /* Color section */
  .pd-color-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
  }
  /* Contact help */
  #order-standard_cart > div:last-child {
    padding: 2rem 1.6rem !important;
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 600px) {
  .pd-hero {
    padding: 0.5rem 1.2rem 1.5rem;
    gap: 1rem;
  }
  .pd-info .pd-product-name {
    font-size: 2rem;
  }
  .pd-tagline {
    font-size: 1.3rem;
  }
  .pd-rating {
    margin-bottom: 1.2rem;
  }
  .pd-price {
    font-size: 2.4rem;
  }
  .pd-price-original {
    font-size: 1.3rem;
  }
  .pd-price-section {
    padding: 1.2rem 0;
    margin-bottom: 1.2rem;
  }
  /* Tabs */
  .pd-tabs-nav .pd-tab-btn {
    padding: 1rem 1.4rem;
    font-size: 1.2rem;
  }
  .pd-tab-content {
    padding: 1.5rem 1.2rem;
  }
  /* Specs table */
  .pd-specs-table td {
    padding: 1rem 1rem;
    font-size: 1.3rem;
  }
  .pd-specs-table td:first-child {
    width: 10rem;
    font-size: 1.2rem;
  }
  /* Sticky bar — keep good sizing on small phones */
  .pd-sticky-bar .sticky-price {
    font-size: 2rem;
  }
  .pd-sticky-bar .sticky-cart-btn {
    padding: 1.1rem 2rem;
    font-size: 1.4rem;
  }
  .sticky-tab {
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
  }
  /* Swatches */
  .pd-color-swatch {
    width: 3.2rem;
    height: 3.2rem;
  }
  /* Gallery thumbs smaller */
  .pd-gallery .pd-thumb-slider {
    padding: 0 2rem;
  }
  /* Breadcrumbs */
  .pd-breadcrumbs {
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
  }
  /* Overview - prevent crazy tall content */
  .pd-overview {
    font-size: 1.4rem;
    line-height: 1.7;
    word-break: break-word;
  }
  .pd-overview h2 { font-size: 1.8rem; }
  .pd-overview h3 { font-size: 1.6rem; }
  /* Hide broken alt text for missing images */
  .pd-overview img[alt]:not([src*="http"]) {
    display: none;
  }
}

/* --- Hidden form elements (still functional) --- */
.pd-hidden-form {
  display: none;
}

/* --- Loading skeleton --- */
.pd-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.4rem;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.pd-skeleton-image {
  width: 100%;
  aspect-ratio: 1/1;
}
.pd-skeleton-text {
  height: 1.6rem;
  width: 60%;
  margin-bottom: 0.8rem;
}
.pd-skeleton-title {
  height: 2.8rem;
  width: 80%;
  margin-bottom: 1rem;
}

/* Trust Bar */
.pd-trust-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}
.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #666;
}
.pd-trust-item i {
  color: var(--color-primary, #4facfe);
  font-size: 1.6rem;
}
@media (max-width: 768px) {
  .pd-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .pd-trust-item {
    font-size: 1.2rem;
  }
}

/* Force overflow visible on all ancestors so position:sticky works */
.whmcs-templatefile-configureproduct section#main-body,
.whmcs-templatefile-configureproduct section#main-body > .container,
.whmcs-templatefile-configureproduct .shoping-cart-background,
.whmcs-templatefile-configureproduct .shoping-cart-background > .container,
.whmcs-templatefile-configureproduct .shoping-cart-background .row,
.whmcs-templatefile-configureproduct .shoping-cart-background .primary-content {
  overflow: visible !important;
}
/* Container override for product detail page */
.whmcs-templatefile-configureproduct .container > .row > .primary-content {
  padding: 0 !important;
}


/* ============================================
   AMAZON-STYLE REVIEWS
   ============================================ */

/* --- Summary Section --- */
.pd-reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.pd-reviews-avg {
  text-align: center;
  min-width: 12rem;
}
.pd-reviews-avg .big-rating {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
  color: #1a1a2e;
}
.pd-reviews-avg .stars {
  margin-top: 0.5rem;
}
.pd-reviews-avg .rating-count {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #999;
}

/* --- Star Distribution Bars --- */
.pd-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.bar-label {
  font-size: 1.2rem;
  color: #555;
  min-width: 4.5rem;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
}
.bar-track {
  flex: 1;
  height: 0.8rem;
  background: #f0f0f0;
  border-radius: 0.4rem;
  overflow: hidden;
  max-width: 20rem;
}
.bar-fill {
  height: 100%;
  background: #ffc300;
  border-radius: 0.4rem;
  transition: width 0.5s ease;
}
.bar-count {
  font-size: 1.2rem;
  color: #999;
  min-width: 2rem;
}

/* --- Category Ratings --- */
.pd-category-ratings {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
  min-width: 16rem;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.cat-label {
  font-size: 1.2rem;
  color: #555;
  min-width: 9rem;
}
.cat-bar-track {
  flex: 1;
  height: 0.6rem;
  background: #f0f0f0;
  border-radius: 0.3rem;
  overflow: hidden;
  max-width: 10rem;
}
.cat-bar-fill {
  height: 100%;
  background: #0d8a3e;
  border-radius: 0.3rem;
  transition: width 0.5s ease;
}
.cat-score {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  min-width: 2.5rem;
}

/* --- Write Review Button --- */
.pd-review-actions {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.pd-write-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: #0d8a3e;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pd-write-review-btn:hover {
  background: #0a6e31;
}

/* --- Empty State --- */
.pd-reviews-empty {
  text-align: center;
  padding: 5rem 0;
  color: #999;
}
.pd-reviews-empty i {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: block;
  color: #ddd;
}
.pd-reviews-empty p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* --- Review Cards --- */
.pd-review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pd-review-card {
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-review-card:last-child {
  border-bottom: none;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.review-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.reviewer-avatar {
  font-size: 3.2rem;
  color: #ccc;
  line-height: 1;
}
.reviewer-info {
  display: flex;
  flex-direction: column;
}
.reviewer-name {
  font-weight: 600;
  font-size: 1.3rem;
  color: #333;
}
.review-date {
  font-size: 1.1rem;
  color: #999;
}
.review-stars {
  flex-shrink: 0;
}
.review-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 0.8rem;
}

/* Category mini ratings on each card */
.review-cat-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.review-cat {
  font-size: 1.1rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}

/* Review Photos */
.review-photos {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.review-photo {
  display: block;
  width: 8rem;
  height: 8rem;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.2s;
}
.review-photo:hover {
  transform: scale(1.05);
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Helpful Votes */
.review-helpful {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.helpful-label {
  font-size: 1.2rem;
  color: #999;
}
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.helpful-btn:hover {
  background: #eee;
  color: #333;
}

/* --- Q&A Section --- */
.pd-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pd-qa-item {
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-qa-item:last-child {
  border-bottom: none;
}
.pd-qa-question {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pd-qa-question .qa-icon {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
  width: 2.4rem;
}
.pd-qa-question .qa-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}
.pd-qa-answer {
  display: flex;
  gap: 1rem;
  margin-left: 3.4rem;
  margin-bottom: 0.8rem;
}
.pd-qa-answer .qa-icon {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d8a3e;
  flex-shrink: 0;
  width: 2.4rem;
}
.pd-qa-answer .qa-text {
  font-size: 1.3rem;
  color: #444;
  line-height: 1.6;
}
.pd-qa-meta {
  margin-left: 3.4rem;
  font-size: 1.1rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pd-qa-helpful {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Q&A Ask Form */
.pd-qa-form {
  padding: 2.5rem;
  background: #fafafa;
  border-radius: 1rem;
  margin-top: 2rem;
  border: 1px solid #eee;
}
.pd-qa-form h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a2e;
}
.pd-qa-form input,
.pd-qa-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-family: inherit;
}
.pd-qa-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.pd-qa-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: #0d8a3e;
  border: none;
  border-radius: 5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pd-qa-submit:hover {
  background: #0a6e31;
}
.pd-qa-empty {
  text-align: center;
  padding: 4rem 0;
  color: #999;
}
.pd-qa-empty i {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  color: #ddd;
}
.pd-qa-msg {
  padding: 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: none;
}
.pd-qa-msg.success {
  background: #d5efe4;
  color: #1b9e54;
  border: 1px solid #1b9e54;
}
.pd-qa-msg.error {
  background: #ffe8e8;
  color: #fa7373;
  border: 1px solid #fa7373;
}

/* --- Mobile Reviews --- */
@media (max-width: 768px) {
  .pd-reviews-summary {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pd-reviews-avg {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .pd-reviews-avg .big-rating {
    font-size: 3.6rem;
  }
  .pd-category-ratings {
    min-width: auto;
  }
  .bar-track {
    max-width: none;
  }
  .cat-bar-track {
    max-width: none;
  }
  .review-header {
    flex-direction: column;
    gap: 0.8rem;
  }
  .review-cat-ratings {
    gap: 0.8rem;
  }
  .review-photo {
    width: 6rem;
    height: 6rem;
  }
}

/* ============================================
   AT A GLANCE — SPEC HIGHLIGHTS GRID
   ============================================ */
.pd-at-a-glance {
  margin-bottom: 2.5rem;
}
.pd-at-a-glance h3,
.pd-features-section h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.pd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.pd-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem;
  background: #f8f9fa;
  border-radius: 0.8rem;
  border: 1px solid #eef0f2;
  transition: border-color 0.2s;
}
.pd-spec-card:hover {
  border-color: #ccc;
}
.pd-spec-card .spec-icon {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.6rem;
  border: 1px solid #e0e3e7;
  flex-shrink: 0;
}
.pd-spec-card .spec-icon i {
  font-size: 1.6rem;
  color: #0d8a3e;
}
.pd-spec-card .spec-info {
  min-width: 0;
}
.pd-spec-card .spec-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.pd-spec-card .spec-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  word-break: break-word;
}

/* ============================================
   KEY FEATURES — FEATURE CARDS
   ============================================ */
.pd-features-section {
  margin-bottom: 2rem;
}
.pd-features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pd-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.pd-feature-card:last-child {
  border-bottom: none;
}
.pd-feature-card .feature-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pd-feature-card .feature-icon i {
  font-size: 1.6rem;
  color: #0d8a3e;
}
.pd-feature-card .feature-content {
  min-width: 0;
}
.pd-feature-card .feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
}
.pd-feature-card .feature-desc {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
}

/* Mobile: stack spec grid to single column */
@media (max-width: 600px) {
  .pd-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .pd-spec-card {
    padding: 1.2rem;
  }
}

/* Sticky bar — review stars inside Reviews tab */
.sticky-tab .sticky-stars {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.sticky-tab .sticky-stars i {
  font-size: 1.1rem;
  line-height: 1;
}
.sticky-tab .sticky-review-count {
  font-size: 1.1rem;
  color: #888;
  margin-left: 0.3rem;
  font-weight: 400;
}

/* ============================================
   SKU / MODEL NUMBER
   ============================================ */
.pd-sku {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.pd-sku span {
  font-weight: 500;
  color: #777;
}

/* ============================================
   FINANCING LINE
   ============================================ */
.pd-financing {
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.6rem;
}
.pd-financing i {
  color: #0d8a3e;
  margin-right: 0.5rem;
}
.pd-financing strong {
  color: #1a1a2e;
}

/* ============================================
   STOCK / DELIVERY INDICATOR
   ============================================ */
.pd-stock-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: #0d8a3e;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.pd-stock-indicator i {
  font-size: 1.4rem;
}
.pd-delivery-est {
  font-weight: 400;
  color: #777;
  font-size: 1.2rem;
}

/* ============================================
   COMPARE LINK
   ============================================ */
.pd-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
.pd-compare-link:hover {
  color: var(--color-primary);
}
.pd-add-to-cart {
  display: flex;
  align-items: center;
}

/* ============================================
   RICH OVERVIEW TAB
   ============================================ */
.pd-overview-desc {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 3rem;
}
.pd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.pd-overview-card {
  display: flex;
  gap: 1.6rem;
  padding: 2rem;
  border-radius: 1rem;
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  transition: box-shadow 0.2s;
}
.pd-overview-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pd-overview-card.alt {
  background: #fff;
}
.overview-card-icon {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.8rem;
  border: 1px solid #e0e3e7;
  flex-shrink: 0;
}
.pd-overview-card.alt .overview-card-icon {
  background: #f8f9fa;
}
.overview-card-icon i {
  font-size: 1.8rem;
  color: #0d8a3e;
}
.overview-card-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.4rem 0;
}
.overview-card-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ============================================
   SPEC SHEET DOWNLOAD
   ============================================ */
.pd-spec-actions {
  padding: 2rem 0 0;
  border-top: 1px solid #eee;
  margin-top: 1.5rem;
}
.pd-spec-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pd-spec-download:hover {
  background: #eee;
  color: #333;
}
.pd-spec-download i {
  color: #e74c3c;
  font-size: 1.4rem;
}

/* ============================================
   RELATED PRODUCTS CAROUSEL
   ============================================ */
.pd-related-section {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid #eee;
}
.pd-related-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2rem;
}
.pd-related-carousel {
  position: relative;
}
.pd-related-swiper {
  padding: 0 0 1rem;
}
.pd-related-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pd-related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.related-card-img {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #fafafa;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}
.pd-related-card:hover .related-card-img img {
  transform: scale(1.05);
}
.related-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-no-img i {
  font-size: 4rem;
  color: #ddd;
}
.related-card-info {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-card-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-name:hover {
  color: var(--color-primary);
}
.related-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.related-card-rating span {
  font-size: 1.1rem;
  color: #999;
}
.related-card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: auto;
}
.pd-related-next,
.pd-related-prev {
  color: var(--color-primary) !important;
}
.pd-related-next::after,
.pd-related-prev::after {
  font-size: 2rem !important;
}

@media (max-width: 768px) {
  /* Overview grid — single column */
  .pd-overview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pd-overview-card {
    padding: 1.4rem;
    gap: 1.2rem;
  }
  .overview-card-icon {
    width: 3.6rem;
    height: 3.6rem;
  }
  .overview-card-content h4 {
    font-size: 1.3rem;
  }

  /* SKU — smaller on mobile */
  .pd-sku {
    font-size: 1rem;
  }

  /* Financing — full width, slightly smaller */
  .pd-financing {
    font-size: 1.1rem;
  }

  /* Stock indicator — stack delivery text below */
  .pd-stock-indicator {
    flex-wrap: wrap;
    font-size: 1.2rem;
    gap: 0.3rem;
  }
  .pd-delivery-est {
    width: 100%;
    font-size: 1.1rem;
    padding-left: 2rem;
  }

  /* Add to Cart + Compare — stack vertically */
  .pd-add-to-cart {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .pd-cart-btn {
    width: 100%;
    justify-content: center;
  }
  .pd-compare-link {
    margin-left: 0;
    justify-content: center;
    padding: 0.8rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem;
    font-size: 1.2rem;
  }

  /* Spec download — full width */
  .pd-spec-download {
    width: 100%;
    justify-content: center;
  }

  /* Related products — tighter */
  .pd-related-section {
    margin-top: 2.5rem;
    padding: 2rem 0;
  }
  .pd-related-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  .related-card-info {
    padding: 1rem;
  }
  .related-card-name {
    font-size: 1.2rem;
  }
  .related-card-price {
    font-size: 1.4rem;
  }
  /* Hide swiper arrows on mobile — use swipe */
  .pd-related-next,
  .pd-related-prev {
    display: none !important;
  }
}

/* Print styles for spec sheet */
@media print {
  .pd-sticky-bar, .pd-tabs-nav, .pd-related-section,
  .pd-add-to-cart, .pd-stock-indicator, .pd-spec-actions,
  .pd-qa-form, .review-helpful, .pd-review-actions { display: none !important; }
  .pd-tab-content { display: block !important; }
  #tab-specs { page-break-inside: avoid; }
}

/* ============================================
   COMPARE MODAL
   ============================================ */
.cmp-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
  overflow-y: auto;
}
.cmp-overlay.active {
  display: flex;
}
.cmp-modal {
  background: #fff;
  border-radius: 1.2rem;
  width: 100%;
  max-width: 90rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.cmp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-radius: 1.2rem 1.2rem 0 0;
}
.cmp-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.cmp-close {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #999;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* Category Pills */
.cmp-categories {
  display: flex;
  gap: 0.8rem;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  position: sticky;
  top: 6.4rem;
  background: #fff;
  z-index: 1;
}
.cmp-cat-pill {
  padding: 0.7rem 1.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.cmp-cat-pill:hover {
  background: #eee;
}
.cmp-cat-pill.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* Body */
.cmp-body {
  padding: 2rem 2.5rem;
}
.cmp-instruction {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 1.5rem;
}
.cmp-instruction strong {
  color: #1a1a2e;
}
.cmp-empty {
  text-align: center;
  padding: 4rem 0;
  color: #999;
  font-size: 1.3rem;
}

/* Product Picker Grid */
.cmp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.cmp-product-card {
  position: relative;
  border: 2px solid #eee;
  border-radius: 1rem;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.cmp-product-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cmp-product-card.selected {
  border-color: #0d8a3e;
  background: #f0faf4;
}
.cmp-product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  margin-bottom: 0.8rem;
}
.cmp-no-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
}
.cmp-no-img i {
  font-size: 3rem;
  color: #ddd;
}
.cmp-card-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.cmp-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
}
.cmp-check {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  color: #0d8a3e;
  font-size: 1.8rem;
}

/* Comparison Table */
.cmp-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid #eee;
  border-radius: 1rem;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.cmp-table thead th {
  padding: 1.5rem 1.2rem;
  border-bottom: 2px solid #eee;
  vertical-align: bottom;
  text-align: center;
}
.cmp-table thead th img {
  width: 8rem;
  height: 6rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.8rem;
}
.cmp-col-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}
.cmp-current-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #0d8a3e;
  background: #e8f5e9;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  margin-left: 0.4rem;
}
.cmp-col-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 0.3rem;
}
.cmp-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}
.cmp-table tbody tr:last-child {
  border-bottom: none;
}
.cmp-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.cmp-table td {
  padding: 1.2rem;
  color: #444;
  line-height: 1.4;
}
.cmp-table td.cmp-spec-label {
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  min-width: 12rem;
  background: #f8f9fa;
}
.cmp-table .cmp-product-col {
  min-width: 16rem;
}

/* Mobile Compare */
@media (max-width: 768px) {
  .cmp-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .cmp-modal {
    max-height: 95vh;
    border-radius: 1.2rem 1.2rem 0 0;
    max-width: 100%;
  }
  .cmp-header {
    padding: 1.5rem;
  }
  .cmp-header h2 {
    font-size: 1.6rem;
  }
  .cmp-categories {
    padding: 1rem 1.5rem;
    top: 5.4rem;
  }
  .cmp-cat-pill {
    padding: 0.6rem 1.4rem;
    font-size: 1.2rem;
  }
  .cmp-body {
    padding: 1.5rem;
  }
  .cmp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .cmp-table thead th img {
    width: 5rem;
    height: 4rem;
  }
  .cmp-col-name {
    font-size: 1.1rem;
  }
  .cmp-table td {
    padding: 0.8rem;
    font-size: 1.1rem;
  }
  .cmp-table td.cmp-spec-label {
    min-width: 9rem;
    font-size: 1.1rem;
  }
}
