:root {
  --primary-color: #174C43;
  --secondary-color: #E9CFAE;
  --accent-color: #F8E4C1;
  --background-color: #FFFDF9;
  --text-color: #2A2A2A;
  --font-primary: 'Poppins', sans-serif;
}

body {
  background-color: var(--background-color);
  font-family: var(--font-primary);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  animation: fadeIn 1s ease-in-out;
  overflow-x: hidden;
}

/* Global Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(23,76,67,0.3);
}
.btn-primary-custom:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(23,76,67,0.4);
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(23, 76, 67, 0.95);
  backdrop-filter: blur(8px);
}
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--secondary-color) !important;
  transform: scale(1.08);
}
.navbar-brand {
  color: var(--secondary-color) !important;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to right, var(--accent-color), #ffffff);
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 100px 0;
}
.hero-section h1, .hero-section p, .hero-section .btn {
  animation: fadeInUp 1.5s ease-out;
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--background-color), transparent);
}

/* Feature Boxes */
.feature-box {
  text-align: center;
  padding: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.feature-box:hover {
  transform: translateY(-6px);
  background-color: var(--accent-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.feature-box i {
  font-size: 2.3rem;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.feature-box:hover i {
  transform: rotate(10deg) scale(1.1);
}

/* Product Cards */
.product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  background-color: #fff;
  text-align: center;
  padding: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeInUp 0.8s ease-in-out;
}
.product-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: translateY(-8px) scale(1.02);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.1);
}
.product-card h6 {
  margin-top: 10px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.product-card:hover h6 {
  color: var(--primary-color);
}
.product-card .price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .col-temu {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0;
  animation: fadeIn 1s ease-in-out;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
}
footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}
footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Scroll Reveal JavaScript Hook */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Smooth fade on scroll */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.shadow-soft { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.rounded-xl { border-radius: 20px; }


.promo-banner {
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff8c00 100%);
  color: #fff;
  animation: pulsePromo 2.5s infinite;
}
@keyframes pulsePromo {
  0% {opacity: 1;}
  50% {opacity: 0.9;}
  100% {opacity: 1;}
}

/* ===============================
   GENERAL LAYOUT ENHANCEMENTS
=============================== */
body {
  background-color: #f8f9fa;
  font-family: "Poppins", sans-serif;
  color: #333;
}

/* Section spacing */
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ===============================
   FILTER PANEL (SIDEBAR / MOBILE)
=============================== */
.filter-panel,
form[action*="browse_products.php"] {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.filter-panel h5 {
  font-weight: 600;
  color: var(--primary-color, #2a5b4e);
  margin-bottom: 1rem;
}

.filter-panel label {
  color: #555;
  font-weight: 500;
}

.filter-panel .form-select,
.filter-panel .form-control {
  border-radius: 0.75rem;
  border: 1px solid #ddd;
}

.filter-panel button,
.filter-panel a.btn {
  border-radius: 0.75rem;
  font-weight: 600;
}

/* ===============================
   PRODUCT CARD IMPROVEMENTS
=============================== */
.card {
  transition: transform 0.15s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.card img {
  border-bottom: 1px solid #f1f1f1;
}

.card-body {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f1f1f1;
}

/* ===============================
   BUTTON ENHANCEMENTS
=============================== */
.btn {
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-primary-custom {
  background-color: var(--primary-color, #2a5b4e);
  color: #fff;
  border: none;
}

.btn-primary-custom:hover {
  background-color: #234b41;
  color: #fff;
}

.btn-success {
  background-color: #3cb878;
  border: none;
}

.btn-success:hover {
  background-color: #2da366;
}

/* ===============================
   BADGES AND LABELS
=============================== */
.badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge.bg-danger {
  background: linear-gradient(45deg, #e74c3c, #ff7675);
}

/* ===============================
   RESPONSIVE SPACING
=============================== */
@media (max-width: 992px) {
  .filter-panel {
    padding: 1rem;
    box-shadow: none;
    border: 1px solid #eee;
  }

  .card {
    margin-bottom: 1.25rem;
  }

  .card-body {
    padding: 1rem;
  }
}

