/* ═══════════════════════════════════════════════
   AMAZON-STYLE PRODUCT DETAIL PAGE
   TSSCCTV.com — 2026 Redesign
   ═══════════════════════════════════════════════ */

.amazon-pdp-wrapper {
  margin-bottom: 28px;
}

/* ═══ TOP SECTION: Gallery + Info + Buy Box ═══ */
.amazon-pdp-top {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

/* ═══ IMAGE GALLERY ═══ */
.amazon-gallery {
  display: flex;
  gap: 10px;
}

.amazon-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.amazon-thumb {
  width: 48px;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.amazon-thumb:hover,
.amazon-thumb.active {
  border-color: #13607c;
  box-shadow: 0 0 0 2px rgba(19,96,124,0.15);
}

.amazon-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.amazon-main-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  min-height: 380px;
}

.amazon-main-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

/* ═══ PRODUCT INFO ═══ */
.amazon-info h1.amazon-product-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
  color: #0f1111 !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.amazon-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
}

.amazon-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 1px;
}

.amazon-rating-link {
  font-size: 12px;
  color: #13607c;
  cursor: pointer;
}

.amazon-rating-link:hover {
  text-decoration: underline;
  color: #c45500;
}

.amazon-price-block {
  margin: 12px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f1111;
}

.amazon-price-block .productSpecialPrice {
  color: #0f1111 !important;
}

.amazon-price-block .normalprice {
  font-size: 13px;
  color: #64748b;
  text-decoration: line-through;
}

/* ═══ BULLET FEATURES ═══ */
.amazon-features {
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.amazon-features h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f1111;
  margin: 0 0 8px;
}

.amazon-features ul {
  margin: 0;
  padding: 0 0 0 18px;
}

.amazon-features li {
  font-size: 12.5px;
  line-height: 1.6;
  color: #0f1111;
  margin-bottom: 5px;
}

/* ═══ BUY BOX ═══ */
.amazon-buy-box {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  height: fit-content;
}

.amazon-bb-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f1111;
  margin-bottom: 4px;
}

.amazon-bb-stock {
  font-size: 13px;
  color: #067d62;
  font-weight: 600;
  margin: 6px 0;
}

.stock-dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
}

.amazon-bb-seller {
  font-size: 11px;
  color: #64748b;
  margin: 4px 0 10px;
}

.amazon-bb-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.amazon-bb-qty label {
  font-size: 12px;
  color: #0f1111;
}

.amazon-bb-qty select {
  padding: 4px 8px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  background: #f0f2f2;
  font-size: 13px;
  cursor: pointer;
}

.amazon-bb-atc {
  display: block;
  width: 100%;
  padding: 10px;
  background: #ffa41c;
  color: #0f1111;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin: 8px 0;
  font-family: 'Inter', system-ui, sans-serif;
}

.amazon-bb-atc:hover {
  background: #e68a00;
}

.amazon-bb-buy {
  display: block;
  width: 100%;
  padding: 10px;
  background: #ffa41c;
  color: #0f1111;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin: 6px 0 10px;
  font-family: 'Inter', system-ui, sans-serif;
}

.amazon-bb-buy:hover {
  background: #e68a00;
}

.amazon-bb-secure {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin: 8px 0;
}

.amazon-bb-secure i {
  margin-right: 4px;
}

.amazon-bb-delivery {
  font-size: 11px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  color: #0f1111;
}

.amazon-bb-delivery div {
  margin: 3px 0;
}

.amazon-bb-delivery i {
  color: #64748b;
  width: 16px;
}

/* ═══ BELOW FOLD ═══ */
.amazon-below {
  background: #fff;
  border-radius: 12px;
  padding: 0 20px 20px;
}

.amazon-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  gap: 0;
  padding-top: 4px;
}

.amazon-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.amazon-tab:hover {
  color: #0f1111;
}

.amazon-tab.active {
  color: #13607c;
  border-bottom-color: #13607c;
}

.amazon-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.amazon-specs tr:nth-child(odd) {
  background: #f8fafc;
}

.amazon-specs td {
  padding: 10px 16px;
  font-size: 13px;
}

.amazon-specs td:first-child {
  font-weight: 600;
  color: #0f1111;
  width: 180px;
}

.amazon-specs td:last-child {
  color: #64748b;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991px) {
  .amazon-pdp-top {
    grid-template-columns: 1fr 1fr;
  }
  .amazon-buy-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .amazon-pdp-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .amazon-gallery {
    flex-direction: column-reverse;
  }
  .amazon-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
  .amazon-thumb {
    flex-shrink: 0;
  }
  .amazon-main-img-wrap {
    min-height: 250px;
  }
}

/* ═══ AI DESCRIPTION ═══ */
.ai-loading {
  text-align: center;
  padding: 40px 20px;
}

.ai-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #13607c;
  border-radius: 50%;
  animation: aiSpin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

.ai-loading p {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0;
}

.ai-description {
  padding: 20px 0;
  font-size: 15px;
  line-height: 1.75;
  color: #0f1111;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.ai-description p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.ai-description ul {
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
}

.ai-description li {
  margin-bottom: 8px;
  line-height: 1.65;
  font-size: 15px;
  padding-left: 2px;
}

.ai-description li::marker {
  color: #13607c;
}

.ai-description strong {
  font-weight: 700;
}

.ai-description h3, .ai-description h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f1111;
  margin: 0 0 6px;
  color: #0f1111;
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}

.ai-description hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 16px 0;
}

.ai-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 12px;
  font-style: italic;
}

.ai-error {
  text-align: center;
  padding: 24px;
  color: #dc2626;
  font-size: 13px;
}

.amazon-desc-content {
  padding: 16px 0 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}
