.shop {
  padding: 34px 0 10px;
}
.shop-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* Filters */
.filters {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  height: max-content;
  position: sticky;
  top: 90px;
}
.filters-toggle {
  display: none;
}

.filters-bar {
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #6b6f76;
  padding: 0px 0 0px;
  cursor: pointer;
}

.filters-bar i {
  font-size: 18px;
}
/* React icons: match previous <i> sizing */
.filters-bar svg {
  width: 18px;
  height: 18px;
}

/* Mobile/Tablet: collapse filters behind bar */
@media (max-width: 992px) {
  .filters {
    position: static;
  }
  .filters-bar {
    display: inline-flex;
  }
  .filters .filter-head,
  .filters .filter-subtitle,
  .filters .filter-block,
  .filters .filter-list,
  .filters .brand-list {
    transition: max-height 0.35s ease, opacity 0.3s ease,
      visibility 0.3s step-end, margin 0.3s ease, padding 0.3s ease;
  }
  .filters .filter-head,
  .filters .filter-subtitle,
  .filters .filter-block,
  .filters .filter-list,
  .filters .brand-list {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .filters-toggle:checked ~ .filter-head,
  .filters-toggle:checked ~ .filter-subtitle,
  .filters-toggle:checked ~ .filter-block,
  .filters-toggle:checked ~ .filter-list,
  .filters-toggle:checked ~ .brand-list {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    margin-top: 6px;
    padding-top: 0;
    padding-bottom: 0;
  }
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.filter-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.filter-clear {
  border: 0;
  background: #f2f2f2;
  color: #333;
  border-radius: 6px;
  padding: 2px 10px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-clear:hover {
  background: #ffc5c5;
  color: #ff0000;
  font-weight: 500;
  transform: translateY(-1px);
}
.filter-subtitle {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 8px;
}
.filter-block {
  display: grid;
  gap: 10px;
}
.price-range {
  grid-template-columns: 1fr 1fr;
}
.filter-input {
  width: 100%;
  border: 1px solid #e3e3e3;
  padding: 5px 12px;
  border-radius: 6px;
  outline: none;
}
.filter-list,
.brand-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.filter-item .filter-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f8f8;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 5px 12px;
  color: #1a1a1a;
}
/* Hide default summary marker and style our chevron */
.filter-item summary::-webkit-details-marker { display: none; }
.filter-item summary::marker { content: ""; }
.filter-item .filter-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* Checkbox rows in filter panels */
.filter-panel{
  margin-left: 10px;
}

.filter-panel .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.brand-item .brand-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1a1a1a;
}
.brand-item img {
  width: 18px;
  height: 18px;
}

/* Right content placeholder */
.shop-content {
  min-height: 400px;
}

/* Shop products grid */
.shop-products-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
.shop-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 100%;
}
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.shop-card .thumb {
  position: relative;
  background: #f9f9f9;
  aspect-ratio: 1 / 1;
}
.shop-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hover-icon {
  position: absolute;
  left: 12px;
  top: -10px;
  width: 32px;
  height: 22px;
  border-radius: 8px;
  background: #fdcfcf;
  color: #ff0000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-12px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hover-icon i {
  font-size: 18px;
}
.hover-icon svg {
  width: 18px;
  height: 18px;
}
.shop-card:hover .hover-icon {
  opacity: 1;
  transform: translateY(18px);
}
.badge-off {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #ffeef1;
  color: #e11d48;
  font-weight: 700;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 7px;
}
.shop-card .name {
  font-size: 16px;
  margin: 12px 12px 4px;
  align-self: end;
}
.shop-card .price {
  margin: 0 13px 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.shop-card .price .old {
  text-decoration: line-through;
  color: #ef4444;
  font-weight: 700;
}
.shop-card .price .new,
.shop-card .price .range {
  color: #2b2e32;
  font-weight: 800;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 14px;
  align-self: end;
}
.actions.single {
  grid-template-columns: 1fr;
}
.btn-pill {
  border: 0;
  background: #e7f7ff;
  color: #0a6abf;
  padding: 4px 3px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-pill.alt {
  background: #e8fff3;
  color: #0b8f52;
}
.btn-pill:hover {
  background: #0a6abf;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(10, 106, 191, 0.25);
}
.btn-pill.alt:hover {
  background: #0b8f52;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 143, 82, 0.2);
}
.btn-pill.full {
  width: 100%;
}

@media (max-width: 1400px) {
  .shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .shop {
    padding: 14px 10px 0px 10px;
  }

  .shop-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-pill {
    font-size: 12px;
  }
}

/* Responsive for sidebar */
@media (max-width: 992px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
}