/* Color Palette */
:root {
  --primary: #4361ee;    /* Vibrant blue */
  --secondary: #3a0ca3; /* Deep purple-blue */
  --accent: #f72585;    /* Energetic pink */
  --light: #f8f9fa;     /* Off-white */
  --dark: #212529;      /* Near black */
  --success: #4cc9f0;   /* Bright teal */
  --warning: #f8961e;   /* Golden orange */
  --info: #7209b7;      /* Royal purple */
  --text: #2b2d42;      /* Dark blue-gray */
  --text-light: #8d99ae; /* Light gray-blue */
  --bg-color: #ffffff;
  --text-color: #333333;
  --header-bg: #f8f9fa;
  --link-color: #007bff;
  
  /* Gradient options */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), #b5179e);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 180px; /* For fixed header */
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  color: white;
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: transform 0.3s ease-in-out, var(--transition-normal);
  transform: translateY(0);
}

.header-hide {
  transform: translateY(-100%);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

h1 {
  font-size: 1.75rem;
  background: linear-gradient(to right, white, #d0d0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: var(--transition-normal);
}

/* Admin Button */
.admin-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.admin-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Fixed Search Box Styles ===== */
.search-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
  position: relative; /* Added for proper positioning */
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto; /* Ensures centering */
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px; /* Fixed padding */
  border: 2px solid rgba(67, 97, 238, 0.3); /* Using your primary color */
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.05);
}

.search-button i {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    padding: 0 1rem;
  }
  
  .search-input {
    padding: 10px 45px 10px 15px;
    font-size: 15px;
  }
  
  .search-button {
    width: 36px;
    height: 36px;
    right: 6px;
  }
}

.search-results-count {
  text-align: center;
  margin: 10px 0;
  font-style: italic;
  color: white !important;
  width: 100%;
}

/* Category Filter */
.category-filter {
  max-width: 1400px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 2rem;
}

.category-filter h2 {
  margin-bottom: 1.25rem;
  color: var(--secondary);
  font-size: 1.35rem;
  position: relative;
  display: inline-block;
}

.category-filter h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category-btn {
  background-color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* Products Grid */
.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
}

.product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.5;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.4rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
}

.category {
  display: inline-block;
  background-color: var(--light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

/* Product Meta */
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  width: 100%;
}

.created-date {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.created-date i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: var(--transition-slow);
}

.modal-content {
  background-color: white;
  margin: 10vh auto;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.75rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: var(--accent);
  background-color: rgba(247, 37, 133, 0.1);
}

.modal-content h2 {
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.password-wrapper {
  position: relative;
}

.show-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.show-password label {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
}

.login-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

/* Product Detail Modal */
.product-modal-content {
  max-width: 800px;
  padding: 2rem;
}

.product-modal-container {
  display: flex;
  gap: 2rem;
}

.product-modal-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 2rem;
}

.product-modal-image-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.product-modal-info {
  flex: 1;
}

.product-modal-info h2 {
  color: var(--dark);
  margin-bottom: 1rem;
  text-align: left;
  justify-content: flex-start;
}

.modal-price {
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 700;
  margin: 1rem 0;
}

.modal-category {
  display: inline-block;
  background-color: var(--light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.modal-description {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Error Message */
.error-message {
  color: #d32f2f;
  background: #ffebee;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.no-products {
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* Contact Zen styles */
.contact-zen {
  --primary: hsl(220 90% 56%);
  --surface: hsl(0 0% 98%);
  --on-surface: hsl(0 0% 13%);
  --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
  
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'SF Pro Text', -apple-system, system-ui, sans-serif;
  display: flex;
  gap: 1rem;
  width: fit-content;
}

.contact-zen a.address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}

.contact-zen li.phone.number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  transition: background 0.25s var(--transition);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}

.contact-zen a.address:hover,
.contact-zen li.phone.number:hover {
  background: rgba(255,255,255,0.25);
}

.contact-zen a.address svg,
.contact-zen li.phone.number svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Map Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  transition: all 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.map-iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-overlay h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.map-overlay p {
  margin: 5px 0;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.map-header {
  text-align: center;
  margin-bottom: 20px;
}

.map-header h2 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 10px;
}

.map-header p {
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
}

/* Premium Footer */
.premium-footer {
  --primary-color: #6c63ff;
  --text-color: #f8f9fa;
  --bg-color: #1e293b;
  --card-bg: rgba(255,255,255,0.03);
  --hover-bg: rgba(108, 99, 255, 0.1);
  --border-color: rgba(255,255,255,0.05);
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 3rem 2rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.footer-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.border-accent {
  width: 33%;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.footer-brand {
  position: relative;
  padding-right: 2rem;
}

.logo-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 100%;
  position: relative;
  z-index: 2;
}

.logo-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
  animation: pulse 3s infinite ease-in-out;
}

.store-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.store-name span {
  color: var(--primary-color);
}

.store-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 2rem;
  font-weight: 300;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.social-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.social-button:hover::before {
  opacity: 0.2;
}

.social-button i {
  position: relative;
  z-index: 1;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 1px solid rgba(255,255,255,0.03);
}

.contact-card:hover {
  transform: translateY(-5px);
  background: var(--hover-bg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-icon {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.icon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.1;
  border-radius: 10px;
}

.card-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--primary-color);
}

.card-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-value {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  display: block;
  transition: color 0.3s ease;
}

.contact-card a.card-value:hover {
  color: var(--primary-color);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-card:hover .card-hover-effect {
  opacity: 0.05;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

.link-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

.developer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.developer-contact i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.developer-contact a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.developer-contact a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.1); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.15; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 150px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-container {
    flex-direction: column;
    text-align: center;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .search-container {
    padding: 0 1rem;
    margin: 15px auto;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .category-filter {
    margin: 1.5rem auto 1rem;
    padding: 0 1rem;
  }
  
  .category-filter h2 {
    display: none;
  }
  
  .category-buttons {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }
  
  .category-buttons::-webkit-scrollbar {
    height: 4px;
  }
  
  .category-buttons::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem 2rem;
  }
  
  .product-card {
    border-radius: 8px;
  }
  
  .product-image {
    height: 150px;
    padding: 1rem;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .price {
    font-size: 1.1rem;
    margin: 0.5rem 0;
  }
  
  .category {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .product-modal-content {
    padding: 1.5rem;
  }
  
  .product-modal-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .product-modal-image-container {
    padding: 1.5rem;
  }
  
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .map-iframe {
    height: 400px;
  }
  
  .map-overlay {
    max-width: 200px;
    padding: 10px 15px;
  }
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: 1fr;
  }
  
  .contact-zen a.address span,
  .contact-zen li.phone.number span {
    display: none;
  }
  
  .premium-footer {
    padding: 2rem 1.5rem 1rem;
  }
  
  .logo-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .store-name {
    font-size: 1.5rem;
  }
  
  .footer-legal {
    width: 100%;
  }
  
  .map-iframe {
    height: 300px;
  }
  
  .map-overlay {
    position: relative;
    max-width: 100%;
    bottom: auto;
    left: auto;
    margin-top: -5px;
    border-radius: 0 0 8px 8px;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  header {
    padding: 0.5rem 0.8rem;
  }
  
  .logo {
    height: 32px;
  }
  
  h1 {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 0; /* Remove the padding for fixed header */
  }
  
  header {
    position: static; /* Change from fixed to static */
    transform: none !important; /* Disable any transform animations */
    margin-bottom: 1rem; /* Add some space below the header */
  }
  
  .header-hide {
    transform: none !important; /* Disable hiding animation */
  }
  
  /* Adjust the search container margin */
  .search-container {
    margin: 10px auto;
  }
  
  /* Ensure category filter has proper spacing */
  .category-filter {
    margin-top: 1rem;
  }
}
/* Add this to your existing CSS */
.products-container {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Smaller base width */
  gap: 1.5rem; /* Reduced gap between cards */
}

.product-card {
  height: 100%; /* Ensure all cards have same height */
  min-height: 320px; /* Fixed minimum height */
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 140px; /* Reduced image container height */
  padding: 1rem;
}

.product-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1rem; /* Smaller title */
  margin-bottom: 0.5rem;
  -webkit-line-clamp: 4; /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.description {
  font-size: 0.85rem; /* Smaller description */
  margin-bottom: 0.75rem;
  -webkit-line-clamp: 10; /* Limit to 3 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.price {
  font-size: 1.1rem; /* Slightly smaller price */
  margin: 0.5rem 0;
}

.category {
  font-size: 0.75rem; /* Smaller category tag */
  padding: 0.25rem 0.5rem;
}

.product-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Ensure all cards have same image aspect ratio */
.product-image img {
  max-height: 100%;
  width: auto;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Even smaller cards on mobile */
    gap: 1rem;
  }
  
  .product-card {
    min-height: 280px;
  }
  
  .product-image {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
  }
}





