/* PRO X–style PC configurator */
.pc-builder-page {
  padding-bottom: 100px;
}

.pc-builder-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.pc-builder-header__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pc-builder-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.pc-builder-header__actions {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.pc-builder-header__actions button,
.pc-builder-header__actions a.pc-header-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.pc-builder-header__actions button:hover,
.pc-builder-header__actions a.pc-header-btn:hover {
  color: var(--primary);
}

.pc-header-btn {
  white-space: nowrap;
}

/* Gallery — vertical thumbs */
.pc-gallery {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.pc-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pc-gallery__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pc-gallery__thumb.active,
.pc-gallery__thumb:hover {
  border-color: #0f172a;
}

.pc-gallery__main {
  flex: 1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-gallery__main img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.pc-emi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.pc-emi-box__total {
  font-size: 1.35rem;
  color: #0f172a;
}

.pc-emi-box strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.pc-emi-box a {
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.pc-trust-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Configurator panel */
.pc-config__heading {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

/* Platform / tier cards */
.pc-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pc-choice-grid--tiers {
  grid-template-columns: repeat(3, 1fr);
}

.pc-choice-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pc-choice-card:hover {
  border-color: #94a3b8;
}

.pc-choice-card.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

.pc-choice-card__radio {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
}

.pc-choice-card.active .pc-choice-card__radio {
  border-color: #0f172a;
  background: radial-gradient(circle, #0f172a 45%, transparent 50%);
}

.pc-choice-card__logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.pc-choice-card__logo--amd {
  color: #ed1c24;
  letter-spacing: 0.02em;
}
.pc-choice-card__logo--intel {
  color: #0071c5;
  letter-spacing: 0.02em;
}
.pc-choice-card__logo--xeon {
  color: #0068b5;
  letter-spacing: 0.02em;
}

.pc-choice-card__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.pc-choice-card__price {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.pc-choice-card__price strong {
  color: #0f172a;
  font-size: 0.95rem;
}

/* Accordion sections */
.pc-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #fff;
}

.pc-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.pc-accordion__head i {
  transition: transform 0.25s;
}

.pc-accordion.is-open .pc-accordion__head i {
  transform: rotate(180deg);
}

.pc-accordion__body {
  display: none;
  padding: 1rem 1.125rem;
  background: #fff;
}

.pc-accordion.is-open .pc-accordion__body {
  display: block;
  overflow: visible;
}

.pc-accordion.is-open .pc-accordion__head {
  border-radius: 10px 10px 0 0;
}

.pc-component-row {
  display: grid;
  grid-template-columns: 48px 110px 1fr 80px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  min-height: 3.25rem;
  position: relative;
}

.pc-component-row.is-select-open,
.pc-component-row:has(.ss-widget.is-open) {
  z-index: 30;
}

.pc-component-row:last-child {
  border-bottom: none;
}

.pc-component-row__label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
}

.pc-component-row select {
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.65rem;
  width: 100%;
  background-color: #fff;
}

.pc-component-row__qty select {
  width: 100%;
}

.pc-component-row__preview {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pc-component-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-component-preview-fallback {
  color: #94a3b8;
  font-size: 1.1rem;
}

.pc-live-specs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.pc-live-specs__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.pc-live-specs__grid,
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.pc-live-specs__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.pc-live-specs__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.pc-live-specs__value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

/* Sticky footer bar */
.pc-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 0.875rem 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.25);
}

.pc-sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pc-sticky-bar__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  max-width: 50%;
}

.pc-sticky-bar__specs strong {
  color: #fff;
  font-weight: 600;
}

.pc-sticky-bar__checkout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.pc-sticky-bar__name {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.pc-sticky-bar__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.pc-sticky-bar__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

.pc-sticky-bar__cta {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pc-sticky-bar__cart {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pc-sticky-bar__cart:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pc-sticky-bar__quote {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pc-sticky-bar__quote:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.pc-sticky-bar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  color: #fff;
}

@media (max-width: 991.98px) {
  .pc-gallery {
    flex-direction: column-reverse;
  }
  .pc-gallery__thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
  .pc-choice-grid--tiers {
    grid-template-columns: 1fr;
  }
  .pc-component-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .pc-component-row__preview {
    display: none;
  }
  .pc-sticky-bar__specs {
    display: none;
  }
  .pc-sticky-bar__checkout {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pc-sticky-bar__cta,
  .pc-sticky-bar__cart {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Optional products on quotation */
.pc-quote-extras {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #f8fafc;
}

.pc-quote-extras__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  text-align: left;
}

.pc-quote-extras__toggle.is-open {
  margin-bottom: 0.75rem;
}

.pc-quote-extras__hint {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.pc-quote-extras__catalog {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.pc-quote-extras__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
}

.pc-quote-extras__item-name {
  flex: 1;
  min-width: 0;
}

.pc-quote-extras__selected {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
}

.pc-quote-extras__selected-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.pc-quote-extras__selected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.pc-quote-extras__selected-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
