/* ==========================================================================
   Catalog Jucării pentru Moș Nicolae - unbutic.ro
   Stiluri principale (style.css)
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --card-bg: #ffffff;
  --text-main: #181a1f;
  --text-muted: #5f6672;
  --red-primary: #d90429;
  --red-hover: #b80322;
  --amber-badge: #f5b700;
  --green-stock: #198754;
  --border-light: #e5e8ee;
  --shadow-card: 0 6px 20px rgba(16, 24, 40, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.45;
}

/* Top Countdown Bar */
.top-banner {
  background-color: var(--red-primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.countdown-pill {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

/* Main Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* Hero Header */
.hero {
  text-align: center;
  margin-bottom: 26px;
}

.season-pill {
  display: inline-block;
  background-color: #fde8ec;
  color: var(--red-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.hero p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--text-muted);
}

/* Filter Tabs */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: #cbd2df;
}

.filter-btn.active {
  background-color: #181a1f;
  color: #ffffff;
  border-color: #181a1f;
}

.filter-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: #eef1f6;
  color: var(--text-muted);
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Active Section Status */
.section-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-status strong {
  color: var(--text-main);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

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

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

/* Product Card */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.1);
}

.product-card.hidden {
  display: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.4px;
}

.badge-red {
  background-color: var(--red-primary);
  color: #ffffff;
}

.badge-amber {
  background-color: var(--amber-badge);
  color: #181a1f;
}

.image-wrap {
  height: 235px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--border-light);
}

.image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meta-tag {
  font-size: 11px;
  font-weight: 700;
  color: #8a92a0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.price-row {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.stock-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-stock);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-stock);
  display: inline-block;
}

.cta-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--red-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

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

/* Bottom Promo Box */
.bottom-cta-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}

.bottom-cta-box h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bottom-cta-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dark-btn {
  display: inline-block;
  background-color: #181a1f;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.dark-btn:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  text-align: center;
  font-size: 11px;
  color: #8a92a0;
  line-height: 1.6;
}

footer a {
  color: #5f6672;
  text-decoration: underline;
}


/* Dynamic Category SEO Description Box */
.category-intro-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--red-primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 auto 24px;
  max-width: 860px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
}

.category-intro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.category-intro-box h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.category-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-primary);
  background-color: #fde8ec;
  padding: 3px 10px;
  border-radius: 999px;
}

.category-intro-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Short Product Description inside Card */
.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

/* SEO Category Guide Grid (for static crawlable indexation of all 4 categories) */
.seo-guide-section {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}

.seo-guide-section h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 720px) {
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }
}

.seo-guide-item {
  background-color: var(--bg);
  border-radius: 10px;
  padding: 15px 16px;
}

.seo-guide-item h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.seo-guide-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
