/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
*/

/* ===================== */
/* 🟦 General UX Layout  */
/* ===================== */

body {
  font-family: "Inter Tight";
}

/* Optional subtle fade ONLY for content blocks */
.fade-on-load {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-on-load.is-visible {
  opacity: 1;
  transform: none;
}

.fade-section {
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== */
/* 📱 Mobile Menu        */
/* ===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.mobile-menu.active {
  transform: translateX(0);
}

.mobile-backdrop-header {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop-header.active {
  opacity: 1;
  pointer-events: auto;
}

body.no-scroll {
  overflow: hidden;
}
.menu-toggle-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
}
.menu-toggle-wrapper .openMobileMenu,
.menu-toggle-wrapper .closeMobileMenu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
}
.fade-toggle {
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-toggle.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ===================== */
/* 📌 Sticky Header      */
/* ===================== */
.main-custom-header {
  z-index: 1000;
  height: 101px;
  max-height: 101px !important;
}
.sticky-custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.sticky-custom-header img {
  max-height: 60px;
  transition: max-height 0.3s ease;
}

/* ===================== */
/* 🛒 Catalogue Layout   */
/* ===================== */
.catalogue-layout {
  padding: 1rem;
  margin: auto;
  font-family: "Inter Tight", sans-serif;
}
.custom-btn {
  font-family: "Inter Tight", Sans-serif;
  background: #78d5e4;
  color: #000000;
  border: none;
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 18px;
  font-weight: 600;
}
.custom-btn:hover {
  background: #000000;
  color: #78d5e4;
  scale: 0.9;
}
.toggle-filters-btn {
  display: none;
  margin-bottom: 1rem;
  align-items: center;
  gap: 6px;
}

.toggle-filters-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

.catalogue-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

/* ===================== */
/* 📂 Sidebar & Filters  */
/* ===================== */
.catalogue-sidebar {
  width: 250px;
  background: #edeef2;
  border-radius: 6px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: sticky;
  top: 100px;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
.sidebar-inner {
  padding: 1rem 0.5rem 1rem 1rem;
}

.catalogue-sidebar::-webkit-scrollbar {
  width: 6px;
}
.catalogue-sidebar::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-left: 2px;
}
.catalogue-sidebar::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 6px;
}
.catalogue-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.catalogue-sidebar .filter-group {
  padding-right: 6px;
}

.catalogue-sidebar.hidden {
  transform: translateX(-120%);
  position: absolute;
  background: #f9f9f9;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
}
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group h3 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 1rem;
}
.filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  margin-left: 10px;
  color: #000;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin-left: 20px;
}
.filter-list li {
  margin-bottom: 2px;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  color: #000;
}
.custom-checkbox input[type="checkbox"] {
  margin-right: 5px;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #78d5e4;
  border-radius: 7px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.custom-checkbox input[type="checkbox"]:checked {
  background-color: #78d5e4;
  border-color: #78d5e4;
}
.custom-checkbox input[type="checkbox"]:checked::after {
  content: "\2714";
  font-size: 12px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===================== */
/* 🧱 Product Grid       */
/* ===================== */
.catalogue-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  border: 1px solid #edeef2;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 6px;
  overflow: hidden;
  max-width: 500px;
}
.product-card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-card-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.product-excerpt {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.brand-info {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  max-height: 50px;
  width: auto;
  display: inline-block;
}

.brand-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #000;
}

.product-image {
  width: 100%;
  height: 300px !important;
  object-fit: contain;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.product-card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: end;
}
.product-title {
  font-size: 1.1rem;
  color: #000;
  margin: 0 0 0.5rem;
}
.product-ref {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.product-status {
  margin: 0.5rem 0;
  font-weight: bold;
  font-size: 0.9rem;
}
.disponible {
  color: green;
}
.rupure {
  color: red;
}
.btn-devis {
  display: inline-block;
  margin-top: auto;
  padding: 8px 15px;
  background-color: #1b334e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  transition: background-color 0.3s ease;
}
.btn-devis:hover {
  background-color: #2a4b6d;
}
.btn-show-product {
  text-align: center;
}
.spinner {
  margin: auto;
  width: 32px;
  height: 32px;
  border: 4px solid #e0f6fa;
  border-top: 4px solid #78d5e4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999999;
}

.mobile-backdrop.visible {
  display: block;
}

.close-sidebar-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #78d5e4;
  z-index: 20;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.close-sidebar-btn:hover,
.close-sidebar-btn:focus,
.close-sidebar-btn:active {
  color: #78d5e4;
  outline: none;
  transform: scale(1.1);
  background: none;
}

.btn-outline-small {
  font-size: 0.8rem;
  padding: 6px 10px;
  background: #78d5e4;
  color: #000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-weight: 500;
  font-family: inherit;
  border: none;
  outline: none;
}

.btn-outline-small:hover {
  background: #4ab4c6;
  color: #000;
}

#pagination-container {
  text-align: center;
  margin-top: 2rem;
}

.custom-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.catalogue-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pagination-btn {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #78d5e4;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  min-width: 36px;
}

.pagination-btn:hover {
  background-color: #78d5e4;
  border-color: #fff;
}

.pagination-btn.active {
  background-color: #78d5e4;
  color: #000;
  font-weight: bold;
  border-color: #fff;
}

@media (max-width: 768px) {
  .close-sidebar-btn {
    display: block;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================== */
/* 📱 Responsive Layout  */
/* ===================== */
@media (max-width: 768px) {
  .catalogue-layout {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .toggle-filters-btn {
    display: inline-flex;
  }
  .catalogue-wrapper {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .catalogue-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    background: #edeef2;
    width: 80%;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    z-index: 999999999999;
    padding: 0 0 5rem 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
  }

  .catalogue-sidebar.visible {
    transform: translateX(0);
  }

  .catalogue-sidebar.hidden {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
  }
  .catalogue-products-grid {
    margin-top: 1rem;
  }
}
@media (max-width: 500px) {
  .catalogue-products-grid {
    grid-template-columns: 1fr;
  }
}

/*Single Product*/

.product-brand img.brand-logo {
  max-height: 100px;
  vertical-align: middle;
  margin-left: 5px;
}

.single-product-hero {
  font-family: inherit;
}

.single-product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.single-product-gallery {
  flex: 1 1 40%;
}

.single-product-gallery .main-img {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
}

.single-product-gallery .main-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 3px;
}

.single-product-details {
  width: 100%;
  align-self: stretch;
  justify-self: start;
}

.single-product-details .product-title {
  font-size: 2rem;
  color: #000;
  margin-bottom: 1rem;
  font-weight: 600;
  max-width: 90%;
}

.single-product-details .brand-logo {
  max-height: 200px;
  width: auto;
  display: inline-block;
}

.single-product-details .product-excerpt {
  font-size: 1rem;
  color: #000;
  line-height: 1.4;
  max-width: 100%;
}

.product-brand,
.product-availability,
.product-ref {
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.product-actions {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.btn-partner {
  font-size: 0.9rem;
  padding: 12px 20px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .single-product-container {
    flex-direction: column;
  }

  .single-product-gallery,
  .single-product-details {
    max-width: 100%;
  }

  .product-thumbnails .thumb {
    width: 50px;
    height: 50px;
  }
}

.btn-blue {
  display: inline-block;
  background-color: #1b334e;
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.btn-blue:hover {
  background-color: #162836;
}

.brochure-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.brochure-link:hover {
  text-decoration: underline;
}

.iti__country[data-country-code="dz"],
.iti__country[data-country-code="eh"] {
  display: none !important;
}

.form-submit-custom-btn {
  font-family: "Inter Tight", Sans-serif;
  background: #78d5e4;
  color: #000000;
  border: none;
  padding: 8px 12px;
  border-radius: 6px !important;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 18px;
  font-weight: 600;
  width: 100% !important;
  box-shadow: none !important;
}

.form-submit-custom-btn:hover {
  background-color: #6bc1cf;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.form-submit-custom-btn:active {
  background-color: #5baab8;
  transform: translateY(0);
  box-shadow: none !important;
}

.iti__search-input {
  min-height: 24px !important;
  padding: 4px !important;
}

.no-lazy img {
  loading: eager !important;
  decoding: sync !important;
}

/* ===================== */
/* 🔍 SEARCH - MAIN NAV  */
/* ===================== */
.techmac-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10001;
}

.search-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1b334e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  position: relative;
  z-index: 10002;
}

.search-toggle:hover {
  opacity: 0.7;
}

.search-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 999999;
}

.techmac-search.active .search-panel {
  width: 340px;
  opacity: 1;
  visibility: visible;
}

.search-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.search-panel input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #1b334e;
  box-sizing: border-box;
}

.search-panel input::placeholder {
  color: #94a3b8;
}

.close-search-btn {
  display: none;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #1b334e;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 12px;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  display: none;
  background: #fff;
}

.search-results.active {
  display: block;
}

.search-results div {
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #334155;
  transition: background-color 0.15s;
  border-bottom: 1px solid #f1f5f9;
}

.search-results div:last-child {
  border-bottom: none;
}

.search-results div:hover {
  background-color: #f8fafc;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.search-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ===================== */
/* 🔍 SEARCH - STICKY NAV */
/* ===================== */
.techmac-search-sticky {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10001;
}

.search-toggle-sticky {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1b334e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  position: relative;
  z-index: 10002;
}

.search-toggle-sticky:hover {
  opacity: 0.7;
}

.search-toggle-sticky svg {
  width: 20px;
  height: 20px;
  display: block;
}

.search-panel-sticky {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 999999;
}

.techmac-search-sticky.active .search-panel-sticky {
  width: 340px;
  opacity: 1;
  visibility: visible;
}

.search-header-sticky {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.search-panel-sticky input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #1b334e;
  box-sizing: border-box;
}

.search-panel-sticky input::placeholder {
  color: #94a3b8;
}

.close-search-btn-sticky {
  display: none;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #1b334e;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 12px;
}

.search-results-sticky {
  max-height: 400px;
  overflow-y: auto;
  display: none;
  background: #fff;
}

.search-results-sticky.active {
  display: block;
}

.search-results-sticky div {
  padding: 12px 16px;
  font-size: 13px;
  cursor: pointer;
  color: #334155;
  transition: background-color 0.15s;
  border-bottom: 1px solid #f1f5f9;
}

.search-results-sticky div:last-child {
  border-bottom: none;
}

.search-results-sticky div:hover {
  background-color: #f8fafc;
}

.search-results-sticky::-webkit-scrollbar {
  width: 6px;
}

.search-results-sticky::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.search-results-sticky::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ===================== */
/* 📱 SEARCH MOBILE      */
/* ===================== */
/* ===================== */
/* 📱 SEARCH MOBILE      */
/* ===================== */
@media (max-width: 1024px) {
  /* Target panels that have been moved to body */
  body > .search-panel,
  body > .search-panel-sticky {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    max-height: 80vh !important;
    height: 80vh;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    z-index: 999999 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Show panels when they have data-active attribute */
  body > .search-panel[data-active="true"],
  body > .search-panel-sticky[data-active="true"] {
    width: 100% !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .search-header,
  .search-header-sticky {
    flex-shrink: 0;
    padding: 12px 0;
  }

  body > .search-panel input,
  body > .search-panel-sticky input {
    padding: 12px 16px;
  }

  .close-search-btn,
  .close-search-btn-sticky {
    display: block;
  }

  body > .search-panel .search-results,
  body > .search-panel-sticky .search-results-sticky {
    flex: 1;
    max-height: none !important;
    overflow-y: auto;
  }
}

/* Remove the duplicate "Mobile sticky search panel fix" section completely */


/* ===================== */
/* 🔍 SEARCH BACKDROP    */
/* ===================== */
.search-backdrop-global {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999; /* Below sticky header (1000) but above page content */
}

.search-backdrop-global.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
  .search-backdrop-global.active {
    z-index: 999998 !important; /* Below panels (999999) on mobile */
  }
}

/* .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #6b7280;
    font-weight: 600;
    pointer-events: none;
} */

.techmac-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}

.techmac-spinner .spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top-color: #1B334E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.3s ease-out;
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  padding-right: 1rem;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: #6b7280;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Modal Body */
.modal-body {
  padding: 1.5rem 1rem;
  overflow-y: auto;
  flex: 1;
}

.modal-description {
  margin: 0 0 1.5rem 0;
  color: #6b7280;
  font-size: 0.938rem;
  line-height: 1.5;
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.brand-card {
  display: block;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 80px;
}

.brand-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.brand-card:active {
  transform: translateY(0);
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.brand-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Modal Footer */
.modal-footer {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.btn-all-products {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.938rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-all-products:hover {
  background: #3b82f6;
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Tablet - 3 columns */
@media (min-width: 640px) {
  .modal-header {
    padding: 0;
  }
  
  .modal-body {
    padding: 2rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .brand-card {
    padding: 1.5rem;
    min-height: 100px;
  }
  
  .brand-logo {
    max-height: 70px;
  }
}

/* Desktop - 4 columns */
@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  
  .brand-card {
    min-height: 110px;
  }
  
  .modal-body {
    padding: 2.5rem 2rem;
  }
  
  .modal-header {
    padding: 0;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .modal-description {
    font-size: 1rem;
  }
  
  .btn-all-products {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}