:root {
  --primary-color: #e7ab3c;
  --secondary-color: #2c3e50;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --light-gray: #f8f9fa;
  --border-color: #e1e1e1;
}

.dropdown-menu {
  left: auto;
}

hr {
  margin: 5px 0;
  border: 1px solid var(--primary-color);
}

.gb {
  font-size: 20px;
  color: var(--secondary-color);
  letter-spacing: 2px;
  text-decoration: none;
}

.gb:hover {
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  text-decoration: none;
}

/* Product Grid Fix */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Product Card */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Offer Label */
.offer-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger-color);
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 5;
}

/* Info Wrap */
.info-wrap {
  padding: 15px;
  flex: 1;
}

.info-wrap .title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.info-wrap .vendor-info {
  font-size: 12px;
  color: #777;
  margin-bottom: 5px;
}

.availability {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Price & Pack */
.bottom-wrap-payment {
  padding: 10px 15px;
  border-top: 1px solid var(--border-color);
  background-color: var(--light-gray);
}

.price-new {
  font-weight: 700;
  font-size: 16px;
  color: var(--success-color);
}

.price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
  margin-right: 5px;
}

/* Buttons */
.bottom-wrap {
  border-top: 1px solid var(--border-color);
  padding: 10px;
  text-align: center;
}

.sbtn,
.vbtn {
  display: inline-block;
  padding: 5px 5px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.sbtn {
  background: var(--success-color);
  color: #fff;
}

.sbtn:hover {
  background: #219150;
  color: #fff;
  text-decoration: none;
}

.vbtn {
  background: #f1f1f1;
  color: #333;
}

.vbtn:hover {
  background: #ddd;
  color: #333;
  text-decoration: none;
}

.card {
  width: 100%;
}

.availability {
  font-size: 13px;
  margin-top: 5px;
}

/* Category styles */
.catu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
}

.catu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.catu li a:hover,
.catu li a.active {
  background: var(--light-gray);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.outofStockBtn {
  cursor: not-allowed;
  background-color: #f9f9f9;
  color: var(--danger-color);
  font-weight: bold;
  padding: 12px;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.notify-btn {
  background-color: #f9f9f9;
  color: var(--danger-color);
  font-weight: bold;
  padding: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  border: 1px solid var(--danger-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  margin-top: 8px;
}

.notify-btn:hover {
  background-color: #ffecec;
  opacity: 1;
}

/* ❤️ Wishlist icon styles */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wishlist-btn i {
  color: #999;
  font-size: 18px;
}

.wishlist-btn.active i {
  color: red;
}

.wishlist-btn:hover {
  background: rgba(255, 0, 0, 0.8);
}

.wishlist-btn:hover i {
  color: white;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #777;
}

.empty-state i {
  font-size: 60px;
  margin-bottom: 20px;
  color: #ddd;
}

.empty-state h3 {
  margin-bottom: 15px;
  color: #555;
}

/* Filter styles */
.filter-section {
  /* background: var(--light-gray); */
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-section label {
  font-weight: 600;
  color: var(--secondary-color);
}

.pin-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 4px;
  font-size: 13px;
  border-left: 3px solid #2196f3;
}

/* Pagination */
.pagination > li > a {
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
}

.pagination > li.active > a {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination > li > a:hover {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

/* Modal improvements */
.modal-header {
  background-color: var(--secondary-color);
  color: white;
}

.modal-footer .btn {
  min-width: 100px;
}

/* 1187 */
@media (max-width: 1206px) {
  .sbtn,
  .vbtn {
    padding: 6px 5px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .filter-section .row > div {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .gb {
    font-size: 16px;
  }
}
