/* enhanced-styles.css - Improved styling for Shoptic dashboard */

:root {
  --primary: #184A45;
  --primary-light: #2A655E;
  --accent: #00A896;
  --accent-light: #02C3AE;
  --light: #ffffff;
  --dark: #2b2d42;
  --bg: #f0f7f4;
  --bg-alt: #E0F7E4;
  --highlight: #ff6347;
  --danger: #ef233c;
  --success: #4CAF50;
  --warning: #FFC107;
  --info: #2196F3;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
.header {
  background: var(--primary);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10000;
  color: var(--light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform;
}

.header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.header.header-scrolled {
  background: rgba(24, 74, 69, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.header-left {
  display: contents;
}

/* Mobile Hamburger Menu Button (3 dashes) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 1px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0.2);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-speed);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,144C672,149,768,203,864,218.7C960,235,1056,213,1152,176C1248,139,1344,85,1392,58.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.search-bar {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.search-bar input {
  width: 50%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-speed);
}

.search-bar input:focus {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.search-bar button {
  padding: 1rem 2rem;
  background: var(--accent);
  border: none;
  color: var(--light);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-bar button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Toggle Filters Button */
.toggle-filters {
  display: block;
  width: 200px;
  margin: 1rem auto;
  padding: 0.75rem;
  text-align: center;
  background: var(--accent);
  color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  position: relative;
  z-index: 1;
  box-shadow: var(--box-shadow);
}

.toggle-filters:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* Advanced Filters (Integrated Seamlessly Under Search Bar) */
.advanced-filters {
  max-width: 820px;
  width: 92%;
  margin: 1.25rem auto 0.5rem auto;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: none;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  z-index: 10;
  position: relative;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advanced-filters > div {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.advanced-filters > div:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advanced-filters label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.advanced-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #02C3AE;
  cursor: pointer;
}

/* Business Overview */
.business-overview {
  background: var(--primary);
  color: var(--light);
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.business-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
}

.business-overview h2 {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
}

.business-overview p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.business-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  min-width: 180px;
  transition: transform var(--transition-speed), background-color var(--transition-speed);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  flex: 1;
  min-width: 150px;
  max-width: 250px;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-label {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--accent-light);
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  background: var(--primary);
  color: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  width: 180px;
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  transform: rotate(25deg);
  z-index: 0;
  transition: transform var(--transition-speed);
}

.category:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.category:hover::before {
  transform: rotate(0deg);
}

.category span {
  font-weight: 600;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

/* Product Filter Buttons */
.product-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.product-filter button,
.back-button {
  padding: 1rem 2rem;
  background: var(--accent);
  border: none;
  color: var(--light);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  box-shadow: var(--box-shadow);
  min-width: 150px;
}

.product-filter button:hover,
.back-button:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.product-filter .selected {
  background: var(--highlight);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.back-button {
  display: none;
  background: var(--gray-600);
}

.back-button:hover {
  background: var(--gray-700);
}

/* Featured Products */
.featured-products {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.featured-products h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 1.8rem;
  color: var(--primary);
}

.featured-products h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  padding: 24px 10px 40px;
}

/* Product Cards */
.product {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 168, 150, 0.2);
}

.product.local::before {
  content: 'Local';
  position: absolute;
  top: 12px;
  left: -28px;
  background: var(--success);
  color: white;
  padding: 4px 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: rotate(-45deg);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.product.imported::before {
  content: 'Imported';
  position: absolute;
  top: 12px;
  left: -32px;
  background: var(--info);
  color: white;
  padding: 4px 32px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: rotate(-45deg);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.product img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto 0.75rem auto;
  transition: transform 0.3s ease;
  background: #fdfdfd;
}

.product:hover img {
  transform: scale(1.04);
}

.product h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--primary);
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sustainability-badge {
  display: block;
  text-align: center;
  background: transparent;
  color: #4b5563;
  border: none;
  padding: 2px 0;
  margin: 0.2rem auto 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.certification-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0.4rem 0 0.85rem;
}

.certification-icon {
  font-size: 1.35rem;
  background: transparent;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  cursor: help;
  transition: transform var(--transition-speed);
  border: none;
  padding: 0;
}

.certification-icon:hover {
  transform: scale(1.25);
  background: transparent;
}

.certification-icon.halal,
.certification-icon.kosher,
.certification-icon.organic,
.certification-icon.christian,
.certification-icon.canadian {
  background: transparent;
  border: none;
}

.view-details {
  margin-top: auto;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  border: none;
  color: var(--light) !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 168, 150, 0.25);
}

.view-details:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gray-600);
  cursor: pointer;
  transition: color var(--transition-speed);
}

.modal-close:hover {
  color: var(--danger);
}

.modal h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gray-200);
}

.esg-section {
  text-align: left;
  margin: 1.5rem 0;
}

.esg-section h3 {
  margin-bottom: 0.8rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.esg-section h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.esg-section ul {
  list-style: none;
  margin-left: 1.5rem;
}

.esg-section ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.esg-section ul li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* Environmental */
.esg-section:nth-of-type(1) h3::before {
  background: var(--success);
}

/* Social */
.esg-section:nth-of-type(2) h3::before {
  background: var(--info);
}

/* Governance */
.esg-section:nth-of-type(3) h3::before {
  background: var(--warning);
}

/* Barcode Scan Button */
.barcode-scan-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  z-index: 99;
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.barcode-scan-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-light);
}

/* Loading Indicator */
#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-left-color: var(--accent);
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Error & Empty States */
.error-message, .no-products {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--light);
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
}

.error-message {
  color: var(--danger);
  border-left: 5px solid var(--danger);
}

.no-products {
  font-style: italic;
  color: var(--gray-600);
  border-left: 5px solid var(--gray-400);
}

/* Load More Button */
#load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
  box-shadow: var(--box-shadow);
}

#load-more-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

#load-more-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: var(--light);
  margin-top: 3rem;
}

.footer p {
  opacity: 0.8;
}

/* Scanner Styles */
.scanner-modal {
  z-index: 1500 !important;
}

.viewfinder {
  position: relative;
}

.viewfinder::before, .viewfinder::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-light);
  border-style: solid;
}

.viewfinder::before {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
}

.viewfinder::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .business-stats {
    gap: 1rem;
  }
  
  .stat-card {
    min-width: 130px;
    padding: 1.2rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .category {
    width: 160px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
  }

  .hamburger-btn {
    display: flex;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
  }

  .header-left {
    display: contents;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .logo img {
    width: 155px;
    margin: 0 auto;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #184A45;
    background: linear-gradient(180deg, #184A45 0%, #0d2825 100%);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.25rem 2rem;
    gap: 0.75rem;
    z-index: 10005;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--accent) !important;
    color: #ffffff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0, 168, 150, 0.4);
    border-color: var(--accent);
  }
  
  .hero {
    padding: 2.5rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .search-bar input {
    width: 75%;
    font-size: 0.95rem;
  }
  
  .search-bar button {
    padding: 1rem 1.4rem;
  }
  
  .business-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    min-width: unset;
    max-width: 100%;
    padding: 1.2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 16px 8px;
  }
  
  .product {
    padding: 1.25rem;
    min-height: 390px;
    height: auto;
  }
  
  .product img {
    height: 140px;
  }
  
  .product h3 {
    font-size: 1rem;
    min-height: 42px;
  }
  
  .modal-content {
    width: 92%;
    margin: 8% auto;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
  }

  .hamburger-btn {
    left: 1rem;
  }

  .logo img {
    width: 145px;
  }
  
  .hero h1 {
    font-size: 1.55rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    max-width: 360px;
    margin: 1.2rem auto 0;
  }
  
  .search-bar input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }
  
  .search-bar button {
    width: 100%;
    margin-left: 0;
    padding: 0.85rem;
    border-radius: 8px;
  }
  
  .toggle-filters {
    width: 100%;
    max-width: 360px;
    padding: 0.85rem;
  }
  
  .advanced-filters {
    padding: 1rem;
  }
  
  .advanced-filters > div {
    width: 100%;
  }
  
  .business-overview {
    padding: 1.5rem 1rem;
    margin: 1rem 0.5rem;
  }
  
  .business-overview h2 {
    font-size: 1.4rem;
  }
  
  .business-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }
  
  .categories {
    gap: 0.75rem;
    padding: 1.2rem 0.5rem;
  }
  
  .category {
    width: calc(50% - 0.5rem);
    padding: 1.2rem 0.8rem;
  }
  
  .product-filter {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  .product-filter button, .back-button {
    width: 100%;
    min-width: unset;
    padding: 0.85rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 10px;
  }
  
  .product {
    min-height: 380px;
    padding: 1.25rem;
  }

  .view-details {
    padding: 0.85rem;
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 1.25rem;
    margin: 10% auto;
    width: 94%;
  }
  
  .barcode-scan-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* Professional certification cards */
.featured-certifications {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.featured-certifications h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
}

.featured-certifications h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}


.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cert-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}


.cert-icon.halal {
  background: #e0f7f4;
}

.cert-icon.kosher {
  background: #e0e7f4;
}

.cert-header h3 {
  font-size: 1.1rem;
  color: #184A45;
  margin: 0;
  line-height: 1.3;
}

.cert-body {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.cert-type {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.cert-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cert-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-button {
  display: block;
  width: 100%;
  background: #00A896;
  color: white;
  text-align: center;
  padding: 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.cert-button:hover {
  background: #008F80;
}

.cert-button.secondary {
  background: #f0f7f4;
  color: #184A45;
}

.cert-button.secondary:hover {
  background: #e0f7f4;
}