/* ==========================================================================
   genxbuy.com - View Product Page Styles (product.css)
   Strict adherence to brand colors: #000000, #FFFFFF, #3CACF0, #DC2626
   Mobile-First, Modern E-Commerce Visuals, High-Converting UI
   ========================================================================== */

@import url('theme.css');

/* Page Background */
body.product-details-page {
  background-color: #F8FAFC;
  color: #1E293B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 1. Breadcrumbs Bar */
.product-breadcrumb-section {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 16px 0;
}

.product-breadcrumb-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #64748B;
}

.product-breadcrumbs a {
  color: #64748B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.product-breadcrumbs a:hover {
  color: #3CACF0;
}

.product-breadcrumbs .bc-sep {
  color: #CBD5E1;
  font-size: 11px;
}

.product-breadcrumbs .bc-current {
  color: #0F172A;
  font-weight: 600;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. Main Product Showcase Container */
.product-main-section {
  padding: 32px 0 48px;
}

.product-main-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

@media (min-width: 992px) {
  .product-showcase-grid {
    grid-template-columns: 480px 1fr;
    padding: 36px;
    gap: 48px;
  }
}

@media (min-width: 1200px) {
  .product-showcase-grid {
    grid-template-columns: 520px 1fr;
    padding: 40px;
    gap: 56px;
  }
}

/* 3. Left Visual Showcase Column */
.product-visual-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-gallery-stage {
  position: relative;
  background: transparent;
  border: none;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.product-gallery-stage:hover .product-main-image {
  transform: scale(1.04);
}

/* Badges on Image */
.product-stage-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.stage-badge-discount {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.stage-badge-hot {
  background: #000000;
  color: #3CACF0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Gallery Thumbnails Strip */
.product-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-top: 2px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  -webkit-overflow-scrolling: touch;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 5px;
}

.product-gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 10px;
}

.product-thumb-item {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 4px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.product-thumb-item:hover {
  border-color: #3CACF0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 172, 240, 0.15);
}

.product-thumb-item.is-active {
  border-color: #3CACF0;
  box-shadow: 0 0 0 2px rgba(60, 172, 240, 0.25);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.product-thumb-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 576px) {
  .product-thumb-item {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    padding: 3px;
  }
}

/* Quick Trust Features Strip */
.product-visual-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-feature-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(60, 172, 240, 0.12);
  color: #3CACF0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.trust-card-sub {
  font-size: 10px;
  color: #64748B;
  margin: 0;
  line-height: 1.2;
}

/* 4. Right Product Details & Buy Column */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-meta-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.product-brand-chip {
  display: inline-flex;
  align-items: center;
  background: #000000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-brand-chip:hover {
  background: #3CACF0;
  color: #000000;
}

.product-category-chip {
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.product-category-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.product-condition-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
}

.product-condition-chip svg {
  color: #3CACF0;
}

.product-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.stock-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: stockPulse 1.8s infinite;
}

@keyframes stockPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stock-in { color: #10B981; }
.stock-out { color: #EF4444; }
.stock-preorder { color: #F59E0B; }

/* Product Title */
.product-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin: 0 0 14px 0;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .product-detail-title {
    font-size: 28px;
  }
}

/* Secondary Meta Row: SKU & Model */
.product-identifiers-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #64748B;
  padding-bottom: 18px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 20px;
}

.identifier-item strong {
  color: #334155;
}

/* 5. Pricing Box */
.product-price-container {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

.price-values-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.price-main-value {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.price-regular-crossed {
  font-size: 18px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-saving-pill {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.price-vat-note {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

/* Warranty Highlight Line */
.product-warranty-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.warranty-banner-icon {
  color: #3CACF0;
  display: flex;
  align-items: center;
}

.warranty-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
}

/* Short Description Highlights */
.product-short-summary {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 6. Purchase Action Buttons */
.product-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 576px) {
  .product-actions-group {
    flex-direction: row;
  }
}

.btn-order-whatsapp {
  flex: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-order-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.btn-call-inquiry {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-call-inquiry:hover {
  background: #1E293B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Reassurance Guarantee Box */
.product-reassurance-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

.reassurance-icon {
  color: #3CACF0;
  margin-top: 1px;
  flex-shrink: 0;
}

.reassurance-item strong {
  color: #0F172A;
}

/* 7. Tabs / Details Accordion Section */
.product-specs-section {
  padding: 32px 0 48px;
}

.product-specs-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.specs-card-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .specs-card-box {
    padding: 36px;
  }
}

.specs-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F1F5F9;
}

.specs-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.specs-section-icon {
  color: #3CACF0;
}

/* Specifications Table / Grid */
.specs-table-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #E2E8F0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .specs-table-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-cell-row {
  display: flex;
  background: #FFFFFF;
  padding: 14px 18px;
  font-size: 13px;
  align-items: flex-start;
  gap: 16px;
  transition: background-color 0.15s ease;
}

.spec-cell-row:nth-child(even) {
  background: #F8FAFC;
}

.spec-cell-row:hover {
  background: #F1F5F9;
}

.spec-label {
  font-weight: 600;
  color: #64748B;
  flex: 0 0 140px;
  max-width: 150px;
  line-height: 1.5;
}

.spec-val {
  font-weight: 700;
  color: #0F172A;
  flex: 1;
  text-align: left;
  line-height: 1.5;
  word-break: break-word;
}

/* Rich Description Content */
.product-rich-description {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-rich-description p {
  margin-bottom: 16px;
}

.product-rich-description ul,
.product-rich-description ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.product-rich-description li {
  margin-bottom: 8px;
}

/* 8. Related Products Grid */
.related-products-section {
  padding: 24px 0 64px;
}

.related-products-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.related-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.3;
}

.cat-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: #0F172A;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #0F172A;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.cat-view-all-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.cat-view-all-link:hover {
  background: #3CACF0;
  color: #000000;
  border-color: #3CACF0;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(60, 172, 240, 0.35);
}

.cat-view-all-link:hover svg {
  transform: translateX(3px);
}

.cat-view-all-link:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .related-section-header {
    margin-bottom: 18px;
    gap: 12px;
  }
  .related-section-title {
    font-size: 18px;
  }
  .cat-view-all-link {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 8px;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* 9. Product Not Found State */
.product-not-found-card {
  max-width: 600px;
  margin: 60px auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.not-found-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.not-found-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
}

.not-found-desc {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
  line-height: 1.5;
}

.btn-catalog-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-catalog-return:hover {
  background: #3CACF0;
  color: #000000;
}

/* ==========================================================================
   Product Variations Selector Chips (Colour, Size, Capacity)
   ========================================================================== */
.product-variations-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
}

.variation-group-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variation-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.variation-group-label {
  font-weight: 500;
}

.variation-group-selected {
  color: #0F172A;
  font-weight: 700;
}

.variation-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1E293B;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.variation-chip-btn:hover {
  border-color: #000000;
  background: #FFFFFF;
}

.variation-chip-btn.is-active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.variation-chip-btn .chip-diff {
  font-size: 11px;
  font-weight: 600;
  color: #16A34A;
}

.variation-chip-btn.is-active .chip-diff {
  color: #3CACF0;
}

