/* ==========================================================================
   Design System Corporativo - Wittemberg Standards Baseline
   pc-usado.wrtec.com.br
   ========================================================================== */

:root {
  /* Color Palette */
  --color-bg: #0b0f17;
  --color-bg-secondary: #111827;
  --color-surface: #1a2234;
  --color-surface-hover: #222d44;
  --color-surface-active: #2b3854;
  --color-border: #2d3748;
  --color-border-subtle: #1e293b;
  --color-border-focus: #3b82f6;

  /* Brand & Accent */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-glow: rgba(37, 99, 235, 0.25);
  --color-whatsapp: #22c55e;
  --color-whatsapp-hover: #16a34a;
  --color-whatsapp-glow: rgba(34, 197, 94, 0.25);

  /* Semantic Feedback */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-info: #0ea5e9;
  --color-info-bg: rgba(14, 165, 233, 0.12);

  /* Typography */
  --color-text-main: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Metrics & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset - Container Safe */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Container Rule */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-main);
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 15px var(--color-primary-glow);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-success);
  display: inline-block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 0;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--color-whatsapp-glow);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-text-secondary);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12), transparent 70%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #93c5fd;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.features-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.feature-pill svg {
  color: var(--color-success);
}

/* ==========================================================================
   CATALOG GRID (Desktop 4 cols -> Notebook 3 -> Tablet 2 -> Mobile 1)
   ========================================================================== */
.catalog-section {
  padding: 2.5rem 0 4rem;
  flex: 1;
}

.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  min-width: 0;
}

.catalog-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.catalog-count {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: normal;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  gap: 0.5rem;
  min-width: 260px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-main);
  font-size: 0.95rem;
  width: 100%;
}

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

/* Wittemberg Responsive Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1279px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Product Card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 99, 235, 0.15);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2 aspect ratio */
  background: #0f1522;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Card Media & Structured Overlay */
.card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 2;
  pointer-events: none;
}

.card-badges-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 65%;
}

.card-badges-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.card-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.badge-classe-diamante {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.9));
  color: #ffffff;
  border-color: rgba(165, 243, 252, 0.6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

.badge-classe-ouro {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.9), rgba(245, 158, 11, 0.9));
  color: #ffffff;
  border-color: rgba(253, 230, 138, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.badge-classe-prata {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.9), rgba(148, 163, 184, 0.9));
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.5);
}

.badge-classe-bronze {
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.9), rgba(180, 83, 9, 0.9));
  color: #ffffff;
  border-color: rgba(254, 215, 170, 0.5);
}

.card-warranty-badge {
  background: rgba(16, 185, 129, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 243, 208, 0.35);
  color: #ffffff;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cpu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #60a5fa;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.spec-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-container {
  display: flex;
  flex-direction: column;
}

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

.price-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.price-value small {
  font-size: 0.85rem;
  font-weight: 600;
}

.price-original {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
  display: block;
}

.discount-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Card Visual Differentials (Destaque & Promoção) */
.product-card.card-featured {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.18);
}

.product-card.card-featured:hover {
  border-color: #fbbf24;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

.product-card.card-promo {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.18);
}

.product-card.card-promo:hover {
  border-color: #f87171;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.ribbon-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  pointer-events: auto;
}

.ribbon-featured {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #ffffff;
  border: 1px solid rgba(254, 240, 138, 0.5);
}

.ribbon-promo {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.5);
  animation: pulsePromo 2s infinite;
}

@keyframes pulsePromo {
  0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.85); }
}

/* Catalog Filter Bar */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.filter-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-main);
  border-color: var(--color-text-secondary);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* ==========================================================================
   ADMINISTRATIVE DESIGN SYSTEM (Wittemberg Unified Standard)
   ========================================================================== */
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--color-text-main);
}

.admin-section-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.modal-dialog-admin,
.modal-dialog-wide {
  max-width: 1060px !important;
  width: 95vw !important;
  overflow-x: hidden !important;
  margin: auto;
}

.modal-header-admin {
  padding: 0.85rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
}

.modal-header-admin h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-main);
}

.modal-footer-admin {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border-subtle);
}

.modal-body-compact {
  padding: 1.2rem 1.4rem !important;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
}

.form-compact .form-group {
  margin-bottom: 0.6rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.2rem !important;
  min-width: 0 !important;
}

.form-compact .form-label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.15rem !important;
  color: var(--color-text-main) !important;
  letter-spacing: 0.01em;
}

.form-compact .form-control {
  padding: 0.48rem 0.75rem !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background: #0f172a !important;
  color: var(--color-text-main) !important;
  transition: var(--transition);
}

.form-compact .form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
  outline: none !important;
}

.form-compact select.form-control {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.form-compact h4 {
  margin: 0.75rem 0 0.4rem !important;
  font-size: 0.95rem !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 840px) {
  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   CONFIGURATOR MODAL (Food Truck Customizer)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.modal-header-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-header-info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.2rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--color-text-main);
  background: var(--color-surface-hover);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Machine Snapshot Bar */
.config-machine-bar {
  display: flex;
  gap: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  align-items: center;
  min-width: 0;
}

.config-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.config-machine-details {
  flex: 1;
  min-width: 0;
}

.config-specs-toggle {
  font-size: 0.85rem;
  color: var(--color-info);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 0.35rem;
}

/* Specs Accordion Content */
.specs-detail-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-item-key {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.spec-item-val {
  color: var(--color-text-main);
  font-weight: 500;
}

/* Section Title */
.config-step {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.config-step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.step-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-weight: 600;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

/* Option Card (Food Truck Style Item) */
.option-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  user-select: none;
}

.option-card:hover {
  border-color: var(--color-text-secondary);
  background: var(--color-surface-hover);
}

.option-card.selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.option-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.3;
}

.option-radio {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.option-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.option-price-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-price-tag .included {
  color: var(--color-success);
  font-weight: 600;
}

/* NVMe + PCI-e Adapter Upsell Box */
.nvme-adapter-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nvme-alert-icon {
  font-size: 1.4rem;
  color: var(--color-warning);
  flex-shrink: 0;
}

.nvme-alert-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.nvme-alert-content p {
  font-size: 0.85rem;
  color: #fef3c7;
  line-height: 1.45;
}

/* Accessories Checkboxes List */
.accessories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.acc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.acc-card:hover {
  background: var(--color-surface-hover);
}

.acc-card.selected {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.08);
}

.acc-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.acc-checkbox {
  accent-color: var(--color-success);
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.acc-text h5 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.acc-text span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.acc-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
  white-space: nowrap;
}

/* Modal Footer / Sticky Checkout Bar */
.modal-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
}

.summary-items-count {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.summary-total-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.summary-total-price small {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* Customer Checkout Form Drawer/Modal */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

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

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.radio-label:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--color-text-main);
}

.footer-col p, .footer-col li {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success {
  border-color: var(--color-success);
  border-left-width: 4px;
}

.toast.toast-error {
  border-color: var(--color-danger);
  border-left-width: 4px;
}
