/* Shop Page Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f50057;
  --badge-red: #ff5252;
  --badge-blue: #2196f3;
  --badge-green: #4caf50;
  --text-dark: #212121;
  --text-light: #666666;
  --border-light: #eeeeee;
  --bg-light: #fafafa;
}

.shop-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary-pink);
}

/* Shop Header */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
  margin-top:40px;
}

.shop-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 15px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background-color: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  min-width: 150px;
}

.filter-select:hover {
  border-color: var(--primary-pink);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.item-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.3px;
}

.product-badge.new {
  background-color: var(--badge-red);
  color: white;
}

.product-badge.premium {
  background-color: var(--badge-blue);
  color: white;
}

.product-badge.best\ seller {
  background-color: var(--badge-green);
  color: white;
}

.product-badge.trending {
  background-color: var(--primary-pink);
  color: white;
}

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.wishlist-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background-color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-pink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
  padding: 0;
}

.wishlist-btn:hover {
  background-color: var(--primary-pink);
  color: white;
}

.wishlist-btn svg {
  width: 20px;
  height: 20px;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: calc(100% - 20px);
  margin: 10px;
  padding: 10px 16px;
  background-color: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.add-to-cart-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.add-to-cart-btn:active {
  transform: scale(0.98);
}

/* Product Info */
.product-info {
  padding: 12px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  min-height: 26px;
}

/* Pricing */
.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.original-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

.current-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.discount-badge {
  background-color: var(--badge-green);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ffb800;
  font-size: 11px;
}

.star.filled {
  color: #ffb800;
}

.review-count {
  color: var(--text-light);
  font-size: 11px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s;
  cursor: pointer;
}

.pagination-link:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.pagination-link.active {
  background-color: var(--primary-pink);
  color: white;
  border-color: var(--primary-pink);
}

.pagination-link.prev,
.pagination-link.next {
  min-width: auto;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .shop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    flex: 1;
    min-width: 120px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .add-to-cart-btn {
    width: calc(100% - 16px);
    margin: 8px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .product-image {
    height: 160px;
  }

  .shop-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .shop-container {
    padding: 15px 10px;
  }

  .filter-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

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

  .product-info {
    padding: 10px 8px;
    gap: 6px;
  }

  .product-name {
    font-size: 12px;
  }

  .shop-title {
    font-size: 16px;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  position: relative;
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
}

.product-price {
  color: #ff0077;
  font-weight: bold;
}

.add-to-cart-btn {
  margin-top: 10px;
  width: 100%;
  background-color: #d81b60;
  color: white;
  padding: 8px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Remove underline and make text black */
.product-link {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.product-link:hover {
  color: #d81b60; /* optional hover effect */
}

/* Product Image styling (already correct but kept for clarity) */
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}


/*search bar,filter.. */
/* ✅ SEARCH & FILTER BAR – CLEAN, MODERN LAYOUT */
.shop-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top:40px;
}

.shop-controls input[type="text"],
.shop-controls select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  min-width: 180px;
  outline: none;
  transition: all 0.3s;
}

.shop-controls input[type="text"]:focus,
.shop-controls select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 4px rgba(233, 30, 99, 0.3);
}

/* ✅ Apply & Clear Buttons */
.filter-apply-btn {
  padding: 8px 18px;
  border: none;
  background-color: var(--primary-pink);
  color: white;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.filter-apply-btn:hover {
  background-color: var(--primary-dark);
}

.filter-clear-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
.filter-clear-btn:hover {
  color: var(--primary-pink);
}

/* ✅ Responsive Fix – stack on small screens */
@media (max-width: 768px) {
  .shop-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .shop-controls input,
  .shop-controls select {
    width: 100%;
  }
}

/* ✅ Align filters to right side, number on left */
.shop-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.product-count {
  font-size: 14px;
  color: var(--text-dark);
}

/* ✅ Filter section form aligned to right */
.filter-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ✅ Make input & select neat */
.filter-form input,
.filter-form select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

/* ✅ Apply Button */
.filter-apply-btn {
  padding: 8px 18px;
  background-color: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.filter-apply-btn:hover {
  background-color: var(--primary-dark);
}

/* ✅ Clear Button */
.filter-clear-btn {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
  border:solid 1px;
}

.filter-clear-btn:hover {
  color: white;
  background-color: gray;
}

/* ✅ Responsive - stack on mobile */
@media (max-width: 768px) {
  .shop-controls-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .filter-form {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.wishlist-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
}
.wishlist-icon i {
  color: #666;
  font-size: 16px;
}
.wishlist-icon:hover i {
  color: #e91e63;
}

.out-of-stock {
  color: red;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
}

.add-to-cart-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.rating-badge {
  position: absolute;
  bottom: 75px;     /* Move above Add to Cart button */
  right: 15px;
  background-color: var(--badge-green);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 600;
  z-index: 5;
  margin-bottom: 50px;
}

/* ===============================
   WISHLIST HEART COLOR
================================ */

.wishlist-icon i {
  color: #999;          
  transition: 0.2s;
}

.wishlist-icon.active i {
  color: #e91e63;       
}

/* DEFAULT HEART (NOT WISHLISTED) */
.wishlist-icon i {
  font-family: "Font Awesome 5 Free";
  font-weight: 400; 
  color: #ccc;
  transition: all 0.3s ease;
}

/* ACTIVE HEART (WISHLISTED) */
.wishlist-icon.active i {
  font-weight: 900; 
  color: #e91e63;   
}
/* FIX FONT AWESOME HEART TILT (NO ROTATION) */
.wishlist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-icon i {
  line-height: 1;
  transform: translateY(0);
}

/* MICRO ALIGNMENT FIX FOR SOLID HEART */
.wishlist-icon.active i {
  transform: translateX(-0.5px);
}

/* OFFER BADGE */
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
}

/* OFFER TEXT (Product Details Page) */
.offer-text {
  margin: 6px 0;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
}

/* =====================================
   UNIVERSAL PAGINATION (SHOP + WISHLIST)
===================================== */

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s ease;
  background: #fff;
}

/* Hover */
.pagination-link:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

/* Active Page */
.pagination-link.current {
  background-color: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  font-weight: 600;
}

/* Disabled */
.pagination-link.disabled {
  color: #bbb;
  border-color: #eee;
  cursor: not-allowed;
  background: #fafafa;
}

/* Prev & Next buttons */
.pagination-link.prev,
.pagination-link.next {
  border-radius: 6px;
  font-size: 12px;
  padding: 0 14px;
}

.weight-popup {
  position: absolute;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.weight-popup button {
  margin: 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.weight-popup button:hover {
  background: #f16ead;
  color: white;
}
.empty-wishlist {
  grid-column: 1 / -1;   /* take full width of grid */
  text-align: center;
  font-size: 18px;
  color: #888;
  padding: 60px 0;
}