/* Layout */
.product-list-page {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #f9f9f9;
    font-family: 'Narnoor', sans-serif;
  }
  .products {
    flex: 1;
    background-color: white;
    border-radius: 10px;
  }
  .products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 24px;
  }
  
  /* Filters */
  .filters {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
  }
  .filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .filter__icon {
    width: 20px;
    height: 15px;
  }
  .filters__clear {
    font-family: 'Narnoor', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-grey-dark);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
  }
  .filters__clear:hover {
    background: var(--color-grey-light);
    color: var(--color-black);
  }
  .filters__title {
    font-family: 'Narnoor', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
  }
  .filters__divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px 0;
  }
  .filters__subheading {
    font-family: 'Narnoor', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0;
  }
  
  /* Details/Summary for collapsible */
  .filter-group {
    font-family: 'Narnoor', sans-serif;
    margin-bottom: 12px;
  }
  .filter-group summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
  }
  .filter-group summary::-webkit-details-marker {
    display: none;
  }
  .filter-group summary::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s;
    font-size: 12px;
    color: #888;
  }
  .filter-group[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .filter-group__item {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .filter-group__item label {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Prize range */
  .prize-range {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Narnoor', sans-serif;
    margin-bottom: 12px;
  }
  .prize-range select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
  }
  .prize-range span {
    font-size: 14px;
    color: #444;
  }
  
  /* Rating Us */
  .rating-us{
    display: flex;
    flex-direction: column;
  }

  .rating-us .star {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
  }
  
  /* solid gold fill */
  .rating-us .star.filled {
    color: gold;
    -webkit-text-stroke: 0;
    color: gold;
  }
  
  /* hollow star: transparent fill + gold border */
  .rating-us .star.outlined {
    color: transparent;
    -webkit-text-stroke: 1px gold;
    color: gold;
  }
  



  /* Product Card */
  .product-list-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .product-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); 
  }
  .product-card__image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .product-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .product-card__name {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
  }
  .product-card__desc {
    font-size: 14px;
    color: #666;
    margin: 0;
  }
  .product-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    gap: 12px;
  }
  .product-card__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }
  .product-card__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
  }
  .product-card__price {
    font-size: 18px;
    font-weight: 600;
    color: black;
  }
  .product-card__old-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
  }
  .product-card__percent {
    font-size: 17px;
    font-weight: 600;
    color: #2ebb77;
  }
  .btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    align-self: stretch;
    background: #f1f1f1;
    border: none;
    border-radius: 50%;
    padding: 1.5rem;
    transition: background 0.2s;
  }
  .btn-cart__icon {
    width: 20px;
    height: 20px;
    filter: invert(30%);
    transition: filter 0.2s;
  }
  .btn-cart:hover {
    background: #2ebb77;
  }
  .btn-cart:hover .btn-cart__icon {
    filter: invert(100%);
  }

  .btn-cart-added {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    align-self: stretch;
    background: #2ebb77;
    border: none;
    border-radius: 50%;
    padding: 1.5rem;
    transition: background 0.2s;
  }
  .btn-cart-added__icon {
    width: 20px;
    height: 20px;
    filter: invert(100%);
    transition: filter 0.2s;
  }

  .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .product-link:hover {
    text-decoration: none;
    color: inherit;
  }
  
  .filters__apply {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-family: 'Narnoor', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition);
  }
  
  .filters__apply:hover {
    background: var(--color-grey-dark);
  }