/* Product Archive Styles */
.product-archive {
  padding-bottom: 40px;
}
.shop-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: 5px;
}

.header-shop-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sidebar Styles */
.sidebar {
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.nav-menu {
  position: relative;
  z-index: 1;
}

.nav-menu-items {
  position: relative;
  z-index: 2;
}

.profile-sidebar-image {
  position: absolute;
  z-index: 1;
}

.profile-sidebar-left {
  left: 0;
  bottom: 0;
}

.profile-sidebar-right {
  right: 0;
  bottom: 0;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 10px;
}

.widget ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget ul li a:hover {
  color: #6c5a6a;
}

/* Products Grid */
.hdm-archive-shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Card */
.hdm-product-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.2s ease-in-out;
}

/* Product Header */
.hdm-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-direction: row-reverse;
}

/* Discount Badge */
.hdm-discount-badge {
  background-color: #9a404d;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

/* Product Image */
.hdm-product-image {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 200px;
}

.hdm-product-image img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Product Title */
.hdm-product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
  color: #333;
  min-height: 50px;
}

.hdm-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.hdm-product-title a:hover {
  color: #9a404d;
}

/* Color Options */
.hdm-color-options {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  justify-content: center;
  align-items: center;
}

.hdm-color-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: border-color 0.2s ease-in-out;
}

.hdm-color-option:hover {
  border-color: #bbb;
}

.hdm-color-option.hdm-selected {
  border-color: #333;
}

.hdm-more-colors {
  margin-right: 6px;
  font-size: 0.8rem;
  color: #777;
}

/* Price Container */
.shop-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.shop-regular-price {
  font-size: 0.9rem;
  color: #777;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.shop-current-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
}

/* Actions */
.hdm-actions {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

/* Share Button */
.hdm-share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0.8;
}

.hdm-share-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

.hdm-share-btn svg {
  width: 30px;
  height: 30px;
  stroke: #777;
  stroke-width: 1.5;
  fill: none;
}

/* Add to Cart Button */
.hdm-add-to-cart {
  background: linear-gradient(270deg, #ead1e7, #d2afce, #6c5a6a, #6c5a6a);
  background-position: 1% 50%;
  background-size: 300% 300%;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.7sease-out !important;
  font-weight: 500;
}

.hdm-add-to-cart:hover {
  background-position: 99% 50%;
  color: white;
}

/* Mobile Filter Toggle */
.open-shop {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.open-shop svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  z-index: 1000;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, 1rem);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -1rem);
  }
}

/* Loading State */
.hdm-add-to-cart.loading {
  position: relative;
  color: transparent;
}

.hdm-add-to-cart.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Circle Border */
.circleBorder {
  border-radius: 10px;
}

/* Media Queries */
@media (max-width: 991px) {
  .hdm-archive-shop-container {
    justify-content: space-around;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .hdm-product-container {
    max-width: 280px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    max-width: 80vw;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
  }

  .sidebar.active {
    right: 0;
  }

  body.filter-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s forwards;
  }

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

  .open-shop {
    text-align: center;
    display: flex;
    position: fixed;
    /* left: 36%; */
    width: 100%;
    margin: 0;
    bottom: 0%;
    z-index: 99;
    justify-content: center;
  }
  .product-filter-container {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    max-width: 80vw;
    background: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .product-filter-container.active {
    right: 0;
  }

  body.filter-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Hide desktop filters and show mobile filters */
  .hdm-filters-section {
    display: none;
  }

  .mobile-filters-section {
    display: block;
    margin-top: 1rem;
  }

  /* Make mobile filters look better */
  .mobile-filters-section .hdm-toggle-filters {
    padding: 0.5rem 0;
  }

  .mobile-filters-section .form-check {
    margin: 0.75rem 0;
  }

  .filter-section {
    margin-bottom: 1rem;
  }

  .filter-title {
    margin-bottom: 0.75rem;
  }

  .apply-filters-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    bottom: 1rem;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hdm-archive-shop-container {
    grid-template-columns: repeat(1, minmax(280px, 1fr));
  }

  .hdm-product-container {
    max-width: 100%;
  }

  .hdm-product-title {
    font-size: 1.1rem;
  }

  .hdm-add-to-cart {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

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

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #6c5a6a;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* General Transitions */
.hdm-color-option,
.hdm-share-btn,
.hdm-product-title a {
  transition: all 0.2s ease-in-out;
}

/* Product Separator */
.product-separator {
  width: 100%;
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}

/* Mobile Filter Toggle */
.open-shop {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #6c5a6a;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  margin: 1rem auto;
}

@media (max-width: 991px) {
  .open-shop {
    text-align: center;
    display: flex;
    position: fixed;
    /* left: 36%; */
    width: 100%;
    margin: 0;
    bottom: 0%;
    z-index: 99;
    justify-content: center;
  }
  .product-filter-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .product-filter-container.active {
    right: 0;
  }

  body.filter-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

/* Custom Filters Section */

/* Toggle Filters */
.hdm-toggle-filters .form-check {
  margin: 0;
}

.hdm-toggle-filters .form-check-input {
  width: 3rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  background-color: #e9ecef;
  border-color: #e9ecef;
  cursor: pointer;
}

.hdm-toggle-filters .form-check-input:checked {
  background-color: #6c5a6a;
  border-color: #6c5a6a;
}

.hdm-toggle-filters .form-check-label {
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 5px;
}

/* Sorting Select */
.hdm-sorting .form-select {
  min-width: 200px;
  border-color: #ddd;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #fff;
}

.hdm-sorting .form-select:focus {
  border-color: #6c5a6a;
  box-shadow: 0 0 0 0.25rem rgba(108, 90, 106, 0.25);
}

.hdm-sorting .form-label {
  color: #666;
  font-size: 0.9rem;
}

/* Products Per Page */
.hdm-per-page .btn-group {
  border-radius: 10px;
  overflow: hidden;
}

.hdm-per-page .btn {
  border-color: #ddd;
  color: #666;
  font-size: 0.9rem;
  padding: 0.375rem 1rem;
  background-color: #fff;
}

.hdm-per-page .btn:hover {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #333;
}

.hdm-per-page .btn-check:checked + .btn {
  background-color: #6c5a6a;
  border-color: #6c5a6a;
  color: #fff;
}

.hdm-per-page .form-label {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hdm-filters-section .row > div {
    margin-bottom: 1rem;
  }

  .hdm-filters-section .row > div:last-child {
    margin-bottom: 0;
  }

  .hdm-per-page {
    justify-content: flex-start !important;
  }

  .hdm-sorting .form-select {
    min-width: 150px;
  }
}

@media (max-width: 576px) {
  .hdm-toggle-filters {
    flex-direction: column;
    gap: 1rem !important;
  }

  .hdm-per-page .btn {
    padding: 0.375rem 0.75rem;
  }
}
.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cg filter='url(%23filter0_i_415_850)'%3E%3Crect width='17' height='17' rx='4' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_i_415_850' x='0' y='0' width='18' height='19' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeMorphology radius='1' operator='erode' in='SourceAlpha' result='effect1_innerShadow_415_850'/%3E%3CfeOffset dx='1' dy='2'/%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3CfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3CfeBlend mode='normal' in2='shape' result='effect1_innerShadow_415_850'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
}

/* Filter Title Styles */
.filter-title {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: #6c5a6a;
  text-align: right;
  margin-bottom: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #e0e0e0;
  width: 100%;
  position: absolute;
  bottom: -10px;
  right: 0;
}

.filter-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Filter Section Styles */
.filter-section {
  margin: 35px 0;
  position: relative;
}

/* Checkbox Styles */
.filter-checkbox-group {
  margin-top: 15px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

/* Category List Item with Separator and Dot */
.category-list-item {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.category-list-item::after {
  content: "";
  display: block;
  width: 70% !important;
  height: 2px !important;
  background: #6c5a6a;
  position: absolute;
  bottom: 0;
  right: 0;
}

.category-list-item::before {
  content: "";
  width: 6px !important;
  height: 6px !important;
  background-color: #6c5a6a;
  border-radius: 50%;
  position: absolute;
  left: 30%;
  bottom: -2px;
  z-index: 1;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid #6c5a6a;
  border-radius: 5px;
  margin-left: 10px;
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

.custom-checkbox.checked {
  background-color: #6c5a6a;
}


.filter-checkbox-item label {
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

/* Price Range Slider */
.price-range-container {
  margin-top: 20px;
}

.price-slider {
  position: relative;
  padding: 40px 10px 15px;
}

.price-slider-track {
  height: 6px;
  background-color: #e1d1e0;
  position: relative;
  border-radius: 3px;
  cursor: pointer;
}

.price-slider-progress {
  position: absolute;
  top: 0;
  height: 6px;
  background-color: #6c5a6a;
  border-radius: 3px;
}

.price-slider-thumb {
  width: 22px;
  height: 22px;
  background-color: #fff;
  border: 3px solid #6c5a6a;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  margin-left: -11px;
}
.form-check-input {
  border-radius: 10px !important;
  width: 57px !important;
  height: 27px !important;
}

/* Custom Dropdown Styles */
.hdm-dropdown {
  position: relative;
  min-width: 200px;
}

.hdm-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.hdm-dropdown.active .hdm-dropdown-header {
  border-color: #6c5a6a;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.hdm-dropdown-header svg:first-child {
  width: 24px;
  height: 24px;
}

.dropdown-arrow {
  margin-right: auto;
  transition: transform 0.2s ease;
}

.hdm-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.hdm-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #6c5a6a;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.hdm-dropdown.active .hdm-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hdm-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hdm-dropdown-item:hover {
  background-color: #f5f5f5;
}

.hdm-dropdown-item.active {
  background-color: #6c5a6a;
  color: #fff;
}

/* Specific styles for the filter section */
.hdm-filters-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
}

.form-switch .form-check-input {
  width: 57px;
  height: 27px;
  border-radius: 10px;
  background-color: #e5e5e5;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-switch .form-check-input:checked {
  background-color: #6c5a6a;
}
.form-check.form-switch {
  display: flex;
  flex-direction: row-reverse;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.selected-option {
  display: none;
}

.form-check-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.form-switch .form-check-input:focus {
  background-image: none !important;
}


/* Filter Container Styles */
.product-filter-container {
  border: 1px solid #6c5a6a;
  border-radius: 40px;
  padding: 24px 20px;
  position: relative;
  top: 20px;
  height: fit-content;
  background: rgb(242, 230, 245);
  background: linear-gradient(
    184deg,
    rgba(242, 230, 245, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}
.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cg filter='url(%23filter0_i_415_850)'%3E%3Crect width='17' height='17' rx='4' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_i_415_850' x='0' y='0' width='18' height='19' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='BackgroundImageFix' result='shape'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeMorphology radius='1' operator='erode' in='SourceAlpha' result='effect1_innerShadow_415_850'/%3E%3CfeOffset dx='1' dy='2'/%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3CfeComposite in2='hardAlpha' operator='arithmetic' k2='-1' k3='1'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3CfeBlend mode='normal' in2='shape' result='effect1_innerShadow_415_850'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E");
}

/* Filter Title Styles */
.filter-title {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: #6c5a6a;
  text-align: right;
  margin-bottom: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #e0e0e0;
  width: 100%;
  position: absolute;
  bottom: -10px;
  right: 0;
}

.filter-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Filter Section Styles */
.filter-section {
  margin: 35px 0;
  position: relative;
}

/* Checkbox Styles */
.filter-checkbox-group {
  margin-top: 15px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

/* Category List Item with Separator and Dot */
.category-list-item {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}



.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid #6c5a6a;
  border-radius: 5px;
  margin-left: 10px;
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

.custom-checkbox.checked {
  background-color: #6c5a6a;
}


.filter-checkbox-item label {
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

/* Price Range Slider */
.price-range-container {
  margin-top: 20px;
}

.price-slider {
  position: relative;
  padding: 40px 10px 15px;
}

.price-slider-track {
  height: 6px;
  background-color: #e1d1e0;
  position: relative;
  border-radius: 3px;
  cursor: pointer;
}

.price-slider-progress {
  position: absolute;
  top: 0;
  height: 6px;
  background-color: #6c5a6a;
  border-radius: 3px;
}

.price-slider-thumb {
  width: 22px;
  height: 22px;
  background-color: #fff;
  border: 3px solid #6c5a6a;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  margin-left: -11px;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
}

.price-slider-thumb:hover,
.price-slider-thumb:active {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  background-color: #f7f2f6;
}

.price-slider-thumb:active {
  cursor: grabbing;
}

.price-slider-thumb:before {
  content: attr(data-value);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(108, 90, 106, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.price-slider-thumb:hover:before {
  opacity: 1;
}

.price-values {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: #6c5a6a;
  font-size: 13px;
}

.price-values span {
  position: relative;
}

.price-values span:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 5px;
  background-color: #6c5a6a;
}

/* Current price range display */
.current-price-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #6c5a6a;
  border-top: 1px dashed #d2afce;
  padding-top: 10px;
  margin-top: 10px;
}

.current-price-range .min-price,
.current-price-range .max-price {
  font-weight: bold;
  background: #f3ecf3;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.current-price-range .separator {
  color: #999;
  margin: 0 5px;
}

/* Price filter reset button */
.reset-price-filter {
  display: inline-block;
  background: #f3ecf3;
  color: #6c5a6a;
  border: 1px solid #d2afce;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
}

.reset-price-filter:hover {
  background: #6c5a6a;
  color: white;
}

/* Improve responsive layout for price slider */
@media (max-width: 767px) {
  .price-slider {
    padding: 35px 15px 5px;
  }

  .price-slider-thumb {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    top: -7px;
  }

  .price-values {
    font-size: 12px;
  }

  .current-price-range {
    font-size: 13px;
  }
}

/* Dropdown Styles */
.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.dropdown-icon {
  transition: transform 0.3s;
  transform: rotate(180deg);
}

.dropdown-icon.collapsed {
  transform: rotate(0deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown-content.expanded {
  max-height: 500px;
}

/* Brand List Styles */
.brands-list {
  margin-top: 15px;
}

.brand-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.brand-item-left {
  display: flex;
  align-items: center;
}

.brand-item-count {
  color: #888;
  font-size: 14px;
}

.show-more-btn,
.show-more-features-btn {
  display: block;
  text-align: center;
  color: #6c5a6a;
  margin: 10px auto;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

/* Feature Dropdowns */
.features-container {
  margin-top: 15px;
}

.feature-dropdown {
  background-color: #d2afce;
  border-radius: 15px;
  padding: 10px 15px;
  margin-bottom: 7px;
  position: relative;
}

.feature-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  cursor: pointer;
}

.feature-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.feature-dropdown-content.expanded {
  max-height: 500px;
  padding-top: 10px;
}

/* Apply Filter Button */
.apply-filters-btn {
  background-color: #6c5a6a;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

/* Scrollable Checkbox Groups */
.checkbox-group-scrollable {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d2afce #f5f5f5;
}

.checkbox-group-scrollable::-webkit-scrollbar {
  width: 5px;
}

.checkbox-group-scrollable::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.checkbox-group-scrollable::-webkit-scrollbar-thumb {
  background-color: #d2afce;
  border-radius: 10px;
}

/* Responsive adjustments */

.filter-hr {
  margin: 20px 0;
  color: #6c5a6a;
  position: relative;
  border: .5px solid #6c5a6a;
}
.filter-hr::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #6c5a6a;
  border-radius: 50%;
  position: absolute;
  right: -1px;
  bottom: -2px;
}
.filter-hr::after {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #6c5a6a;
  border-radius: 50%;
  position: absolute;
  left: -1px;
  bottom: -2px;
}

.price-slider-thumb.active {
  transform: scale(1.3);
  background-color: #faeff8;
  box-shadow: 0 0 10px rgba(108, 90, 106, 0.6);
  transition: all 0.1s;
}

/* Add loading style with overlay to products wrapper */
.products-wrapper.loading {
  position: relative;
  min-height: 200px;
  pointer-events: none; /* Prevent interaction while loading */
}

.products-wrapper.loading:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.products-wrapper.loading:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  width: 50px;
  height: 50px;
  border: 5px solid #d2afce;
  border-top: 5px solid #6c5a6a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile filters section is hidden by default (desktop view) */
.mobile-filters-section {
  display: none;
}

/* Mobile Menu - Only visible on mobile devices */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 85%;
  max-width: 350px;
  background: #fff;
  z-index: 2000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.mobile-menu-section {
  margin-bottom: 20px;
}

.mobile-menu-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.mobile-menu-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-categories li {
  margin-bottom: 10px;
}

.mobile-menu-categories li a {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed #eee;
}

.mobile-quick-filters .form-check {
  margin-bottom: 12px;
}

.mobile-sorting {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.mobile-price-slider {
  position: relative;
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  margin: 20px 0;
}

.mobile-price-slider-track {
  position: relative;
  height: 100%;
  width: 100%;
}

.mobile-price-slider-progress {
  position: absolute;
  height: 100%;
  background-color: #6c5a6a;
  border-radius: 3px;
  left: 20%;
  right: 20%;
}

.mobile-price-slider-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #6c5a6a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1;
}

.mobile-min-thumb {
  left: 20%;
}

.mobile-max-thumb {
  left: 80%;
}

.mobile-price-range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

.mobile-menu-footer {
  padding: 15px;
  border-top: 1px solid #eee;
}

.apply-mobile-filters {
  width: 100%;
  background-color: #6c5a6a;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-weight: 600;
}

.mobile-menu-toggle {
  position: fixed;
  bottom: 65px;
  right: 15px;
  z-index: 1000;
  background-color: #6c5a6a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-menu-toggle svg {
  margin-left: 8px;
  width: 20px;
  height: 20px;
}

/* Hide desktop sidebar and show mobile menu on mobile devices */
@media (max-width: 991px) {
  .sidebar {
    display: none !important;
  }

  .hdm-filters-section {
    display: none !important;
  }

  .product-filter-container {
    display: none !important;
  }

  .open-shop {
    display: none !important;
  }

  .hdm-archive-shop-container .col-lg-9 {
    width: 100%;
  }
}

/* Show mobile menu elements only on mobile */
.mobile-menu,
.mobile-menu-toggle,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: flex;
  }
}

.dropdown-content.expanded {
  overflow: auto;
}

/* Add to Cart Notification Styles */
.hdm-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.hdm-notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hdm-notification svg {
  width: 20px;
  height: 20px;
}

.hdm-notification.success {
  border-right: 4px solid #4CAF50;
}

.hdm-notification.success svg {
  color: #4CAF50;
}

.hdm-notification.error {
  border-right: 4px solid #f44336;
}

.hdm-notification.error svg {
  color: #f44336;
}

.hdm-notification-button {
  padding: 6px 12px;
  background: linear-gradient(270deg, #ead1e7, #d2afce, #6c5a6a, #6c5a6a);
  background-position: 1% 50%;
  background-size: 300% 300%;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.hdm-notification-button:hover {
  background-position: 99% 50%;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading State for Add to Cart Button */
.hdm-add-to-cart.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.hdm-add-to-cart.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.hdm-add-to-cart.added {
  background: #4CAF50 !important;
  border-color: #4CAF50 !important;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
}

/* Create a new class for the added state that won't block interaction */
.hdm-product-container .hdm-actions {
  position: relative;
  z-index: 5;
}

/* Make sure view product link remains clickable */
.open-shop {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

/* Add a new indicator for added products without blocking clicks */
.hdm-add-to-cart.added::before {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: white;
}

/* Adjust text alignment in added button */
.hdm-add-to-cart.added .hdm-add-to-cart-text {
  margin-right: 20px;
}

/* Add styling for error state */
.hdm-add-to-cart.error {
  background: #f44336 !important;
  border-color: #d32f2f !important;
  animation: shake 0.5s ease-in-out;
}

/* Add a shake animation for error */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Ensure error notifications are more visible */
.hdm-notification.error {
  background-color: #fdecea;
  border-color: #f44336;
  color: #d32f2f;
  z-index: 9999;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hdm-notification.error .hdm-notification-content {
  padding: 15px;
  font-weight: 500;
}

.hdm-notification.error svg {
  color: #f44336;
}

