/* NEX8 HOME CATEGORIES PREMIUM 2026-10-27
   Real category image settings and the four existing destinations are preserved.
   Loaded only on the public Home, after nex8-home-products.css. */
.nex8-home .nex8-category-grid--premium{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual,
.nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
.nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
  --category-accent:#ff8b2a;
  --category-glow:#0c6eac;
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,53%) minmax(0,47%);
  grid-template-rows:auto minmax(0,1fr) auto auto auto;
  align-items:stretch;
  justify-content:initial;
  min-width:0;
  min-height:335px;
  padding:27px 30px 29px;
  border:1px solid #35536f;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 77% 42%,#175179 0%,#0e3452 34%,transparent 68%),
    linear-gradient(132deg,#071827 3%,#0c2942 63%,#061522 100%);
  color:#fff;
  box-shadow:0 22px 50px #10283a1b, inset 0 1px 0 #ffffff18;
  text-decoration:none;
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2){
  --category-accent:#63cafe;
  --category-glow:#1678a6;
  background:
    radial-gradient(ellipse at 73% 37%,#225777 0%,transparent 60%),
    linear-gradient(135deg,#091727 0%,#13344b 68%,#071420 100%);
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(3){
  --category-accent:#ff9b37;
  --category-glow:#12638f;
  background:
    radial-gradient(ellipse at 77% 41%,#174e73 0%,transparent 61%),
    linear-gradient(135deg,#071a2b 0%,#0c2d48 72%,#061725 100%);
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
  --category-accent:#ff8a20;
  --category-glow:#40617f;
  background:
    radial-gradient(ellipse at 74% 37%,#254a6c 0%,transparent 60%),
    linear-gradient(135deg,#0b1b31 0%,#1c314d 72%,#061522 100%);
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:hover{
  transform:translateY(-5px);
  border-color:#8ab4cb;
  box-shadow:0 29px 62px #061f3640, inset 0 1px 0 #ffffff22;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:before{
  content:"";
  position:absolute;
  display:block;
  z-index:0;
  pointer-events:none;
  inset:auto -12% -48% auto;
  width:75%;
  height:155%;
  border-radius:50%;
  transform:none;
  border:0;
  background:radial-gradient(ellipse at 50% 50%,var(--category-glow) 0%,#0d35542a 39%,transparent 70%);
  opacity:.78;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:after{
  content:"";
  position:absolute;
  display:block;
  z-index:4;
  pointer-events:none;
  inset:auto auto 0 30px;
  width:48px;
  height:4px;
  border-radius:100px 100px 0 0;
  background:var(--category-accent);
}
.nex8-home .nex8-category-grid--premium .nex8-category-number{
  position:relative;
  z-index:3;
  grid-column:1;
  grid-row:1;
  align-self:start;
  top:auto;
  left:auto;
  right:auto;
  width:max-content;
  max-width:100%;
  margin:0;
  color:#dcecf7;
  font-size:.68rem;
  font-weight:780;
  line-height:1.35;
  letter-spacing:.115em;
  text-transform:uppercase;
  text-shadow:none;
}
.nex8-home .nex8-category-grid--premium .nex8-category-arrow{
  position:relative;
  z-index:3;
  grid-column:2;
  grid-row:1;
  align-self:start;
  justify-self:end;
  top:auto;
  right:auto;
  left:auto;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin:-6px -6px 0 0;
  border:1px solid #ffffff44;
  border-radius:50%;
  background:#ffffff10;
  color:#fff;
  font-size:1.16rem;
  line-height:1;
  transition:background .22s ease,transform .22s ease;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:hover .nex8-category-arrow{
  background:var(--category-accent);
  transform:translate(2px,-2px);
}
.nex8-home .nex8-category-grid--premium .nex8-category-photo,
.nex8-home .nex8-category-grid--premium .nex8-category-photo--custom{
  position:relative;
  z-index:2;
  grid-column:2;
  grid-row:2/6;
  align-self:center;
  justify-self:center;
  display:block;
  width:min(130%,335px);
  max-width:none;
  height:auto;
  max-height:300px;
  min-width:0;
  margin:0 0 0 -12%;
  aspect-ratio:1/1;
  object-fit:contain;
  object-position:center;
  background-color:transparent;
  border:0;
  box-shadow:none;
  filter:drop-shadow(0 18px 18px #0008);
  transform:translateY(5px) scale(1.04);
  transition:transform .38s ease,filter .38s ease;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:hover .nex8-category-photo{
  transform:translateY(-1px) scale(1.07);
  filter:drop-shadow(0 24px 25px #0009);
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
  position:relative;
  z-index:3;
  grid-column:1;
  grid-row:3;
  align-self:end;
  min-width:0;
  margin:0 0 12px;
  color:#fff;
  font-size:clamp(1.52rem,2.2vw,2.28rem);
  font-weight:840;
  line-height:1.13;
  letter-spacing:-.048em;
  overflow-wrap:break-word;
  text-shadow:none;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual p{
  position:relative;
  z-index:3;
  grid-column:1;
  grid-row:4;
  align-self:start;
  margin:0;
  color:#b9cedd;
  font-size:clamp(.84rem,1.05vw,.96rem);
  font-weight:430;
  line-height:1.54;
  overflow-wrap:break-word;
  text-shadow:none;
}
.nex8-home .nex8-category-grid--premium .nex8-category-cta{
  position:relative;
  z-index:3;
  grid-column:1;
  grid-row:5;
  align-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  width:max-content;
  max-width:100%;
  margin-top:20px;
  padding:10px 14px;
  border:1px solid #ffffff3d;
  border-radius:100px;
  background:#ffffff13;
  color:#f8fbff;
  font-size:.79rem;
  font-weight:750;
  line-height:1.25;
  transition:background .22s ease,border-color .22s ease;
}
.nex8-home .nex8-category-grid--premium .nex8-category-cta span{
  color:var(--category-accent);
  font-size:1.2rem;
  font-weight:600;
  line-height:1;
}
.nex8-home .nex8-category-grid--premium .nex8-category--visual:hover .nex8-category-cta{
  background:#ffffff24;
  border-color:var(--category-accent);
}
@media(min-width:1440px){
  .nex8-home .nex8-category-grid--premium .nex8-category--visual{
    min-height:355px;
    padding:32px 35px 33px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-photo{
    width:min(125%,370px);
    max-height:330px;
  }
}
@media(max-width:1100px){
  .nex8-home .nex8-category-grid--premium{gap:14px}
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    min-height:310px;
    padding:24px 23px 26px;
    border-radius:21px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-photo{width:min(130%,280px)}
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
    font-size:clamp(1.4rem,2.15vw,1.9rem);
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:after{left:23px}
}
@media(max-width:780px){
  .nex8-home .nex8-category-grid--premium{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    min-height:252px;
    grid-template-columns:minmax(0,54%) minmax(0,46%);
    padding:23px 25px 25px;
    border-radius:21px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-photo{
    width:min(120%,300px);
    max-height:230px;
    margin-left:-10%;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
    font-size:clamp(1.4rem,4.15vw,2.05rem);
    margin-bottom:9px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual p{
    font-size:.86rem;
    line-height:1.48;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-cta{margin-top:14px}
}
@media(max-width:420px){
  .nex8-home .nex8-category-grid--premium{
    gap:12px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    grid-template-columns:minmax(0,55%) minmax(0,45%);
    min-height:240px;
    padding:20px 16px 20px 19px;
    border-radius:17px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-number{
    font-size:.58rem;
    letter-spacing:.072em;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-arrow{
    width:33px;
    height:33px;
    font-size:1.05rem;
    margin:-5px -1px 0 0;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-photo{
    width:133%;
    max-height:190px;
    margin-left:-16%;
    transform:translateY(7px) scale(1.02);
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
    font-size:clamp(1.29rem,5.55vw,1.52rem);
    line-height:1.16;
    letter-spacing:-.035em;
    margin-bottom:8px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual p{
    font-size:.735rem;
    line-height:1.4;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    overflow:hidden;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-cta{
    margin-top:12px;
    padding:8px 10px;
    gap:7px;
    font-size:.69rem;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:after{
    left:19px;
  }
}
@media(max-width:340px){
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    min-height:253px;
    grid-template-columns:minmax(0,58%) minmax(0,42%);
    padding-left:14px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{font-size:1.24rem}
  .nex8-home .nex8-category-grid--premium .nex8-category-cta{font-size:.66rem}
}
@media(prefers-reduced-motion:reduce){
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category-arrow,
  .nex8-home .nex8-category-grid--premium .nex8-category-photo,
  .nex8-home .nex8-category-grid--premium .nex8-category-cta{
    transition:none!important;
    transform:none!important;
  }
}
