*,
*::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: 8px;
    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: 2000;
}
.overlay.active {
    display: block;
}


/* =========================
   Sort Panel (Bottom Popup)
   ========================= */
.sort-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 3000;
    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: max(0px, calc((100vw - 1024px) / 2));

  width: 320px;        /* fixed width */
  max-width: 85vw;

  height: 100%;
  background: #fff;
  z-index: 3000;
  display: flex;
  flex-direction: column;

  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

.filter-panel-left.active {
  opacity: 1;
  visibility: visible;
}
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 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: #eee;
    color: black;
    border: 1px solid black;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.apply-btn:hover {
    background: rgb(193, 188, 188);
}

#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;
}


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

@media (min-width:768px) {
  .product-list-grid {
   display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 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;
 border-radius: 8px;
  padding: .5rem;
  transition: transform 0.3s;
  position: relative; /* you already use absolute pills/icons */
}

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

.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; }


/* =========================
   MINIMAL PREMIUM SORT SHEET
   ========================= */

.overlay.active{
  display:block;
  background:rgba(0,0,0,0.58);
  /* backdrop-filter:blur(1.5px); */
}

.sort-panel{
  position:fixed;
  left:50%;
  bottom:-100%;
  transform:translateX(-50%);
  width:100%;
  max-width:1024px;
  background:#fff;
  z-index:3001;
  padding:18px 30px 34px;
  border-radius:30px 30px 0 0;
  box-shadow:0 -18px 45px rgba(0,0,0,0.22);
  transition:bottom .32s ease;
}

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

.sort-panel::before{
  content:"";
  display:block;
  width:52px;
  height:6px;
  border-radius:999px;
  background:#cfcfcf;
  margin:0 auto 34px;
}

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

.sort-header h3{
  margin:0;
  font-size:22px;
  font-weight:100;
  color:#111;
  letter-spacing:-0.5px;
}

#closeSort{
  width:20px;
  height:20px;
  border:none;
  border-radius:50%;
  color:#111;
  font-size:23px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.sort-body{
  display:flex;
  flex-direction:column;
}

.sort-body label{
  position:relative;
  display:flex;
  align-items:center;
  min-height:72px;
  padding:0 58px 0 0;
  border-bottom:1px solid #dedede;
  background:transparent;
  color:#111;
  font-size:15px;
  font-weight:100;
  cursor:pointer;
}

/* last option ke niche line nahi */
.sort-body label:last-child{
  border-bottom:none;
}

/* hide default radio */
.sort-body label input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* right radio circle */
.sort-body label::after{
  content:"";
  position:absolute;
  right:0;
  width:20px;
  height:20px;
  border-radius:50%;
  border:3px solid #777;
  background:#fff;
}

/* selected black circle with tick */
.sort-body label:has(input:checked)::after{
  content:"✓";
  border:none;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:19px;
  font-weight:800;
}

/* selected text */
.sort-body label:has(input:checked){
  font-weight:100;
}

/* remove old icon styles if previous code exists */
.sort-body label::before{
  content:none !important;
}

#clearFiltersBtn {
    background: #eee;
    color: black;
    border: 1px solid black;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
 /* #clearFiltersBtn:hover {
    background: rgb(193, 188, 188);
} */
#clearFiltersBtn:active {
  background: #ccc;
}
#closeFilter{
      background-color: #fff;
    font-size: 18px;
    border: none;
}