/* Super Stubborn — Built to be Worn
   GEGENEREERD uit de mockup (sectie `products`) door port_to_wp.py.
   Gedeelde componenten en tokens staan in assets/css/superstubborn.css. */

/* ===== SUPER STUBBORN — PRODUCTS SECTION (refined) ===== */
.ssx-products{ overflow-x:clip; }

/* --- Section header --- */
.ssx-products-head{
  display:flex;
  flex-direction:column;
  gap:var(--ss-sp-5);
  margin-bottom:var(--ss-sp-6);
}
.ssx-products-head__row{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ss-sp-5);
  align-items:end;
}
.ssx-products-head__lead{ max-width:44ch; }
@media (min-width:900px){
  .ssx-products-head__row{
    grid-template-columns:1.2fr 0.8fr;
    gap:var(--ss-sp-8);
  }
  .ssx-products-head__lead{ padding-bottom:0.4rem; }
}

.ssx-products .ss-hairline{ margin-block:var(--ss-sp-6) var(--ss-sp-7); }

/* --- Grid --- */
.ssx-products-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ss-sp-6) var(--ss-sp-5);
}
@media (min-width:560px){
  .ssx-products-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1024px){
  .ssx-products-grid{
    grid-template-columns:repeat(4,1fr);
    gap:var(--ss-sp-7) var(--ss-sp-5);
  }
}

/* --- Card --- */
.ssx-products-card{ display:flex; flex-direction:column; }

/* Media: two stacked real photos that hover-swap */
.ssx-products-media{
  position:relative;
  border-radius:var(--ss-r-lg) var(--ss-r-lg) 0 0;
  overflow:hidden;
  isolation:isolate;
}
.ssx-products-media__alt{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity var(--ss-dur-3) var(--ss-ease);
  z-index:1;
}
.ss-card:hover .ssx-products-media__alt,
.ss-card:focus-within .ssx-products-media__alt{ opacity:1; }

/* --- Wishlist heart --- */
.ssx-products-wish{
  position:absolute;
  top:var(--ss-sp-4);
  right:var(--ss-sp-4);
  z-index:6;
  display:inline-grid;
  place-items:center;
  width:2.3rem;
  height:2.3rem;
  border-radius:var(--ss-r-pill);
  background:color-mix(in srgb, var(--ss-ground) 55%, transparent);
  backdrop-filter:blur(6px);
  border:1px solid var(--ss-hairline);
  color:var(--ss-beige);
  cursor:pointer;
  transition:border-color var(--ss-dur-1) var(--ss-ease),
             color var(--ss-dur-1) var(--ss-ease),
             transform var(--ss-dur-1) var(--ss-ease);
}
.ssx-products-wish:hover{ border-color:var(--ss-hairline-accent); }
.ssx-products-wish svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  transition:fill var(--ss-dur-1) var(--ss-ease),
             stroke var(--ss-dur-1) var(--ss-ease),
             transform var(--ss-dur-2) var(--ss-ease);
}
.ssx-products-wish__cb{
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer;
}
.ssx-products-wish__cb:focus-visible ~ svg{ outline:none; }
.ssx-products-wish:focus-within{
  outline:2px solid var(--ss-orange);
  outline-offset:3px;
}
.ssx-products-wish__cb:checked ~ svg{
  fill:var(--ss-orange);
  stroke:var(--ss-orange);
  transform:scale(1.12);
}

/* --- Card body --- */
.ssx-products-card__body{
  display:flex;
  flex-direction:column;
  gap:var(--ss-sp-2);
  flex:1;
}
.ssx-products-card__meta{
  font-size:var(--ss-fs-small);
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin:0;
}
.ssx-products-add{
  width:100%;
  margin-top:var(--ss-sp-4);
}

/* --- Footer link --- */
.ssx-products-foot{
  display:flex;
  justify-content:center;
  margin-top:var(--ss-sp-7);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce){
  .ssx-products-media__alt{ transition:none; }
  .ssx-products-wish__cb:checked ~ svg{ transform:none; }
}
