/* ========================================
   SaturdayBuy — Sub-page Styles
   ======================================== */

/* --- Page Hero --- */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}
.page-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Page hero color variants */
.page-hero-sourcing {
  background: linear-gradient(160deg, var(--bg) 0%, #e0f2fe 100%);
}
.page-hero-branding {
  background: linear-gradient(160deg, var(--bg) 0%, #fce7f3 100%);
}
.page-hero-qc {
  background: linear-gradient(160deg, var(--bg) 0%, #dcfce7 100%);
}
.page-hero-shipping {
  background: linear-gradient(160deg, var(--bg) 0%, #e0e7ff 100%);
}
.page-hero-fulfillment {
  background: linear-gradient(160deg, var(--bg) 0%, #fef3c7 100%);
}

/* --- Content Narrow --- */
.content-narrow {
  max-width: 800px;
}
.content-narrow h2 {
  max-width: 100%;
}
.content-narrow p {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Diff Grid (About page) --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.diff-item {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.diff-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.diff-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 12px;
}
.diff-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.diff-item p {
  color: var(--text-light);
  font-size: 15px;
}

/* --- Stats Grid (About page) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat {
  padding: 32px 16px;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Values List --- */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.value-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.value-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.value-item p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Process Grid --- */
.process-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.process-step:last-child {
  border-bottom: none;
}
.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Category Grid (Sourcing page) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.category-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.category-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.category-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.category-item p {
  color: var(--text-light);
  font-size: 14.5px;
}

.center-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 32px;
  font-style: italic;
}

/* --- Why Sourcing Grid --- */
.why-sourcing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-sourcing-item {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-sourcing-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.why-sourcing-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-sourcing-item p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Brand Grid (Private Labeling page) --- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.brand-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.brand-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.brand-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.brand-item p {
  color: var(--text-light);
  font-size: 14.5px;
}

/* --- Check Grid (QC page) --- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.check-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.check-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.check-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.check-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.check-item p {
  color: var(--text-light);
  font-size: 14.5px;
}

/* --- Inspection Cards (QC page) --- */
.insp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.insp-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.insp-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.insp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  background: var(--primary-light);
  color: var(--primary);
}
.insp-card:nth-child(2) .insp-badge {
  background: #dcfce7;
  color: #166534;
}
.insp-card:nth-child(3) .insp-badge {
  background: #fef3c7;
  color: #92400e;
}
.insp-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.insp-card p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* --- Shipping Cards --- */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ship-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.ship-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.ship-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.ship-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ship-time {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.ship-card p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.ship-best {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0 !important;
}

/* --- Logistics Grid --- */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.logistics-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.logistics-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.logistics-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.logistics-item p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Cost Table --- */
.cost-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
.cost-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.cost-row:last-child {
  border-bottom: none;
}
.cost-header {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text);
}
.cost-row:not(.cost-header) {
  color: var(--text-light);
}

/* --- Fulfillment Grid --- */
.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fulfillment-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.fulfillment-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.fulfillment-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.fulfillment-item p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Compare Grid --- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.compare-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.compare-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.compare-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.compare-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.compare-list {
  list-style: none;
  padding: 0;
}
.compare-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14.5px;
  padding-left: 24px;
  position: relative;
}
.compare-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.compare-list li:last-child {
  border-bottom: none;
}

/* ========================================
   Price Comparison Page
   ======================================== */

/* Page hero variant */
.page-hero-compare {
  background: linear-gradient(160deg, var(--bg) 0%, #fef3c7 100%);
}

/* Legend Grid */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}
.legend-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.legend-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.swatch-retail { background: #f87171; }
.swatch-saturdaybuy { background: var(--primary); }
.swatch-margin { background: #34d399; }
.legend-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.legend-item p {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Compare Product Card */
.compare-product {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}
.compare-product-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.compare-product-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.compare-product-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.compare-product-cat {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* Compare Bars */
.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-bar-label {
  width: 110px;
  flex-shrink: 0;
}
.platform-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.platform-badge.amazon { background: #ff9900; }
.platform-badge.ebay { background: #e53238; }
.platform-badge.etsy { background: #f1641e; }
.platform-badge.sb { background: var(--primary); }
.compare-bar-track {
  flex: 1;
  height: 36px;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.compare-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  min-width: 60px;
  transition: width 0.8s ease;
}
.bar-retail {
  background: linear-gradient(90deg, #fca5a5, #f87171);
}
.bar-saturdaybuy {
  background: linear-gradient(90deg, #60a5fa, var(--primary));
}
.bar-price {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Margin Display */
.compare-margin {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.margin-label {
  font-size: 14px;
  color: var(--text-light);
}
.margin-value {
  font-size: 24px;
  font-weight: 800;
  color: #059669;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.summary-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.summary-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.summary-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.summary-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Disclaimer */
.disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--text-muted);
}
.disclaimer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 1024px) {
  .diff-grid,
  .why-sourcing-grid,
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid,
  .brand-grid,
  .check-grid,
  .insp-grid,
  .logistics-grid,
  .fulfillment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ship-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .diff-grid,
  .why-sourcing-grid,
  .compare-grid,
  .category-grid,
  .brand-grid,
  .check-grid,
  .insp-grid,
  .logistics-grid,
  .fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat {
    padding: 20px 12px;
  }

  .process-step {
    flex-direction: column;
    gap: 16px;
  }

  .cost-row {
    font-size: 14px;
    padding: 12px 16px;
  }

  /* Price Comparison Mobile */
  .legend-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .compare-bar-label {
    width: 80px;
  }
  .platform-badge {
    font-size: 11px;
    padding: 3px 6px;
  }
  .compare-bar-fill {
    min-width: 50px;
  }
  .bar-price {
    font-size: 12px;
  }
  .compare-product {
    padding: 20px;
  }
  .compare-margin {
    justify-content: center;
  }
}
