/* ============================================================
   Catalog page styles — photo-led, no prices
   ============================================================ */

/* ---- Header (photo) ---- */
.cat-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: calc(var(--nav-h) + 64px) 0 56px;
}
.cat-header .cat-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cat-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(118deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.66) 46%, rgba(242,115,31,0.5) 100%);
}
.cat-header .eyebrow { color: #fff; }
.cat-header h1 { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 6px 0 16px; }
.cat-header .lead { color: rgba(255,255,255,0.9); max-width: 60ch; }
.cat-header .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Search */
.search-wrap { position: relative; max-width: 520px; margin-top: 30px; }
.search-wrap svg.search-ico {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-faint);
}
#catalogSearch {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 16px 20px 16px 52px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
#catalogSearch:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,145,76,0.4); }

/* Filter pills */
.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.filter-scroll {
  display: flex; gap: 10px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s ease;
}
.pill:hover { border-color: var(--orange); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Catalog body */
.catalog-body { padding: 48px 0 88px; }
.cat-group { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 70px); }

/* Category banner */
.cat-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 168px;
  display: flex; align-items: flex-end;
  margin-bottom: 26px;
  isolation: isolate;
  box-shadow: var(--shadow-card);
}
.cat-banner .cb-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cat-banner .cb-media.grad-orange { background: var(--grad-orange); }
.cat-banner .cb-media.grad-dark { background: linear-gradient(160deg, #22201D 0%, #0A0A0A 100%); }
.cat-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.35) 60%, transparent 100%);
}
.cat-banner.is-grad::after { background: linear-gradient(90deg, rgba(10,10,10,0.3), transparent 70%); }
.cat-banner-watermark { position: absolute; top: -16px; right: 8px; z-index: -1; width: 150px; height: 150px; color: rgba(255,255,255,0.16); }
.cat-banner-watermark svg { width: 100%; height: 100%; }
.cat-banner-content { padding: 26px 30px; color: #fff; }
.cat-banner .cb-kicker { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.cat-banner h2 { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 5px 0 0; }
.cat-banner .cb-count { font-size: 0.86rem; color: rgba(255,255,255,0.78); margin-top: 6px; display: block; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; }
.product-media {
  position: relative; aspect-ratio: 1 / 1;
  background-color: #fff; background-size: cover; background-repeat: no-repeat; background-position: center;
  border-bottom: 1px solid var(--line);
}
.product-media.has-photo { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media.has-photo { transform: scale(1.05); }
.product-media.ph {
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 18%, #FFFFFF 0%, var(--cream) 78%);
}
.product-media.ph .ph-ico { width: 40%; max-width: 82px; color: var(--orange-deep); opacity: .5; }
.product-media.ph .ph-ico svg { width: 100%; height: 100%; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ptag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-deep); background: rgba(255,145,76,0.13);
  padding: 5px 10px; border-radius: var(--r-pill);
}
.psize {
  font-size: 0.72rem; font-weight: 600; color: var(--text-faint);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.product h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  color: var(--ink); line-height: 1.25; margin-bottom: 18px; min-height: 2.5em;
}
.email-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  padding: 11px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); color: var(--ink);
  background: #fff; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.email-btn svg { width: 15px; height: 15px; }
.product:hover .email-btn { background: var(--grad-orange); color: #fff; border-color: transparent; }
.email-btn:hover { transform: translateY(-1px); }

.catalog-empty {
  display: none; text-align: center; padding: 60px 20px; color: var(--text-soft);
}
.catalog-empty h3 { font-size: 1.4rem; margin-bottom: 8px; }

/* CTA */
.cta-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  padding: 72px 60px; text-align: center; color: #fff; isolation: isolate;
}
.cta-photo .cta-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(118deg, rgba(10,10,10,0.82), rgba(242,115,31,0.62)); }
.cta-photo h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-photo p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin: 16px auto 30px; max-width: 52ch; }

@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } .product h3 { min-height: 0; } }
@media (max-width: 420px)  { .product-grid { grid-template-columns: 1fr; } .cta-photo { padding: 50px 24px; } }
@media (max-width: 480px) {
  .cat-header { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .catalog-body { padding: 36px 0 64px; }
  .cat-group { margin-bottom: 42px; }
  .cat-banner { min-height: 144px; }
  .cat-banner-content { padding: 22px; }
  .search-wrap { margin-top: 22px; }
  .cta-photo { padding: 44px 22px; }
}
