/* ===== PRODUCTS PAGE CSS - EFG AFRO MARKET (FULLY UPDATED & OPTIMIZED) ===== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-green: #055440;
  --accent-orange: #E88824;
  --brown-accent: #643919;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --background-white: #ffffff;
  --background-light: #f8f9fa;
  --background-gray: #f5f5f5;
  --card-shadow: 0 15px 35px rgba(5, 84, 64, 0.1);
  --card-shadow-hover: 0 25px 50px rgba(5, 84, 64, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius: 15px;
  --border-radius-lg: 20px;
  --border-radius-xl: 25px;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background-white) !important;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Clean white background for products page */
.clean-white-bg {
  background: #ffffff !important;
}

.container {
  position: relative;
  z-index: 2;
}

/* ===== PAGE HERO SECTION ===== */
.page-hero-section {
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
  margin-top: 80px;
}

.hero-content {
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 84, 64, 0.1);
  border: 1px solid rgba(5, 84, 64, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.1);
  animation: fadeInDown 1s ease-out;
}

.hero-badge i {
  animation: pulse 2s infinite;
  color: var(--accent-orange);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.page-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== HERO STATS WITH ANIMATION ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-number.counting {
  color: var(--accent-orange);
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== SECTION COMMON STYLES ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 84, 64, 0.1);
  border: 1px solid rgba(5, 84, 64, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.1);
}

.section-badge i {
  font-size: 0.8rem;
  color: var(--accent-orange);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 100px 0;
  background: var(--background-white);
  flex-grow: 1;
}

/* ===== PRODUCTS HEADER ===== */
.products-header {
  margin-bottom: 2rem;
}

.products-header-content {
  text-align: left;
}

.products-header-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.results-count {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* ===== CATEGORY FILTERS ABOVE PRODUCTS ===== */
.category-filters-section {
  margin-bottom: 2rem;
}

.category-filters-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-filter-btn {
  background: var(--background-white);
  border: 2px solid rgba(5, 84, 64, 0.2);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.category-filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(5, 84, 64, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  border-radius: 50%;
}

.category-filter-btn:hover::before,
.category-filter-btn.active::before {
  width: 200px;
  height: 200px;
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(5, 84, 64, 0.3);
}

.category-filter-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.category-filter-btn:hover i,
.category-filter-btn.active i {
  transform: rotate(360deg) scale(1.2);
}

/* Bouncy animation for filter activation */
.category-filter-btn.bounce {
  animation: bounceFilter 0.6s ease;
}

@keyframes bounceFilter {
  0% { transform: translateY(-3px) scale(1.05); }
  50% { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(-3px) scale(1.05); }
}

/* ===== SEARCH AND FILTER CONTROLS ===== */
.search-filter-section {
  margin-bottom: 3rem;
}

.search-filter-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--background-white);
  border: 1px solid rgba(5, 84, 64, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.search-filter-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
  flex: 1;
  min-width: 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--background-light);
  border: 2px solid rgba(5, 84, 64, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(5, 84, 64, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 12px;
  transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within .search-icon {
  color: var(--primary-green);
  transform: scale(1.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

.search-spinner {
  position: absolute;
  right: 12px;
  color: var(--primary-green);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-spinner.show {
  display: block;
  opacity: 1;
}

/* ===== FILTER CONTROLS ===== */
.filter-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.reset-filters-btn {
  background: rgba(5, 84, 64, 0.1);
  border: 2px solid rgba(5, 84, 64, 0.2);
  color: var(--primary-green);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.reset-filters-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(232, 136, 36, 0.3);
}

/* ===== LOADING STATE ===== */
.loading-state {
  text-align: center;
  padding: 4rem 0;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(5, 84, 64, 0.3);
  border-top: 4px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== NO RESULTS STATE ===== */
.no-results-state {
  text-align: center;
  padding: 4rem 0;
}

.no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-results-content i {
  font-size: 4rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.no-results-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-results-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== PRODUCTS GRID ===== */
.products-container {
  position: relative;
  min-height: 400px;
}

.products-grid {
  margin-bottom: 3rem;
}

.products-grid .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.products-grid .row > * {
  padding: calc(var(--bs-gutter-y) * 0.5) calc(var(--bs-gutter-x) * 0.5);
}

/* ===== NEW GRID SYSTEM (6x6 DESKTOP, 3x3 MOBILE) ===== */

/* Desktop: 6 items per row */
@media (min-width: 1400px) {
  .col-xxl-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .col-xl-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}

/* Large Tablet: 4 items per row */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Medium Tablet: 3 items per row */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Small Tablet: 3 items per row */
@media (min-width: 576px) and (max-width: 767.98px) {
  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Mobile: 3 items per row */
@media (max-width: 575.98px) {
  .col-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

/* ===== PRODUCT CARDS (CLEANED & OPTIMIZED) ===== */
.product-card {
  background: var(--background-white);
  border: 1px solid rgba(5, 84, 64, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 280px; /* Reduced height since we removed category/origin */
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(5, 84, 64, 0.3);
  box-shadow: var(--card-shadow-hover);
  background: rgba(5, 84, 64, 0.02);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(5, 84, 64, 0.05), transparent);
  transition: left 0.6s;
}

.product-card:hover::before {
  left: 100%;
}

.product-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: var(--background-light);
  border: 2px solid rgba(5, 84, 64, 0.05);
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(5, 84, 64, 0.2);
  border-color: rgba(5, 84, 64, 0.2);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--accent-orange), #f59e0b);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(232, 136, 36, 0.3);
}

.featured-badge i {
  font-size: 0.6rem;
}

.product-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 10;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.quick-look-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.3);
}

.quick-look-btn:hover {
  background: var(--accent-orange);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(232, 136, 36, 0.4);
}

.quick-look-btn i {
  font-size: 0.8rem;
}

.product-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.3;
  text-align: center;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hidden elements that were requested to be removed */
.product-category,
.product-origin {
  display: none !important;
}

.product-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.enquiry-btn {
  background: linear-gradient(135deg, var(--primary-green), var(--brown-accent));
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
  min-height: 40px;
}

.enquiry-btn:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--primary-green));
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 30px rgba(5, 84, 64, 0.3);
}

.enquiry-btn i {
  font-size: 0.8rem;
}

/* ===== ENHANCED PRODUCT DETAIL MODAL STYLES ===== */
.product-modal .modal-dialog {
  max-width: 900px;
  margin: 1rem auto;
}

.product-modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(5, 84, 64, 0.15);
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-modal-header {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
  border-bottom: none;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.product-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}

.modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn-close-custom {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-close-custom:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.product-modal-body {
  padding: 2rem;
}

.product-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(5, 84, 64, 0.1);
  transition: all 0.3s ease;
}

.product-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(5, 84, 64, 0.15);
}

.product-detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 84, 64, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.zoom-icon {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.product-image-wrapper:hover .zoom-icon {
  transform: scale(1);
}

.product-info-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.product-category-badge {
  background: linear-gradient(135deg, var(--primary-green), #067a5a);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.3);
  animation: badgeFloat 3s ease-in-out infinite;
}

.product-subcategory-badge {
  background: linear-gradient(135deg, var(--accent-orange), #d17a1a);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(232, 136, 36, 0.3);
  animation: badgeFloat 3s ease-in-out infinite 0.5s;
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.product-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-origin-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  padding: 12px 16px;
  background: rgba(5, 84, 64, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
}

.origin-icon {
  color: var(--primary-green);
  font-size: 1.1rem;
}

.origin-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.product-highlights {
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  color: var(--primary-green);
  transform: translateX(5px);
}

.highlight-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-enquiry {
  background: linear-gradient(135deg, var(--primary-green), var(--brown-accent));
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  flex: 1;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(5, 84, 64, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-enquiry::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-enquiry:hover::before {
  left: 100%;
}

.btn-enquiry:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--primary-green));
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(232, 136, 36, 0.4);
}

.btn-close-modal {
  background: rgba(5, 84, 64, 0.1);
  color: var(--primary-green);
  border: 2px solid rgba(5, 84, 64, 0.2);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  flex: 0 0 auto;
}

.btn-close-modal:hover {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

/* ===== ENQUIRY MODAL STYLES ===== */
.enquiry-product-info {
  background: rgba(5, 84, 64, 0.05) !important;
  border: 1px solid rgba(5, 84, 64, 0.1);
}

.product-icon {
  background: var(--primary-green) !important;
}

.form-control {
  border: 1px solid rgba(5, 84, 64, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(5, 84, 64, 0.25);
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ===== PAGINATION ===== */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(5, 84, 64, 0.1);
}

.pagination-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--background-white);
  border: 1px solid rgba(5, 84, 64, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.pagination-link:hover,
.pagination-link.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 84, 64, 0.3);
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== FEATURED CATEGORIES SECTION ===== */
.featured-categories-section {
  padding: 100px 0;
  background: var(--background-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.featured-category-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
  position: relative;
  background: var(--background-white);
  border: 1px solid rgba(5, 84, 64, 0.1);
}

.featured-category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(5, 84, 64, 0.3);
}

.category-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.featured-category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem;
  color: white;
}

.category-info h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.product-count {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.3);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: var(--background-white);
}

.cta-card {
  background: var(--primary-green);
  border: 1px solid var(--primary-green);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow-hover);
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.3;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-green);
  z-index: -1;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  position: relative;
  z-index: 2;
}

.cta-text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  background: white;
  color: var(--primary-green);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-orange);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(232, 136, 36, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-green);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  justify-content: center;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 15px rgba(5, 84, 64, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(232, 136, 36, 0.4);
}

.back-to-top.loading {
  animation: spin 1s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}

.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
  .products-grid .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
  }
  
  .product-card {
    min-height: 300px;
    padding: 1.5rem;
  }
  
  .product-image {
    width: 110px;
    height: 110px;
  }
  
  .product-name {
    font-size: 1.1rem;
  }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .products-grid .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }
  
  .product-card {
    min-height: 290px;
    padding: 1.35rem;
  }
  
  .product-image {
    width: 105px;
    height: 105px;
  }
}

/* ===== TABLET AND SMALL DESKTOP (768px - 1199px) ===== */
@media (max-width: 1199.98px) {
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .search-filter-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-controls {
    justify-content: flex-start;
    width: 100%;
  }
  
  .category-filters-container {
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .products-grid .row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
  }
  
  .product-card {
    min-height: 280px;
    padding: 1.25rem;
  }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991.98px) {
  .page-hero-section {
    padding: 120px 0 60px;
    min-height: 40vh;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .products-section,
  .featured-categories-section {
    padding: 60px 0;
  }
  
  .pagination-section {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .product-card {
    min-height: 270px;
  }
  
  .category-filters-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .category-filter-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ===== MOBILE (576px - 767px) ===== */
@media (max-width: 767.98px) {
  .page-hero-section {
    padding: 100px 0 50px;
    min-height: 35vh;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .products-section,
  .featured-categories-section {
    padding: 50px 0;
  }
  
  .search-filter-container {
    padding: 1.25rem;
  }
  
  .category-filters-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .category-filter-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-height: 44px;
  }
  
  .product-card {
    min-height: 260px;
    padding: 1.1rem;
  }
  
  .product-image {
    width: 95px;
    height: 95px;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .products-grid .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

/* ===== SMALL MOBILE (max-width: 575px) ===== */
@media (max-width: 575.98px) {
  .page-hero-section {
    padding: 90px 0 40px;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .search-filter-container {
    padding: 1rem;
  }
  
  .category-filter-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
    min-height: 42px;
  }
  
  .category-filter-btn i {
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pagination-list {
    gap: 0.25rem;
  }
  
  .pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  /* Mobile 3x3 grid for products */
  .products-grid .row > * {
    padding: calc(var(--bs-gutter-y) * 0.25) calc(var(--bs-gutter-x) * 0.25);
  }
  
  .products-grid .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  
  .product-card {
    padding: 0.9rem;
    min-height: 240px;
  }
  
  .product-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
  }
  
  .product-name {
    font-size: 0.9rem;
    min-height: 22px;
    margin-bottom: 0.75rem;
  }
  
  .enquiry-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }
  
  .enquiry-btn i {
    font-size: 0.75rem;
  }
  
  .quick-look-btn {
    width: 28px;
    height: 28px;
  }
  
  .quick-look-btn i {
    font-size: 0.75rem;
  }
  
  .featured-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
    top: 5px;
    left: 5px;
  }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media (max-width: 375px) {
  .page-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .search-filter-container {
    padding: 0.75rem;
  }
  
  .category-filters-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .category-filter-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    text-align: center;
  }
  
  .product-card {
    padding: 0.75rem;
    min-height: 220px;
  }
  
  .product-image {
    width: 70px;
    height: 70px;
  }
  
  .product-name {
    font-size: 0.85rem;
  }
  
  .enquiry-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 32px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.keyboard-focus {
  outline: 2px solid var(--primary-green) !important;
  outline-offset: 2px !important;
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(5, 84, 64, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-orange));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-orange), var(--primary-green));
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-secondary);
}

.d-flex {
  display: flex;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header-section,
  .back-to-top,
  .product-actions,
  .quick-look-btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-title,
  .page-title {
    color: black;
  }

  .gradient-text {
    color: var(--primary-green);
  }

  .page-hero-section {
    padding: 2rem 0 1rem;
  }

  section {
    padding: 2rem 0;
  }
  
  .product-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}


