/* ============================================
   OVERRIDES – MODERN SEARCH RESULTS LAYOUT
   ============================================ */

/* Section spacing */
#searchResults .results-wrapper {
  margin-top: 24px;
  margin-bottom: 48px;
}

/* Header (results count + controls) */
#searchResults .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

#searchResults .results-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4B5563;
}

#searchResults .results-count {
  font-size: 22px;
  font-weight: 800;
  color: #059669;
}

#searchResults .currency-badge {
  background: #059669;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

#searchResults .results-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons / dropdown */
#searchResults .control-btn {
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

#searchResults .control-btn:hover {
  border-color: #059669;
  color: #059669;
}

#searchResults .sort-select {
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  padding: 8px 30px 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

#searchResults .sort-select:focus {
  outline: none;
  border-color: #059669;
}

/* GRID of cards */
#searchResults .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Card */
#searchResults .product-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#searchResults .product-card:hover {
  border-color: #059669;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* IMAGE area – FORCE proper height */
#searchResults .product-image {
  position: relative;
  height: 220px !important;
  background: #F3F4F6;
  overflow: hidden;
  border-bottom: 1px solid #E5E7EB;
}

#searchResults .product-image .swiper {
  width: 100%;
  height: 100% !important;
}

/* Show full catalytic image inside card */
#searchResults .product-image img,
#searchResults .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #F3F4F6;
  display: block;
}

/* Small badge with photo count */
#searchResults .image-count {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Swiper arrows nicely centered */
#searchResults .swiper-button-prev,
#searchResults .swiper-button-next {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#searchResults .swiper-button-prev::after,
#searchResults .swiper-button-next::after {
  font-size: 12px;
  font-weight: bold;
  color: #374151;
}

#searchResults .swiper-button-prev:hover,
#searchResults .swiper-button-next:hover {
  background: #059669;
}

#searchResults .swiper-button-prev:hover::after,
#searchResults .swiper-button-next:hover::after {
  color: #fff;
}

/* Hide arrows on small screens */
@media (max-width: 576px) {
  #searchResults .swiper-button-prev,
  #searchResults .swiper-button-next {
    display: none;
  }
}

/* Card body */
#searchResults .product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

#searchResults .product-cat-no {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
}

#searchResults .product-details {
  margin-bottom: 4px;
}

#searchResults .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dashed #F3F4F6;
}

#searchResults .detail-row:last-child {
  border-bottom: none;
}

#searchResults .detail-label {
  color: #6B7280;
  font-weight: 500;
}

#searchResults .detail-value {
  color: #111827;
  font-weight: 600;
}

/* Price block */
#searchResults .product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #A7F3D0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s;
  margin-top: 6px;
}

#searchResults .price-symbol {
  font-size: 18px;
  font-weight: 600;
  color: #047857;
  transition: color 0.2s;
}

#searchResults .price-amount {
  font-size: 24px;
  font-weight: 800;
  color: #047857;
  transition: color 0.2s;
}

/* ===== ADD TO CART BUTTON ===== */
#searchResults .add-to-cart-btn,
.add-to-cart-btn {
  width: 100%;
  padding: 12px 16px;
  margin-top: 12px;
  background: #f0fdf4;
  color: #047857;
  border: 2px solid #a7f3d0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

#searchResults .add-to-cart-btn:hover,
.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

#searchResults .add-to-cart-btn:active,
.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

#searchResults .add-to-cart-btn:disabled,
.add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

#searchResults .add-to-cart-btn i,
.add-to-cart-btn i {
  font-size: 16px;
}

/* Cart bounce animation */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-bounce {
  animation: cart-bounce 0.4s ease;
}

/* Pagination */
#searchResults .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  flex-wrap: wrap;
}

#searchResults .page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#searchResults .page-btn:hover {
  border-color: #059669;
  color: #059669;
}

#searchResults .page-btn.active {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

#searchResults .page-info {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: #6B7280;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  #searchResults .results-header {
    flex-direction: column;
    align-items: stretch;
  }
  #searchResults .results-controls {
    justify-content: space-between;
  }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--green-500);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 80px 0;
  background: var(--gray-900);
}

.how-section .section-header h2 {
  color: var(--white);
}

.how-section .section-header p {
  color: var(--gray-400);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.step-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--gray-400);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--green-500);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.service-card:hover .service-icon {
  background: var(--green-500);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter 0.2s;
}

.service-card:hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
}


/* ===== CHART SECTION ===== */
.chart-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.chart-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chart-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 8px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--green-500);
  color: var(--green-600);
}

.filter-btn.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}


/* ===== BLOG / LATEST NEWS ===== */
.blog-section {
  padding: 80px 0;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-image {
  height: 180px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-body {
  padding: 20px;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-link:hover {
  gap: 8px;
}


/* ===== CTA STRIP ===== */
.cta-section {
  padding: 60px 0;
  background: var(--green-600);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.cta-btn-white {
  background: var(--white);
  color: var(--green-600);
}

.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.cta-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}


/* ===== REVIEWS ===== */
.reviews-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.reviews-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews-brand img {
  width: 48px;
  border-radius: 8px;
}

.reviews-brand h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.reviews-stars {
  color: #F59E0B;
  font-size: 14px;
}

.review-btn {
  background: transparent;
  border: 2px solid #F59E0B;
  color: #F59E0B;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.review-btn:hover {
  background: #F59E0B;
  color: var(--white);
}

.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.reviews-scroll::-webkit-scrollbar {
  height: 4px;
}

.reviews-scroll::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 2px;
}

.reviews-scroll::-webkit-scrollbar-thumb {
  background: var(--green-500);
  border-radius: 2px;
}

.review-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
}

.review-author span {
  font-size: 12px;
  color: var(--gray-500);
}

.review-rating {
  color: #F59E0B;
  margin-bottom: 8px;
  font-size: 12px;
}

.review-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}


/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

@media (max-width: 576px) {
  .whatsapp-btn span { display: none; }
  .whatsapp-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
}


/* ===== ZOOM MODAL ===== */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.zoom-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.upload-hint {
  margin-top: 10px;
  text-align: center;
}

.upload-btn {
  border: 1px dashed #059669;
  background: #ECFDF5;
  color: #047857;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-btn i {
  font-size: 12px;
}

.upload-btn:hover {
  background: #D1FAE5;
}