/* Rainzon catalogue — editorial shop experience (v1)
   Scoped to body.catalog so the homepage, product and account pages keep
   their existing visual language. */

body.catalog {
  --shop-paper: #fffdf8;
  --shop-cream: #f7f3e8;
  --shop-ink: #0a241a;
  --shop-ink-soft: #385044;
  --shop-muted: #73857a;
  --shop-line: #e3dccb;
  --shop-lime: #d7f26a;
  background: var(--shop-cream);
}

body.catalog .cat-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(72% 120% at 92% 0%, rgba(215, 242, 106, .22), rgba(215, 242, 106, 0) 58%),
    radial-gradient(55% 90% at 0% 100%, rgba(222, 242, 231, .85), rgba(222, 242, 231, 0) 70%),
    linear-gradient(180deg, #f8f5eb 0%, #f3efe3 100%);
  border-bottom: 1px solid var(--shop-line);
}

body.catalog .cat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(10, 36, 26, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 36, 26, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

body.catalog .cat-band .wrap {
  position: relative;
  z-index: 1;
}

body.catalog .cat-editorial {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: end;
  gap: 0;
  padding: 18px 0 15px;
}

body.catalog .cat-ed-copy { min-width: 0; }

body.catalog .cat-ed-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

body.catalog .cat-ed-crumb a {
  color: var(--shop-muted);
  text-decoration: none;
  transition: color .16s;
}

body.catalog .cat-ed-crumb a:hover { color: var(--shop-ink); }
body.catalog .cat-ed-crumb span:last-child { color: var(--shop-ink-soft); }

body.catalog .cat-ed-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(10, 36, 26, .11);
  border-radius: 99px;
  background: rgba(255, 253, 248, .62);
  color: var(--shop-ink-soft);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.catalog .cat-ed-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38b97f;
  box-shadow: 0 0 0 3px rgba(56, 185, 127, .14);
}

body.catalog .cat-editorial h1 {
  margin: 0;
  color: var(--shop-ink);
  font-family: var(--font-display, "Bricolage Grotesque"), Georgia, serif;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 650;
  text-wrap: balance;
}

body.catalog .cat-editorial p {
  max-width: 56ch;
  margin: 9px 0 0;
  color: var(--shop-ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

body.catalog .cat-ed-index {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(215, 242, 106, .16), transparent 58%),
    linear-gradient(150deg, #12382a 0%, #081d15 100%);
  color: #f6f2e6;
  box-shadow: 0 28px 56px -38px rgba(7, 38, 27, .9);
}

body.catalog .cat-ed-index::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -58px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(215, 242, 106, .14);
  border-radius: 50%;
}

body.catalog .cat-ed-index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(246, 242, 230, .58);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

body.catalog .cat-ed-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--shop-lime);
}

body.catalog .cat-ed-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--shop-lime);
  box-shadow: 0 0 0 3px rgba(215, 242, 106, .12);
}

body.catalog .cat-ed-index > strong {
  margin-top: 8px;
  color: var(--shop-lime);
  font-family: var(--font-display, "Bricolage Grotesque"), sans-serif;
  font-size: 46px;
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 650;
}

body.catalog .cat-ed-unit {
  margin-top: 2px;
  color: rgba(246, 242, 230, .66);
  font-size: 10px;
  letter-spacing: .02em;
}

body.catalog .cat-ed-index-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(246, 242, 230, .12);
  color: rgba(246, 242, 230, .55);
  font-size: 8.5px;
  letter-spacing: .02em;
}

body.catalog .cat-ed-index-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--shop-lime);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body.catalog .cat-ed-index-foot a b {
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  transition: transform .3s;
}

body.catalog .cat-ed-index-foot a:hover b { transform: rotate(120deg); }

body.catalog .cat-chips {
  gap: 6px;
  padding-bottom: 12px;
  scrollbar-width: none;
}

body.catalog .cat-chip {
  border-color: rgba(10, 36, 26, .12);
  background: rgba(255, 253, 248, .56);
  color: var(--shop-ink-soft);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 11px;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

body.catalog .cat-chip span {
  color: var(--shop-muted);
  font-size: 8.5px;
}

body.catalog .cat-chip:hover {
  border-color: rgba(10, 36, 26, .36);
  background: var(--shop-paper);
  transform: translateY(-1px);
}

body.catalog .cat-chip.is-on {
  background: var(--shop-ink);
  border-color: var(--shop-ink);
  color: #fff;
  box-shadow: 0 8px 20px -14px rgba(10, 36, 26, .8);
}

body.catalog .cat-chip.is-on span { color: rgba(255, 255, 255, .56); }

body.catalog .cat-layout {
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Filters start collapsed; the toolbar button toggles the side panel. */
body.catalog .cat-layout.filters-hidden {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

body.catalog .cat-layout.filters-hidden .cat-side {
  display: none !important;
}

body.catalog .cat-layout.filters-hidden .cat-main {
  width: 100%;
}

body.catalog .cat-layout.filters-hidden .cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px 12px !important;
}

/* ---------- filter panel ---------- */
body.catalog .cat-side {
  top: 148px;
  padding: 17px 17px 14px;
  background: var(--shop-paper);
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  box-shadow: 0 24px 54px -48px rgba(10, 36, 26, .55);
}

body.catalog .cf-head {
  padding-bottom: 10px;
  border-bottom-color: var(--shop-line);
}

body.catalog .cf-head h3 {
  font-size: 12.5px;
  letter-spacing: -.02em;
  color: var(--shop-ink);
}

body.catalog .cf-head a { font-size: 9.5px; }

body.catalog .cf-group { border-bottom-color: #ece6d8; }

body.catalog .cf-title {
  padding: 13px 0;
  color: var(--shop-ink);
  font-size: 9px;
  letter-spacing: .16em;
}

body.catalog .cf-title .ico { color: #8a9a8f; }

body.catalog .cf-body { padding-bottom: 14px; }

body.catalog .cf-check {
  padding: 6px 0;
  font-size: 11px;
  color: var(--shop-ink-soft);
}

body.catalog .cf-box {
  width: 16px;
  height: 16px;
  border-color: #cfc7b6;
  border-radius: 5px;
  background: #fffdf8;
}

body.catalog .cf-check input:checked + .cf-box {
  background: var(--shop-ink);
  border-color: var(--shop-ink);
}

body.catalog .cf-name { font-weight: 600; }
body.catalog .cf-num { font-size: 9px; }

body.catalog .cf-price { gap: 7px; }

body.catalog .cf-price input {
  height: 38px;
  border-color: var(--shop-line);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 11px;
  transition: border-color .16s, box-shadow .16s;
}

body.catalog .cf-price input:focus {
  border-color: var(--shop-ink);
  box-shadow: 0 0 0 3px rgba(10, 36, 26, .07);
}

body.catalog .cf-chiprow { gap: 5px; }

body.catalog .cf-chiprow a {
  border-color: var(--shop-line);
  background: #fffdf8;
  color: var(--shop-ink-soft);
  font-size: 9px;
  padding: 5px 8px;
}

body.catalog .cf-deal {
  margin: 13px 0;
  padding: 11px 10px;
  border: 1px solid #e8e0cd;
  border-radius: 9px;
  background: #f6f3e7;
  color: var(--shop-ink-soft);
  font-size: 10.5px;
}

body.catalog .cf-actions { gap: 9px; }

body.catalog .cf-actions .h-btn {
  height: 40px;
  border-radius: 9px;
  background: var(--shop-ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: .03em;
}

body.catalog .cf-actions .h-btn:hover { background: #124d37; }

body.catalog .cf-reset {
  color: var(--shop-muted);
  font-size: 9px;
}

/* ---------- toolbar ---------- */
body.catalog .cat-toolbar {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 7px 9px;
  border: 1px solid var(--shop-line);
  border-radius: 13px;
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 12px 28px -30px rgba(10, 36, 26, .55);
  backdrop-filter: blur(10px);
}

body.catalog .cat-tools-left { gap: 10px; }
body.catalog .cat-tools-right { gap: 9px; }

body.catalog .cat-filter-btn,
body.catalog .cat-filter-toggle {
  height: 34px;
  border-color: var(--shop-line);
  background: var(--shop-paper);
  color: var(--shop-ink-soft);
  font-size: 10px;
  letter-spacing: .01em;
}

body.catalog .cat-filter-toggle {
  border: 1px solid var(--shop-ink);
  border-radius: 99px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  background: var(--shop-ink);
  color: #fff;
}

body.catalog .cat-filter-toggle:hover { background: #124d37; }

body.catalog .cat-result-count {
  color: var(--shop-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

body.catalog .cat-tag {
  border-color: var(--shop-line);
  background: #f7f3e8;
  color: var(--shop-ink-soft);
  font-size: 9px;
  padding: 4px 9px;
}

body.catalog .cat-tag a { color: var(--shop-muted); }

body.catalog .cat-views {
  padding: 2px;
  border-color: var(--shop-line);
  background: #f7f3e8;
}

body.catalog .cat-views button {
  width: 29px;
  height: 29px;
  color: #7e9184;
}

body.catalog .cat-views button[aria-pressed="true"] {
  background: var(--shop-ink);
  color: var(--shop-lime);
}

body.catalog .cat-sort-form label {
  gap: 6px;
  color: var(--shop-muted);
  font-size: 8px;
  letter-spacing: .12em;
}

body.catalog .cat-sort-form select {
  height: 34px;
  border-color: var(--shop-line);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--shop-ink);
  font-size: 10.5px;
  font-weight: 650;
  padding: 0 28px 0 10px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5b6f61 50%), linear-gradient(135deg, #5b6f61 50%, transparent 50%);
  background-position: calc(100% - 12px) 14px, calc(100% - 8px) 14px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

body.catalog .cat-sort-form select:focus-visible {
  outline: 2px solid var(--shop-ink);
  outline-offset: 2px;
}

/* ---------- product cards ---------- */
body.catalog .cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
}

body.catalog .cat-grid .h-card {
  position: relative;
  padding: 7px 7px 9px;
  border: 1px solid #e7e0d0;
  border-radius: 16px;
  background: var(--shop-paper);
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s, border-color .22s;
}

body.catalog .cat-grid .h-card:hover {
  transform: translateY(-3px);
  border-color: #d5cbb5;
  box-shadow: 0 24px 38px -32px rgba(10, 36, 26, .55);
}

body.catalog .cat-grid .h-card-media {
  border-radius: 11px;
  overflow: hidden;
}

body.catalog .cat-grid .h-card-info {
  padding: 8px 4px 1px;
}

body.catalog .cat-grid .h-card-brand {
  display: block;
  margin-bottom: 3px;
  color: #85968a;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.catalog .cat-grid .h-card-title {
  color: var(--shop-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.012em;
}

body.catalog .cat-grid .h-card-row {
  margin-top: 6px;
  align-items: baseline;
  gap: 6px;
}

body.catalog .cat-grid .h-card-row strong {
  color: #0d7a52;
  font-size: 14px;
  letter-spacing: -.02em;
}

body.catalog .cat-grid .h-card-row s {
  color: #9aa89d;
  font-size: 9px;
}

body.catalog .cat-grid .h-card-meta {
  margin-top: 4px;
  color: #7e9184;
  font-size: 8.5px;
}

body.catalog .cat-grid .h-card-rate {
  border: 1px solid #e8e0cf;
  background: #f8f4e9;
  color: #5e715f;
  font-size: 8px;
  padding: 2px 5px;
}

body.catalog .cat-grid .h-card-rate i { color: #c28b2e; }

body.catalog .cat-grid .h-heart {
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(10, 36, 26, .1);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(6px);
}

body.catalog .cat-grid .h-tags {
  left: 7px;
  top: 7px;
}

body.catalog .cat-grid .h-tag {
  border-radius: 5px;
  font-size: 8px;
  padding: 4px 6px;
}

body.catalog .cat-grid .h-card-cta { display: none; }

body.catalog .cat-grid .inf-wrap { grid-column: 1 / -1; }

body.catalog .cat-empty {
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  background: var(--shop-paper);
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  body.catalog .cat-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; }
  body.catalog .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.catalog .cat-layout.filters-hidden .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.catalog .cat-editorial { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 900px) {
  body.catalog .cat-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 12px;
    padding-bottom: 30px;
  }

  body.catalog .cat-layout.filters-hidden .cat-side { display: block !important; }

  body.catalog .cat-editorial {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 0 12px;
  }

  body.catalog .cat-ed-crumb { margin-bottom: 8px; font-size: 8px; }
  body.catalog .cat-editorial h1 { font-size: clamp(32px, 8.4vw, 40px); }
  body.catalog .cat-editorial p { margin-top: 7px; font-size: 11px; line-height: 1.5; }
  body.catalog .cat-ed-kicker { margin-bottom: 7px; padding: 4px 8px; font-size: 7px; }

  body.catalog .cat-chips { padding-bottom: 10px; }

  body.catalog .cat-side {
    top: auto;
    padding: 14px 16px calc(12px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    border: 0;
    box-shadow: 0 -20px 50px -20px rgba(10, 21, 18, .4);
  }

  body.catalog .cat-toolbar {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 0;
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.catalog .cat-tools-left,
  body.catalog .cat-tools-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 7px;
  }

  body.catalog .cat-tools-right { margin-left: auto; }
  body.catalog .cat-active { display: none; }

  body.catalog .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  body.catalog .cat-layout.filters-hidden .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 8px !important; }
  body.catalog .cat-grid .h-card { padding: 5px 5px 7px; border-radius: 13px; }
  body.catalog .cat-grid .h-card-info { padding: 7px 3px 0; }
  body.catalog .cat-grid .h-card-title { font-size: 11.5px; }
  body.catalog .cat-grid .h-card-row strong { font-size: 13px; }
  body.catalog .cat-grid .h-card-brand { font-size: 7px; }
  body.catalog .cat-grid .h-card-meta { font-size: 8px; }

  body.catalog .cat-filter-btn {
    height: 34px;
    background: var(--shop-ink);
    border-color: var(--shop-ink);
    color: #fff;
  }

  body.catalog .cat-filter-btn i { background: var(--shop-lime); color: var(--shop-ink); }
  body.catalog .cat-filter-toggle { display: none; }
  body.catalog .cat-result-count { display: none; }

  body.catalog .cat-tools-right { margin-left: auto; }
  body.catalog .cat-sort-form label > span { display: none; }
  body.catalog .cat-sort-form label { gap: 0; }
  body.catalog .cat-sort-form select { height: 34px; font-size: 10px; }
}

@media (max-width: 380px) {
  body.catalog .cat-editorial h1 { font-size: 32px; }
  body.catalog .cat-ed-index > strong { font-size: 26px; }
  body.catalog .cat-grid { gap: 16px 8px; }
  body.catalog .cat-grid .h-card-title { font-size: 11px; }
  body.catalog .cat-views { display: none; }
  body.catalog .cat-sort-form select { max-width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  body.catalog .cat-grid .h-card,
  body.catalog .cat-chip,
  body.catalog .cat-ed-index-foot a b { transition: none; }
  body.catalog .cat-grid .h-card:hover { transform: none; }
}
