/*
Theme Name: Shinori Store
Theme URI: https://shinori.edb.co.id
Author: PT Era Dunia Baru
Author URI: https://shnoroi.edb.co.id
Description: Theme toko online produk pangan untuk Shinori - Semangat Pertanian yang Benar
Version: 1.0.0
License: GPL v2 or later
Text Domain: shinori-store
Tags: e-commerce, agriculture, food, responsive
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #264653;
  background: #FFFFFF;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: #2D6A4F; transition: color 0.2s; }
a:hover { color: #52B788; }
ul, ol { list-style: none; }

/* ===== COLOR VARIABLES ===== */
:root {
  --shinori-green: #2D6A4F;
  --fresh-leaf: #52B788;
  --harvest-gold: #E9C46A;
  --warm-earth: #E76F51;
  --deep-charcoal: #264653;
  --clean-white: #FFFFFF;
  --soft-gray: #F7F7F7;
  --medium-gray: #A8A8A8;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--deep-charcoal);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--clean-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo img { height: 48px; width: auto; }
.site-logo a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--shinori-green);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--deep-charcoal);
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--shinori-green);
  transition: width 0.3s;
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after { width: 100%; }
.main-nav a:hover { color: var(--shinori-green); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-charcoal);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft-gray);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,106,79,0.85) 0%, rgba(38,70,83,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--clean-white);
  max-width: 700px;
  padding: 40px 20px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--clean-white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.9;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.hero-btn-primary {
  background: var(--clean-white);
  color: var(--shinori-green);
}
.hero-btn-primary:hover {
  background: var(--harvest-gold);
  color: var(--deep-charcoal);
}
.hero-btn-secondary {
  background: transparent;
  color: var(--clean-white);
  border: 2px solid var(--clean-white);
}
.hero-btn-secondary:hover {
  background: var(--clean-white);
  color: var(--shinori-green);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  color: var(--shinori-green);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.section-heading p {
  color: var(--medium-gray);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== PRODUCT GRID ===== */
.product-section { padding: 80px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--clean-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--soft-gray);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--harvest-gold);
  color: var(--deep-charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.product-info { padding: 20px; }
.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--deep-charcoal);
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm-earth);
  margin-bottom: 12px;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: var(--shinori-green);
  color: var(--clean-white);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}
.btn-order:hover {
  background: var(--fresh-leaf);
  color: var(--clean-white);
}

/* ===== SINGLE PRODUCT ===== */
.product-single {
  padding: 60px 0;
}
.product-single-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.product-gallery img {
  width: 100%;
  height: auto;
}
.product-details h1 {
  font-size: 2rem;
  color: var(--deep-charcoal);
  margin-bottom: 16px;
}
.product-details .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--warm-earth);
  margin-bottom: 24px;
}
.product-details .description {
  color: var(--medium-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}
.meta-list {
  margin-bottom: 32px;
}
.meta-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-gray);
  font-size: 0.9rem;
}
.meta-list .label {
  font-weight: 600;
  color: var(--deep-charcoal);
  min-width: 100px;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #25D366;
  color: var(--clean-white);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.whatsapp-btn:hover {
  background: #128C7E;
  color: var(--clean-white);
}

/* ===== BLOG / ARTICLE CARDS ===== */
.blog-section { padding: 80px 0; background: var(--soft-gray); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--clean-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-content { padding: 20px; }
.blog-tag {
  display: inline-block;
  background: var(--soft-gray);
  color: var(--shinori-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.blog-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--deep-charcoal);
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--shinori-green);
  color: var(--clean-white);
  padding: 60px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--clean-white);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4 {
  font-size: 1rem;
  color: var(--harvest-gold);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--clean-white);
  opacity: 0.8;
  font-size: 0.875rem;
}
.footer-links a:hover { opacity: 1; color: var(--harvest-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--clean-white);
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 20px;
  }
  .main-nav.active { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .hero-content h1 { font-size: 2rem; }
  .product-single-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== SWIPER CUSTOM ===== */
.swiper-pagination-bullet { background: var(--medium-gray); opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--shinori-green); opacity: 1; }

/* ===== SINGLE PRODUCT DESCRIPTION FULL ===== */
.product-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--shinori-green);
  margin-bottom: 16px;
  line-height: 1.3;
}
.product-description-full {
  margin-top: 48px;
  padding: 48px;
  background: var(--clean-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.product-description-full h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--shinori-green);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--earth-sage);
}
.product-description-full h2:first-child { margin-top: 0; }
.product-description-full p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--deep-forest);
  margin-bottom: 16px;
}
.product-description-full ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}
.product-description-full ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--deep-forest);
}
.product-description-full ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--earth-sage);
  border-radius: 50%;
}
.product-description-full ul li strong {
  color: var(--shinori-green);
  font-weight: 600;
}
.price-old {
  text-decoration: line-through;
  font-size: 0.85em;
  color: #999;
  margin-right: 12px;
}
@media (max-width: 768px) {
  .product-description-full {
    padding: 24px;
    margin-top: 32px;
  }
  .product-title { font-size: 1.5rem; }
  .product-description-full h2 { font-size: 1.25rem; }
}
