/* === MAIN PAGE GRID (Desktop Only) === */
  .main-page-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    height: 100vh;
    overflow: hidden;
  }

  /* === FABRIC SECTION (Shared Styles) === */
  .fabric-section {
    background-color: #f9f9f9;
    padding: 10px;
    box-sizing: border-box;
    height: 100vh;
    overflow: hidden;
  }

  /* FABRIC GRID STYLES - Desktop */
  .fabric-scroll-section {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    padding-right: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 100%;
  }
  .fabric-scroll-section::-webkit-scrollbar {
    width: 8px;
  }
  .fabric-scroll-section::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  .fabric-scroll-section::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
  }
  .fabric-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 5px;
  }
  .fabric-item {
    width: calc(25% - 9px); /* 4 per row */
    box-sizing: border-box;
  }
  .fabric-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
  }
  .fabric-item img:hover {
    transform: scale(1.03);
    cursor: pointer;
  }

  /* ================= MOBILE RESPONSIVE ================= */
  @media (max-width: 768px) {
    .main-page-grid {
      display: block;
      height: auto;
    }

    .fabric-section {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 22%;
      padding: 8px 0 10px 0;
      background-color: #fff;
      z-index: 999;
      border-top: 1px solid #ccc;
    }

    .fabric-title {
      display: none; /* Hide on mobile */
    }

    .fabric-scroll-section {
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      padding: 0 10px;
      height: 100%;
      scrollbar-width: none;
    }

    .fabric-scroll-section::-webkit-scrollbar {
      display: none;
    }

    .fabric-grid {
      display: inline-flex;
      flex-wrap: nowrap;
      gap: 12px;
    }

    .fabric-item {
      flex: 0 0 auto;
      width: 120px;
    }

    .fabric-item img {
      width: 100%;
      height: 120px;
    }
  }


  /*  suit + pain section  */

  .suit-pant-images {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}



.suit-image-container img,
.pant-inner-wrapper img {
  max-height: 450px;
  width: auto;
  object-fit: contain;
}

.suit-price-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  text-align: center;
  padding: 20px 0;
  z-index: 2;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.suit-pant-section {
  position: relative;
  height: 105%; /*105vh full screen height */
  overflow: hidden;
}
.suit-price-title h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.suit-price-title p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.suit-price-title button {
  font-size: 1rem;
  padding: 10px 24px;
  margin-bottom: 18px;
}

.pant-inner-wrapper img {
  transform: rotate(90deg);
  max-height: 200px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .suit-pant-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    overflow: hidden;
  }

  .mobile-slider {
    flex-grow: 1;
    height: auto;
  }

  .carousel-inner {
    flex-grow: 1;
    max-height: 65vh; /* keeps space for text */
  }

  .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .suit-price-title {
    padding-bottom: 45%;
    position: relative;
    background: #fff;
    z-index: 10;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
  }

  .suit-price-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .suit-price-title p {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .suit-price-title button {
    font-size: 1rem;
    width: 50%;
  }
}


/*  filter css  */

/* Filter Bar Styling */
.filter-bar {
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.filter-button {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-button:hover {
  background-color: #f1f1f1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 260px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  padding: 1.5rem;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-list li:hover {
  background-color: #f6f6f6;
}

/* Backdrop styles */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  display: none;
}

.sidebar-backdrop.active {
  display: block;
}


.filter-hint {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
  font-style: italic;
  margin-left: auto;
}