.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
.filter-group{
  margin-bottom: 20px;
}
.close-filters-btn {
  display: none;
}
.filter-toggle-btn {
  display: none;
}
.shop-filters{
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
    border-radius:14px;
    padding: 18px;
    box-shadow:  0 6px 18px rgba(20, 20, 20, 0.06);
}
.shop-filters.show{
  padding: 15px 15px;
}
.filter-group label {
  margin-right: 15px; 
  display: inline-block; 
}

.filter-chip {
  display: inline-block;
  padding: 5px 10px;
  margin: 20px;
  background: #fff0c2;
  color: #213d6f;
  font-weight: 500;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
}
.products-topbar {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.shop-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.shop-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-card-img {
  position: relative;
}

.shop-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f3b431;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.shop-info {
  padding: 1rem;
  text-align: center;
}

.shop-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  transition: all 0.3s ease;
}


.shop-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.shop-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shop-info {
  padding: 1rem;
  text-align: center;
}



.view-toggle button {
  border: none;
  background: #f7f7f7;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.view-toggle button.active {
  background: #333;
  color: #fff;
}

.shop-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.shop-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #ffc107;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.shop-rating .rating-text {
  color: #666;
  font-size: 0.85rem;
  margin-left: 4px;
}

.shop-desc {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.shop-price {
  font-size: 1.1rem;
  color: #111;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.shop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-btn1.add-cart1 {
  background-color: #fff;
  color: #213d6f;
  border: 2px solid #996808;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
}

.shop-btn1.add-cart1:hover {
  background-color: #213d6f;
  color: #fff;
}

.shop-btn1.view-product1 {
  background-color: #213d6f;
  color: #fff;
  border: 2px solid #996808;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
}

.shop-btn1.view-product1:hover {
  background-color: #fff;
  color: #996808;
}

.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #999;
  transition: color 0.3s ease, transform 0.2s ease;
}

.wishlist-btn:hover {
  background: none;
  color: #ff4b4b;
  transform: scale(1.5);
}

.wishlist-btn.active {
  color: #ff4b4b;
  background: none;
}

.wishlist-btn.active i {
  font-weight: 900;
}

.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.products-grid.list-view .shop-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}
.products-grid.list-view .shop-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}
.products-grid.list-view .shop-rating{

    justify-content: flex-start;
  
}
.products-grid.list-view .shop-card-img {
  flex: 0 0 200px;
   width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.products-grid.list-view .shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.products-grid.list-view .shop-info {
  flex: 1;
  text-align: left;
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  text-decoration: none;
  color: #1a2956;
  border: 1px solid #1a2956;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination a.active {
  background-color: #1a2956;
  color: #fff; 
  border-color: #b3792c;
}

.pagination a:hover {
  background-color: #1a2956;
  color: #fff;
  border-color: #b3792c;
}


@media (max-width: 991px) {
  .shop-layout {
    display: block;
  }

  .filter-toggle-bar {
    display: block;
    margin-bottom: 1rem;
  }

  .filter-toggle-btn {
    display: block;
    background-color: #213d6f;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .shop-products {
    width: 100%;
  }
  .shop-filters {
    position: fixed;
    top: 200px;
    left: 0;
    width: 100%;
    /* max-width: 300px; */
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .shop-filters.show {
    transform: translateX(0);
  }
  .no-scroll {
    overflow: hidden;
  }
  .close-filters-btn {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .filter-chip {
    display: inline-block;
    padding: 5px 10px;
    margin: 20px;
    background: #fff0c2;
    color: #213d6f;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
  }
  .filter-chip i {
    margin-left: 5px;
    cursor: pointer;
  }
  .products-topbar{
    flex-direction: column;
  }
}
