*,
*::before,
*::after{
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}
/* Breadcrumb navigation  */
 .breadcrumb {
  font-size: 14px;
  color: #666;
  margin: 20px 0;
}

.breadcrumb a {
  text-decoration: none;
  color: #333;
}

.breadcrumb span {
  font-weight: 500;
}

/* Page heading */
.page-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: #3b1452;
  margin-top: 35px;
}



.top-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.filter-btn,
.sort-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
     
    max-width: 412px;
}

.filter-btn:hover,
.sort-btn:hover {
    background: #f5f5f5;
}

/* =========================
   Overlay
   ========================= */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 90;
}
.overlay.active {
    display: block;
}

/* =========================
   Sort Panel (Bottom Popup)
   ========================= */
.sort-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    transition: bottom 0.3s ease;
}

.sort-panel.active {
    bottom: 0;
}

.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-body label {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    cursor: pointer;
}
#closeSort{
    border: none;
    background: none;
}
/* =========================
   Filter Panel (Left Slide)
   ========================= */
.filter-panel-left {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}

.filter-panel-left.active {
    left: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.filter-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Left menu */
.filter-menu {
    width: 40%;
    border-right: 1px solid #eee;
    background: #fafafa;
}

.menu-item {
    padding: 15px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}
.menu-item:hover {
    background: #f0f0f0;
}
.menu-item.active {
    background: #fff;
    font-weight: 600;
}

/* Right content */
.filter-content {
    width: 60%;
    padding: 15px;
}

.filter-section-right {
    display: none;
}
.filter-section-right.active {
    display: block;
}

.filter-section-right label {
    display: block;
    padding: 8px 0;
    font-size: 14px;
}

.filter-section-right input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Footer */
.filter-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.apply-btn {
    background: #ff3e6c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.apply-btn:hover {
    background: #e7335c;
}

#closeFilterBtn {
    background: #eee;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

/* Product list grid */

.product-list-grid{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 12px 12px;
  box-sizing: border-box;
}

.product-list-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #eee;
 
  padding: .5rem;
  transition: transform 0.3s;
  position: relative; /* you already use absolute pills/icons */
}

.page-content{
  max-width: 412px;     /* 🔒 column size never exceeds this */
  width: 100%;
  margin-left: auto;
  margin-right: auto;  /* center */
  padding: 20px 0;
}
.product-list-grid img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* ✅ keeps square thumbnails */
  height: auto;
  object-fit: cover;
  display: block;
  
}

.product-name {
  font-size: 0.95rem;
 
  color: #222;
  margin: 4px 0;
  text-align: left;
}




/*For sold out*/
.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
  
}

.sold-out-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #f2f2f2;
  color: #000;
  font-size: 0.75rem;
  padding: 4px 8px;
  
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.product-list-card { position: relative; }
.image-wrapper { position: relative; }
.wishlist-icon { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wishlist-form { display: inline-block; }
.wishlist-btn { background: rgba(255,255,255,.92); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }


.rating-pill{
  position:absolute;
  top:8px; left:8px;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  font-size:12px;
  line-height:1;
  color:#111;
  font-weight:600;
}
.product-price{
  display:flex;
  gap:4px;
  align-items:baseline;
  text-align: left;
  color:#222;
  font-weight:600;
  font-size: 13px;
  margin:0 0 10px;
}
.product-price .mrp{ color:#777; text-decoration:line-through; font-size:10px;  }
.product-price .off{ color:#a14c29; font-size: 11px; }
