 /* ===============================
   GLOBAL WRAPPER
================================ */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===============================
   SEARCH / PAGE HEADER
================================ */
.search-summary {
  text-align: center;
  padding: 18px 10px;
  margin: 15px 0 25px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-summary h2 {
  font-size: 22px;
  color: #1D435F;
  margin-bottom: 5px;
}

.search-summary p {
  font-size: 15px;
  color: #6c757d;
}

/* ===============================
   PAGE LAYOUT
================================ */
.category-page-wrapper {
  max-width: 97%;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.category-content {
  display: flex;
}

.category-products {
  flex: 1;
}

/* ===============================
   PRODUCT GRID
================================ */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===============================
   PRODUCT CARD
================================ */
.product-card {
  flex: 0 0 calc(25% - 10px); /* 4 per row, adjust gap if needed */
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ===============================
   PRODUCT IMAGE
================================ */
.product-image {
  height: 300px;   
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-image img:hover {
  transform: scale(1.05);
}

/* ===============================
   ACTION BUTTON
================================ */
.action-row {
  margin-top: auto;
}

.whatsapp-btn {
  width: 100%;
  height: 42px;
  background: #25D366;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* ===============================
   NO PRODUCTS
================================ */
.no-products {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px dashed #ccc;
  color: #666;
}

.no-products i {
  font-size: 50px;
  color: #ccc;
}

.no-products p {
  font-size: 17px;
  font-weight: 500;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {

  .product-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 15px;
  }

  .product-card {
    flex: 0 0 160px;
    padding: 8px;
  }

  .product-image {
    height: 150px;
  }

  .whatsapp-btn {
    height: 38px;
    font-size: 16px;
  }

  .search-summary h2 {
    font-size: 18px;
  }

  .search-summary p {
    font-size: 14px;
  }
} 

/* ===============================
   MOBILE RESPONSIVE (HORIZONTAL SWIPE)
================================ */
@media (max-width: 768px) {

  .product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* enable snapping */
    -webkit-overflow-scrolling: touch; /* smooth momentum scroll */
    gap: 15px;
    padding-bottom: 10px;
    padding-left: 10px; /* small padding to show first card */
  }

  .product-card {
    flex: 0 0 70%; /* adjust width: 70% of viewport */
    min-width: 160px;
    scroll-snap-align: start; /* snap cards */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: #fff;
  }

  .product-image {
    height: 180px; /* slightly taller for swipe view */
  }

  .whatsapp-btn {
    height: 38px;
    font-size: 16px;
  }

  .search-summary h2 {
    font-size: 18px;
  }

  .search-summary p {
    font-size: 14px;
  }

  /* Hide scrollbar for better UX */
  .product-grid::-webkit-scrollbar {
    display: none;
  }
  .product-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}