/* ── Shop Page Layout ── */
.shop-page {
  padding: 7rem 0 5rem;
  min-height: 100vh;
}
.shop-page__header {
  text-align: center;
  margin-bottom: 3rem;
}
.shop-page__header .section__desc {
  font-size: 0.82rem;
  color: #8a7a6a;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Sidebar ── */
.shop-sidebar {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
  position: sticky;
  top: 5rem;
}

.filter-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f5efe6;
}
.filter-section:last-of-type {
  border-bottom: none;
}
.filter__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1b4332;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.filter__options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #4a3a2a;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.filter__option:hover { color: #2d1b1b; }
.filter__check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c9b8a0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter__option.active .filter__check {
  background: #1b4332;
  border-color: #1b4332;
}
.filter__option.active .filter__check::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fefcf5;
}

/* ── Price Range ── */
.filter__price { padding-top: 0.25rem; }
.filter__range-slider {
  position: relative;
  height: 28px;
  margin-bottom: 1rem;
}
.filter__range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 3px;
  background: #e8ddd0;
  z-index: 0;
}
.filter__range-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}
.filter__range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1b4332;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.filter__range-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1b4332;
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.filter__price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter__price-box { flex: 1; }
.filter__price-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a7a6a;
  margin-bottom: 0.2rem;
}
.filter__price-box input {
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid #e8ddd0;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  background: #fefcf5;
}
.filter__price-box input:focus { border-color: #c9a84c; }
.filter__price-sep { color: #a09078; margin-top: 1rem; }

.filter__apply {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem;
  font-size: 0.7rem;
}
.filter__clear {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem;
  font-size: 0.7rem;
  background: transparent;
  color: #8a7a6a;
  border: 1px solid #e8ddd0;
}
.filter__clear:hover { border-color: #a09078; color: #1b4332; }

/* ── Toolbar ── */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f5efe6;
}
.shop-toolbar__toggle {
  display: none;
  background: none;
  border: 1px solid #e8ddd0;
  padding: 0.5rem 1.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4a3a2a;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.shop-toolbar__toggle:hover { border-color: #c9a84c; }
.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.shop-toolbar__sort label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a7a6a;
}
.shop-toolbar__sort select {
  padding: 0.45rem 1.5rem 0.45rem 0.75rem;
  border: 1px solid #e8ddd0;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  color: #2d1b1b;
  background: #fff;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a8a7a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.shop-toolbar__sort select:focus { border-color: #c9a84c; }

/* ── 3-column product grid ── */
.shop-main .products {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .shop-main .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shop-main .products { grid-template-columns: 1fr; }
}

/* ── Simpler hover for shop ── */
.shop-main .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
}
.shop-main .product:hover .product__img img {
  transform: none;
}

/* ── Best Sellers ── */
.bestsellers {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f5efe6;
}
.bestsellers__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bestseller-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  padding: 0.4rem;
  transition: background 0.2s;
}
.bestseller-item:hover { background: #f5efe6; }
.bestseller-item__img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
}
.bestseller-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bestseller-item__info { flex: 1; min-width: 0; }
.bestseller-item__name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #2d1b1b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bestseller-item__price {
  font-size: 0.78rem;
  color: #c9a84c;
  font-family: 'Playfair Display', serif;
}

/* ── Empty state ── */
.shop__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: #8a7a6a;
  font-weight: 300;
  font-size: 0.95rem;
}

/* ── Product count in toolbar ── */
.shop-toolbar__count {
  font-size: 0.8rem;
  color: #8a7a6a;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    padding: 5rem 1.5rem 2rem;
  }
  .shop-sidebar.active {
    transform: translateX(0);
  }
  .shop-toolbar__toggle {
    display: inline-flex;
  }
}
