/* Listing Template V2 — Base Styles */
/* Shared foundation — store-specific colours in store-brand.css */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

.template-wrapper { max-width: 900px; margin: 0 auto; }

/* Typography */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--surface2); padding: 2px 6px; border-radius: 4px; }

/* Icons */
.icon { width: 16px; height: 16px; fill: currentColor; display: inline-block; vertical-align: middle; }
.check { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }

/* Trust Header */
.trust-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.trust-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.trust-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.store-actions { display: flex; gap: 1rem; flex-shrink: 0; }
.action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.action-link:hover { text-decoration: underline; }

/* Hero Section */
.hero-section { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); }
.hero-section .content-container { max-width: 860px; margin: 0 auto; }
.product-title { margin-bottom: 0.5rem; color: var(--text); }
.product-meta { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0; }
.hero-image {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 400px;
  max-width: 100%;
  margin: 1rem auto 0;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-benefits { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.benefit-item span { color: var(--text); }

/* ══════════════════════════════════════════════
   INJECTABLE COMPONENTS — toggle via template
   ══════════════════════════════════════════════ */

/* Announcement Banner — shipping cutoffs, policy notices, seasonal alerts */
.announcement-banner {
  background: var(--banner-bg, linear-gradient(90deg, #fef3c7, #fde68a));
  color: var(--banner-text, #92400e);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  border-bottom: 1px solid var(--banner-border, #fbbf24);
}
.announcement-banner .banner-icon { margin-right: 6px; }
.announcement-banner a {
  color: var(--banner-link, #b45309);
  text-decoration: underline;
}
/* Banner severity variants — set via store-brand.css or inline class */
.announcement-banner.banner-urgent {
  --banner-bg: linear-gradient(90deg, #fee2e2, #fecaca);
  --banner-text: #991b1b;
  --banner-border: #f87171;
  --banner-link: #dc2626;
}
.announcement-banner.banner-info {
  --banner-bg: linear-gradient(90deg, #eff6ff, #dbeafe);
  --banner-text: #1e40af;
  --banner-border: #93c5fd;
  --banner-link: #1d4ed8;
}
.announcement-banner.banner-success {
  --banner-bg: linear-gradient(90deg, #f0fdf4, #dcfce7);
  --banner-text: #166534;
  --banner-border: #86efac;
  --banner-link: #15803d;
}

/* Condition Badge */
.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  margin-bottom: 1rem;
}
.condition-badge svg { width: 14px; height: 14px; fill: #15803d; }

/* Quick Stats Bar */
.quick-stats {
  padding: 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.quick-stats-container {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* What's In The Box */
.inbox-section {
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.inbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 2rem;
}
.inbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text);
}
.inbox-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Shipping Section */
.shipping-section {
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.shipping-details {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}
.shipping-details ul {
  padding-left: 1.5rem;
  margin: 0;
}
.shipping-details li {
  margin-bottom: 0.4rem;
}

/* Content Sections */
.description-section, .specs-section, .policies-section, .about-section {
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.content-container { max-width: 860px; margin: 0 auto; }
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Description */
.description-content { font-size: 0.95rem; color: var(--text); }
.description-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.description-content li { margin-bottom: 0.5rem; }
.description-content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 0.9rem;
}
.spec-label { font-weight: 500; color: var(--text-dim); }
.spec-value { font-weight: 500; color: var(--text); text-align: right; }

/* Policies Grid */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.policy-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.policy-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.policy-icon svg { width: 100%; height: 100%; fill: currentColor; }
.policy-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.policy-card p { font-size: 0.88rem; color: var(--text-dim); margin: 0; }

/* About Section */
.about-content {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.about-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-dim);
}
.cta-button.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Footer */
.template-footer {
  background: var(--surface2);
  padding: 1.5rem 1rem;
  text-align: center;
}
.footer-container { max-width: 860px; margin: 0 auto; }
.template-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0.25rem 0;
}
.footer-disclaimer { font-size: 0.8rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE — mobile-first (eBay: ~60% mobile)
   ══════════════════════════════════════════════ */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  /* Hero */
  .hero-image { width: 340px; }
  h1 { font-size: 1.35rem; }
  .section-title { font-size: 1.1rem; }

  /* Trust header: badges wrap, actions stay row */
  .trust-container { gap: 0.6rem; }
  .trust-badges { gap: 0.4rem; }

  /* Grids: single column */
  .policies-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .inbox-grid { grid-template-columns: 1fr; }

  /* Quick stats: 2-up */
  .quick-stats-container { grid-template-columns: repeat(2, 1fr); }
}

/* Phone (≤580px) — critical for eBay mobile app */
@media (max-width: 580px) {
  body { font-size: 14px; }

  /* Trust header: stack badges in 2×2 grid, actions full-width */
  .trust-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .badge {
    justify-content: center;
    font-size: 0.74rem;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .store-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .action-link {
    text-align: center;
    padding: 8px 10px;
    font-size: 0.82rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
  }

  /* Hero */
  .hero-section { padding: 1.25rem 0.75rem; }
  .hero-image { max-width: 100%; border-radius: 8px; }
  h1 { font-size: 1.2rem; }
  .benefit-item { font-size: 0.88rem; }
  .condition-badge { font-size: 0.8rem; }

  /* Sections */
  .description-section,
  .specs-section,
  .policies-section,
  .about-section,
  .shipping-section,
  .inbox-section { padding: 1.25rem 0.75rem; }

  /* Policies: single column on phone */
  .policies-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .policy-card { padding: 1rem 1rem; text-align: left; display: flex; align-items: flex-start; gap: 1rem; }
  .policy-icon { width: 36px; height: 36px; flex-shrink: 0; margin: 0; }
  .policy-card h3 { margin-bottom: 0.2rem; font-size: 0.95rem; }

  /* Specs */
  .spec-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .spec-value { text-align: left; color: var(--text-dim); font-size: 0.85rem; }

  /* Quick stats */
  .quick-stats { padding: 0.75rem; }
  .quick-stats-container { gap: 0.4rem; }
  .stat-card { padding: 0.6rem 0.5rem; }
  .stat-value { font-size: 0.95rem; }

  /* About CTAs: full width */
  .about-cta { flex-direction: column; }
  .cta-button { text-align: center; padding: 0.85rem 1rem; }

  /* Footer */
  .template-footer { padding: 1rem 0.75rem; }
}
/* DreamSculptor — Store C Brand Styles */
/* Professional tools & hardware — Navy + Gold */

:root {
  --text: #1a1f2e;
  --text-dim: #6b7280;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --accent: #1e3a5f;
  --accent-dim: rgba(30,58,95,0.08);
  --accent2: #c9a227;
}

.trust-header { background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%); }
.trust-header .badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.trust-header .action-link { color: #fbbf24; }
.badge.review-badge {
  background: rgba(251,191,36,0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}
.section-title { border-bottom-color: #c9a227; }
.policy-icon { color: #1e3a5f; }
.cta-button {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}
.cta-button:hover { box-shadow: 0 4px 12px rgba(30,58,95,0.3); }
.cta-button.cta-secondary {
  border-color: #1e3a5f;
  color: #1e3a5f;
}
.template-footer { background: #1e3a5f; color: rgba(255,255,255,0.7); }
.template-footer p { color: rgba(255,255,255,0.6); }
