/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #212121;
  line-height: 1.7;
}
a { color: #0d47a1; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 4px; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Promo Banner (top of every page) ────────────────────── */
.promo-banner {
  background: #ffca28;
  color: #4e342e;
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95em;
}

/* ── Site Header (sticky, catalog/combo pages) ────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  color: #0d47a1;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
  flex-shrink: 0;
}
.back-link:hover { text-decoration: underline; }
.promo-pill {
  background: #fff8e1;
  color: #f57f17;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Hero Section (index page) ───────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  color: white;
  padding: 56px 0 48px;
  text-align: center;
}
.hero-title {
  font-size: 2.4em;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.hero-text {
  font-size: 1.2em;
  margin-bottom: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.5;
}
.discount-badge {
  background: white;
  color: #0d47a1;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
}
.hero-btn {
  display: inline-block;
  background: #ffca28;
  color: #4e342e;
  padding: 15px 32px;
  border-radius: 10px;
  font-size: 1.15em;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-title {
  font-size: 1.6em;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #212121;
}
.category-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #0d47a1;
  color: #0d47a1;
  display: inline-block;
}
.section-divider {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 48px 0;
}
.page-title {
  font-size: 2em;
  font-weight: 800;
  margin: 36px 0 8px;
}
.page-subtitle {
  color: #616161;
  font-size: 1.05em;
  margin-bottom: 28px;
}

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

/* ── Product Card ─────────────────────────────────────────── */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card-link:hover { text-decoration: none; }
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}
.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eeeeee;
}
.card-no-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eeeeee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
}
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-title {
  font-size: 0.97em;
  font-weight: 600;
  line-height: 1.35;
  color: #212121;
}
.card-price {
  font-size: 1.3em;
  font-weight: 800;
  color: #0d47a1;
}
.card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.85em;
  color: #0d47a1;
  font-weight: 600;
}

/* ── Condition Badges ─────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.5;
}
.badge-lg {
  font-size: 0.9em;
  padding: 5px 16px;
}
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-blue   { background: #e3f2fd; color: #0d47a1; }
.badge-amber  { background: #fff8e1; color: #e65100; }
.badge-gray   { background: #f5f5f5; color: #616161; }

/* ── Detail Page ──────────────────────────────────────────── */
.product-detail { padding: 28px 0 56px; }
.detail-title {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.price { font-weight: 800; color: #0d47a1; }
.price-lg { font-size: 2.2em; }

/* ── Detail Body Content ──────────────────────────────────── */
.detail-body { max-width: 840px; }
.detail-body h1 {
  font-size: 1.7em;
  margin: 28px 0 10px;
  font-weight: 700;
}
.detail-body h2 {
  font-size: 1.25em;
  margin: 24px 0 8px;
  color: #1a237e;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 700;
}
.detail-body h3 {
  font-size: 1.08em;
  margin: 18px 0 7px;
  font-weight: 700;
  color: #212121;
}
.detail-body h4 { font-size: 1em; margin: 12px 0 4px; font-weight: 600; }
.detail-body p { margin-bottom: 10px; }
.detail-body ul,
.detail-body ol { margin: 8px 0 14px; }
.detail-body hr { border: none; border-top: 1px solid #e0e0e0; margin: 20px 0; }
.detail-body strong { font-weight: 700; }
.detail-body a { color: #0d47a1; }
.detail-body a:hover { text-decoration: underline; }

/* Images inside detail body */
.product-image {
  width: 100%;
  border-radius: 10px;
  margin: 18px 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
}

/* ── Contact / WhatsApp ───────────────────────────────────── */
.contact-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid #e0e0e0;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 17px 30px;
  border-radius: 10px;
  font-size: 1.15em;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover {
  background: #1db954;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.whatsapp-btn svg { flex-shrink: 0; }

/* ── Category Section Wrapper ─────────────────────────────── */
.category-section { margin-bottom: 44px; }

/* ── Combos Section ───────────────────────────────────────── */
.combos-section { margin-bottom: 8px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #212121;
  color: #9e9e9e;
  text-align: center;
  padding: 28px 0;
  margin-top: 56px;
  font-size: 0.9em;
}
.site-footer a { color: #bdbdbd; }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 36px 0 32px; }
  .hero-title { font-size: 1.65em; }
  .hero-text { font-size: 1em; }
  .hero-btn { padding: 13px 24px; font-size: 1.05em; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .detail-title { font-size: 1.55em; }
  .price-lg { font-size: 1.8em; }
  .whatsapp-btn { width: 100%; justify-content: center; font-size: 1.08em; }
  .header-inner { flex-wrap: wrap; gap: 6px; }
  .promo-pill { display: none; }
  .section-title, .category-title { font-size: 1.25em; }
  .page-title { font-size: 1.6em; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .hero-title { font-size: 2em; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
