/* =====================================================
   Products page styles (loads after style.css)
   ===================================================== */
.page-inner .site-header { position: sticky; background: #fff; border-bottom: 1px solid var(--line); }
.page-inner .main-nav a.active { border-color: #e4572e; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: #fff; min-height: 300px; }
.page-hero-media { position: absolute; inset: 0; left: 40%; right: 12%; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.page-hero-media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 6%, rgba(255,255,255,0) 26%),
    linear-gradient(90deg, rgba(255,255,255,0) 82%, rgba(255,255,255,.9) 94%, #fff 100%);
}
.page-hero-caption { right: auto; left: 100%; margin-left: 28px; width: max-content; }
.page-hero-caption {
  position: absolute; right: 56px; top: 50%; transform: translateY(-40%);
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; line-height: 1.7;
  color: var(--ink); padding-top: 14px;
}
.page-hero-caption::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 1px; background: var(--ink); }
.page-hero-inner { position: relative; display: flex; align-items: center; min-height: 300px; padding-block: 36px; }
.page-hero-content { max-width: 600px; }
.eyebrow-line { display: flex; align-items: center; gap: 14px; }
.eyebrow-line::after { content: ""; width: 44px; height: 1px; background: var(--muted); }
.page-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.page-hero .hero-lead { margin-bottom: 0; max-width: 520px; }

/* ---------- catalog ---------- */
.catalog { padding: 32px 0 64px; }
.catalog-grid { display: grid; grid-template-columns: 252px 1fr; gap: 40px; align-items: start; }
.catalog-side { position: sticky; top: 84px; }
.filter-toggle { display: none; }
.filter-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.filter-list li + li { border-top: 1px solid var(--line); }
.filter-btn {
  display: block; width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer;
  padding: 14px 24px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.filter-btn:hover { background: var(--bg-soft); color: var(--ink); }
.filter-btn.is-active { background: #fdf1ec; color: #e4572e; border-left-color: #e4572e; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.search-box {
  display: flex; align-items: center; gap: 12px; flex: 0 1 460px;
  border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; background: #fff;
}
.search-box:focus-within { border-color: var(--ink); }
.search-box svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 12px 0; min-width: 0; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sort-box { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.sort-box select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 11px 40px 11px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.sort-box select:focus { outline: 0; border-color: var(--ink); }
.catalog-count { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.catalog-empty { padding: 40px 0; color: var(--muted); text-align: center; }

.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pcard {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.pcard-img { aspect-ratio: 1 / 0.64; overflow: hidden; background: #f3f3f1; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f1f4ec, #e3ead9);
}
.pcard-placeholder span { font-family: var(--font-serif); font-size: 40px; color: var(--green); opacity: .55; }
.pcard-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-weight: 500; font-size: 14.5px; border-top: 1px solid var(--line); }
.pcard-label span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard:hover .icon-arrow { transform: translateX(3px); }

/* ---------- inner cta band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .section-title { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 560px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; }

@media (max-width: 1280px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
  .page-hero-caption { display: none; }
}
@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: 220px 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .page-hero { display: flex; flex-direction: column; min-height: 0; }
  .page-hero-media { position: relative; left: 0; height: 220px; order: 2; }
  .page-hero-media::before { display: none; }
  .page-hero-caption { display: none; }
  .page-hero-inner { min-height: 0; padding-block: 32px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-side { position: static; }
  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; font-weight: 600; font-size: 15px; cursor: pointer;
  }
  .filter-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .filter-list { display: none; margin-top: 8px; }
  .filter-list.open { display: block; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { flex-basis: auto; }
  .sort-box { justify-content: space-between; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
