/* ==========================================================================
   PC BYTES - Page-Specific Styles
   Styles for individual pages that aren't covered by components.css
   ========================================================================== */

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,6,11,0.85) 0%, rgba(6,6,11,0.4) 60%, transparent 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--space-3xl) 80px;
}

.hero__tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero__tag--primary {
  background: var(--primary-glow-strong);
  color: var(--primary);
  border: 1px solid var(--border-primary);
}

.hero__tag--accent {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__prev,
.hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 18px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: pointer;
}

.hero__prev { left: 20px; }
.hero__next { right: 20px; }

.hero__prev:hover,
.hero__next:hover {
  background: var(--primary-glow-strong);
  border-color: var(--primary);
  color: var(--primary);
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
}

.hero__dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow-strong);
}


/* =========================================================================
   FLASH DEALS / COUNTDOWN
   ========================================================================= */
.flash-deals__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: 32px;
}

.countdown__unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.countdown__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255,0,68,0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 56px;
  text-align: center;
}

.countdown__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.countdown__separator {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 10px;
  padding: 0 4px;
}


/* =========================================================================
   STATS BANNER
   ========================================================================= */
.stats-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.stats-banner__item {
  text-align: center;
  padding: 0 var(--space-xl);
  min-width: 160px;
}

.stats-banner__value {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 1px;
  text-shadow: 0 0 24px rgba(255, 0, 68, 0.25);
}

.stats-banner__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.stats-banner__divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}


/* =========================================================================
   PC BUILDER PAGE
   ========================================================================= */
.builder__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  align-items: start;
}

.builder__steps-col {
  /* Takes full available width */
}

.builder__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.builder__step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.builder__step:hover {
  border-color: var(--border-primary);
  background: var(--bg-elevated);
}

.builder__step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  border: 1px solid var(--border-primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.builder__step-num--accent {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
}

.builder__step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.builder__step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.builder__budget {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.builder__budget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.builder__budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.builder__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Budget results panel — replaces the PC icon when a budget chip is clicked */
.budget-results {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.budget-results__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.budget-results__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.budget-results__range {
  font-size: 16px;
  color: #ef4444;
}
.budget-results__close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.budget-results__close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}
.budget-results__count {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.budget-results__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.budget-results__list::-webkit-scrollbar {
  width: 6px;
}
.budget-results__list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Budget card — compact horizontal pre-built card */
.budget-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.budget-card:hover {
  border-color: #ef4444;
  transform: translateX(4px);
  background: rgba(239, 68, 68, 0.05);
}
.budget-card__image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.budget-card__image img,
.budget-card__image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.budget-card__body {
  flex: 1;
  min-width: 0;
}
.budget-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.budget-card__brand {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.budget-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.budget-card__price {
  font-size: 15px;
  font-weight: 700;
  color: #ef4444;
}
.budget-card__old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.budget-card__arrow {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.budget-card:hover .budget-card__arrow {
  color: #ef4444;
  transform: translateX(4px);
}

/* Empty state */
.budget-results__empty {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.budget-results__empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.budget-results__empty p {
  color: var(--text-primary);
  margin: 4px 0;
  font-size: 14px;
}
.budget-results__empty-sub {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  margin-bottom: 16px !important;
}

/* Active budget chip */
.builder__budget-chips .filter-chip.active {
  background: linear-gradient(135deg, #ef4444, #8b5cf6);
  color: #fff;
  border-color: transparent;
}

/* Builder CTA (used on home page and builder page) */
.builder-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.builder-cta__content {
  flex: 1;
}

.builder-cta__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-cta__icon-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-cta__icon {
  font-size: 64px;
  position: relative;
  z-index: 2;
}

.builder-cta__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
}

.builder-cta__ring--1 {
  width: 160px;
  height: 160px;
  animation: pulse 3s ease-in-out infinite;
}

.builder-cta__ring--2 {
  width: 200px;
  height: 200px;
  opacity: 0.5;
  animation: pulse 3s ease-in-out infinite 0.5s;
}

/* Service Cards */
.service-card {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.service-card__price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
}

.service-card__price span {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.services-category { margin-top: 48px; }

.services-category__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--space-lg);
}

.services-rush {
  margin-top: 48px;
  padding: var(--space-md) var(--space-lg);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius);
  letter-spacing: 1px;
}


/* =========================================================================
   SHOP PAGE
   ========================================================================= */
.shop__toolbar {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.shop__search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-md);
  transition: var(--transition);
}

.shop__search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.shop__search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 14px;
  outline: none;
}

.shop__search input::placeholder {
  color: var(--text-muted);
}

.shop__sort select {
  cursor: pointer;
}

.shop__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary-glow-strong);
  border-color: var(--primary);
  color: var(--primary);
}


/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__stat {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.about__stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.about__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact__card:hover {
  border-color: var(--border-primary);
}

.contact__card-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contact__card-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact__card-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact__form {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact__form-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}


/* =========================================================================
   FAQ / SUPPORT PAGE
   ========================================================================= */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  border-color: var(--border-primary);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.faq__question:hover {
  color: var(--primary);
}

.faq__icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform 0.3s ease;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
  max-height: 500px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq__answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* =========================================================================
   ACCOUNT PAGE
   ========================================================================= */
.account__layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-3xl);
  min-height: calc(100vh - var(--navbar-height));
}

.account__sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-lg));
  align-self: start;
}

.account__profile {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.account__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.account__username {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.account__email {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.account__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
}

.account__link {
  display: block;
  padding: 12px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.account__link:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.account__link.active {
  background: var(--primary-glow);
  color: var(--primary);
}

.account__link--danger {
  color: var(--accent);
}

.account__link--danger:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.account__nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

.account__main {
  min-width: 0;
}

.account__panel {
  display: none;
}

.account__panel.active {
  display: block;
}

.account__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
}

.account__card-header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.account__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.account__stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.account__stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.account__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.orders-table th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.order-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status--pending {
  background: rgba(255, 193, 7, 0.15);
  color: var(--warning);
}

.order-status--processing {
  background: rgba(68, 138, 255, 0.15);
  color: var(--info);
}

.order-status--shipped {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
}

.order-status--delivered,
.order-status--completed {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.order-status--cancelled {
  background: rgba(255, 0, 68, 0.15);
  color: var(--primary);
}


/* =========================================================================
   BRANDS MARQUEE
   ========================================================================= */
.brands {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.brands__heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.brands__track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.brands__item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.5;
  transition: var(--transition);
}

.brands__item:hover {
  color: var(--primary);
  opacity: 1;
}

.brands__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.brands__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.brands__fade--right {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg-dark));
}


/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
}

.footer__logo span:first-child {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 0, 68, 0.6);
}

.footer__logo span:last-child {
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 0, 68, 0.45), 0 0 28px rgba(255, 0, 68, 0.2);
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: var(--space-lg);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.footer__social-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  cursor: pointer;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-3xl);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================================
   NAVBAR EXTRAS (search bar expand, user dropdown)
   ========================================================================= */
.navbar__search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.navbar__search-bar.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.navbar__search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  padding: 8px 0;
}

.navbar__search-bar input::placeholder {
  color: var(--text-muted);
}

.navbar__search-bar button {
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.navbar__search-bar button:hover {
  color: var(--text);
}

/* Search Autocomplete Dropdown */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.search-autocomplete.open {
  display: block;
}

.search-autocomplete__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.search-autocomplete__item:hover,
.search-autocomplete__item--active {
  background: var(--bg-elevated);
}

.search-autocomplete__img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-faint);
}

.search-autocomplete__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-autocomplete__info {
  flex: 1;
  min-width: 0;
}

.search-autocomplete__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-autocomplete__brand {
  font-size: 12px;
  color: var(--text-muted);
}

.search-autocomplete__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.search-autocomplete__empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-autocomplete__footer {
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.search-autocomplete__footer:hover {
  background: var(--bg-elevated);
}

/* User Dropdown */
.navbar__user {
  position: relative;
}

.navbar__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.navbar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__user-name {
  font-weight: 500;
}

.navbar__user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}

.navbar__user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__user-dropdown a {
  display: block;
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.navbar__user-dropdown a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.navbar__user-dropdown--danger {
  color: var(--accent) !important;
}

.navbar__user-dropdown--danger:hover {
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
}

/* Deals badge in nav */
.deals-badge-nav {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  vertical-align: super;
}

/* Auth modal logo */
.auth-modal__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-lg);
}

.auth-modal__logo span:first-child {
  color: var(--primary);
  text-shadow: 0 0 14px rgba(255, 0, 68, 0.8), 0 0 28px rgba(255, 0, 68, 0.4);
}

.auth-modal__logo span:last-child {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 0, 68, 0.6), 0 0 36px rgba(255, 0, 68, 0.25);
}

/* Mobile menu header */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__header button {
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-menu__body {
  padding: var(--space-lg);
}

.mobile-menu__auth {
  margin-top: var(--space-md);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state__text {
  font-size: 15px;
}


/* =========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================= */
.product-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.product-detail__breadcrumb a {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-detail__breadcrumb a:hover {
  color: var(--primary);
}

.product-detail__breadcrumb span:last-child {
  color: var(--text-primary);
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-detail__gallery {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.product-detail__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-dark);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-detail__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-heading);
}

.product-detail__name {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 4px 0 0;
}

.product-detail__brand {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.product-detail__pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
}

.product-detail__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-heading);
}

.product-detail__old-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-detail__discount {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.product-detail__stock {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 8px 0;
}

.product-detail__stock--in { color: var(--success); }
.product-detail__stock--low { color: var(--warning); }
.product-detail__stock--out { color: var(--primary); }
.product-detail__stock--pre-order { color: var(--info); }

.product-detail__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 12px 0 20px;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* (Specs table styles moved to tabs section below) */

.product-detail__loading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
  }
  .product-detail__gallery {
    position: static;
  }
  .product-detail__loading {
    grid-template-columns: 1fr;
  }
}


/* =========================================================================
   PRODUCT GALLERY THUMBNAILS
   ========================================================================= */

.product-detail__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.product-detail__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.product-detail__thumb:hover {
  opacity: 0.9;
}

.product-detail__thumb--active {
  border-color: var(--primary);
  opacity: 1;
}

/* Review badge on product info */
.product-detail__review-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-detail__review-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* Image zoom on hover (cursor-following inner-zoom) */
.product-detail__zoom-container {
  overflow: hidden;
  cursor: zoom-in;
}
.product-detail__zoom-container .product-detail__img {
  transition: transform 0.2s ease;
  transform-origin: center center;
}
.product-detail__zoom-container:hover .product-detail__img {
  transform: scale(2.5);
}

/* Savings badge */
.product-detail__savings {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
}

/* Short description */
.product-detail__desc-short {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ==========================================================================
   PRODUCT DETAIL TABS
   ========================================================================== */

.product-detail__tabs {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.product-detail__tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
}

.product-detail__tab-btn {
  padding: 14px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.product-detail__tab-btn:hover {
  color: var(--text);
}

.product-detail__tab-btn--active {
  color: var(--primary);
}

.product-detail__tab-btn--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.product-detail__tab-panel {
  display: none;
  padding: var(--space-xl) 0;
}

.product-detail__tab-panel--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.product-detail__full-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

/* Enhanced specs table */
.product-detail__specs-table {
  width: 100%;
  border-collapse: collapse;
}

.product-detail__specs-table tr:nth-child(even) {
  background: var(--bg-elevated);
}

.product-detail__specs-table tr:nth-child(odd) {
  background: var(--bg-card);
}

.product-detail__specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.product-detail__spec-key {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  width: 35%;
}

/* Related products */
.product-detail__related {
  margin-top: var(--space-3xl);
}

.product-detail__related-title {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: var(--space-lg);
  color: var(--text);
}

@media (max-width: 768px) {
  .product-detail__tab-btn {
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .product-detail__actions {
    flex-direction: column;
  }

  .product-detail__actions .btn,
  .product-detail__actions .quickview__btn-grab {
    width: 100%;
  }
}


/* =========================================================================
   PRODUCT REVIEWS SECTION
   ========================================================================= */

.product-reviews__section {
  max-width: var(--container-max);
  margin: var(--space-2xl) auto 0;
  padding: 0 var(--space-lg);
}

.product-reviews__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.product-reviews__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.product-reviews__avg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-reviews__avg-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.product-reviews__count {
  font-size: 14px;
  color: var(--text-muted);
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 16px;
  line-height: 1;
}

.star--full {
  color: #f59e0b;
}

.star--half {
  color: #f59e0b;
  opacity: 0.6;
}

.star--empty {
  color: var(--text-faint);
}

/* Review form */
.review-form {
  margin: 16px 0 24px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-form__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-form__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 8px;
}

.review-form__star {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-faint);
  transition: color 0.15s, transform 0.15s;
  user-select: none;
}

.review-form__star:hover,
.review-form__star--hover {
  color: #f59e0b;
  transform: scale(1.15);
}

.review-form__star--selected {
  color: #f59e0b;
}

/* Review list */
.product-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.product-review {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.product-review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.product-review__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-review__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.product-review__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.product-review__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-review__date {
  font-size: 12px;
  color: var(--text-faint);
}

.product-review__comment {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}


/* =========================================================================
   INTERACTIVE PC BUILDER
   ========================================================================= */
.builder-interactive {
  margin-bottom: var(--space-2xl);
}

.builder-interactive__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.builder-interactive__slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Compatibility / Wattage Banner ───────────────────── */
.builder-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 13px;
}
.builder-banner--warn {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
}
.builder-banner--info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
}
.builder-banner__title {
  font-weight: 700;
  font-size: 14px;
  color: #ef4444;
  margin-bottom: 6px;
}
.builder-banner__item {
  padding: 3px 0;
  color: var(--text-secondary, #ccc);
}
.builder-banner__item--fail {
  color: #fca5a5;
}
.builder-banner__wattage {
  margin-top: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Component Slot Rows (PCPartPicker-style) ────────── */
.builder-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.builder-slot:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 0, 68, 0.1);
}
.builder-slot--filled {
  border-color: var(--success);
}
.builder-slot--optional {
  opacity: 0.7;
}
.builder-slot--optional:hover,
.builder-slot--optional.builder-slot--filled {
  opacity: 1;
}

.builder-slot__label-col {
  width: 130px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.builder-slot__opt {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.7;
}
.builder-slot__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated, rgba(255,255,255,0.04));
  flex-shrink: 0;
}
.builder-slot__info {
  flex: 1;
  min-width: 0;
}
.builder-slot__product {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builder-slot__choose {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
  padding: 6px 14px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: background var(--transition-fast);
}
.builder-slot:hover .builder-slot__choose {
  background: rgba(34,197,94,0.2);
}
.builder-slot__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}
.builder-slot__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color var(--transition-fast);
}
.builder-slot__remove:hover {
  color: var(--primary);
}

/* ── Extra slot rows + Add Additional button ─────────── */
.builder-slot--extra {
  margin-left: 0;
  border-style: dashed;
}
.builder-slot--over-limit {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: inset 4px 0 0 #ef4444;
}
.builder-slot__add-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  padding: 8px 16px;
  margin-bottom: 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.builder-slot__add-btn:hover {
  background: rgba(59,130,246,0.1);
}

/* ── Potential Incompatibilities Section ──────────────── */
.builder-incompat {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.builder-incompat__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.builder-incompat__item {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.builder-incompat__item--problem {
  background: rgba(239,68,68,0.08);
  color: #fca5a5;
}
.builder-incompat__item--ok {
  background: rgba(34,197,94,0.08);
  color: #86efac;
}
.builder-incompat__item--note {
  background: rgba(59,130,246,0.08);
  color: #93c5fd;
}
.builder-incompat__item--disclaimer {
  background: rgba(234,179,8,0.08);
  color: #fde68a;
}
.builder-incompat__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.builder-incompat__badge--problem {
  background: #ef4444;
  color: #fff;
}
.builder-incompat__badge--ok {
  background: #22c55e;
  color: #fff;
}
.builder-incompat__badge--note {
  background: #3b82f6;
  color: #fff;
}
.builder-incompat__badge--disclaimer {
  background: #eab308;
  color: #000;
}

/* Summary sidebar */
.builder-summary {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.builder-summary__title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.builder-summary__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
}

.builder-summary__item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.builder-summary__item-name {
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.builder-summary__item-price {
  color: var(--success);
  font-weight: 600;
}

.builder-summary__empty {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: var(--space-lg) 0;
}

.builder-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-md);
  border-top: 2px solid var(--primary);
  margin-bottom: var(--space-md);
}

.builder-summary__total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.builder-summary__total-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-heading);
}

.builder-summary__warnings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.builder-summary__warning {
  font-size: 12px;
  color: var(--warning);
  padding: 6px 10px;
  background: rgba(255, 193, 7, 0.08);
  border-radius: var(--radius-sm);
}

/* Component picker modal */
.builder-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.builder-picker-overlay.open {
  display: flex;
}

.builder-picker {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.builder-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.builder-picker__title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.builder-picker__subtitle {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin: 4px 0 0 0;
  letter-spacing: 0.3px;
}

.builder-picker__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.builder-picker__body {
  padding: 18px 24px;
  overflow-y: auto;
  flex: 1;
}

.builder-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.builder-pick-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.builder-pick-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(255, 0, 68, 0.15);
}

.builder-pick-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.builder-pick-card__brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.builder-pick-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.builder-pick-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
}

.builder-pick-card__stock {
  font-size: 11px;
  color: var(--text-muted);
}

.builder-pick-card__stock--out {
  color: var(--primary);
}

.builder-pick-card__stock--pre-order {
  color: var(--info);
}

.builder-pick-card--selected {
  border-color: var(--success);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.2);
  position: relative;
}

.builder-pick-card--selected::after {
  content: '\2713 Selected';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: #06060b;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.builder-slot__selected-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.5px;
  margin-top: 3px;
}

@media (max-width: 992px) {
  .builder-interactive__layout {
    grid-template-columns: 1fr;
  }
  .builder-summary {
    position: static;
  }
}

@media (max-width: 576px) {
  .builder-picker__grid {
    grid-template-columns: 1fr;
  }
  .builder-slot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .builder-slot__label-col {
    width: 100%;
  }
  .builder-slot__img {
    width: 36px;
    height: 36px;
  }
  .builder-slot__price {
    min-width: auto;
  }
}

/* ── Slot spec chips ─────────────────────────────────────── */
.builder-slot__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}
.builder-slot__spec {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated, rgba(255,255,255,0.06));
  padding: 2px 7px;
  border-radius: var(--radius-sm, 4px);
  white-space: nowrap;
}

/* ── Picker card image ───────────────────────────────────── */
.builder-pick-card__img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm, 4px);
  background: var(--bg-elevated, rgba(255,255,255,0.04));
  margin-bottom: 8px;
  align-self: center;
}

/* ── Wattage gauge ───────────────────────────────────────── */
.builder-summary__wattage {
  padding: 10px 0;
  margin-bottom: 8px;
}
.builder-summary__wattage-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.builder-summary__wattage-bar {
  height: 8px;
  background: var(--bg-elevated, rgba(255,255,255,0.08));
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.builder-summary__wattage-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}
.builder-summary__wattage-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* ── Compatibility notes ─────────────────────────────────── */
.builder-summary__compat {
  margin-bottom: 12px;
}
.builder-summary__compat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.builder-summary__compat-note {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.builder-summary__compat-note--pass {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}
.builder-summary__compat-note--fail {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

/* ── Summary action buttons ──────────────────────────────── */
.builder-summary__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.builder-summary__actions .btn {
  flex: 1;
}


/* =========================================================================
   CHECKOUT PAGE
   ========================================================================= */
.checkout {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 32px) var(--space-lg) var(--space-4xl);
}

.checkout__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Step Indicators */
.checkout__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-md);
}

.checkout__step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: var(--transition);
}

.checkout__step.active {
  opacity: 1;
}

.checkout__step.completed {
  opacity: 0.8;
}

.checkout__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 2px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.checkout__step.active .checkout__step-num {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-primary);
}

.checkout__step.completed .checkout__step-num {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.checkout__step-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout__step-line {
  width: 40px;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
}

/* Panels */
.checkout__panel {
  display: none;
}

.checkout__panel.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.checkout__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.checkout__card-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* Items */
.checkout__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.checkout__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.checkout__item-img-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.checkout__item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout__item-no-img {
  font-size: 10px;
  color: var(--text-muted);
}

.checkout__item-info {
  flex: 1;
  min-width: 0;
}

.checkout__item-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout__item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.checkout__item-total {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--success);
  white-space: nowrap;
}

/* Summary Row */
.checkout__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.checkout__summary-row--total {
  border-top: 2px solid var(--border-light);
  padding-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.checkout__summary-row--total span:last-child {
  color: var(--success);
  font-family: var(--font-mono);
}

/* Actions */
.checkout__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--space-md);
}

/* Radio Cards */
.checkout__shipping-options,
.checkout__payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout__radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.checkout__radio-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.checkout__radio-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(255, 0, 68, 0.05);
}

.checkout__radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.checkout__radio-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout__radio-card-body strong {
  font-size: 15px;
}

.checkout__radio-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.checkout__radio-detail {
  font-size: 12px;
  color: var(--text-muted);
}

/* Payment method expandable detail (QR + upload + disclaimer) */
.checkout__radio-card--expandable .checkout__radio-card-body {
  flex: 1;
}

.checkout__payment-detail {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.checkout__radio-card:has(input:checked) .checkout__payment-detail {
  display: block;
}

.checkout__qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.checkout__qr-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}

.checkout__qr-info {
  flex: 1;
  min-width: 220px;
}

.checkout__instr-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.checkout__instr-list li {
  margin-bottom: 4px;
}

.checkout__upload {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.checkout__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.checkout__upload-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 0, 68, 0.04);
}

.checkout__upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout__upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.checkout__upload-clear {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
}

.checkout__upload-clear:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.checkout__disclaimer {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 200, 0, 0.08);
  border-left: 3px solid #f5a623;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkout__disclaimer--info {
  background: rgba(0, 150, 255, 0.06);
  border-left-color: #2d8cf0;
}

.checkout__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
}

.checkout__partners img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.checkout__partner-text {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Admin: payment proof thumbnail in order detail */
.order-detail__proof {
  display: block;
  max-width: 280px;
  width: 100%;
  margin-top: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: var(--transition);
}

.order-detail__proof:hover {
  border-color: var(--primary);
}

/* Address Form */
.checkout__address-form {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Review */
.checkout__review-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checkout__review-section:last-child {
  border-bottom: none;
}

.checkout__review-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.checkout__review-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.checkout__review-line span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Order Number */
.checkout__order-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 0.05em;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: inline-block;
}

/* Payment Instructions */
.checkout__instr {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.checkout__instr h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout__instr p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.checkout__instr-highlight {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--success) !important;
  padding: 8px;
  background: rgba(0, 230, 118, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Responsive */
@media (max-width: 576px) {
  .checkout {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .checkout__step-label {
    display: none;
  }

  .checkout__step-line {
    width: 24px;
  }

  .checkout__actions {
    flex-direction: column-reverse;
  }

  .checkout__item-name {
    font-size: 13px;
  }

  /* Payment step — stop QR row from forcing horizontal overflow on phones */
  .checkout__qr-row {
    flex-direction: column;
    align-items: stretch;
  }
  .checkout__qr-img {
    width: 100%;
    max-width: 240px;
    align-self: center;
  }
  .checkout__qr-info {
    min-width: 0;
  }

  /* Tighten radio cards & expanded payment detail at small widths */
  .checkout__radio-card {
    padding: 12px;
    gap: 10px;
  }
  .checkout__radio-card-body strong {
    font-size: 14px;
  }
  .checkout__radio-desc {
    font-size: 12px;
  }
  .checkout__payment-detail {
    margin-top: 12px;
    padding-top: 12px;
  }
  .checkout__partners {
    gap: 8px;
  }
  .checkout__partners img {
    height: 26px;
  }
  .checkout__upload {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================================
   ADMIN DASHBOARD
   ========================================================================= */
.admin {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 32px) var(--space-lg) var(--space-4xl);
}

.admin__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.admin__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
}

.admin__role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(68, 138, 255, 0.15);
  color: var(--info);
}

.admin__role-badge.admin__badge--admin {
  background: rgba(255, 0, 68, 0.15);
  color: var(--primary);
}

/* Tabs */
.admin__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.admin__tab {
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.admin__tab:hover {
  color: var(--text-secondary);
}

.admin__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Panels */
.admin__panel {
  display: none;
}

.admin__panel.active {
  display: block;
  animation: fadeInUp 0.25s ease;
}

/* Stats Grid */
.admin__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.admin__stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.admin__stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.admin__stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  color: var(--success);
}

.admin__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Grid 2-col */
.admin__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Cards */
.admin__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin__card-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.admin__card-body {
  padding: 0;
  max-height: 350px;
  overflow-y: auto;
}

/* Badge */
.admin__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  margin-left: 8px;
}

.admin__badge--warn {
  background: var(--warning);
  color: #000;
}

/* Alert rows */
.admin__alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin__alert:last-child {
  border-bottom: none;
}

.admin__alert--warn {
  border-left: 3px solid var(--warning);
}

.admin__alert--danger {
  border-left: 3px solid var(--primary);
  background: rgba(255, 0, 68, 0.03);
}

.admin__alert-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

/* Table */
.admin__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin__table th,
.admin__table td {
  text-align: left;
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.admin__table th {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
}

.admin__table tr:hover {
  background: var(--bg-hover);
}

/* Action buttons */
.admin__actions {
  display: flex;
  gap: 6px;
}

.admin__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}

.admin__action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.admin__action-btn--danger:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 0, 68, 0.08);
}

/* Status select */
.admin__status-select {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

/* Danger/Warn text */
.text-danger {
  color: var(--primary) !important;
  font-weight: 700;
}

.text-warn {
  color: var(--warning) !important;
  font-weight: 700;
}

/* Admin Modal */
.admin__modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.admin__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.admin__modal-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.admin__modal-body {
  padding: var(--space-lg);
}

/* Admin Confirm Dialog */
.admin-confirm {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-confirm__icon {
  font-size: 40px;
  margin-bottom: 8px;
  color: var(--warning);
}

.admin-confirm__title {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0 0 8px 0;
}

.admin-confirm__msg {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.admin-confirm__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.admin-confirm__actions .btn {
  min-width: 100px;
}

.btn--danger {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  border: none;
}

.btn--danger:hover {
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
  transform: translateY(-2px);
}

/* Order Detail Modal */
.order-detail-modal {
  max-width: 700px;
}

.order-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.order-detail__number {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 0;
}

.order-detail__date {
  font-size: 13px;
  color: var(--text-muted);
}

.order-detail__badges {
  display: flex;
  gap: 8px;
}

.order-detail__status,
.order-detail__pay {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-detail__status--pending    { background: rgba(255, 193, 7, 0.15); color: var(--warning); }
.order-detail__status--processing { background: rgba(33, 150, 243, 0.15); color: #2196f3; }
.order-detail__status--shipped    { background: rgba(33, 150, 243, 0.15); color: #2196f3; }
.order-detail__status--delivered  { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.order-detail__status--completed  { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.order-detail__status--cancelled  { background: rgba(255, 0, 68, 0.15); color: var(--primary); }

.order-detail__pay--paid    { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.order-detail__pay--pending { background: rgba(255, 193, 7, 0.15); color: var(--warning); }

.order-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-detail__section {
  background: var(--bg-elevated);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.order-detail__section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 0 6px 0;
}

.order-detail__text {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  font-weight: 600;
}

.order-detail__text-muted {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.order-detail__table-wrap {
  overflow-x: auto;
}

.order-detail__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.order-detail__table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 8px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}

.order-detail__table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.order-detail__table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.order-detail__item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.order-detail__item-img--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-faint);
  font-size: 12px;
}

.order-detail__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 14px 8px;
  border-top: 2px solid var(--border);
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--success);
}

@media (max-width: 576px) {
  .order-detail__grid {
    grid-template-columns: 1fr;
  }
}

.admin__dynamic-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}

.admin__dynamic-row .form-input { flex: 1; }
.admin__spec-key { flex: 0.4 !important; }
.admin__spec-val { flex: 0.6 !important; }

.admin__row-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .admin__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin__grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .admin {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .admin__stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin__header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .admin__tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Table cells: tighter padding so scroll region feels less cavernous */
  .admin__table th,
  .admin__table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .admin__stats-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   BEST SELLING PC CAROUSEL
   ============================================================ */
.bestselling-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bestselling-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

.bestselling-carousel__track::-webkit-scrollbar {
  display: none;
}

.bestselling-carousel__track .product-card {
  scroll-snap-align: start;
}

.bestselling-carousel__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.bestselling-carousel__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-dark);
}

@media (max-width: 640px) {
  .bestselling-carousel__arrow {
    display: none;
  }
}


/* ============================================================
   PRE-BUILT DETAIL PAGE (IdealTech Style)
   ============================================================ */

/* Top section: hero + component grid */
.prebuilt-detail__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  margin-bottom: 32px;
}

/* Hero card (left) */
.prebuilt-detail__hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prebuilt-detail__hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
}

.prebuilt-detail__hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prebuilt-detail__hero-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prebuilt-detail__hero-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.prebuilt-detail__hero-brand {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.prebuilt-detail__hero-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prebuilt-detail__hero-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.prebuilt-detail__old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.prebuilt-detail__discount {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.prebuilt-detail__hero-actions {
  margin-top: 8px;
}

/* Component grid (right) */
.prebuilt-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-content: start;
}

.prebuilt-detail__component {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: border-color 0.2s;
}

.prebuilt-detail__component:hover {
  border-color: var(--accent);
}

.prebuilt-detail__component-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 2px;
}

.prebuilt-detail__component-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prebuilt-detail__component-value {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.prebuilt-detail__upgrade-btn {
  margin-top: auto;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.prebuilt-detail__upgrade-btn:hover {
  background: var(--accent-hover, #cc0033);
}

/* Actions row */
.prebuilt-detail__actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

/* Bottom section: sidebar + tabs */
.prebuilt-detail__bottom {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

/* Selected Specs sidebar */
.prebuilt-detail__sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 80px;
}

.prebuilt-detail__sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prebuilt-detail__sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.06));
}

.prebuilt-detail__sidebar-item:last-of-type {
  border-bottom: none;
}

.prebuilt-detail__sidebar-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.prebuilt-detail__sidebar-info {
  flex: 1;
  min-width: 0;
}

.prebuilt-detail__sidebar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.prebuilt-detail__sidebar-value {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prebuilt-detail__sidebar-upgrade {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.prebuilt-detail__sidebar-upgrade:hover {
  background: var(--accent-hover, #cc0033);
}

.prebuilt-detail__sidebar-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prebuilt-detail__sidebar-total-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.prebuilt-detail__sidebar-total-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

/* Tabs (right side of bottom section) */
.prebuilt-detail__tabs {
  min-width: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .prebuilt-detail__top {
    grid-template-columns: 1fr 1.5fr;
  }

  .prebuilt-detail__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .prebuilt-detail__bottom {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  .prebuilt-detail__top {
    grid-template-columns: 1fr;
  }

  .prebuilt-detail__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prebuilt-detail__bottom {
    grid-template-columns: 1fr;
  }

  .prebuilt-detail__sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .prebuilt-detail__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .prebuilt-detail__component {
    padding: 12px 8px;
  }
}

/* ── Accordion Upgrades ─────────────────────────────────── */
.pb-accordion__section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.pb-accordion__section--affected {
  border-left: 4px solid #eab308;
}
.pb-accordion__section--incompat {
  border-left: 4px solid #ef4444;
}
.pb-accordion__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--bg-card);
  user-select: none;
  transition: background 0.2s;
}
.pb-accordion__header:hover {
  background: var(--bg-hover, rgba(255,255,255,0.05));
}
.pb-accordion__arrow {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 16px;
  text-align: center;
}
.pb-accordion__title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}
.pb-accordion__current {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-accordion__compat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 16px 10px;
  background: var(--bg-card);
}
.pb-accordion__compat-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.pb-accordion__compat--pass {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}
.pb-accordion__compat--fail {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}
.pb-accordion__body {
  border-top: 1px solid var(--border);
}

/* Upgrade items */
.pb-upgrades__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pb-upgrades__item:last-child { border-bottom: none; }
.pb-upgrades__item:hover { background: rgba(255,255,255,0.03); }
.pb-upgrades__item--current {
  background: rgba(59,130,246,0.06);
}
.pb-upgrades__item-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.pb-upgrades__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-upgrades__item-info {
  flex: 1;
  min-width: 0;
}
.pb-upgrades__item-name {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-upgrades__item-brand {
  font-size: 12px;
  color: var(--text-muted);
}
.pb-upgrades__stock {
  font-size: 11px;
  margin-top: 2px;
  display: inline-block;
}
.pb-upgrades__stock--in { color: #22c55e; }
.pb-upgrades__stock--low { color: #eab308; }
.pb-upgrades__stock--out { color: #ef4444; }
.pb-upgrades__stock--pre-order { color: var(--info); }
.pb-upgrades__item-pricing {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}
.pb-upgrades__item-price {
  font-weight: 600;
  font-size: 14px;
}
.pb-upgrades__diff {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.pb-upgrades__diff--up { color: #ef4444; }
.pb-upgrades__diff--down { color: #22c55e; }
.pb-upgrades__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pb-upgrades__badge--current {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
}
.pb-upgrades__badge--upgrade {
  background: rgba(234,179,8,0.15);
  color: #eab308;
}
.pb-upgrades__badge--downgrade {
  background: rgba(107,114,128,0.15);
  color: #9ca3af;
}
.pb-upgrades__item-action {
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}
.pb-upgrades__selected {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .pb-upgrades__item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pb-upgrades__item-img { width: 40px; height: 40px; }
  .pb-upgrades__item-pricing { min-width: auto; }
  .pb-upgrades__item-action { width: 100%; text-align: left; margin-top: 4px; }
  .pb-accordion__current { display: none; }
}


/* ============================================================
   ADMIN PRE-BUILT PC MODAL
   ============================================================ */
.prebuilt-modal__component-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.prebuilt-modal__component-row:last-child {
  border-bottom: none;
}

.prebuilt-modal__component-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.prebuilt-modal__component-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.pb-dd {
  position: relative;
  flex: 1;
}
.pb-dd__trigger {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.pb-dd__trigger:hover { border-color: var(--primary); }
.pb-dd__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-dd__caret {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.pb-dd.is-open .pb-dd__caret { transform: rotate(180deg); }

.pb-dd__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 4px 0;
}
.pb-dd.is-open .pb-dd__panel { display: block; }

.pb-dd__option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.pb-dd__option:hover {
  background: var(--bg-elevated);
  color: var(--primary);
}
.pb-dd__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-dd__brand {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.prebuilt-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 16px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
}

.prebuilt-modal__total-price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Compatibility status */
.prebuilt-modal__compat-status {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prebuilt-modal__compat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.prebuilt-modal__compat-pass {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.prebuilt-modal__compat-fail {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.prebuilt-modal__compat-icon {
  font-size: 14px;
}

.prebuilt-modal__compat-text {
  flex: 1;
}

@media (max-width: 640px) {
  .prebuilt-modal__component-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .prebuilt-modal__component-label {
    min-width: auto;
  }

  .prebuilt-modal__component-select {
    width: 100%;
  }
}


/* ============================================================
   PRE-BUILT UPGRADES LIST
   ============================================================ */
.pb-upgrades__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.pb-upgrades__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.pb-upgrades__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-upgrades__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.pb-upgrades__item:hover {
  border-color: var(--accent);
}

.pb-upgrades__item--current {
  border-color: var(--accent);
  background: rgba(255, 0, 68, 0.05);
}

.pb-upgrades__item-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-upgrades__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pb-upgrades__item-info {
  flex: 1;
  min-width: 0;
}

.pb-upgrades__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-upgrades__item-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.pb-upgrades__stock {
  font-size: 11px;
  font-weight: 600;
}

.pb-upgrades__stock--in {
  color: #22c55e;
}

.pb-upgrades__stock--low {
  color: #eab308;
}

.pb-upgrades__stock--out {
  color: #ef4444;
}

.pb-upgrades__stock--pre-order {
  color: var(--info);
}

.pb-upgrades__item-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.pb-upgrades__item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.pb-upgrades__diff {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 4px;
}

.pb-upgrades__diff--up {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.pb-upgrades__diff--down {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.pb-upgrades__diff--same {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.pb-upgrades__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.pb-upgrades__badge--current {
  background: var(--accent);
  color: #fff;
}

.pb-upgrades__badge--upgrade {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.pb-upgrades__badge--downgrade {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.pb-upgrades__item-action {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pb-upgrades__item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pb-upgrades__item-info {
    flex-basis: calc(100% - 70px);
  }

  .pb-upgrades__item-pricing {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

/* ── Flash Deals carousel arrows ─────────────────────────────── */
.deals-carousel { position: relative; }
.deals-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all .2s ease;
  padding: 0;
}
.deals-carousel__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-elevated);
}
#featuredCarousel .deals-carousel__arrow:hover,
#bestsellingCarousel .deals-carousel__arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.deals-carousel__arrow--prev { left: -22px; }
.deals-carousel__arrow--next { right: -22px; }
@media (max-width: 768px) {
  .deals-carousel__arrow--prev { left: 4px; }
  .deals-carousel__arrow--next { right: 4px; }
}

/* ── Flash Deals, Featured & Best Selling slide+fade transitions ─ */
#deals-grid,
#feat-grid,
#bestselling-grid {
  transition: transform 280ms ease, opacity 280ms ease;
  will-change: transform, opacity;
  align-content: start;
}
#deals-grid.deals-grid--leave-left,
#feat-grid.deals-grid--leave-left,
#bestselling-grid.deals-grid--leave-left   { transform: translateX(-40px); opacity: 0; }
#deals-grid.deals-grid--leave-right,
#feat-grid.deals-grid--leave-right,
#bestselling-grid.deals-grid--leave-right  { transform: translateX(40px);  opacity: 0; }
#deals-grid.deals-grid--enter-right,
#feat-grid.deals-grid--enter-right,
#bestselling-grid.deals-grid--enter-right  { transform: translateX(40px);  opacity: 0; transition: none; }
#deals-grid.deals-grid--enter-left,
#feat-grid.deals-grid--enter-left,
#bestselling-grid.deals-grid--enter-left   { transform: translateX(-40px); opacity: 0; transition: none; }

/* ── Shop pagination ─────────────────────────────────────────── */
.shop-pg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 16px 0;
}
.shop-pg__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.shop-pg__btn:hover:not(:disabled):not(.shop-pg__btn--active) {
  border-color: var(--primary);
  color: var(--primary);
}
.shop-pg__btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}
.shop-pg__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.shop-pg__ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 600;
}
.shop-pg--accent .shop-pg__btn:hover:not(:disabled):not(.shop-pg__btn--active) {
  border-color: var(--accent);
  color: var(--accent);
}
.shop-pg--accent .shop-pg__btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Legal page (Terms of Use, Privacy, etc.) ────────────────── */
.legal-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}
.legal-content p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: 0.5px;
}
.legal-content ol,
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}
.legal-content li {
  margin-bottom: 10px;
}
.legal-content strong {
  color: var(--text);
}
.legal-content em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}
