/* ==========================================================================
   Nova Hardware - Product Details Page Stylesheet (Dark Mode)
   ========================================================================== */

/* Main Product Grid Layout */
.product-detail-section {
  padding: 60px 0 100px 0;
  position: relative;
  z-index: 2;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* Left Column: Image Gallery */
.gallery-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}

.main-image-preview {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.main-image-preview img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  transition: opacity 0.25s ease-in-out;
}

.thumbnail-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail-btn {
  flex: 0 0 80px;
  height: 80px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.thumbnail-btn img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.thumbnail-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Specific product theme borders */
.elitebook-theme .thumbnail-btn.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.zbook-theme .thumbnail-btn.active {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 12px var(--color-accent-gold-glow);
}

/* Right Column: Info Panel */
.product-info-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.product-detail-title {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-condition-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-tag.grade-a {
  background: var(--color-accent-gold-glow);
  color: var(--color-accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.product-tag.promo {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.product-detail-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Dynamic Pricing Box */
.detail-price-box {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  margin-bottom: 24px;
}

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

.price-lbl {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-price-val {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.elitebook-theme .detail-price-val {
  color: var(--color-primary);
}

.zbook-theme .detail-price-val {
  color: var(--color-accent-gold);
}

.vat-tag {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.detail-price-inc-vat {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Warranty Selector styling */
.warranty-selector-container {
  margin-bottom: 28px;
}

.selector-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.warranty-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.warranty-btn {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.warranty-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.warranty-btn-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.warranty-btn-price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.elitebook-theme .warranty-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}
.elitebook-theme .warranty-btn.active .warranty-btn-price {
  color: var(--color-primary);
}

.zbook-theme .warranty-btn.active {
  border-color: var(--color-accent-gold);
  background: var(--color-accent-gold-glow);
}
.zbook-theme .warranty-btn.active .warranty-btn-price {
  color: var(--color-accent-gold);
}

.warranty-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Accordion list details */
.accordion-container {
  margin-bottom: 32px;
}

.info-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-medium);
}

.accordion-header {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.01);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-medium);
}

.info-accordion.open {
  border-color: rgba(255, 255, 255, 0.15);
}

.info-accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: none;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.1);
}

.info-accordion.open .accordion-body {
  display: block;
}

/* Technical Specs Table styling */
.specs-section-title {
  font-size: 1.35rem;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  display: inline-block;
}

.elitebook-theme .specs-section-title {
  border-color: var(--color-primary);
}

.zbook-theme .specs-section-title {
  border-color: var(--color-accent-gold);
}

.specs-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.specs-detail-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-detail-table tr:last-child {
  border-bottom: none;
}

.specs-detail-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.specs-detail-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.specs-detail-table td.label-col {
  font-weight: 700;
  width: 30%;
}

.elitebook-theme .specs-detail-table td.label-col {
  color: var(--color-primary);
}

.zbook-theme .specs-detail-table td.label-col {
  color: var(--color-accent-gold);
}

/* What's Included Card */
.included-items-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.included-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.included-item {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* B2B RFP Form on Product Pages */
.contact-form-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 30px;
}

.rfq-panel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.rfq-panel-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.btn-full {
  width: 100%;
}

/* Toast Notifications styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  border-left: 4px solid var(--color-primary);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 380px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification.toast-error {
  border-left-color: var(--color-error);
}

.toast-notification.toast-success {
  border-left-color: var(--color-success);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.toast-message {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--color-text-primary);
}

/* Success Card styling */
.form-success-card {
  padding: 24px;
}

.success-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Responsive details layout */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .warranty-options-grid {
    grid-template-columns: 1fr;
  }
  .specs-detail-table td.label-col {
    width: 40%;
  }
  .included-grid {
    grid-template-columns: 1fr;
  }
  .thumbnail-btn {
    flex: 0 0 65px;
    height: 65px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-info-panel {
    padding: 24px;
  }
}
