/*
Theme Name: Pandansari Supplier
Theme URI: https://pandansari.shop/
Author: Aska AI
Author URI: https://pandansari.shop/
Description: Tema kustom untuk Pandansari, Supplier Telur Terpercaya. Dilengkapi fitur katalog produk dan blog SEO.
Version: 1.0.2
Text Domain: pandansari
*/

:root {
  --primary-color: #16A34A; /* Organic Green */
  --primary-hover: #15803d;
  --secondary-color: #F59E0B; /* Egg Yolk Yellow */
  --secondary-hover: #d97706;
  --dark-color: #1E293B;
  --light-bg: #F8FAFC;
  --text-main: #334155;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--light-bg);
  line-height: 1.6;
}
a { text-decoration: none; color: var(--primary-color); transition: all 0.3s ease; }
a:hover { color: var(--primary-hover); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
}
.site-logo span { color: var(--primary-color); }
.site-logo img { max-height: 50px; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
.main-nav a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { color: var(--primary-color); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  background: #25D366; /* WhatsApp Green */
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(37,211,102,0.3);
}
.btn-wa:hover { background: #128C7E; transform: translateY(-2px); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color), #0f172a);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}
.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-title span { color: var(--secondary-color); }
.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   PRODUCTS CATALOG
   ========================================================================== */
.products-section { padding: 80px 0; background: #fff; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 50px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.product-icon {
  font-size: 48px;
  margin-bottom: 15px;
}
.product-title { font-size: 20px; font-weight: 700; color: var(--dark-color); margin-bottom: 10px; }
.product-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.btn-outline {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 6px;
}
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* ==========================================================================
   BLOG / ARTICLES (Auto Slider)
   ========================================================================== */
.blog-section { padding: 80px 0; background: var(--light-bg); overflow: hidden; }
.blog-slider-wrapper {
  position: relative;
  width: 100%;
}
.blog-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.blog-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.blog-card {
  flex: 0 0 calc(33.333% - 14px); /* 3 cards per view on desktop */
  min-width: 300px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
@media (max-width: 992px) {
  .blog-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .blog-card { flex: 0 0 100%; }
}
.blog-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-content { padding: 20px; }
.blog-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-title a { color: var(--dark-color); }
.blog-title a:hover { color: var(--primary-color); }

/* SINGLE POST */
.single-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-top: 40px;
  margin-bottom: 40px;
}
.single-title { font-size: 36px; font-weight: 800; color: var(--dark-color); margin-bottom: 20px; line-height: 1.3; }
.single-body { font-size: 16px; line-height: 1.8; }
.single-body h2, .single-body h3 { margin: 30px 0 15px; color: var(--dark-color); }
.single-body p { margin-bottom: 20px; }
.single-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark-color);
  color: #fff;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--secondary-color); }
.footer-text { color: #94a3b8; font-size: 14px; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .main-nav { display: none; }
  .single-content { padding: 20px; }
}
