:root {
  --up-bg: #f2f2f4;
  --up-card: #ffffff;
  --up-border: #dedfe4;
  --up-text: #252a34;
  --up-muted: #7f8591;
  --up-accent: #f59a23;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--up-bg);
  color: var(--up-text);
  font-family: Helvetica, Arial, sans-serif;
}
.products-page,
.products-page * {
  font-family: Helvetica, Arial, sans-serif !important;
}
.products-page { padding: 16px 0 34px; }
.products-page__wrap {
  width: min(1360px, calc(100vw - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 286px 1fr;
  gap: 14px;
}
.products-mobile-filter-toggle {
  display: none;
}
.products-sidebar {
  background: var(--up-card);
  border: 1px solid var(--up-border);
  border-radius: 4px;
  padding: 12px 10px;
  height: fit-content;
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow: auto;
}
.products-sidebar h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: .2px;
  color: rgba(111, 111, 111, 1);
}
.products-sidebar__section {
  border-top: 1px solid #ececf0;
  padding-top: 10px;
  margin-top: 8px;
}
.products-sidebar__section h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(111, 111, 111, 1);
}
.products-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  color: rgba(111, 111, 111, 1);
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 7px 9px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  width: 100%;
  background: transparent;
  cursor: pointer;
}
.products-sidebar__item strong { color: #9ea3ae; font-size: 12px; font-weight: 400; }
.products-sidebar__item.active {
  background: #faf7ff;
  border-color: #e7daf8;
  color: rgba(111, 111, 111, 1);
}
.products-sidebar__item:hover {
  color: #f59a23;
}
.brand-filter-form { display: grid; gap: 8px; }
.brand-filter-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(111, 111, 111, 1);
}
.brand-filter-item:hover {
  color: #f59a23;
}
.brand-filter-item input { margin: 0; }
.brand-filter-item em {
  font-style: normal;
  color: #a5aab4;
  font-size: 12px;
}
.brand-filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.brand-filter-actions button,
.brand-filter-actions a {
  border: 1px solid var(--up-border);
  border-radius: 4px;
  font-size: 12px;
  padding: 5px 8px;
  text-decoration: none;
  background: #fff;
  color: rgba(111, 111, 111, 1);
}
.brand-filter-actions button {
  cursor: pointer;
  background: #f59a23;
  border-color: #dd860f;
  color: #fff;
}
.brand-filter-actions a:hover,
.brand-filter-actions button:hover {
  color: #f59a23;
  background: #fff;
  border-color: #f5c58f;
}
.products-content { min-width: 0; }
.products-toolbar {
  border: 1px solid var(--up-border);
  background: var(--up-card);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.products-toolbar h1 {
  margin: 0;
  font-size: clamp(23px, 1.7vw, 31px);
  line-height: 1.15;
  white-space: nowrap;
  background: linear-gradient(90deg, #8b31ff 0%, #c142f7 35%, #ff8a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.products-toolbar p { margin: 6px 0 0; color: var(--up-muted); font-size: 12px; }
.products-toolbar__filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.products-toolbar__filters input,
.products-toolbar__filters select,
.products-toolbar__filters button {
  border: 1px solid var(--up-border);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}
.products-toolbar__filters input { min-width: 170px; }
.products-toolbar__filters button {
  background: var(--up-accent);
  border-color: #e38610;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  border: 1px solid var(--up-border);
  border-radius: 6px;
  background: var(--up-card);
  overflow: hidden;
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f3f4f7;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}
.product-card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  background: #ec3d3d;
  color: #fff;
  font-size: 10px;
  border-radius: 99px;
  padding: 3px 8px;
  font-weight: 700;
}
.product-card__overlay {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(10px);
  z-index: 3;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: .2px;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
  filter: brightness(.88);
}
.product-card:hover .product-card__overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  background: rgba(245, 154, 35, .94);
}
.product-card__body { padding: 10px; }
.product-card__cat {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: .2px;
  font-weight: 700;
  color: #9ea5b2;
  text-transform: uppercase;
}
.product-card__title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 38px;
  color: rgba(155,97,207,1);
}
.product-card__rating {
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7d8593;
  font-size: 12px;
}
.product-card__rating .stars { color: #f3b312; letter-spacing: 1px; font-size: 11px; }
.product-card__price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.product-card__price del { color: #a3aab7; font-size: 12px; }
.product-card__price strong { color: rgba(111, 111, 111, 1); font-size: 15px; }
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .products-page__wrap { grid-template-columns: 1fr; }
  .products-mobile-filter-toggle {
    display: block;
    width: 100%;
    border: 1px solid var(--up-border);
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    color: rgba(111, 111, 111, 1);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
  }
  .products-sidebar {
    position: static;
    top: auto;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    opacity: 0;
    transition: max-height .22s ease, opacity .22s ease, padding .22s ease, border-width .22s ease;
  }
  .products-sidebar.is-open {
    max-height: 70vh;
    overflow: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
    opacity: 1;
  }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .products-toolbar__filters input { min-width: 0; width: 100%; }
  .products-toolbar h1 { white-space: normal; }
  .products-grid { grid-template-columns: 1fr; }
}
