/* Scrollprise UI Lab — category/discovery windows aligned to the FINAL product-card system.
   Experimental branch only. Theme colours remain as small accents, never full-card backgrounds. */

/* Neutral section canvas — same family as the final hero/product gallery. */
body:not(.swipe-page) .discovery-hub{
  position:relative!important;
  padding:72px 0 92px!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,255,255,.70),transparent 34rem),
    linear-gradient(180deg,#e8e8e6 0%,#dfdfda 100%)!important;
  color:#111!important;
  border-top:1px solid rgba(0,0,0,.055)!important;
  border-bottom:1px solid rgba(0,0,0,.055)!important;
}
body:not(.swipe-page) .discovery-hub::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.13;
  background-image:
    radial-gradient(circle at 12% 18%,rgba(0,0,0,.12) 0 1px,transparent 1.4px),
    radial-gradient(circle at 75% 34%,rgba(255,255,255,.9) 0 1px,transparent 1.4px);
  background-size:230px 205px,280px 250px;
}
body:not(.swipe-page) .discovery-hub .container,
body:not(.swipe-page) .discovery-hub-rail{position:relative;z-index:1}

body:not(.swipe-page) .discovery-intro .eyebrow,
body:not(.swipe-page) .discovery-heading .eyebrow{
  color:#777773!important;
}
body:not(.swipe-page) .discovery-intro h2,
body:not(.swipe-page) .discovery-heading h2{
  color:#111!important;
}
body:not(.swipe-page) .discovery-intro p,
body:not(.swipe-page) .discovery-heading p{
  color:#666663!important;
}
body:not(.swipe-page) .discovery-family{
  margin-bottom:64px!important;
}
body:not(.swipe-page) .discovery-heading{
  margin-bottom:22px!important;
}

/* Category windows inherit the approved product-card physical language. */
body:not(.swipe-page) .discovery-grid{
  gap:17px!important;
}
body:not(.swipe-page) .discovery-card{
  --accent:#111;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:222px!important;
  padding:20px 20px 17px!important;
  overflow:hidden!important;
  isolation:isolate!important;
  color:#111!important;
  background:linear-gradient(180deg,#f2f2f0 0%,#ececea 100%)!important;
  border:5px solid #fff!important;
  border-radius:27px!important;
  box-shadow:
    0 28px 35px rgba(0,0,0,.15),
    0 9px 13px rgba(0,0,0,.065),
    inset 0 0 0 1px rgba(0,0,0,.025)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:translateY(0)!important;
  transition:transform .38s cubic-bezier(.2,.8,.2,1),box-shadow .38s cubic-bezier(.2,.8,.2,1)!important;
}

/* Replace the old full-card gradient with a tiny category identity marker. */
body:not(.swipe-page) .discovery-card::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:0!important;
  top:16px!important;
  right:17px!important;
  left:auto!important;
  bottom:auto!important;
  width:9px!important;
  height:9px!important;
  border-radius:50%!important;
  background:var(--accent)!important;
  box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 11%,transparent)!important;
  opacity:1!important;
  pointer-events:none!important;
}
body:not(.swipe-page) .discovery-card::after{display:none!important}

body:not(.swipe-page) .discovery-card:hover{
  transform:translateY(-9px)!important;
  border-color:#fff!important;
  box-shadow:
    0 40px 48px rgba(0,0,0,.18),
    0 12px 17px rgba(0,0,0,.08)!important;
}
body:not(.swipe-page) .discovery-card>*{
  position:relative!important;
  z-index:1!important;
}

/* Tiny spec-pill style metadata, directly borrowed from the final product card. */
body:not(.swipe-page) .discovery-card-top{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  padding-right:28px!important;
}
body:not(.swipe-page) .discovery-label,
body:not(.swipe-page) .discovery-card-top strong{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:0 9px!important;
  border:1px solid #d1d1ce!important;
  border-radius:999px!important;
  background:#f9f9f7!important;
  color:#595956!important;
  font-size:8px!important;
  font-weight:750!important;
  line-height:1!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
body:not(.swipe-page) .discovery-label::before{
  content:"•";
  margin-right:5px;
  color:var(--accent)!important;
  font-size:13px;
  line-height:0;
}
body:not(.swipe-page) .discovery-card-top strong{
  margin-left:auto!important;
  color:#8a8a86!important;
}

body:not(.swipe-page) .discovery-card h3{
  max-width:92%!important;
  margin:28px 0 24px!important;
  color:#111!important;
  font-size:clamp(24px,2vw,31px)!important;
  line-height:.96!important;
  letter-spacing:-.045em!important;
  font-weight:820!important;
}
body:not(.swipe-page) .discovery-card p{
  color:#656562!important;
}

body:not(.swipe-page) .discovery-card-open{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:13px!important;
  border-top:1px solid #d7d7d4!important;
  color:#555552!important;
  font-size:8px!important;
  font-weight:820!important;
  line-height:1!important;
  letter-spacing:.075em!important;
  text-transform:uppercase!important;
}
body:not(.swipe-page) .discovery-card-open span{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  margin-left:auto!important;
  border:1px solid #d1d1ce!important;
  border-radius:50%!important;
  background:#f9f9f7!important;
  color:#111!important;
  font-size:13px!important;
  transition:transform .25s ease!important;
}
body:not(.swipe-page) .discovery-card:hover .discovery-card-open span{
  transform:rotate(45deg)!important;
}

/* Preserve category personality without returning to coloured card surfaces. */
body:not(.swipe-page) .theme-violet{--accent:#8b5cf6!important}
body:not(.swipe-page) .theme-sunset{--accent:#ff7a59!important}
body:not(.swipe-page) .theme-cyan{--accent:#23aaa5!important}
body:not(.swipe-page) .theme-amber{--accent:#d79b20!important}
body:not(.swipe-page) .theme-rose{--accent:#e84a92!important}
body:not(.swipe-page) .theme-emerald{--accent:#2ca765!important}
body:not(.swipe-page) .theme-fuchsia{--accent:#d946ef!important}
body:not(.swipe-page) .theme-indigo{--accent:#6366f1!important}
body:not(.swipe-page) .theme-mint{--accent:#20a98c!important}
body:not(.swipe-page) .theme-ocean{--accent:#2586bd!important}
body:not(.swipe-page) .theme-saffron{--accent:#d88916!important}
body:not(.swipe-page) .theme-redhero{--accent:#df4343!important}
body:not(.swipe-page) .theme-gold{--accent:#b89018!important}

@media(max-width:900px){
  body:not(.swipe-page) .discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.swipe-page) .discovery-card{min-height:210px!important}
}
@media(max-width:620px){
  body:not(.swipe-page) .discovery-hub{padding:54px 0 70px!important}
  body:not(.swipe-page) .discovery-grid{grid-template-columns:1fr!important}
  body:not(.swipe-page) .discovery-card{min-height:190px!important}
  body:not(.swipe-page) .discovery-card h3{font-size:27px!important}
}


/* WORD CORRECTIONS + PERFORMANCE: discovery/category cards stay in the master light family. */
body:not(.swipe-page) .discovery-hub{
  background:radial-gradient(circle at 50% 0,rgba(255,255,255,.72),transparent 34rem),#e6e6e4!important;
  color:#111!important;
}
body:not(.swipe-page) .discovery-card h3{color:#111!important}
body:not(.swipe-page) .discovery-card p,
body:not(.swipe-page) .discovery-card-open{color:#5f5f5c!important}
@media (hover:hover) and (pointer:fine){
  body:not(.swipe-page) .discovery-card{
    transition:transform 260ms cubic-bezier(.22,.82,.22,1)!important;
    box-shadow:0 24px 34px rgba(0,0,0,.13),0 7px 11px rgba(0,0,0,.05)!important;
  }
  body:not(.swipe-page) .discovery-card:hover{
    transform:translate3d(0,-7px,0)!important;
    box-shadow:0 24px 34px rgba(0,0,0,.13),0 7px 11px rgba(0,0,0,.05)!important;
  }
}
