/* ===== Category (product listing) page ===== */
.cat-hero { position: relative; height: 500px; background: #3a3a3c; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 62%; display: block; }
.cat-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,.25) 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
}
.cat-hero .header { z-index: 6; }
.cat-hero h1 {
  position: absolute; z-index: 2; left: max(64px, env(safe-area-inset-left, 0px)); bottom: 62px; margin: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 72px; line-height: .9; letter-spacing: .005em; text-transform: uppercase;
}

main.listing { background: #ffffff; color: #1d1a1b; display: flow-root; padding: 0 72px 0; }
.cat-crumbs { margin: 0; padding-top: 15px; font-family: var(--font-ui); font-size: 13.5px; line-height: 20px; }
.cat-crumbs a:hover { text-decoration: underline; }
.cat-crumbs b { font-weight: 700; }
.cat-intro { margin: 63px 0 0; max-width: 720px; font-family: var(--font-ui); font-weight: 300; font-size: 20.4px; line-height: 28px; }
.cat-count { margin: 62px 0 0; text-align: center; font-family: var(--font-ui); font-weight: 300; font-size: 22px; line-height: 30px; }
.cat-count b { font-weight: 500; }

.filters { display: flex; align-items: flex-start; gap: 16px; margin-top: 48px; position: relative; z-index: 5; }
.f-wrap { position: relative; }
.f-btn {
  height: 48px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #fff; color: #1d1a1b; border: 1px solid #1d1a1b; border-radius: 2px; cursor: pointer;
  font-family: var(--font-ui); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.f-btn svg { width: 22px; height: 22px; flex: none; transition: transform .15s ease; }
.f-btn[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.f-btn:hover { background: #f4f0f1; }
.f-sort { margin-left: auto; }
.f-menu {
  position: absolute; left: 0; top: 52px; min-width: 100%; width: max-content; max-width: 320px; padding: 8px 0; margin: 0; list-style: none;
  background: #fff; border: 1px solid #1d1a1b; border-radius: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.f-menu[hidden] { display: none; }
.f-sort .f-menu { left: auto; right: 0; }
.f-menu label, .f-menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-ui); font-weight: 400; font-size: 15px; color: #1d1a1b;
}
.f-menu label:hover, .f-menu button:hover { background: #f4f0f1; }
.f-menu button[aria-checked="true"] { font-weight: 600; }
.f-menu input { width: 16px; height: 16px; accent-color: #a11d31; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 48px; row-gap: 76px; margin: 90px 0 0; padding: 0; list-style: none; }
.grid > li[hidden] { display: none; }
.pc { position: relative; display: block; }
.pc-img { position: relative; display: block; aspect-ratio: 403 / 340; overflow: hidden; background: #fff; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 5%; box-sizing: border-box; display: block; transition: transform .4s ease; }
.pc:hover .pc-img img { transform: scale(1.03); }
.pc-badge {
  position: absolute; top: 14px; right: 14px; z-index: 1; padding: 0 12px; height: 34px; display: flex; align-items: center;
  background: #f4f4f4; color: #5c1520; font-family: var(--font-ui); font-size: 13px;
}
.pc-name { display: block; margin-top: 18px; font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 16px; letter-spacing: .01em; text-transform: uppercase; }
.pc-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10px; font-family: var(--font-ui); font-weight: 300; font-size: 16px; line-height: 23px;
}
.pc-buy { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.pc-price { display: block; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; }
.pc-stars { display: flex; align-items: center; gap: 2px; margin-top: 0; font-family: var(--font-ui); font-size: 13px; line-height: 16px; }
.pc-stars svg { width: 14px; height: 14px; }
.pc-stars span { margin-left: 4px; }
.pc-cart {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .15s ease;
}
.pc-cart:hover { background: var(--accent-hover); }
.pc-cart svg { width: 24px; height: 24px; }



.more { text-align: center; padding: 78px 0 106px; }
.more p { margin: 0; font-family: var(--font-ui); font-weight: 300; font-size: 22px; line-height: 30px; }
.more p b { font-weight: 500; }
.more button {
  margin-top: 30px; height: 55px; padding: 0 28px; border: 0; border-radius: 2px; cursor: pointer;
  background: #5c5c5c; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
}
.more button:hover { background: #444; }
.more button[hidden] { display: none; }

/* grey values strip */
.values { background: #636365; color: #fff; padding: 44px 62px 46px; display: flex; gap: 48px; }
.values div:nth-child(1) { width: 164px; } .values div:nth-child(2) { width: 150px; } .values div:nth-child(3) { width: 140px; }
.values svg { display: block; width: 52px; height: 52px; margin-bottom: 20px; }
.values h3 { margin: 0 0 8px; font-family: var(--font-ui); font-weight: 500; font-size: 16px; line-height: 22px; }
.values p { margin: 0; font-family: var(--font-ui); font-weight: 300; font-size: 15px; line-height: 23px; }

/* newsletter variant of the info block */
.info--news .info-grid { grid-template-columns: minmax(0, 1059fr) minmax(0, 249fr) minmax(0, 256fr) minmax(0, 193fr); padding-left: 72px; padding-right: 72px; }
.info--news .info-lead { max-width: 640px; }
.news-form { display: flex; gap: 16px; margin-top: 45px; }
.news-form input {
  width: 550px; max-width: 100%; height: 56px; padding: 0 24px; background: #fff; color: #1d1a1b;
  border: 1px solid #1d1a1b; border-radius: 3px; font-family: var(--font-ui); font-size: 17px;
}
.news-form input::placeholder { color: #6b6466; }
.news-form button {
  flex: none; width: 166px; height: 56px; border: 0; border-radius: 3px; cursor: pointer;
  background: #5c5c5c; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
}
.news-form button:hover { background: #444; }

@media (max-width: 1100px) {
  main.listing { padding: 0 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .f-btn { padding: 0 16px; gap: 12px; }
  .info--news .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 48px; padding-left: 32px; padding-right: 32px; }
  .info--news .info-main { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cat-hero { height: 360px; }
  .cat-hero h1 { font-size: 44px; left: 16px; bottom: 36px; }
  main.listing { padding: 0 16px; }
  .cat-intro { margin-top: 36px; font-size: 18px; line-height: 26px; }
  .cat-count { margin-top: 36px; }
  .filters { flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .f-sort { margin-left: 0; }
  .f-btn { height: 44px; padding: 0 14px; font-size: 14px; }
  .f-btn span.f-more-label { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 44px; margin-top: 36px; }
  .pc-desc { display: none; }
  .pc-price { font-size: 22px; line-height: 30px; }
  .pc-cart { width: 40px; height: 40px; }
  .pc-cart svg { width: 20px; height: 20px; }
  .more { padding: 56px 0 72px; }
  .values { flex-direction: column; gap: 32px; padding: 36px 16px; }
  .values div:nth-child(n) { width: auto; }
  .info--news .info-grid { grid-template-columns: minmax(0, 1fr); padding-left: 16px; padding-right: 16px; }
  .news-form input { width: 100%; }
  .info--news .info-lead { font-size: 26px; line-height: 34px; }
  .news-form { flex-direction: column; }
  .news-form button { width: 100%; }
}
.cat-empty { margin: 90px 0 0; text-align: center; }
.cat-empty p { margin: 0 0 24px; font-family: var(--font-ui); font-weight: 300; font-size: 20.4px; line-height: 28px; }
.cat-empty .cart-btn { display: inline-flex; }
.cat-empty[hidden], .filters[hidden], .more[hidden], .cat-intro[hidden], .cat-count[hidden] { display: none; }
.news-msg { margin: 14px 0 0; font-family: var(--font-ui); font-size: 16px; }
.news-msg[hidden] { display: none; }

.pc-from { font-family: var(--font-ui); font-weight: 300; font-size: 13px; margin-right: 6px; text-transform: none; }
@media (max-width: 720px) { .pc-desc { font-size: 13px; line-height: 18px; margin-top: 6px; } }
