/* ===============================
   🪞 MIRROR SHOP LAYOUT
================================ */

.shop-grid {
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

/* ===============================
   🪞 FILTER PANEL (GLASS)
================================ */

.filters {
  position: sticky;
  top: 90px;

  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 18px 40px rgba(0,0,0,0.08);
}

/* Heading */
.filters h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 22px;
  position: relative;
}

.filters h3::after {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #111, #888);
  display: block;
  margin-top: 10px;
}

/* ===============================
   FILTER FIELDS
================================ */

.filter-row {
  margin-bottom: 18px;
}

.filter-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #444;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Search */
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.search-field i {
  color: #666 !important;
  font-size: 15px;
}

.search-field input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 14px;
}

/* Dropdown & Range */
.filters select,
.filters input[type="range"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* Range thumb */
.filters input[type="range"] {
  accent-color: #111;
}

/* ===============================
   RESET BUTTON (CHROME)
================================ */

#clearFilters {
  margin-top: 10px;
  width: 100%;
  padding: 13px 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: linear-gradient(
    135deg,
    #111,
    #2c2c2c,
    #111
  );

  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;

  transition: all 0.3s ease;
}

#clearFilters:hover {
  background: #000;
  transform: translateY(-2px);
}

/* ===============================
   🪞 MIRROR SHOP LAYOUT
================================ */

.shop-grid {
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

/* ===============================
   🪞 FILTER PANEL (GLASS)
================================ */

.filters {
  position: sticky;
  top: 90px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 18px 40px rgba(0,0,0,0.08);
}

/* ===============================
   PRODUCT GRID – FIXED 4
================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Tablet */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

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

/* ===============================
   PRODUCT CARD
================================ */

.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  position: relative;
  transition: all .25s ease;
}

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

/* ===============================
   IMAGE AREA
================================ */

.img-wrap {
  height: 200px;
  background: linear-gradient(180deg,#fafafa,#f1f1f1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ===============================
   BADGES
================================ */

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
}

/* ===============================
   WISHLIST
================================ */

.wish {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  cursor: pointer;
}

.wish i {
  font-size: 15px;
  color: #aaa;
}

.wish.active i {
  color: #e91e63;
}

/* ===============================
   CARD CONTENT
================================ */

.prod-name {
  padding: 12px 14px 6px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  min-height: 38px;
}

.price-row {
  padding: 0 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.mrp {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
}

.rating {
  font-size: 13px;
  color: #f5a623;
  font-weight: 600;
}

/* ===============================
   ACTION BUTTONS – ALWAYS VISIBLE
================================ */

.actions {
  display: flex;
  gap: 10px;
  padding: 12px 14px 16px;
}

.actions button {
  flex: 1;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
}

/* Add to cart */
.add-cart {
  background: #fff;
  border: 1px solid #111;
}

.add-cart:hover {
  background: #111;
  color: #fff;
}

/* Buy now */
.buy-now {
  background: #111;
  color: #fff;
  border: none;
}

.buy-now:hover {
  background: #000;
}

/* =================================
   📱 MOBILE OPTIMIZATION
================================= */
@media (max-width: 768px) {

  /* ---- GRID FIX ---- */
  .shop-grid {
    margin: 20px auto;
    padding: 0 14px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* ---- FILTER PANEL ---- */
  .filters {
    position: relative;       /* ❌ sticky off */
    top: auto;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
  }

  .filters h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .filter-row {
    margin-bottom: 14px;
  }

  .filters select,
  .filters input[type="range"] {
    padding: 10px 12px;
    border-radius: 12px;
  }

  #clearFilters {
    padding: 11px 0;
    font-size: 12px;
  }

  /* ---- PRODUCT GRID ---- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ---- CARD ---- */
  .card {
    border-radius: 12px;
  }

  .img-wrap {
    height: 150px;
  }

  .img-wrap img {
    max-width: 85%;
    max-height: 85%;
  }

  /* ---- BADGES ---- */
  .badge-discount {
    font-size: 11px;
    padding: 4px 7px;
  }

  /* ---- WISHLIST ---- */
  .wish {
    width: 30px;
    height: 30px;
  }

  .wish i {
    font-size: 14px;
  }

  /* ---- TEXT ---- */
  .prod-name {
    font-size: 13px;
    padding: 10px 12px 4px;
    min-height: 34px;
  }

  .price-row {
    padding: 0 12px 8px;
  }

  .price {
    font-size: 15px;
  }

  .mrp {
    font-size: 11px;
  }

  .rating {
    font-size: 12px;
  }

  /* ---- ACTION BUTTONS ---- */
  .actions {
    padding: 10px 12px 14px;
    gap: 8px;
  }

  .actions button {
    padding: 8px 0;
    font-size: 12px;
    border-radius: 7px;
  }
}
