@font-face {
  font-family: "IranYekan";
  src: url("../../fonts/iranyekanwebregular.b95439c1.b95439c1.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "IranYekan", sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
.fw-black {
  font-weight: 900;
}

/* ===== PRIMARY COLOR UTILITY CLASSES ===== */
.txt-primary {
  color: #5900ff !important;
}
.bg-primary {
  background-color: #5900ff !important;
}
.btn-primary {
  background-color: #5900ff !important;
  border-color: #5900ff !important;
  color: #fff !important;
}
.btn-primary:hover {
  background-color: #4a00d4 !important;
  border-color: #4a00d4 !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: #5900ff !important;
  border-color: #5900ff !important;
}
.btn-outline-primary:hover {
  background-color: #5900ff !important;
  border-color: #5900ff !important;
  color: #fff !important;
}
.bg-primary-subtle {
  background-color: #f0e8ff !important;
}
.text-primary-emphasis {
  color: #5900ff !important;
}

/* ===== STICKY FOOTER ===== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
.site-footer {
  margin-top: auto !important;
  flex-shrink: 0;
  background: #212529;
  color: #adb5bd;
  border-radius: 40px 40px 0 0;
}

/* ===== HEADER & CUSTOM BUTTONS ===== */
.custom-header-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease-in-out;
}
.custom-header-btn:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}
.custom-header-btn.dropdown-toggle::after {
  display: none !important;
}

/* ===== DROPDOWNS ===== */
.dropdown-menu .dropdown-item:hover {
  transition: 0.1s;
  color: #5900ff;
  transform: translateX(-2px);
  background: none;
}
.custom-user-dropdown {
  border-radius: 12px;
  border: 1px solid #efefef;
  padding: 0.5rem 0;
  min-width: 230px;
  text-align: right;
}
.custom-user-dropdown .dropdown-item {
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  color: #4a5568;
  font-size: 0.92rem;
  transition: 0.15s;
}
.custom-user-dropdown .dropdown-item i {
  font-size: 1.05rem;
  color: #718096;
}
.custom-user-dropdown .dropdown-item:hover {
  color: #5900ff;
  transform: translateX(-2px);
  background: none !important;
  transition: 0.2s;
}
.custom-user-dropdown .dropdown-item.text-danger i {
  color: #dc3545 !important;
}
.dropdown-item:hover {
  color: #5900ff;
  transform: translateX(-2px);
}

/* ===== MEGA MENU (desktop) ===== */
@media (min-width: 992px) {
  .nav-item.dropdown {
    position: static;
  }
  .nav-item.dropdown .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    border-color: #f1f1f1;
    padding: 1.5rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
  }
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ===== MOBILE ACCORDION ===== */
.accordion-button {
  background-color: transparent !important;
  color: #212529 !important;
}
.accordion-button:not(.collapsed) {
  background-color: #e9ecef !important;
  color: #5900ff !important;
}

/* ===== SEARCH RESULTS ===== */
.search-results-container {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
  padding: 12px 0;
  border: 1px solid #e9ecef;
}
.search-results-container .result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f1f1;
}
.search-results-container .result-item:last-child {
  border-bottom: none;
}
.search-results-container .result-item:hover {
  background: #f8f9fa;
}
.search-results-container .result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.search-results-container .result-item .info {
  flex: 1;
}
.search-results-container .result-item .info .name {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}
.search-results-container .result-item .info .price {
  font-size: 13px;
  color: #5900ff;
}
.search-results-container .empty-state {
  padding: 30px 16px;
  text-align: center;
  color: #6c757d;
}
#mobileSearchResults {
  position: static;
  box-shadow: none;
  border: none;
  max-height: 300px;
}

/* ===== PRODUCT CARDS ===== */
.products {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.15);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
}
.products:hover {
  transform: translateY(-5px);
}
.pr-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.4s ease;
}
.pr-text {
  background-color: #fff;
  text-align: center;
  padding: 22px 15px;
  border-radius: 0 0 12px 12px;
}
.pr-text p {
  font-size: 18px;
  margin: 8px 0 0 0;
  color: #333;
  font-weight: 600;
}
.price {
  font-weight: bold;
  font-size: 17px;
}
.rating {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 20px;
  display: flex;
  gap: 2px;
  align-items: center;
  z-index: 5;
}
.rating i {
  color: gold;
  font-size: 12px;
}
.tags .nav-btn {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  transition: all 0.35s ease-in-out;
  z-index: 10;
  border-radius: 8px;
}
.tags .nav-btn a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  cursor: pointer;
}
.tags .nav-btn.bg-primary a {
  background-color: #5900ff;
  color: #fff;
}
.products:hover .tags .nav-btn {
  bottom: 15px;
}
.share-pr {
  position: absolute;
  top: 15px;
  right: -50px;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: all 0.35s ease-in-out;
  z-index: 10;
}
.share-pr li a {
  background-color: #fff;
  color: #5900ff;
  display: flex;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.share-pr li a:hover {
  background-color: #5900ff;
  color: #fff;
}
.products:hover .share-pr {
  right: 15px;
}
.products:hover .pr-img img {
  transform: scale(1.08);
}
.products:hover {
  transform: translateY(10px);
}

/* ===== SWIPER OVERRIDES ===== */
.swiper {
  width: 100%;
  overflow: hidden;
}
.swiper-slide {
  width: auto !important;
}
.swiper-btn {
  display: flex;
}
.swiper-prev,
.swiper-next,
.swiper-prev-1,
.swiper-next-1,
.swiper-prev-classic,
.swiper-next-classic,
.swiper-prev-3,
.swiper-next-3 {
  padding: 0 30px;
  margin-top: 3px;
}
.swiper-prev i,
.swiper-next i,
.swiper-prev-1 i,
.swiper-next-1 i,
.swiper-prev-classic i,
.swiper-next-classic i,
.swiper-prev-3 i,
.swiper-next-3 i {
  background-color: #5900ff;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
}
.swiper-next i:hover,
.swiper-prev i:hover,
.swiper-next-1 i:hover,
.swiper-prev-1 i:hover,
.swiper-next-classic i:hover,
.swiper-prev-classic i:hover,
.swiper-next-3 i:hover,
.swiper-prev-3 i:hover {
  color: black;
  cursor: pointer;
}

/* ===== CATEGORY PAGE ===== */
.category-header-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 20px;
  border-radius: 0 0 20px 20px;
}
.category-page-content {
  flex: 1;
  padding: 20px 0;
}

.filter-sidebar-widget {
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}
.widget-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}
.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #5900ff;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-list li {
  margin-bottom: 12px;
}
.filter-list li a {
  color: #555;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  transition: color 0.2s ease;
}
.filter-list li a:hover {
  color: #5900ff;
}

.sorting-navbar-filter {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}
.sort-options-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.sort-label {
  font-weight: 700;
  font-size: 15px;
  color: #333;
}
.sort-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.sort-btn:hover {
  color: #5900ff;
  background-color: #f0e8ff;
}
.sort-btn.active {
  color: #fff;
  background-color: #5900ff;
  font-weight: 700;
}

/* ===== FOOTER ===== */
.footer-about {
  font-size: 13.5px;
  line-height: 2;
  color: #868e96;
  max-width: 340px;
}
.footer-social {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
}
.footer-social li a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #343a40;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social li a:hover {
  background: #5900ff;
  color: #212529;
}
.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 15px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #adb5bd;
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #5900ff;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}
.footer-contact li i {
  color: #5900ff;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid #343a40;
  padding: 18px 0;
  font-size: 13px;
}
.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #868e96;
}
.payment-icons i {
  color: #5900ff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .filter-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .filter-remove {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .products {
    max-width: 100%;
    margin: 0 0 20px;
  }
  .pr-text p {
    font-size: 14px;
  }
  .price {
    font-size: 14px;
  }
}
/* 
@media (max-width: 576px) {
  .products {
    display: flex !important;
    flex-direction: row !important;
    max-width: 100% !important;
    min-height: 120px;
    margin: 0 0 12px 0 !important;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.15);
    position: relative;
    overflow: hidden;
    transform: none !important;
    transition: none !important;
  }
  .products:hover {
    transform: none !important;
  }
  .pr-img {
    width: 100px !important;
    min-width: 100px !important;
    height: 100px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    order: 2 !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  .pr-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    transform: none !important;
    transition: none !important;
  }
  .products:hover .pr-img img {
    transform: none !important;
  }
  .pr-text {
    flex: 1 !important;
    padding: 4px 10px 4px 0 !important;
    text-align: right !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    order: 1 !important;
    background: transparent !important;
    min-height: 100px;
  }
  .pr-text p {
    font-size: 13px !important;
    margin: 0 0 2px 0 !important;
    font-weight: 600;
    color: #333;
    order: 1 !important;
  }
  .price {
    font-size: 14px !important;
    font-weight: bold;
    order: 2 !important;
    margin: 2px 0 !important;
  }
  .rating {
    display: none !important;
  }
  .share-pr {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .share-pr li a {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    margin-bottom: 0 !important;
  }
  .share-pr li a:hover {
    background: #5900ff !important;
    color: #fff !important;
  }
  .products .share-pr {
    right: 6px !important;
    top: 6px !important;
  }
  .products:hover .share-pr {
    right: 6px !important;
  }
  .tags .nav-btn {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 4px !important;
    order: 3 !important;
    border-radius: 6px !important;
    bottom: auto !important;
    left: auto !important;
  }
  .tags .nav-btn a {
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    background-color: #5900ff !important;
    color: #fff !important;
    font-weight: bold;
    text-align: center;
    display: block;
    box-shadow: none !important;
  }
  .products .tags .nav-btn {
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }
  .products:hover .tags .nav-btn {
    bottom: auto !important;
  }
  .products:hover {
    transform: none !important;
  }
  .products:hover .pr-img img {
    transform: none !important;
  }
  .products * {
    transition: none !important;
  }
  .product-wrapper-item {
    padding: 0 !important;
  }
  #products-grid-container {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 0.5rem !important;
  }
  .product-wrapper-item {
    padding: 0 4px !important;
  }
} */
.accordion-button[data-bs-target="#flush-collapseFour"]::after {
  display: none !important;
}
