/* === GLOBAL === */
body {
  font-family: "Urbanist", sans-serif !important;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
body.fade-in {
  opacity: 1;
}
body.no-scroll {
  overflow: hidden;
}

/* === 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;
  overscroll-behavior: contain;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 4999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.openMobileMenu {
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding-right: 30px;
}

/* === TEXT ANIMATIONS === */
.animated-title,
.animated-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animated-title.visible,
.animated-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CATEGORY SWIPER === */
.categorySwiper-container {
  position: relative;
}
.categorySwiper {
  padding: 0;
  pointer-events: auto;
}
.category-slide {
  width: 250px;
  height: 350px;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
}
.category-slide .label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ec7128;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* === SWIPER ARROWS === */
.swiper-button-prev,
.swiper-button-next {
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: absolute;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #142434;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 8px;
  font-weight: bold;
}
.categorySwiper-container .swiper-button-prev,
.swiper-wrapper-parent .swiper-button-prev {
  left: -12px;
}
.categorySwiper-container .swiper-button-next,
.swiper-wrapper-parent .swiper-button-next {
  right: -12px;
}

/* === PRODUCT SWIPER === */
.produits-home .swiper-slide {
  width: auto;
  max-width: 300px;
  flex-shrink: 0;
  display: flex;
  height: auto;
}

.produits-home-2 .swiper-slide {
  width: auto;
  max-width: 300px;
  flex-shrink: 0;
  display: flex;
  height: auto;
}
.produits-related .swiper-slide {
  width: auto;
  max-width: 300px;
  flex-shrink: 0;
  display: flex;
  height: auto;
}

/* === PRODUCT CARD === */
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 400px;
  position: relative;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hoverExists:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.product-img {
    width: 100%;
    height: 300px !important;
    object-fit: contain;
    border-radius: 8px;
}
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #000;
}
.product-ref {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.product-price {
  /* font-size: 1.1rem;
  font-weight: bold;
  color: #000;*/

  font-family: "Roboto Condensed", sans-serif !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #000; /* or keep your theme color */
}
.currency {
  font-size: 0.89rem;
  color: #888;
  font-family: "Roboto Condensed", sans-serif !important;
}

/* === DISPONIBILITÉ === */
.disponibilite-line {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #1b334e;
  margin-top: 8px;
  gap: 6px;
}
.disponibilite-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.check-icon {
  color: #2e7d32;
}
.cross-icon {
  color: #d93025;
}
.box-icon {
  color: #1565c0;
}

/* === ACTIONS === */
.product-actions {
  width: 100%;
}
.devis-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qty-add {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: stretch;
}
.product-qty {
  width: 70px;
  min-width: 70px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  flex-shrink: 0;
}
.btn-devis {
  flex-grow: 1;
  background-color: #ec7128;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-devis:hover {
  background-color: #cf5e1e;
}

.contact-submit-btn {
  width: 100% !important;
  background-color: #ec7128;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-submit-btn:hover {
  background-color: #cf5e1e;
}
.btn-devis.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.btn-voir-produit {
  width: 100%;
  display: block;
  text-align: center;
  background-color: #1b334e;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-voir-produit:hover {
  background-color: #0f1f2e;
}

/* === SELECT VARIATION === */
.variation-selector {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.variation-selector:focus {
  outline: none;
  border-color: #ec7128;
  /* box-shadow: 0 0 0 1px #ec7128; */
}

/* === BRAND LOGO CAROUSEL === */
.marque-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 10px;
}
.marque-carousel .swiper-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.marque-carousel-wrapper .swiper-button-prev,
.marque-carousel-wrapper .swiper-button-next {
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  top: 65%;
  transform: translateY(-50%);
  z-index: 20;
  position: absolute;
}

.marque-carousel-wrapper .swiper-button-prev:hover,
.marque-carousel-wrapper .swiper-button-next:hover {
  background: #142434;
}
.marque-carousel-wrapper .swiper-button-prev {
  left: 0;
}
.marque-carousel-wrapper .swiper-button-next {
  right: 0;
}
.marque-carousel-wrapper .swiper-button-prev::after,
.marque-carousel-wrapper .swiper-button-next::after {
  font-size: 8px;
  font-weight: bold;
}

/* === SCROLL HINT === */
.scroll-hint {
  text-align: center;
  font-size: 14px;
  color: #fff;
  margin-top: 10px;
}
.scroll-hint span {
  animation: bounceRight 1.5s infinite;
  display: inline-block;
  font-size: 18px;
}
@keyframes bounceRight {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* === DEVIS ICON === */

.devis-icon-wrapper {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px; /* space between label and icon */
  cursor: pointer;
}

.devis-label {
  color: #1b334e; /* matches your dark blue */
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  transition: all;
  line-height: 5px;
}

.devis-label:hover {
  color: #ee7129;
}

.devis-icon-wrapper svg {
  transition: stroke 0.3s ease;
}
.devis-icon-wrapper:hover svg path:nth-of-type(1),
.devis-icon-wrapper:hover svg path:nth-of-type(2) {
  stroke: #1b334e; /* outline */
}

.devis-icon-wrapper:hover svg path:nth-of-type(3),
.devis-icon-wrapper:hover svg path:nth-of-type(4),
.devis-icon-wrapper:hover svg path:nth-of-type(5) {
  stroke: #ee7129; /* text lines */
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .qty-add {
    flex-direction: column;
  }

  .product-qty,
  .btn-devis {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .catalogue-layout {
    padding: 0 !important;
  }

  .product-card {
    max-width: 100%;
  }
}

/*Search*/
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 2px;
  z-index: 999;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #eee;
}

#search-results:empty {
  display: none;
}

#search-results-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff; /* same as input background */
  border-radius: 0; /* remove rounding */
  box-shadow: none; /* remove shadow */
  margin-top: 0; /* remove spacing */
  z-index: 999;
  max-height: 350px;
  overflow-y: auto;
  border: none; /* optional: remove border if input has none */
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  transition: background-color 0.2s ease;
}

.search-item:hover {
  background-color: #f6f6f6;
}

.search-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1b334e;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

#search-results p {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #fafafa;
}

#search-results-mobile p {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #fafafa;
}

.spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #ec7128;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin33 0.6s linear infinite;
  z-index: 10;
}

.spinner23 {
  margin: auto;
  width: 24px;
  height: 24px;
  border: 4px solid #e0f6fa;
  border-top: 4px solid #ec7128;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin33 {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.custom-search {
  position: relative;
}

/*End Search*/
/*Mega Menu*/

.header-mega-menu-parent {
  position: relative;
  /*   z-index: 1000; */
}

/* .mega-menu-wrapper {
/*   display: none; 
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  background-color: white;
  padding: 40px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #EC7128;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	max-width: 50% !important;

  z-index: 9999;
	
	
	
} */

/* .mega-menu-wrapper {
   position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  background-color: white;
  padding: 10px 20px 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #EC7128;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
	max-width: 50% !important;

  z-index: 9999;
}
 */

.mega-menu-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;
  background-color: white;
  padding: 10px 20px 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #ec7128;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  max-width: 50% !important;

  z-index: 9999;

  opacity: 0;
  max-height: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mega-menu-wrapper.show {
  opacity: 1;
  max-height: 2000px;
  pointer-events: auto;
}

.mega-menu-tree,
.mega-menu-tree ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mega-menu-tree li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.toggle-submenu {
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  font-size: 12px;
  color: #888;
}

/* Plus icon when closed */
.toggle-submenu::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23EC7128' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 13H13v6h-2v-6H5v-2h6V5h2v6h6v2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Minus icon when open */
.menu-item.open > .toggle-submenu::before {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23EC7128' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19 13H5v-2h14v2z'/></svg>");
}

.submenu {
  display: none;
  margin-top: 6px;
  padding-left: 15px;
}

.menu-item.open > .submenu {
  display: block;
}

.mega-menu-tree a {
  color: #1b334e;
  text-decoration: none;
  font-size: 15px;
  margin-left: 6px !important;
  font-weight: 500;
}

.mega-menu-tree a:hover {
  text-decoration: underline;
  color: #ec7128;
}
.mega-menu-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.mega-menu-tree {
  flex: 1 1 45%; /* allow wrapping under 1024px if needed */
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
}

.menu-item.open > .submenu {
  max-height: 800px; /* enough for most lists */
}
.submenu {
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.menu-item.open > .submenu {
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.mega-menu-button {
  background-color: #ec7128;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.mega-menu-button:hover {
  background-color: #d15f1f;
}

/*End Mega Menu*/

/*Catalogue*/

.btn-devis.added {
  background-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53e3e; /* red */
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 10;
}

.product-price .price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 4px;
  display: inline-block;
}

.product-price .sale-price {
  font-size: 18px;
  color: #ec7128; /* green for sale */
  font-weight: bold;
}

/*End Filter*/
/*End Catalogue*/

/*Toast*/
.custom-toast {
  position: fixed;
  top: 80px;
  right: 100px;
  background: #1b334e;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999999;
  max-width: 350px;
}

/* Slide-in visible */
.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: full width */
@media (max-width: 640px) {
  .custom-toast {
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 80%;
    max-width: 80%;
    text-align: center;
  }
}

/*EndToast*/

/*Devis*/
.devis-product-card {
  position: relative;
  padding: 1rem;
  border-radius: 0;
  margin-bottom: 1rem;
  background: #fff;
  border-bottom: 2px solid #ec7128;
}

.remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ec7128;
}

.trash-icon {
  width: 24px;
  height: 24px;
}

.devis-product-content {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.devis-product-content .image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border: 1px solid #eee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.devis-product-content .image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.devis-product-content .info {
  flex: 1;
}

.devis-product-content .variation {
  margin: 4px 0;
}

.devis-product-content .bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 8px;
}

.qty-input {
  width: 60px;
  margin-left: 5px;
  border-radius: 6px;
  padding: 3px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.price-summary {
  text-align: right;
}

.devis-grand-total {
  margin-top: 1.5rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: right;
}

.variation-display {
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #333;
  border: 1px solid #ccc;
}

.badge-warn {
  background: #ffece3;
  color: #c95a00;
  border-color: #ec7128;
}

.devis-form {
  max-width: 100%;
  padding: 1rem;
  background: #ec7128;
  border-radius: 8px;
}
.devis-form h2 {
  margin-top: 0 !important;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.form-group .required {
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.form-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.submit-btn {
  background: #1b334e;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;

  width: 100%;
}

.submit-btn:hover {
  background: #2f4865;
}

.devis-form-response {
  margin-bottom: 1rem;
  font-weight: 500;
}

.devis-empty-box {
  width: 100%;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
}

.devis-empty-box p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.devis-empty-btn {
  display: inline-block;
  background-color: #ec7128;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.devis-empty-btn:hover {
  background-color: #cf5f1d;
}

/*End Devis*/

/*Single product*/
.product-card-wrapper .product-card {
  background-color: transparent;
  max-width: 100%;
}
.product-card-wrapper .product-price,
.product-card-wrapper .product-price .sale-price {
  font-size: 1.5rem;
}

.product-card-wrapper .product-title {
  display: none;
}
.product-card-wrapper .product-img {
  display: none;
}
/*End product*/

/*Related Products*/

.related-carousel-wrapper .swiper-button-prev,
.related-carousel-wrapper .swiper-button-next {
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  position: absolute;
}

.related-carousel-wrapper .swiper-button-prev::after,
.related-carousel-wrapper .swiper-button-next::after {
  font-size: 8px;
  font-weight: bold;
}

.related-carousel-wrapper .swiper-button-prev:hover,
.related-carousel-wrapper .swiper-button-next:hover {
  background: #142434;
}

/* Optional: space them to left/right of carousel */
.related-carousel-wrapper .swiper-button-prev {
  left: -16px;
}

.related-carousel-wrapper .swiper-button-next {
  right: -16px;
}

/*End*/

ul.mobile-main-menu,
ul.mobile-main-menu ul,
.mobile-category-menu {
  list-style: none;
  margin: 0;
  padding-left: 20px; /* For .mobile-category-menu, override below */
}

.mobile-category-menu {
  padding-left: 0; /* override padding-left: 10px */
}

.mobile-main-menu li {
  margin-bottom: 15px; /* adjust as needed */
}

.mobile-menu-item {
  position: relative;
  padding-left: 10px;
  margin: 0 0 5px 0 !important; /* combines margin-bottom 5px and margin 0 */
}

.mobile-main-menu a,
.mobile-main-menu span,
.mobile-menu-item a {
  text-decoration: none;
  color: #1b334e;
  display: inline-block;
  padding: 8px 0; /* unified padding */
  font-weight: 500;
}

.mobile-main-menu a,
.mobile-main-menu span {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px;
}

.mobile-menu-item a {
  font-size: 14px !important;
  font-weight: 600;
  text-transform: unset !important;
}

.submenu-toggle,
.has-submenu .submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 6px; /* applied margin-left only once */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Removed commented out margin-right */
}

.empty-toggle-space {
  display: inline-block;
  width: 16px; /* To align with ▶ */
}

.submenu-toggle .chevron-icon {
  width: 16px;
  height: 16px;
  stroke: #ff7700;
  transition: transform 0.3s ease;
}

.submenu-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(90deg);
}

.mobile-submenu {
  list-style: none;
  margin-left: 16px;
  padding-left: 8px;
  border-left: 1px dashed #ff7700;
  display: none;
}

/*Start*/

.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; /* ⬆️ Top spacing */
  margin-bottom: 2px; /* ⬇️ Bottom spacing */
  margin-left: 2px;
}
.catalogue-sidebar::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 6px;
}
.catalogue-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

/* Optional: spacing between content and scrollbar */
.catalogue-sidebar .filter-group {
  padding-right: 6px;
}

.catalogue-sidebar.hidden {
  transform: translateX(-120%);
  position: absolute;
  background: #f9f9f9;
  /* z-index: 10; */
  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 #ec7128;
  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: #ec7128;
  border-color: #ec7128;
}
.custom-checkbox input[type="checkbox"]:checked::after {
  content: "\2714";
  font-size: 12px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.catalogue-layout {
  padding: 1rem;
  margin: auto;
}

.toggle-filters-btn {
  display: none;
  margin-bottom: 1rem;
  align-items: center;
  font-family: inherit;
  color: #fff;
  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;
  width: 100%;
}

.catalogue-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  place-items: stretch;
}

.close-sidebar-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #ec7128;
  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: #ec7128;
  outline: none;
  transform: scale(1.1);
  background: none;
}

.btn-outline-small {
  font-size: 0.8rem;
  padding: 6px 10px;
  /* border: 1px solid #ccc; */
  background: #ec7128;
  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: #cf5e1e; /* darker than #78D5E4 */
  color: #000;
}

.bordered {
  border: 1px solid #edeef2;
  /* border: 1px solid #ec7128; */
  /* border: 1px solid #1b334e; */
}

#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 #ec7128;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  min-width: 36px;
}

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

.pagination-btn.active {
  background-color: #ec7128;
  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; /* below header */
    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;
  }
}

.custom-btn {
  background: #ec7128;
  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: #d15f1f;
  scale: 0.9;
}

/*End*/

#iti-0__item-dz,
#iti-0__item-eh {
  display: none !important;
}

.loginContainer .elementor-button.elementor-size-sm {
  width: 100%; /* full width */
  cursor: pointer; /* show hand on hover */
}
