/* ============================================================
   Lead Scraper – SolusiQurban.com Mirror
   Style: Matches original orange/brown qurban card layout
   ============================================================ */

:root {
  --orange: #f4a521;
  --orange-light: #ffc94d;
  --orange-dark: #e8930a;
  --brown: #6b2a0e;
  --brown-dark: #4a1c08;
  --green-wa: #25d366;
  --green-wa-dark: #1bb558;
  --card-radius: 14px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8f4ee;
  color: #333;
  margin: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.site-logo {
  height: 52px;
  object-fit: contain;
}
.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.site-tagline {
  font-size: 0.78rem;
  color: var(--orange-light);
  letter-spacing: 0.05em;
}

.btn-wa-header {
  background: var(--green-wa);
  border: none;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  white-space: nowrap;
}
.btn-wa-header:hover {
  background: var(--green-wa-dark);
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: #fff;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ── Filter Card ────────────────────────────────────────── */
.filter-card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

/* ── Product Card ───────────────────────────────────────── */
.product-card {
  background: linear-gradient(
    160deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Decorative leaf/wheat background (optional gradient strip) */
.product-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brown);
}

/* Badge row */
.product-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 4px;
  gap: 6px;
}
.badge-code {
  background: var(--brown);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.badge-breed {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* Image */
.product-img-wrap {
  background: rgba(255, 255, 255, 0.15);
  margin: 0 10px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

/* Body */
.product-body {
  padding: 10px 14px 6px;
  flex: 1;
  color: #fff;
}
.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
  color: #fff;
}
.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.product-store {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

/* Logo strip inside card (mimics nusaqu branding bar) */
.product-brand-bar {
  display: flex;
  align-items: center;
  padding: 4px 14px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
}
.product-brand-bar img {
  height: 20px;
}
.product-brand-bar span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer / CTA */
.product-footer {
  padding: 10px 14px 14px;
}
.btn-wa {
  background: var(--brown);
  border: none;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-wa:hover {
  background: var(--brown-dark);
  color: #fff !important;
}

/* Detail eye-icon button */
.btn-detail {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  line-height: 1;
  color: var(--brown);
  border-color: var(--brown);
}
.btn-detail:hover {
  background: var(--brown);
  color: #fff;
}

/* Clickable image/body links inside card */
.product-img-link,
.product-body-link {
  display: block;
  cursor: pointer;
}
.product-img-link:hover .product-img {
  opacity: 0.88;
  transition: opacity 0.15s;
}
.product-body-link:hover .product-name {
  text-decoration: underline;
}

/* Image count overlay badge */
.product-img-wrap {
  position: relative;
}
.img-count-badge {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  pointer-events: none;
}

/* ── Section Title ──────────────────────────────────────── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  border-left: 5px solid var(--orange);
  padding-left: 12px;
  margin-bottom: 1.5rem;
}

/* ── Article Card ───────────────────────────────────────── */
.article-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.article-body {
  padding: 14px 16px;
  flex: 1;
}
.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.article-excerpt {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.85);
}

/* ── Floating WA Button ─────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.8);
  }
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination .page-link {
  color: var(--brown);
  border-color: #ddd;
  border-radius: 8px !important;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: #fff;
}
.pagination .page-link:hover {
  background: var(--orange-light);
  color: var(--brown);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}
