/**
 * Category/Search Results Page - Modern Redesign
 * Enhanced layout with 80% width container, modern cards, and improved UX
 * Uses consistent flat design system with cyan theme from modern-frontend.css
 */

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.search-page-chawkbazar {
  background: var(--color-gray-50);
  padding: var(--space-8) 0 var(--space-12);
  min-height: 60vh;
}

.container-wide {
  max-width: var(--container-max, 1600px);
  width: 90%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Category Header Section - Flat Design */
.category-header-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

/* Merchant Header Section - Flat Design */
.merchant-page-header {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.merchant-header-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.merchant-logo-wrapper {
  width: 120px;
  height: 120px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.merchant-logo-wrapper:hover {
  transform: translateY(-2px);
  border-color: #17a2b8;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
}

.merchant-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.merchant-info {
  flex: 1;
}

.merchant-name-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.verified-merchant-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: var(--color-success, #10b981);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: none;
}

.merchant-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.merchant-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.merchant-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary, #17a2b8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.merchant-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}


.category-header-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: none;
}

.category-header-info {
  flex: 1;
  min-width: 0;
}

.category-header-info h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.category-header-info p {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.6;
  max-width: 800px;
}

.category-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.category-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.category-stat-item i {
  color: #17a2b8;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.category-stat-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.category-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================================
   SEARCH LAYOUT WITH SIDEBAR
   ============================================ */

.search-layout-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Bootstrap integration */
.search-layout-container .row {
  margin: 0;
}

.search-layout-container .row > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) / 2);
}

/* Sidebar Filters */
.search-sidebar-filters {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: none;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  overflow-y: auto;
  transition: all 0.2s ease;
}

.search-sidebar-filters::-webkit-scrollbar {
  width: 6px;
}

.search-sidebar-filters::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.search-sidebar-filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.search-sidebar-filters::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section h3 i {
  color: #17a2b8;
  font-size: 1.125rem;
}

/* Main Content Area */
.search-main-content {
  min-height: 400px;
}

/* ============================================
   RESULTS HEADER & SORTING
   ============================================ */

.search-results-header {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 10;
  transition: all 0.2s ease;
}

.results-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-info h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: #17a2b8;
  border-radius: 2px;
}

.results-info strong {
  color: #17a2b8;
  font-weight: 800;
  font-size: 1.375rem;
}

.results-sorting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sort-label i {
  color: #17a2b8;
}

.sort-select {
  padding: 0.625rem 2.75rem 0.625rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2317a2b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  min-width: 180px;
}

.sort-select:hover {
  border-color: #17a2b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
}

.sort-select:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-grid-chawkbazar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

/* Product Card - Enhanced */
.product-card-chawkbazar {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.product-card-chawkbazar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary, #007BFF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.product-card-chawkbazar:hover {
  border-color: #17a2b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.1);
  background: #ffffff;
}

.product-card-chawkbazar:hover .product-img-modern {
  transform: scale(1.1);
}

.product-card-chawkbazar:hover::before {
  transform: scaleX(1);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.product-img-modern {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card-chawkbazar:hover .product-img-modern {
  transform: scale(1.08);
}

.product-img-placeholder-modern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 3rem;
}

.product-brand-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #3bb77e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
  z-index: 1;
}

.product-save-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-card-info-modern {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.product-card-title-modern {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card-brand {
  font-size: 0.9625rem;
  font-weight: 300;
  color: #007BFF; /* Blue color */
  margin: 0 0 0.25rem 0;/* 
  text-transform: uppercase;
  letter-spacing: 0.025em; */
}

.product-card-price-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.price-modern {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-primary, #007BFF);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

.product-merchants-modern {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.product-merchants-modern i {
  color: #3bb77e;
  font-size: 1rem;
}

.product-rating-modern {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.product-rating-modern i {
  font-size: 0.875rem;
}

.product-rating-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-left: 0.25rem;
}

/* Quick View Button */
.product-quick-view {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #ffffff;
  color: #3bb77e;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid #3bb77e;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-chawkbazar:hover .product-quick-view {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-quick-view:hover {
  background: var(--color-primary, #007BFF);
  color: #ffffff;
  border-color: var(--color-primary, #007BFF);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results-message {
  background: #ffffff;
  border-radius: 8px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.no-results-message::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 123, 255, 0.05);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.no-results-message i {
  font-size: 5rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.no-results-message h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  position: relative;
  z-index: 1;
}

.no-results-message p {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0 0 2rem 0;
  position: relative;
  z-index: 1;
}

.no-results-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.no-results-suggestions li {
  font-size: 0.9375rem;
  color: #475569;
  padding-left: 1.5rem;
  position: relative;
}

.no-results-suggestions li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary, #007BFF);
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  font-size: 0.75rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

#search-loading-spinner {
  padding: 3rem 0;
}

.spinner-modern {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(23, 162, 184, 0.1);
  border-top: 4px solid #17a2b8;
  border-right: 4px solid #138496;
  border-radius: 50%;
  animation: spin-modern 0.8s linear infinite;
  margin: 0 auto 1rem;
  position: relative;
}

.spinner-modern::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--color-primary, #007BFF);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

@keyframes spin-modern {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop */
@media (min-width: 1536px) {
  .products-grid-chawkbazar {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1535px) {
  .container-wide {
    width: 85%;
  }
  
  .products-grid-chawkbazar {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-wide {
    width: 90%;
  }
  
  .search-layout-container {
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
  }
  
  .category-header-section,
  .merchant-page-header {
    padding: 2rem;
  }
  
  .category-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  /* Using Bootstrap grid - no custom grid needed */
}

/* Tablet */
@media (max-width: 991px) {
  /* Using Bootstrap .container - responsive by default */
  
  .category-header-section,
  .merchant-page-header {
    padding: 1.5rem;
    border-radius: 10px;
  }
  
  .category-header-content,
  .merchant-header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .category-icon {
    margin: 0 auto;
  }
  
  .merchant-logo-wrapper {
    margin: 0 auto;
  }
  
  .category-stats,
  .merchant-stats {
    justify-content: center;
  }
  
  .search-results-header {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: static;
  }
  
  .search-layout-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .search-sidebar-filters {
    position: static;
    max-height: none;
  }
  
  /* Using Bootstrap grid - responsive by default */
  
  .category-header-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .category-header-info h1 {
    font-size: 1.75rem;
  }
  
  .category-stats {
    justify-content: center;
  }
}

/* Mobile - Enhanced */
@media (max-width: 767px) {
  .container-wide {
    width: 100%;
    padding: 0 0.75rem;
  }
  
  .search-page-chawkbazar {
    padding: 1rem 0 2rem;
  }
  
  .category-header-section,
  .merchant-page-header {
    padding: 1.25rem 0.875rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }
  
  .category-header-content,
  .merchant-header-content {
    gap: 1rem;
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    border-radius: 12px;
  }
  
  .merchant-logo-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    padding: 0.75rem;
  }
  
  .category-header-info h1,
  .merchant-name-title {
    font-size: 1.375rem;
    line-height: 1.3;
  }
  
  .category-header-info p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .category-stats,
  .merchant-stats {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
  }
  
  .merchant-stat-item,
  .category-stat-item {
    text-align: center;
  }
  
  .category-stat-value,
  .merchant-stat-value {
    font-size: 1.25rem;
  }
  
  .category-stat-label,
  .merchant-stat-label {
    font-size: 0.75rem;
  }
  
  .search-results-header {
    padding: 1rem;
    border-radius: 12px;
    position: static;
  }
  
  .results-info h2 {
    font-size: 0.9375rem;
  }
  
  .results-info strong {
    font-size: 1.125rem;
  }
  
  .sort-select {
    min-width: 100%;
    font-size: 0.875rem;
    padding: 0.5rem 2.25rem 0.5rem 1rem;
  }
  
  .row.g-4 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.75rem;
  }
  
  .product-card-chawkbazar {
    border-radius: 12px;
  }
  
  .product-card-image-wrapper {
    height: 200px;
    padding: 0.75rem;
  }
  
  .product-card-info-modern {
    padding: 1rem;
  }
  
  .product-card-title-modern {
    font-size: 0.875rem;
    min-height: 2.4em;
  }
  
  .price-modern {
    font-size: 1.25rem;
  }
  
  .no-results-message {
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
  }
  
  .no-results-message i {
    font-size: 3.5rem;
  }
  
  .no-results-message h3 {
    font-size: 1.375rem;
  }
  
  .no-results-message p {
    font-size: 1rem;
  }
  
  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  .results-sorting {
    width: 100%;
  }
  
  .sort-select {
    flex: 1;
  }
  
  /* Using Bootstrap grid - responsive by default */
  
  .product-card-image-wrapper {
    height: 200px;
    padding: 0.75rem;
  }
  
  .product-card-info-modern {
    padding: 1rem;
  }
  
  .product-card-title-modern {
    font-size: 0.9375rem;
  }
  
  .price-modern {
    font-size: 1.25rem;
  }
}

/* ============================================
   CATEGORY GUIDE CONTAINER
   ============================================ */

.category-guide-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.2s ease;
}

.category-guide-content {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Typography for guide content */
.category-guide-content h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.category-guide-content h2:first-child {
  margin-top: 0;
}

.category-guide-content h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem 0;
}

.category-guide-content h4 {
  color: #334155;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

.category-guide-content p {
  margin-bottom: 1rem;
  color: #475569;
}

.category-guide-content ul,
.category-guide-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.category-guide-content li {
  margin-bottom: 0.5rem;
  color: #475569;
}

.category-guide-content strong {
  color: #0f172a;
  font-weight: 600;
}

.category-guide-content a {
  color: #17a2b8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.category-guide-content a:hover {
  color: #138496;
  border-bottom-color: #138496;
}

.category-guide-content blockquote {
  border-left: 4px solid #17a2b8;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #64748b;
  font-style: italic;
}

.category-guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.category-guide-content table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.category-guide-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.category-guide-content table tr:nth-child(even) {
  background: #f8fafc;
}

/* Responsive adjustments for guide */
@media (max-width: 991px) {
  .category-guide-container {
    padding: 1.5rem;
  }
  
  .category-guide-content {
    font-size: 0.9375rem;
  }
  
  .category-guide-content h2 {
    font-size: 1.375rem;
  }
  
  .category-guide-content h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .category-guide-container {
    padding: 1.25rem 0.875rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }
  
  .category-guide-content {
    font-size: 0.875rem;
  }
  
  .category-guide-content h2 {
    font-size: 1.25rem;
  }
  
  .category-guide-content h3 {
    font-size: 1.0625rem;
  }
  
  .category-guide-content h4 {
    font-size: 1rem;
  }
  
  .category-guide-content ul,
  .category-guide-content ol {
    padding-left: 1.5rem;
  }
}

@media (max-width: 575px) {
  .search-page-chawkbazar {
    padding: 0.75rem 0 1.5rem;
  }
  
  .category-header-section,
  .merchant-page-header {
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }
  
  .category-header-info h1,
  .merchant-name-title {
    font-size: 1.25rem;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .merchant-logo-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .search-results-header {
    padding: 0.875rem;
  }
  
  .results-info h2 {
    font-size: 0.875rem;
  }
  
  .results-info strong {
    font-size: 1rem;
  }
  
  /* Using Bootstrap grid - responsive by default */
  
  .product-card-image-wrapper {
    height: 220px;
    padding: 0.5rem;
  }
  
  .product-card-info-modern {
    padding: 0.875rem;
  }
  
  .product-card-title-modern {
    font-size: 0.8125rem;
    min-height: 2.2em;
  }
  
  .price-modern {
    font-size: 1.125rem;
  }
  
  .price-currency {
    font-size: 0.875rem;
  }
  
  .no-results-message {
    padding: 2rem 1.25rem;
  }
  
  .no-results-message i {
    font-size: 3rem;
  }
  
  .no-results-message h3 {
    font-size: 1.25rem;
  }
  
  .no-results-message p {
    font-size: 0.9375rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-chawkbazar {
  animation: fadeInUp 0.5s ease-out both;
}

.product-card-chawkbazar:nth-child(1) { animation-delay: 0.05s; }
.product-card-chawkbazar:nth-child(2) { animation-delay: 0.1s; }
.product-card-chawkbazar:nth-child(3) { animation-delay: 0.15s; }
.product-card-chawkbazar:nth-child(4) { animation-delay: 0.2s; }
.product-card-chawkbazar:nth-child(5) { animation-delay: 0.25s; }
.product-card-chawkbazar:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .search-sidebar-filters,
  .search-results-header,
  .product-quick-view,
  #search-loading-spinner {
    display: none;
  }
  
  .search-layout-container {
    grid-template-columns: 1fr;
  }
  
  .products-grid-chawkbazar {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  
  .product-card-chawkbazar {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}
