/*
Theme Name: Faunamart Premium Theme
Theme URI: https://faunamart.my.id
Author: Faunamart Dev Team
Author URI: https://faunamart.my.id
Description: Theme resmi Faunamart - Pusat Kebutuhan Hewan Ternak & Peliharaan (Makanan, Obat, Vitamin, Perlengkapan).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: faunamart
*/

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-deep: #064e3b;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #334155;
  --text-muted: #64748b;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: var(--primary-deep);
  color: #ecfdf5;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-contact {
  display: flex;
  gap: 20px;
}
.top-contact a {
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-contact a:hover {
  color: #ffffff;
}

/* Main Navigation Header */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-text span {
  color: var(--primary);
}
.logo-tagline {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.search-input-group {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 4px 6px 4px 18px;
  transition: var(--transition);
}
.search-input-group:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.search-input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.95rem;
  color: var(--dark);
}
.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-btn:hover {
  background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-cart-toggle {
  background: #ecfdf5;
  color: var(--primary-deep);
  border: 1px solid #a7f3d0;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
}
.btn-cart-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.cart-badge {
  background: var(--secondary);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f172a 100%);
  color: white;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(#10b981 2px, transparent 2px);
  background-size: 32px 32px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title span {
  color: #34d399;
  background: linear-gradient(120deg, #34d399, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #d1fae5;
  margin-bottom: 32px;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--dark);
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.4);
}
.btn-whatsapp-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-whatsapp-outline:hover {
  background: #25d366;
  border-color: #25d366;
  color: white;
  transform: translateY(-2px);
}

.hero-stats-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.stat-box {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Category Toggle Section */
.category-bar-section {
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.category-card-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  border: 1px solid var(--border-color);
}
.category-type-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.type-tab-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f1f5f9;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.type-tab-btn.active {
  background: var(--primary-deep);
  color: white;
  border-color: var(--primary-deep);
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.25);
}
.type-tab-btn:hover:not(.active) {
  background: #e2e8f0;
  color: var(--dark);
}

.sub-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}
.sub-cat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.sub-cat-item:hover, .sub-cat-item.active {
  background: #ecfdf5;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.sub-cat-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.sub-cat-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}
.sub-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Shop Showcase */
.shop-section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}
.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-btn {
  background: white;
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.pill-btn.active, .pill-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge-tag {
  font-size: 0.725rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}
.badge-discount {
  background: var(--danger);
  color: white;
}
.badge-cat {
  background: rgba(15, 23, 42, 0.85);
  color: white;
  backdrop-filter: blur(4px);
}
.badge-animal {
  background: #059669;
  color: white;
}

.product-img-wrap {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-type-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.product-rating span {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.product-price-box {
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}
.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-wa-buy {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.825rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-wa-buy:hover {
  background: #1eb857;
}
.btn-add-cart {
  background: #0f172a;
  color: white;
  border: none;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.825rem;
  font-weight: 700;
  gap: 4px;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

/* Vet & Advisory Consultation Banner */
.consultation-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: white;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.consultation-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.consultation-desc {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.consultation-features {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.c-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #e2e8f0;
}
.c-feat span {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Features Grid */
.trust-features-section {
  padding: 40px 0 60px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.trust-card {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
}
.trust-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.trust-icon {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.trust-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.trust-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sliding Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  z-index: 2001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer-overlay.open .cart-drawer {
  right: 0;
}
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}
.btn-close-cart {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.cart-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f8fafc;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.btn-qty {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  background: white;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}
.btn-checkout-wa {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-checkout-wa:hover {
  background: #1eb857;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  font-size: 1.5rem;
  color: white;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-brand span {
  color: var(--primary);
}
.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-column h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .consultation-banner {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .header-search {
    display: none;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
