/* ===================================
   KOVIA PRODUCT LIST
=================================== */

.coffee-shop-page {
  background: #FCFBF8;
  padding: 40px 0;
  direction: rtl;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.shop-header span {
  color: #b67a3c;
  font-weight: 700;
}

.shop-header h1 {
  margin: 8px 0;
  color: #3a2416;
  font-size: 32px;
}

.shop-header p {
  color: #777;
}

.mobile-filter {
  display: none;
  background: #7a4b2a;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 12px 20px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* ======================
 FILTER
====================== */
.shop-filter {
  background: #fff;
  border: 1px solid #eee2d5;
  border-radius: 24px;
  padding: 20px;
  height: max-content;
  position: sticky;
  top: 20px;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filter-title h3 {
  color: #3a2416;
}

.filter-title button {
  background: none;
  border: 0;
  font-size: 25px;
  display: none;
}

.filter-group {
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}

.filter-toggle {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4a2d1b;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
  line-height: 1.2;
}

.filter-content {
  display: none;
  padding-top: 3px;
}

.filter-content label {
  display: flex;
  gap: 6px;
  margin: 3px 0;
  cursor: pointer;
  color: #666;
  line-height: 1.2;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7a4b2a;
  margin-bottom: 6px;
}

.apply-filter {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 0;
  border-radius: 18px;
  background: #7a4b2a;
  color: #fff;
  cursor: pointer;
}

.stock-check {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ======================
 TOOLBAR
====================== */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 18px 22px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.products-toolbar h2 {
  color: #4a2d1b;
  font-size: 18px;
}

.sort-box select {
  border: 1px solid #e6d5c3;
  border-radius: 18px;
  padding: 12px 25px;
  color: #4a2d1b;
  background: white;
  outline: none;
}

/* ======================
 PRODUCTS
====================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.coffee-product-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #eee2d5;
  transition: 0.3s;
}

.coffee-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(90, 50, 20, 0.12);
}

.product-image {
  display: block;
  position: relative;
  height: 280px;
  background: #ffffff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.stock-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #b33a3a;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}

.product-content {
  padding: 20px;
}

.brand {
  color: #b67a3c;
  font-size: 13px;
  font-weight: bold;
}

.product-content h3 {
  color: #3a2416;
  font-size: 18px;
  margin: 12px 0;
}

.coffee-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.coffee-info span {
  background: #f5eee5;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #6b4225;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.product-bottom strong {
  color: #7a4b2a;
  font-size: 20px;
}

.add-cart {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: #7a4b2a;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

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

/* pagination */
.pagination {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4eadf;
  color: #5a361e;
  text-decoration: none;
}

.pagination .active {
  background: #7a4b2a;
  color: white;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
}

/* ======================
 MOBILE
====================== */
@media (max-width: 992px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filter {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100%;
    width: 300px;
    z-index: 999;
    transition: 0.3s;
    overflow: auto;
  }

  .shop-filter.active {
    right: 0;
  }

  .filter-title button {
    display: block;
  }

  .mobile-filter {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .coffee-product-card {
    border-radius: 16px;
  }

  .product-image {
    height: 95px;
  }

  .product-image img {
    padding: 8px;
  }

  .stock-badge {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .product-content {
    padding: 8px;
  }

  .brand {
    font-size: 10px;
  }

  .product-content h3 {
    font-size: 12px;
    margin: 6px 0;
    line-height: 1.5;
  }

  .coffee-info {
    gap: 4px;
  }

  .coffee-info span {
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 9px;
  }

  .product-bottom {
    margin-top: 8px;
  }

  .product-bottom strong {
    font-size: 12px;
  }

  .add-cart {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .products-toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .sort-box select {
    width: 100%;
  }
}

/* در product-list.css اضافه کنید */
.brands-section {
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.brand-card {
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s;
  padding: 15px;
  border-radius: 8px;
  background: #f9f9f9;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.brand-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.brand-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}


/* آکاردئون */
.accordion-filter .filter-content { display: none; }
.accordion-filter.open .filter-content { display: block; }
.accordion-filter.open .filter-toggle i { transform: rotate(180deg); }
.filter-toggle i { transition: transform .25s; }

/* اورلی */
.filter-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 998;
}
.filter-overlay.show { opacity: 1; visibility: visible; }

/* کشوی موبایل */
@media (max-width: 991px) {
  .shop-filter {
    position: fixed; top: 0; right: -100%; width: 320px; max-width: 85vw;
    height: 100dvh; overflow-y: auto; background: #fff;
    z-index: 999; transition: right .3s ease; padding: 16px;
  }
  .shop-filter.open { right: 0; }
}
@media (min-width: 992px) {
  #closeFilter, .mobile-filter { display: none; }
}
