/* ==========================================================================
   Ridge Water - Product Detail View Stylesheet
   ========================================================================== */

/* Breadcrumb Bar */
.product-breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.breadcrumb-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.breadcrumb-container a {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.breadcrumb-container a svg {
  width: 14px;
  height: 14px;
}

.breadcrumb-container a:hover {
  color: #0077c8;
}

.crumb-sep {
  color: #cbd5e1;
  font-size: 14px;
}

.current-crumb {
  color: #0b1e36;
  font-weight: 700;
}

/* Product Main Section */
.product-view-section {
  padding: 40px 0 80px;
  background-color: #ffffff;
}

.product-view-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 50px;
}

/* Left: Interactive Media Gallery */
.product-gallery-stage {
  position: sticky;
  top: 100px;
}

.main-image-display {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.main-image-display img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb-btn {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

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

.gallery-thumb-btn.active, .gallery-thumb-btn:hover {
  border-color: #0077c8;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 119, 200, 0.15);
}

/* Right: Product Details */
.product-credibility-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0077c8;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.product-credibility-pill svg {
  width: 14px;
  height: 14px;
}

.product-category-tag a {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #0077c8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.product-title {
  font-size: 30px;
  font-weight: 800;
  color: #0b1e36;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 14px;
}

.compatibility-badge-line {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

/* Price Panel with Anchored Discount */
.product-price-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.price-row-anchored {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.price-main {
  font-size: 32px;
  font-weight: 900;
  color: #0077c8;
  line-height: 1;
}

.price-regular {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 600;
}

.price-save-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.price-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  display: block;
}

.price-custom-badge {
  font-size: 18px;
  font-weight: 800;
  color: #0b1e36;
}

/* ==========================================================================
   Inline 4-Step Configurator
   ========================================================================== */
.inline-configurator-box {
  border: 1.5px solid #dbeafe;
  background: #f0f7ff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.config-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 14px;
}

.config-header svg {
  width: 16px;
  height: 16px;
  color: #0077c8;
}

.config-step-group {
  margin-bottom: 12px;
}

.config-label {
  font-size: 12px;
  font-weight: 700;
  color: #081d38;
  margin-bottom: 6px;
  display: block;
}

.config-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cfg-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cfg-chip:hover {
  border-color: #0077c8;
  color: #0077c8;
}

.cfg-chip.active {
  background: #0077c8;
  color: #ffffff;
  border-color: #0077c8;
  box-shadow: 0 2px 6px rgba(0, 119, 200, 0.2);
}

.config-recommended-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #0369a1;
  background: #e0f2fe;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 14px;
}

.config-recommended-notice svg {
  width: 14px;
  height: 14px;
  color: #0284c7;
  flex-shrink: 0;
}

/* Purchasing Action Panel */
.purchase-action-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.qty-and-cart-row {
  display: flex;
  gap: 14px;
}

.quantity-controller {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  width: 120px;
  flex-shrink: 0;
}

.qty-btn {
  width: 38px;
  height: 48px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: #f1f5f9;
}

.qty-input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0b1e36;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-to-cart {
  flex: 1;
  background-color: #0077c8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-add-to-cart:hover {
  background-color: #005fa3;
}

.btn-add-to-cart svg {
  width: 18px;
  height: 18px;
}

.direct-inquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-whatsapp-inquire {
  background: #25d366;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  transition: opacity 0.2s ease;
}

.btn-whatsapp-inquire:hover {
  opacity: 0.92;
}

.btn-whatsapp-inquire svg {
  width: 18px;
  height: 18px;
}

.btn-request-consultation {
  background: #ffffff;
  border: 1.5px solid #0077c8;
  color: #0077c8;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.2s ease;
}

.btn-request-consultation:hover {
  background: #f0f9ff;
}

.cart-feedback-toast {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.cart-feedback-toast.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cart-feedback-toast.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Trust Strip */
.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: #0077c8;
  flex-shrink: 0;
}

/* ==========================================================================
   "Why Ridge Systems" Comparison Matrix
   ========================================================================== */
.why-ridge-section {
  margin: 60px 0 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.why-header {
  text-align: center;
  margin-bottom: 30px;
}

.why-sub {
  font-size: 11px;
  font-weight: 800;
  color: #0077c8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.why-title {
  font-size: 28px;
  font-weight: 900;
  color: #081d38;
  margin: 4px 0 0 0;
  letter-spacing: -0.4px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: #f8fafc;
  color: #081d38;
  font-weight: 800;
}

.comparison-table .col-ridge {
  background: #f0f7ff;
  color: #0077c8;
}

.comparison-table .highlight-cell {
  background: #f0f7ff;
  color: #081d38;
  font-weight: 600;
}

/* ==========================================================================
   SEO FAQ Section
   ========================================================================== */
.product-faq-section {
  margin: 50px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 800;
  color: #081d38;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question-btn.open svg {
  transform: rotate(180deg);
}

.faq-answer-panel {
  display: none;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.faq-answer-panel.open {
  display: block;
}

/* Bottom WhatsApp Help Strip */
.product-bottom-help-strip {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.help-text strong {
  display: block;
  font-size: 14px;
  color: #081d38;
}

.help-text span {
  font-size: 12.5px;
  color: #64748b;
}

.btn-help-wa {
  background: #25D366;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Sticky Floating Cart Bar
   ========================================================================== */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1.5px solid #e2e8f0;
  padding: 12px 32px;
  box-shadow: 0 -10px 25px rgba(8, 29, 56, 0.08);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cart-bar.is-visible {
  transform: translateY(0);
}

.sticky-cart-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-prod-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
}

.sticky-name {
  font-size: 14px;
  color: #081d38;
  display: block;
}

.sticky-price {
  font-size: 14.5px;
  font-weight: 900;
  color: #0077c8;
}

.btn-sticky-add-cart {
  background: #0077c8;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Description & Technical Specifications Tabs */
.product-details-tab-wrapper {
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
}

.tab-nav-bar {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tab-nav-btn.active {
  color: #0077c8;
  border-bottom-color: #0077c8;
}

.tab-pane-content {
  display: none;
  padding: 30px 0;
}

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

.desc-main-heading {
  font-size: 22px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 16px;
}

.desc-body-text {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  max-width: 960px;
}

.specs-data-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  margin-top: 14px;
}

.specs-data-table th, 
.specs-data-table td {
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  text-align: left;
}

.specs-data-table th {
  background: #f8fafc;
  color: #081d38;
  font-weight: 800;
  width: 32%;
}

.specs-data-table td {
  color: #334155;
}

/* Modal Styling */
.assessment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 29, 56, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
}

.assessment-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.assessment-modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 620px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.assessment-modal-overlay.active .assessment-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0077c8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.modal-badge svg {
  width: 12px;
  height: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #081d38;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.modal-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 18px;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group-field {
  display: flex;
  flex-direction: column;
}

.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: #081d38;
  margin-bottom: 5px;
}

.modal-label .req {
  color: #ef4444;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #0077c8;
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1);
}

.btn-modal-submit {
  width: 100%;
  background: #0077c8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  margin-top: 18px;
}

.btn-modal-submit:hover {
  background: #005fa3;
}

/* Mobile & Tablet Responsive */
@media (max-width: 992px) {
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-gallery-stage {
    position: static;
  }
}

@media (max-width: 640px) {
  .product-title {
    font-size: 24px;
  }
  .direct-inquiry-row {
    grid-template-columns: 1fr;
  }
  .product-trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  .product-bottom-help-strip {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .sticky-cart-bar {
    padding: 10px 16px;
  }
}

