/* =========================================================
   Waters Funerals - Merchandise listing
   Blocks: merch-hero, catalogue, filter, filter-mobile, product-card
   ========================================================= */

/* ---------- Hero ---------- */
.merch-hero{
  position:relative;
  overflow:hidden;
  padding:130px 0 56px;
  isolation:isolate;
  width:100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.24) 38%, rgba(0,0,0,.68) 100%);
}
.merch-hero::before{
  content:"";
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(circle at 18% 26%, rgba(255,170,90,.06), transparent 22%),
    linear-gradient(90deg, rgba(7,7,7,.01) 0%, rgba(7,7,7,.08) 26%, rgba(7,7,7,.30) 54%, rgba(7,7,7,.76) 100%);
}
.merch-hero::after{
  content:"";
  position:absolute;left:0;right:0;bottom:-1px;height:240px;z-index:2;pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(10,5,1,.16) 26%, rgba(8,4,2,.36) 48%, rgba(6,5,4,.72) 74%, rgba(5,5,5,.96) 90%, #050505 100%);
}
.merch-hero__waves{
  position:absolute;
  left:-4%;top:-8%;
  width:min(1100px, 72vw);
  opacity:.76;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:screen;
  transform-origin:center;
  will-change:transform;
  filter:brightness(1.35) saturate(1.08) contrast(1.04) drop-shadow(0 0 34px rgba(255,150,80,.16));
}
.merch-hero__glow-left{
  position:absolute;
  left:-6%;top:-4%;
  width:min(760px, 48vw);
  opacity:.42;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:screen;
  will-change:transform;
  filter:brightness(1.1) blur(1px);
}
.merch-hero__glow-right{
  position:absolute;
  right:-8%;bottom:-10%;
  width:min(820px, 54vw);
  opacity:.38;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:screen;
  will-change:transform;
  filter:brightness(1.08) blur(1px);
}
.merch-hero__grid{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:flex-start;
  justify-items:flex-start;
}
.merch-hero__copy{max-width:820px;}
.merch-hero__kicker{
  display:inline-block;
  color:var(--accent-2);
  font-family:var(--font-display-bold);
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.merch-hero__headline{
  font-family:var(--font-display);
  font-size:clamp(40px, 5.4vw, 76px);
  line-height:.88;
  letter-spacing:1px;
  text-transform:uppercase;
  max-width:860px;
}
.merch-hero__accent{color:var(--accent);}
.merch-hero__text{
  margin-top:16px;
  max-width:640px;
  color:var(--text-soft);
  font-family:var(--font-display);
  font-size:clamp(16px, 1.65vw, 22px);
  line-height:1.8;
}
.merch-hero__actions{
  margin-top:24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.merch-hero__scroll{
  position:absolute;
  left:50%;
  bottom:80px;
  transform:translateX(-50%);
  z-index:3;
  width:56px;height:56px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  transition:all .35s var(--ease);
}
.merch-hero__scroll:hover{
  transform:translateX(-50%) translateY(4px);
  border-color:rgba(255,255,255,.16);
  background:rgba(239,104,0,.08);
}
.merch-hero__scroll-icon{display:block;}

/* ---------- Catalogue section ---------- */
.merch-hero__scroll,.merch-hero__scroll:hover{display:none;}
.catalogue{
  position:relative;
  padding:40px 0 110px;
  z-index:1;
  width:100%;
  background-color:#060505;
}
.catalogue::before{
  content:"";
  position:absolute;left:0;right:0;top:-120px;height:180px;
  pointer-events:none;z-index:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(4,4,4,.70) 45%, rgba(5,5,5,1) 100%);
}
.catalogue::after{
  content:"";
  position:absolute;left:0;right:0;bottom:-120px;height:180px;
  pointer-events:none;z-index:0;
  background:linear-gradient(to bottom, rgba(5,5,5,1) 0%, rgba(4,4,4,.70) 55%, rgba(0,0,0,0) 100%);
}
.catalogue > *{position:relative;z-index:2;}
.catalogue__top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:end;
  margin-bottom:34px;
}
.catalogue__heading{min-width:0;}
.catalogue__copy{
  color:var(--text-muted);
  font-size:18px;
  line-height:1.9;
  max-width:680px;
}
.catalogue__layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:40px;
  align-items:start;
}
.catalogue__main{min-width:0;}
.catalogue__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 2px 16px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.catalogue__count{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
  letter-spacing:.02em;
}
.catalogue__clear{
  background:none;
  border:1px solid rgba(239,104,0,.45);
  color:#ff9e57;
  border-radius:999px;
  padding:8px 14px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .3s ease, color .3s ease, border-color .3s ease;
}
.catalogue__clear:hover{background:var(--accent-2);border-color:var(--accent-2);color:#fff;}
.catalogue__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
}
.catalogue__empty{
  margin-top:24px;
  color:var(--text-muted);
  font-size:16px;
}

/* ---------- Sidebar filter ---------- */
.filter{position:relative;}
.filter__inner{
  position:sticky;
  top:110px;
  padding:4px 0 0;
}
.filter__head{display:block;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.1);}
.filter__kicker{
  color:var(--accent-2);
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.filter__title{
  margin-top:8px;
  font-family:var(--font-display-bold);
  font-size:28px;
  line-height:1;
  letter-spacing:-.02em;
  text-transform:uppercase;
}
.filter__hint{
  margin:10px 0 0;
  color:var(--text-muted);
  font-size:13px;
  line-height:1.6;
}
.filter__group{
  border-bottom:1px solid rgba(255,255,255,.08);
}
.filter__toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color:#fff;
  text-align:left;
  padding:18px 2px;
  cursor:pointer;
  background:none;
  border:none;
}
.filter__group-name{
  font-family:var(--font-display-bold);
  font-size:16px;
  line-height:1.2;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.filter__plus{
  display:flex;align-items:center;justify-content:center;
  width:26px;height:26px;
  border-radius:50%;
  border:1px solid rgba(239,104,0,.45);
  color:var(--accent-2);
  font-size:18px;
  font-weight:300;
  line-height:1;
  font-style:normal;
  transition:transform .3s var(--ease), background .3s ease, color .3s ease;
}
.filter__toggle:hover .filter__plus{background:rgba(239,104,0,.12);}
.filter__toggle.is-open .filter__plus{transform:rotate(45deg);background:var(--accent-2);color:#fff;}
.filter__content{
  max-height:0;
  overflow:hidden;
  transition:max-height .45s var(--ease);
}
.filter__list{
  list-style:none;
  margin:0;
  padding:0 0 14px;
  display:grid;
  gap:2px;
}
.filter__item{margin:0;padding:0;}
.filter__option{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:40px;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  color:rgba(255,255,255,.72);
  font-size:14.5px;
  line-height:1.4;
  transition:color .25s ease, background .25s ease;
}
.filter__option:hover{color:#fff;background:rgba(255,255,255,.04);}
.filter__checkbox{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;height:1px;
}
.filter__indicator{
  position:relative;
  width:18px;height:18px;min-width:18px;
  border-radius:5px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.02);
  transition:border-color .25s ease, background .25s ease;
}
.filter__option:hover .filter__indicator{border-color:rgba(239,104,0,.6);}
.filter__checkbox:checked + .filter__indicator{
  border-color:var(--accent-2);
  background:var(--accent-2);
}
.filter__checkbox:checked + .filter__indicator::after{
  content:"";
  position:absolute;
  left:5px;top:2px;
  width:5px;height:9px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(45deg);
}
.filter__checkbox:focus-visible ~ .filter__text{text-decoration:underline;}
.filter__text{
  display:block;
  flex:1;
  color:inherit;
  transition:color .25s ease;
}
.filter__checkbox:checked ~ .filter__text{color:#fff;}
.filter__count{
  color:var(--text-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  transition:color .25s ease, border-color .25s ease;
}
.filter__checkbox:checked ~ .filter__count{color:#ff9e57;border-color:rgba(239,104,0,.45);}

/* ---------- Mobile filter ---------- */
.filter-mobile{
  display:none;
  margin-bottom:22px;
}
.filter-mobile__button{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 18px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
  color:#fff;
  cursor:pointer;
}
.filter-mobile__label{
  font-family:var(--font-display-bold);
  font-size:15px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.filter-mobile__plus{
  color:var(--accent-2);
  font-size:24px;
  line-height:1;
  font-style:normal;
  transition:transform .3s var(--ease);
}
.filter-mobile.is-open .filter-mobile__plus{transform:rotate(45deg);}
.filter-mobile__panel{
  max-height:0;
  overflow:hidden;
  transition:max-height .45s var(--ease);
  padding:0 4px;
}
.filter-mobile__panel .filter__group{margin-top:0;}

/* ---------- Product card ---------- */
.product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:12px;
  background:#101010;
  border:1px solid rgba(255,255,255,.08);
  transition:border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover{
  border-color:rgba(239,104,0,.55);
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.product-card.is-hidden{display:none;}
.product-card__media{
  position:relative;
  display:block;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#fff;
}
.product-card__image{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:7%;
  transition:transform .8s var(--ease);
}
.product-card:hover .product-card__image{transform:scale(1.05);}
.product-card__body{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px 22px 22px;
  flex:1;
}
.product-card__tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.product-card__tag{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--text-muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  transition:color .25s ease, border-color .25s ease;
}
.product-card__tag:hover{color:#fff;border-color:rgba(239,104,0,.6);}
.product-card__title{
  font-family:var(--font-display-bold);
  font-size:21px;
  line-height:1.08;
  letter-spacing:-.01em;
  text-transform:uppercase;
}
.product-card__title-link{color:#fff;transition:color .25s ease;}
.product-card__title-link:hover{color:#ff9e57;}
.product-card__link{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-2);
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.product-card__arrow{display:inline-block;transition:transform .3s var(--ease);}
.product-card__link:hover .product-card__arrow{transform:translateX(4px);}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .catalogue__grid{grid-template-columns:repeat(2, minmax(0,1fr));}
  .merch-hero{padding:120px 0 48px;}
}
@media (max-width:991px){
  .merch-hero{padding:104px 0 40px;}
  .merch-hero__grid{min-height:auto;gap:24px;}
  .merch-hero__copy{padding-top:0;max-width:100%;}
  .merch-hero__headline{font-size:clamp(34px, 6.4vw, 56px);line-height:.92;max-width:100%;}
  .merch-hero__text{max-width:100%;font-size:18px;line-height:1.75;}
  .merch-hero__scroll{bottom:0;}
  .merch-hero__waves{left:-16%;top:-2%;width:112vw;max-width:none;opacity:.78;}
  .merch-hero__glow-left{left:-16%;top:0;width:82vw;max-width:none;opacity:.34;}
  .merch-hero__glow-right{right:-22%;bottom:2%;width:78vw;max-width:none;opacity:.22;}
  .catalogue__top,.catalogue__layout{grid-template-columns:1fr;}
  .filter{display:none;}
  .filter-mobile{display:block;}
}
@media (max-width:767px){
  .catalogue{padding:24px 0 72px;}
  .merch-hero{padding:92px 0 32px;}
  .merch-hero::after{height:120px;}
  .merch-hero__copy{padding-top:0;max-width:100%;}
  .merch-hero__headline{font-size:clamp(30px, 9vw, 42px);line-height:.95;}
  .merch-hero__text{margin-top:12px;font-size:15px;line-height:1.65;}
  .merch-hero__actions{margin-top:18px;flex-direction:row;flex-wrap:wrap;}
  .merch-hero__actions .btn{min-height:46px;padding:0 18px;}
  .merch-hero__waves{left:-34%;top:-4%;width:152vw;opacity:.82;}
  .merch-hero__glow-left{left:-28%;top:2%;width:108vw;}
  .merch-hero__glow-right{right:-42%;bottom:8%;width:92vw;opacity:.18;}
  .merch-hero__scroll{width:46px;height:46px;bottom:10px;}
  .catalogue__toolbar{padding-bottom:12px;margin-bottom:14px;}
  .catalogue__grid{grid-template-columns:repeat(2, minmax(0,1fr));gap:12px;}
  .product-card{min-height:auto;border-radius:10px;}
  .product-card__media{aspect-ratio:1 / 1;}
  .product-card__image{padding:6%;}
  .product-card__body{padding:12px 14px 14px;gap:8px;}
  .product-card__tags{gap:4px;}
  .product-card__tag{padding:4px 7px;font-size:9px;letter-spacing:.1em;}
  .product-card__title{font-size:15px;}
  .product-card__link{font-size:10px;letter-spacing:.1em;}
  .filter-mobile{margin-bottom:14px;}
  .filter-mobile__button{padding:13px 16px;}
}
@media (max-width:480px){
  .merch-hero{padding:88px 0 28px;}
  .merch-hero__copy{padding-top:0;}
  .merch-hero__headline{font-size:clamp(30px, 10vw, 42px);}
  .merch-hero__text{font-size:14px;line-height:1.68;}
  .merch-hero__waves{left:-38%;top:0;width:165vw;}
  .merch-hero__glow-left{left:-32%;top:2%;width:118vw;}
}
