@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Padauk:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans";
}

html {
  scroll-behavior: auto !important;
}

body {
  background-color: #f5f5f5;
}

.carousel-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-top: 75px;
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
  /* 20% black */
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 1;
}

/* Dots below the image */
.dots {
  width: 100%;
  text-align: center;
  padding-top: 5px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #9f9f9f;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  margin: 0 5px;
}

.dot.active {
  background-color: #a10404;
}

/* pdthead */
.pdthead {
  position: relative;
  top: -37px;
  height: 100px;
  background-image: linear-gradient(rgba(239, 223, 223, 0.92),
      rgba(239, 223, 223, 0.92)),
    url(../assets/master/bgmproduct.png);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: end;
}

.pdtheading {
  padding: 15px 60px;
  font-family: Nunito Sans;
  font-weight: 700;
  font-size: 36px;
  text-align: center;
  color: #3f3f3f;
}

/* ✅ LEFT ICON BAR */
.left-icons {
  /* position: fixed; */
  left: 1px;
  top: 10%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 200;
  height: 100vh;
  width: max-content;
  padding: 8px;
  border-radius: 8px;
  background-color: #ffffff;
}

.left-icons button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #d9d9d9;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.left-icons button img {
  width: 50%;
  height: 50%;
}

@media (max-width: 595px) {
  .carousel-container {
    height: 100px;
  }

  .dots {
    width: 100%;
    text-align: center;
    padding-top: 5px;
  }

  .dot {
    height: 8px;
    width: 8px;
  }

  /* .pdtheading{
    font-size: 14px;
    max-width: 250px;
    width: 100%;
  } */
}

/* ----------------------------
   MOBILE VIEW — icons inside heading
----------------------------- */
/* ----------------------------
   MOBILE VIEW — icons inside heading (RIGHT SIDE)
----------------------------- */
/* ----------------------------
   MOBILE VIEW — heading LEFT, icons RIGHT
----------------------------- */

@media (max-width: 480px) {
  .pdthead {
    width: 100%;
    position: sticky;
    top: 75px;
    z-index: 99;
    background: #efdfdf;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* heading left, icons right */
    max-height: 100px;
    background-image: linear-gradient(rgba(239, 223, 223, 0.92),
        rgba(239, 223, 223, 0.92)),
      url(../assets/master/bgmproduct.png);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* HEADING stays LEFT side */
  .pdtheading {
    padding: 5px;
    font-size: 20px;
    margin: 0;
    text-align: left;
    /* flex-grow: 1; */
    width: 100%;
    /* border: 1px solid black; */
  }

  /* ICONS go to RIGHT side */
  .left-icons.mobile-in-header {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    display: flex;
    flex-direction: row !important;
    gap: 10px;
    background: transparent;
    padding: 0;
    margin-left: 10px;
    height: 50px;
  }

  .left-icons.mobile-in-header button {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  }
}

/* ----------------------------
   DESKTOP / TABLET VIEW
----------------------------- */
/* @media (min-width: 481px) {
  .left-icons {
    position: fixed;
    left: 10px;
    top: 40%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
  }
} */

/* ✅ OVERLAY */
.aside-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 10000;
}

.aside-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pro-wrapper {
  display: flex;
  /* border: 1px solid black; */
  width: 100%;
  height: auto;
  min-height: 60vh;
  transition: min-height 0.25s ease;
  min-height: 100px;
  position: relative;
}

/* ✅ SIDEBAR */
.left-sidebar {
  position: absolute;
  left: -320px;
  top: 0;
  width: 280px;
  max-height: 100vh;
  background: #fff;
  box-shadow: 6px 0 25px rgba(0, 0, 0, 0.25);
  transition: 0.35s ease;
  z-index: 10002;
  padding: 16px;
  overflow-y: auto;
  border-radius: 8px;
}

.left-sidebar.active {
  left: 1px;
}

.left-sidebar::-webkit-scrollbar {
  width: 8px;
}

.left-sidebar::-webkit-scrollbar-track {
  background: #c0c0c0;
  border-radius: 12px;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #676767;
  border-radius: 12px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.sidebar-title {
  margin: 14px 0 8px;
  font-family: Nunito Sans;
  font-weight: 700;
  font-size: 18px;
  color: #3f3f3f;
}

@media (max-width: 480px) {
  .left-sidebar {
    position: fixed;
    top: 0;
    left: -500px;
    height: 100vh;
    width: 100%;
    max-height: 100vh;
  }

  .left-sidebar.active {
    left: 0;
  }
}

.filter-item {
  background: #f9f9f9;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 0px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #3f3f3f;
  font-weight: 400;
}

.filter-item.active {
  color: #c73737;
  background-color: #efdfdf;
  font-weight: 600;
}

.filter-item img {
  max-width: 20px;
}

/* .sub-options {
  display: none;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
} */
.sub-options input {
  width: 16px;
  background-color: #fff;
}

.sub-options label {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  padding: 5px 0;
  color: #3f3f3f;
}

.filter-item.active {
  background: #efdfdf;
  color: #c73737;
  font-weight: 600;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #e6e6e6;
  border: 1px solid #3f3f3f;
  padding: 5px;
}

.sub-options {
  max-height: 0;
  overflow: hidden;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 5px;
  transition: max-height 0.35s ease;
}

/* when open */
.sub-options.open {
  max-height: 500px;
  /* enough to show all items */
}

/* rotate icon smoothly */
.filter-item img {
  transition: transform 0.3s ease;
}

.filter-item img.rotate {
  transform: rotate(180deg);
}

/* ✅ PRODUCTS */
.products {
  width: 100%;
  padding: 0px 40px;
  /* border: 1px solid orangered; */
  /* padding-left: 80px; */
  /* display: flex;
  gap: 20px;
  flex-wrap: wrap; */
}

/* 
.card {
  width: 220px;
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
} */

.clear-all {
  text-align: right;
  font-size: 14px;
  color: #777;
  cursor: pointer;
  position: sticky;
  bottom: -10px;
  background: #fff;
  color: #3f3f3f;
  padding: 10px;
  text-align: right;
  border-top: 1px solid #ddd;
  font-weight: 600;
  font-size: 16px;
}

.sidebar-close {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  color: #fff;
  background-color: transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close img {
  max-width: 20px;
}

.pd-display {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ===========================
   GRID LAYOUT
=========================== */
.products.pd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0px 15px;

  width: 100%;
}

.pd-card {
  max-width: 400px;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: visible;
  border: 1px solid #ececec;
  transition: 0.3s ease;
  padding: 12px;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pd-card:hover {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.pd-img {
  max-height: 180px;
  width: 100%;
  position: relative;
  border-radius: 8px;
}

.pd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;

}

/* WISHLIST */
.pd-wishlist {
  position: absolute;
  top: 12px;
  right: 8px;
  width: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
}

.pd-wishlist img {
  max-width: 22px;
}

/* RATING */
.pd-rating {
  position: absolute;
  bottom: 12px;
  left: 12px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(211, 211, 211, 0.219);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 6px;
  display: flex;
  gap: 4px;
  color: #fff;
  align-items: center;
}

.pd-rating img {
  width: 14px;
}

/* CONTENT */
.pd-name {
  max-width: 100%;
  font-size: 18px;
  font-weight: 600;
  padding-top: 10px;
  color: #3D3434;
  cursor: pointer;
}

.pd-line {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #716B6B;
}

.pd-tags {
  display: flex;
  gap: 13px;
  padding: 5px 0px;
}

.pd-tags .free {
  color: #009605;
  font-size: 12px;
  font-weight: 600;
}

.pd-tags .left {
  color: #FF0000;
  font-size: 12px;
  font-weight: 600;
}

/* PRICE ROW */
.pd-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-price {
  font-size: 16px;
  font-weight: 700;
  color: #3F3F3F;
}

.pd-price .old {
  margin-left: 6px;
  font-size: 14px;
  text-decoration: line-through;
  color: #716B6B;
}

.pd-price .off {
  margin-left: 6px;
  color: #A10404;
  font-size: 14px;
}

/* SHARE */
.pd-share img {
  padding-top: 5px;
  width: 20px;
  cursor: pointer;
}

/* PAGINATION */
.pd-pagination-bar {
  position: relative;
  min-height: 60px;
  width: 100%;
  margin-top: 30px;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  /* background: #fafafa; */
  border-radius: 10px;
}

.pd-page-count {
  font-size: 15px;
  font-weight: 500;
}

.pd-pagination-buttons {
  display: flex;
  gap: 12px;
}

.pd-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  /* background: #333; */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.pd-page-btn img {
  max-width: 40px;
}
@media (max-width:1260px) {
    .products.pd-grid {
      gap: 8px;
    }
     .pd-card {
      padding: 6px;
    }
  .pd-name{
    font-size: 15px;
  }
  .pd-tags{
    font-size: 11px;
  }
  .pd-price{
    font-size: 13px;
  }
  .pd-bottom-row {
    line-height: 10px;
  }
}

/* TABLET — horizontal layout (481px–899px) */
/* ==============================================
   899px – 596px → 2 CARDS PER ROW (IMAGE LEFT)
================================================*/
@media (max-width: 899px) and (min-width: 596px) {

  .pdtheading{
    font-size: 26px;
  }
  .products.pd-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .pd-card {
    display: flex !important;
    flex-direction: row !important;
    padding: 10px;
    gap: 12px;
    align-items: flex-start;
    max-width: 600px;
    width: 100%;
  }

  .pd-img {
    width: 45% !important;
    height: 160px !important;
    border-radius: 10px;
  }

  .pd-content {
    width: 55% !important;
  }

  /* FIX TEXT SPACING FOR THIS VIEW */
  .pd-name {
    font-size: 15px !important;
    line-height: 20px !important;
    margin-bottom: 6px;
  }

  .pd-line {
    font-size: 11px !important;
    line-height: 6px !important;
    margin-bottom: 0px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .pd-tags {
    font-size: 11px !important;
    margin-bottom: 6px;
  }

  .pd-price {
    font-size: 14px !important;
  }
  .pd-bottom-row {
    line-height: 14px;
  }
  .pd-price .old,
  .pd-price .off {
    font-size: 10px !important;
  }
}

@media (max-width: 595px) and (min-width: 426px) {
  .pdtheading{
    font-size: 22px;
  }

  .products.pd-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .pd-card {
    flex-direction: column !important;
    padding: 8px;
  }

  .pd-img {
    width: 100% !important;
    height: 160px !important;
  }

  /* TEXT FIXES */
  .pd-name {
    font-size: 14px !important;
    line-height: 20px !important;
    margin-top: 6px;
  }

  .pd-line {
    font-size: 10px !important;
    line-height: 14px;
    margin-top: 0px;
  }

  .pd-tags {
    font-size: 11px !important;
    margin-top: 4px;
  }

  .pd-price {
    font-size: 14px !important;
    margin-top: 5px;
  }
}
@media (max-width:480px) {
  .products.pd-grid {
    padding-top: 20px;
    gap: 8px;
  }
  .pd-card{
    max-width: 400px;
    width: 100%;
  }
}
@media (max-width: 425px) {
  .products.pd-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .pd-card {
    flex-direction: column !important;
  }

  .pd-img {
    height: 180px !important;
    width: 100% !important;
  }
}




.pd-page-btn.disabled,
.pd-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-page-btn:focus {
  outline: none;
}

#noProductMsg {
  display: none;
  /* controlled by JS */
  width: 100%;
  min-height: 60vh;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 600;
  color: #777;
  text-align: center;
}

.products.no-results {
  display: flex !important;
  align-items: center;
  justify-content: center;
  /* min-height: 60vh; */
}

.products.no-results.pd-grid {
  grid-template-columns: none !important;
}

/* ✅ universal hidden state for filtering */
.pd-card.is-hidden {
  display: none !important;
}


.pd-share {
  position: relative;
  cursor: pointer;
}

/* Popup container */
.share-popup {
  position: absolute;
  bottom: 45px;
  right: 0;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  display: flex;
  gap: 10px;
  border: 1px solid #D9D9D9;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 9999;
}

/* Show popup */
.share-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Icons */
.share-popup img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.share-popup img:hover {
  transform: scale(1.15);
}

.wishlist-icon {
    cursor: pointer;
  transition: transform 0.2s ease;
}
.wishlist-icon.active {
  transform: scale(1.15);
}