.filter-sidebar {
  width: 18%;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 0.0625rem solid #eee;
  margin-bottom: 0.5rem;
}

.filter-header h3 {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.375rem;
  text-transform: uppercase;
}

.close-filter {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #7f7f79;
}

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

.filter-section-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.9375rem;
  text-transform: uppercase;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-section-title button {
  background: none;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: #333;
}

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

.category-item {
  padding: 0.5rem 0;
  color: #333;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Subcategory list styling */
.subcategory-list {
  list-style: none;
  margin: 0.625rem 0 0.5rem 0;
  padding: 0.75rem 0 0.5rem 1.5rem;
  border-radius: 0 0.25rem 0.25rem 0;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.subcategory-list.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subcategory-item {
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  margin: 0.125rem 0;
  color: #555;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* .subcategory-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid #0080c0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.subcategory-item:hover {
  color: #0080c0;
  background-color: rgba(0, 128, 192, 0.08);
  padding-left: 1.5rem;
} */

.subcategory-item .category-checkbox {
  display: flex;
  align-items: center;
  margin: 0;
  width: 100%;
}

.subcategory-item .category-input {
  margin-right: 0.625rem;
  cursor: pointer;
  accent-color: #0080c0;
}

.subcategory-item .category-label {
  font-weight: 400;
  transition: all 0.2s ease;
  flex: 1;
}

.subcategory-item input[type="radio"]:checked + .category-label {
  color: #0080c0;
  font-weight: 600;
}

.subcategory-item input[type="radio"]:checked ~ .category-label {
  color: #0080c0;
  font-weight: 600;
}

/* Add a subtle indicator for selected subcategory */
.subcategory-item:has(input[type="radio"]:checked) {
  background-color: #e8f4f8;
  border-left: 3px solid #0080c0;
  padding-left: 1rem;
}

.slider_container {
  position: relative;
  width: 100%;
  height: 1.25rem;
  margin-bottom: 0.625rem;
}

.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 0.1875rem;
  background-color: #ddd;
}

.slider-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.1875rem;
  background-color: #333;
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.25rem;
  background: transparent;
  pointer-events: none;
  margin: 0;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #333;
  cursor: pointer;
  pointer-events: auto;
  border: 0.125rem solid white;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
}

.slider-input::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #333;
  cursor: pointer;
  pointer-events: auto;
  border: 0.125rem solid white;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.3);
}

.price-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.price-display {
  margin-top: 0.625rem;
  font-size: 0.975rem;
  color: #666;
  margin-bottom: 0.3125rem;
}

.shop-main-sec {
  background-color: white;
  padding: 4.125rem 0;
}

.shop-main-div {
  display: flex;
  padding: 1.175rem 0 0;
  gap: 2.5%;
}

.category-item:hover {
  color: #0080c0;
}

.category-item.active {
  color: #f00;
}

.filter-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 1.25rem;
  font-size: 1rem;
  border-radius: 0.25rem;
}

.filter-btn:hover {
  background: #0080c0;
}

section.banner-section.home_banner_sec.shop_banner_sec {
  height: unset;
}

.shop_banner_sec .banner_background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-left: unset;
  padding-top: unset;
  justify-content: center;
  height: 31.5rem;
  padding-top: 0;
  position: relative;
}

.shop_banner_sec .banner_background::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: #0000007d;
  content: "";
}

.shop_banner_sec .banner_background .banner-content h1 {
  font-size: 3.25rem;
  font-weight: 400;
  text-shadow: none;
}

.shop_banner_sec .banner_background .banner-content li {
  list-style: none;
  font-size: 50px;
  font-weight: 500;
  color: #ffffff;
}

.sale-tag {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background-color: #f44336;
  color: white;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 1;
  min-width: 2.8125rem;
  text-align: center;
}

.explore-images {
  display: flex;
  gap: 0.625rem;
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 1;
}

.explore-images img {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.favorite-icon {
  cursor: pointer;
  transition: transform 0.3s ease;
  background-color: white;
  padding: 0.5rem;
  border-radius: 3.125rem;
}

.favorite-icon.heart-animation {
  transform: scale(1.2);
}

.price-container {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.products-rows .slide {
  border: unset;
  background-color: #ffffff;
  flex: 1 1 31%;
  max-width: 31%;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}

.shop-products .slide .main-image {
  max-width: unset;
  padding: unset;
  border-radius: unset;
  border-top-left-radius: 0.1875rem;
  border-top-right-radius: 0.1875rem;
  height: 19rem;
  width: 19.05rem;
}

.shop-products .slide .product-info {
  display: unset;
  padding: unset;
}

.products-top-quality.products-rows {
  width: 80%;
}

.products-rows .products-display {
  margin-top: 3.125rem;
  justify-content: unset;
  gap: 2.125rem;
}

.products-inner {
  display: flex;
  flex-direction: column;
}

.results-para {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.375rem;
  color: #a9aaa5;
  padding-left: 0.5rem;
}

.products-inner a {
  display: inline-block;
  background: #0080c0;
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 400;
  align-self: center;
  text-transform: uppercase;
}

.pagination-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.875rem 0;
}

a.pagination-link {
  display: flex;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #fff;
  margin: 0.3125rem;
}

.pagination-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

.pagination-link.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.pagination-link.disabled {
  color: #ccc;
  pointer-events: none;
  background-color: #f9f9f9;
}

.pagination-link.prev,
.pagination-link.next {
  font-weight: 600;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: #666;
  font-weight: 500;
  margin: 0.3125rem;
}

.load-more-btn {
  display: block;
  width: 12.5rem;
  margin: 1.875rem auto;
  padding: 0.75rem 1.25rem;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: #333;
}

.filter-btn {
  display: block;
  width: 100%;
  padding: 0.625rem;
  margin-top: 1.25rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #333;
}

.results-para {
  margin-bottom: 1.25rem;
  font-size: 0.975rem;
  color: #666;
}

.category-item {
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

/* Add these styles for truncating product titles */
.product-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 0.3125rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
  text-transform: uppercase;
}

/* Fix add to cart button positioning */
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem;
}
/* 
.shop-products .product-info h4 {
  min-height: 4rem;
} */

.recommended-content {
  flex: 1;
  overflow: hidden;
}

.shop-products .slide .product-info .image-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1875rem 0.8125rem 0.7rem;
}

.shop-products .slide .product-info .image-content .add-to-cart {
  width: 3.125rem;
  height: 3.125rem;
}

.shop-products .slide {
  position: relative;
}

.add-to-cart {
  cursor: pointer;
  transition: transform 0.2s;
  height: 3.75rem;
}

.add-to-cart:hover {
  transform: scale(1.1);
}

/* Style category checkboxes */
.category-item {
  padding: 0.5rem 0;
  color: #333;
  font-size: 0.875rem;
}

.category-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.category-input {
  margin-right: 0.5rem;
}

.category-label {
  flex: 1;
}

/* Remove filter button */
.filter-btn {
  display: none;
}

/* Improve slider styling */
.slider_container {
  margin-top: 0.9375rem;
}

.price-values {
  margin-top: 0.625rem;
}

/* Breadcrumb styles */
.shop-breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li {
  font-size: 0.875rem;
  color: #666;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb-list li a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-list li a:hover {
  color: #000;
}

.breadcrumb-list li.active {
  color: #000;
  font-weight: 500;
}

.products-rows .products-display .slide a {
  background: transparent;
}

.product-info p {
  font-size: 0.79rem;
}

/* Allow product titles to wrap to 2-3 lines */
.product-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  height: auto;
  /* Add space between title and price */
}

/* Fix price and title overlap */
.recommended-content {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0.1875rem 0.425rem 0rem;
  padding-left: 0.65rem;
}

.recommended-content span {
  margin-top: 0.5em;
  /* Add space above price */
}
.newsletter-section {
  background-color: #f6f6f8;
}
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: 3.6em;
  /* 3 lines × 1.2em line height */
  margin-bottom: 0.5em;
  /* Space between title and price */
  font-size: 1rem;
  word-break: break-word;
}

.product-price {
  margin-top: 0.5em;
  display: block;
}

/* Cart notification styles */
.cart-notification {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background-color: #000;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1000;
  animation:
    fadeIn 0.3s,
    fadeOut 0.3s 1.7s;
}

.cart-notification img {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1);
}

.original-price.strikethrough {
  text-decoration: line-through;
  color: #999;
  margin-right: 0.5rem;
}

.sale-price {
  color: #ff4646;
  font-weight: 600;
}

/* Quick View Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1.25rem;
  width: 90%;
  max-width: 56.25rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 0.5rem;
}

.close-modal {
  position: absolute;
  right: 1.25rem;
  top: 0.625rem;
  font-size: 1.75rem;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

.product-quick-view {
  display: flex;
  gap: 1.875rem;
  align-items: center;
}

.quick-view-image {
  width: 40%;
}

.quick-view-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

.quick-view-details {
  width: 58%;
  padding: 1.25rem 0;
}

.quick-view-details h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9375rem;
  color: #333;
}

.product-info-div {
  display: flex;
  justify-content: space-between;
  padding: 0 0.625rem;
}

.product-tags-price {
  display: flex;
  flex-direction: column;
}

.price-section {
  margin: 0.9375rem 0;
  font-size: 1.2em;
}

.price-section .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
}

.price-section .sale-price {
  font-size: 1.5rem;
  color: #ff4646;
  font-weight: 600;
}

.product-tags {
  display: flex;
  gap: 0.625rem;
  margin: 0.9375rem 0;
}

.tag {
  padding: 0.3125rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag.sale {
  background-color: #ffe8e8;
  color: #ff4646;
}

.tag.new {
  background-color: #e8f5e9;
  color: #4caf50;
}

.tag.recommended {
  background-color: #e3f2fd;
  color: #2196f3;
}

.action-buttons {
  display: flex;
  gap: 0.9375rem;
  margin-top: 1.25rem;
}

.add-to-cart-btn {
  padding: 0.75rem 1.875rem;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #333;
}

.wishlist-btn {
  padding: 0.625rem;
  background-color: #f5f5f5;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wishlist-btn:hover {
  background-color: #e5e5e5;
}

.wishlist-btn img {
  width: 1.25rem;
  height: 1.25rem;
}

.wishlist-para p {
  font-size: 0.875rem;
  text-align: justify;
  color: #7f7f79;
  margin-top: 1.375rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
}

.secondary-navbar a {
  color: #404040;
}

.secondary-navbar .sidebar-list img {
  filter: invert(1);
}

.secondary-navbar .wishlist-link img {
  filter: none;
}

.central-list a:hover {
  border-bottom: 0.125rem solid black;
  padding-bottom: 0.3125rem;
}

@media screen and (max-width: 1024px) {
  .shop-main-div {
    gap: 5%;
  }

  .filter-sidebar {
    width: 25%;
  }

  .products-rows .slide {
    flex: 1 1 30%;
  }

  .products-top-quality.products-rows {
    width: 70%;
  }
  .shop-products .slide .main-image {
    width: 100%;
  }
  .products-rows .products-display .slide a {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .products-rows .slide {
    flex: 1 1 40%;
    max-width: 50%;
  }
  .explore-images img {
    width: 1.85rem;
    height: 1.85rem;
  }
  .shop-main-div {
    flex-direction: column;
  }
  .category-checkbox {
    align-items: end;
  }
  .category-item {
    font-size: 0.975rem;
  }

  .filter-sidebar {
    width: 100%;
  }

  .products-top-quality.products-rows {
    width: 100%;
  }

  /* .shop-main-sec .favorite-icon {
    height: 1.8rem;
    width: 1.8rem;
  }
  .explore-images img:nth-child(2) {
    height: 2.9rem;
    width: 2.9rem;
  } */
  .shop-products .slide .product-info .image-content .add-to-cart {
    width: 3.625rem;
    height: 3.625rem;
  }

  .category-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.9rem;
  }

  .product-info h4 {
    font-size: 1.225rem;
  }

  .load-more-btn {
    padding: 1.15rem 1.55rem;
  }

  .quick-view-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .quick-view-image,
  .quick-view-details {
    flex: none;
  }

  .modal-content {
    width: 88%;
  }

  .shop-main-sec {
    padding: 3rem 0;
  }
}
@media screen and (max-width: 550px) {
  .products-rows .slide {
    flex: 1 1 50%;
    max-width: 82%;
  }
  .products-rows .products-display {
    justify-content: center;
  }
  .quick-view-details {
    width: 52%;
  }
  .shop-products .slide .main-image{
    height: 22rem;
  }
}
@media screen and (max-width: 425px) {
  .shop-main-sec .shop-products .slide .main-image {
    padding-bottom: unset;
  }

  .product-info p {
    font-size: 0.8rem;
  }

  .product-info h4 {
    font-size: 1.125rem;
  }

  .shop-products .slide .product-info .image-content .add-to-cart {
    width: 3.825rem;
    height: 3.825rem;
  }

  .explore-images img:nth-child(2) {
    height: 2.975rem;
    width: 3rem;
  }

  .products-rows .slide {
    flex: 1 1 50%;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .cart-notification {
    top: 0.3125rem;
    right: 0.3125rem;
    left: 0.3125rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
  }

  .cart-notification img {
    width: 1rem;
    height: 1rem;
  }
}

/* Fade-in animation for new products */
.slide.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.slide.visible {
  opacity: 1;
  transform: translateY(0);
}
