
/* ===== SECTION ===== */
.shop-product {
  padding: 40px 0;
  font-family: Arial, sans-serif;
}

/* ===== SIDEBAR ===== */
.sidebar-title {
  font-weight: 600;
  padding: 15px 0px;
  border-top: 1px solid #000;
  margin: 0;
  font-size: 18px;
}
.shop-top-bar select {
  padding: 6px 10px;
}
.category-list {
  list-style: none;
  padding: 0;
}

/* TOGGLE */
.cat-title {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid #000;
}

.sub-menu {
  display: none;
  padding-left: 15px;
}

.sub-menu.show {
  display: block;
}

/* ===== TOP BAR ===== */
.shop-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
}

.view-btn {
  cursor: pointer;
  margin-right: 10px;
}

.view-btn.active {
  color: black;
}

/* ===== PRODUCTS ===== */
.product-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.product-item {
  padding: 10px;
}

/* GRID */
.grid-4 .product-item { width: 25%; }
.grid-3 .product-item { width: 33.33%; }
.grid-1 .product-item { width: 100%; }

/* CARD */
.product-card {
  text-align: center;
}

.product-card img {
  width: 100%;
}

/* LIST VIEW */
.grid-1 .product-card {
  display: flex;
  gap: 20px;
  text-align: left;
}

.grid-1 .product-card img {
  width: 250px;
}

/* DESC */
.desc { display: none; }
.grid-1 .desc { display: block; }

/* STAR */
.rating i {
  color: #f4c150;
}
/* ===== SIDEBAR SMOOTH TOGGLE ===== */
.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sub-menu.show {
  max-height: 500px; /* enough for items */
}

/* ===== PRODUCT GRID SMOOTH ===== */
.product-wrapper {
  display: flex;
  flex-wrap: wrap;
  transition: all 0.4s ease;
}

.product-item {
  padding: 10px;
  transition: all 0.4s ease;
}

/* GRID WIDTH ANIMATION */
.grid-4 .product-item { width: 25%; }
.grid-3 .product-item { width: 33.33%; }
.grid-1 .product-item { width: 100%; }

/* CARD TRANSITION */
.product-card {
  transition: all 0.4s ease;
}

/* LIST VIEW SMOOTH */
.grid-1 .product-card {
  display: flex;
  gap: 20px;
  text-align: left;
  transform: scale(1);
}

.grid-4 .product-card,
.grid-3 .product-card {
  transform: scale(1);
}

/* IMAGE SMOOTH */
.product-card img {
  transition: all 0.4s ease;
}

/* DESCRIPTION FADE */
.desc {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid-1 .desc {
  opacity: 1;
}
/* ===== PRICE FILTER ===== */
.price-filter {
  margin-top: 0px;
  border-top: 1px solid #000;
  padding-top: 20px;
}

.filter-title {
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===== RANGE SLIDER ===== */
.range-slider {
  position: relative;
  width: 100%;
  height: 40px;
}

/* TRACK BACKGROUND */
.slider-track {
  position: absolute;
  height: 4px;
  width: 100%;
  background: #ddd;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
}

/* ACTIVE RANGE COLOR */
.slider-track::before {
  content: "";
  position: absolute;
  height: 100%;
  background: #f4c150;
  left: 0;
  right: 0;
  border-radius: 5px;
}

/* INPUT RANGE */
.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  pointer-events: none;
  appearance: none;
}

/* THUMB */
.range-slider input::-webkit-slider-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #f4c150;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
}

/* BUTTON + TEXT */
.price-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.filter-btn {
  background: #2d333b;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
}

.price-range {
  font-size: 14px;
}
.product-detail-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-top: 20px;
}
.product-detail-wrapper h5 {
  font-size: 16px;
  font-weight: 500;
}
/* IMAGE WRAP */
.product-img {
  position: relative;
  overflow: hidden;
}

/* OVERLAY BG */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 68, 94, .7);
  opacity: 0;
  transition: 0.4s ease;
}

/* DASH BOX */
.overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed #fff;
  padding: 10px 10px;
  display: flex;
  gap: 8px;
  transition: 0.4s ease;
}

/* ICON STYLE */
.icon {
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
  line-height: 28px;
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 15px;
  border: 1px dashed #ffffff;
  color: #ffffff;
  display: block;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.icon:hover {
  color: #000;
}

/* HEART COLOR */
.icon.wishlist {
  color: red;
}

/* HOVER EFFECT */
.product-card-img:hover .product-overlay {
  opacity: 1;
}
.product-card-img {
  position: relative;
}
.product-img:hover .overlay-box {
  opacity: 1;
}

/* IMAGE ZOOM (OPTIONAL NICE EFFECT) */
.product-img img {
  transition: 0.4s ease;
}

.product-img:hover img {
  transform: scale(1.05);
}