/* nadonate v2 category page */

.nd-shop.nd-cat-page {
  width:min(1460px, calc(100% - 80px));
  margin:0 auto;
  padding:0 0 52px;
}

.nd-cat-page .woocommerce-breadcrumb {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  color:#6a70ad;
  font-size:13px;
  font-weight:800;
}

.nd-cat-page .woocommerce-breadcrumb a {
  color:#3540c7;
  text-decoration:none;
}

.ndc-hero {
  --hero-icon-fill:linear-gradient(145deg, #267bff, #164ccc);
  position:relative;
  width:100%;
  box-sizing:border-box;
  min-height:0;
  aspect-ratio:2090 / 361;
  height:min(225px, calc(17.28vw - 42px));
  display:grid;
  grid-template-columns:76px 230px minmax(420px, 1fr) 330px;
  align-items:center;
  gap:28px;
  overflow:visible;
  margin:22px auto 18px;
  padding:14px 42px 12px 24px;
  border:1px solid #d8deff;
  border-radius:22px;
  background:#f5f6ff url("../img/v2/hero/category-hero-bg.png") center / cover no-repeat;
  box-shadow:var(--nd-shadow);
}

.ndc-hero__back {
  position:relative;
  z-index:4;
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#2d7dff;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 22px rgba(44,70,170,.1);
  text-decoration:none;
  transition:transform .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ndc-hero__back:hover,
.ndc-hero__back:focus-visible {
  transform:translateY(-2px);
  color:#1267f2;
  background:#fff;
  box-shadow:0 14px 26px rgba(44,70,170,.16);
  outline:none;
}

.ndc-hero__back svg {
  width:24px;
  height:24px;
}

.ndc-hero::before {
  content:none;
}

.ndc-hero.is-xbox { --hero-icon-fill:linear-gradient(145deg,#20c451,#0b8b2f); }
.ndc-hero.is-nintendo,
.ndc-hero.is-youtube { --hero-icon-fill:linear-gradient(145deg,#ff4a4a,#e90020); }
.ndc-hero.is-steam { --hero-icon-fill:linear-gradient(145deg,#2478d8,#0b3c92); }
.ndc-hero.is-epic,
.ndc-hero.is-netflix { --hero-icon-fill:linear-gradient(145deg,#333,#050505); }
.ndc-hero.is-battle,
.ndc-hero.is-gift { --hero-icon-fill:linear-gradient(145deg,#8a35ff,#4011d2); }
.ndc-hero.is-mobile { --hero-icon-fill:linear-gradient(145deg,#ff85f2,#a946ff); }
.ndc-hero.is-roblox,
.ndc-hero.is-telegram { --hero-icon-fill:linear-gradient(145deg,#31aaff,#0870d8); }
.ndc-hero.is-ai { --hero-icon-fill:linear-gradient(145deg,#34d6c7,#0f9c88); }
.ndc-hero.is-spotify { --hero-icon-fill:linear-gradient(145deg,#45df86,#12a64f); }
.ndc-hero.is-appstore { --hero-icon-fill:linear-gradient(145deg,#42baff,#1682f4); }
.ndc-hero.is-google { --hero-icon-fill:linear-gradient(145deg,#ffffff,#f5f7ff); }
.ndc-hero.is-google .ndc-hero__title,
.ndc-hero.is-google .ndc-hero__sub {
  color:#101653;
  text-shadow:none;
}

.ndc-hero__icon {
  position:relative;
  z-index:2;
  width:150px;
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:28px;
  background:var(--hero-icon-fill);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 14px 26px rgba(85,61,190,.22), inset 0 0 0 2px rgba(255,255,255,.2);
}

.ndc-hero__icon img,
.ndc-hero__icon svg {
  width:104px;
  height:104px;
  object-fit:contain;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.22));
}

.ndc-hero__body {
  position:relative;
  z-index:4;
  width:100%;
  max-width:660px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}

.ndc-hero__badge {
  height:44px;
  width:max-content;
  min-height:0;
  display:flex;
  align-items:center;
  gap:2px;
  max-width:100%;
  padding:1px 12px;
  border:1px solid #dde3ff;
  border-radius:14px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 18px rgba(44,70,170,.08);
  color:#15194f;
  font-size:15px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}

.ndc-hero__badge--count {
  padding-left:1px;
}

.ndc-hero__badge-icon {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
}

.ndc-hero__badge-icon svg {
  width:28px;
  height:28px;
  display:block;
}

.ndc-hero__badge-label {
  display:block;
  color:inherit;
  font:inherit;
}

.ndc-hero__filters-label {
  display:flex;
  align-items:center;
  height:44px;
  color:#15194f;
  font-size:15px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.ndc-hero__filter {
  gap:8px;
  padding-right:9px;
  text-decoration:none;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ndc-hero__filter:hover,
.ndc-hero__filter:focus-visible {
  transform:translateY(-2px);
  border-color:#9fc0ff;
  background:#fff;
  box-shadow:0 12px 22px rgba(44,70,170,.14);
  outline:none;
}

.ndc-hero__filter-mark {
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  color:#2d7dff;
  font-size:18px;
  font-weight:900;
  line-height:1;
}

.ndc-hero__filter.is-active {
  border-color:#9fc0ff;
  background:rgba(231,240,255,.92);
}

.ndc-hero__title {
  margin:0 0 10px;
  color:#101653;
  font-size:clamp(34px, 4.4vw, 64px);
  line-height:.94;
  font-weight:900;
  letter-spacing:0;
  text-shadow:none;
}

.ndc-hero__sub {
  max-width:620px;
  margin:0 0 24px;
  color:#344071;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
  text-shadow:none;
}

.ndc-hero__badges {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}

.ndc-hero__badges a {
  color:#15194f;
  text-decoration:none;
}

.ndc-hero__decors {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  opacity:.8;
}

.ndc-hero__d {
  position:absolute;
  line-height:1;
  filter:drop-shadow(0 7px 9px rgba(70,37,150,.18));
}

.ndc-hero__d--1 { top:34px; left:57%; font-size:34px; }
.ndc-hero__d--2 { top:52px; left:66%; font-size:33px; }
.ndc-hero__d--3 { bottom:54px; left:55%; font-size:29px; }
.ndc-hero__d--4 { bottom:42px; right:10%; font-size:31px; }

.ndc-hero__mascot-zone {
  position:relative;
  z-index:2;
  align-self:stretch;
  min-height:0;
  height:100%;
}

.ndc-hero__mascot {
  position:absolute;
  right:-4px;
  bottom:-12px;
  top:auto;
  width:382px;
  height:calc(93% + 119px);
  object-fit:contain;
  object-position:center bottom;
  clip-path:none;
  filter:drop-shadow(0 16px 22px rgba(30,47,140,.16));
}

.ndc-cattabs {
  display:grid;
  grid-template-columns:repeat(5, minmax(150px, 1fr));
  gap:16px;
  margin:22px 0 24px;
}

.ndc-cattab,
.ndc-card {
  --tile-accent:#276cff;
  --tile-fill:linear-gradient(145deg, var(--tc1, #8a35ff), var(--tc2, #4011d2));
  position:relative;
  min-height:92px;
  display:flex;
  align-items:center;
  gap:14px;
  overflow:visible;
  padding:16px 18px;
  color:#fff;
  text-decoration:none;
  border:1px solid color-mix(in srgb, var(--tile-accent) 82%, #fff 18%);
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 20px rgba(40,60,160,.14), 0 0 0 .5px rgba(255,255,255,.78);
  isolation:isolate;
  transition:transform .15s ease, box-shadow .15s ease;
}

.ndc-cattab::before,
.ndc-card::before {
  content:"";
  position:absolute;
  inset:3px;
  z-index:0;
  border-radius:12px;
  background:
    url("../img/v2/category-decor/tile-inner-glow.png") left top / 100% auto no-repeat,
    var(--tile-fill);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.38);
  pointer-events:none;
}

.ndc-cattab:hover,
.ndc-card:hover {
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(40,60,160,.18), 0 0 0 .5px rgba(255,255,255,.78);
}

.ndc-cattab.is-active {
  transform:translateY(-1px);
}

.ndc-cattab__icon {
  position:relative;
  z-index:2;
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  filter:drop-shadow(0 7px 9px rgba(0,0,0,.18));
}

.ndc-cattab__icon img {
  max-width:58px;
  max-height:58px;
  object-fit:contain;
}

.ndc-cattab__label {
  position:relative;
  z-index:2;
  flex:1;
  color:#fff;
  font-size:16px;
  line-height:1.08;
  font-weight:900;
  text-shadow:0 1px 3px rgba(0,0,0,.22);
}

.ndc-cattab__arrow,
.ndc-card__go {
  position:relative;
  z-index:2;
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff;
  color:var(--tc2, #3d40c9);
  box-shadow:0 4px 10px rgba(18,35,120,.12);
}

.ndc-cattab__arrow svg,
.ndc-card__go svg {
  width:14px;
  height:14px;
  stroke:currentColor;
}

.ndc-prodhead {
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 16px;
}

.ndc-prodhead__title {
  flex:1;
  color:#11164c;
  font-size:24px;
  line-height:1;
  font-weight:900;
}

.ndc-sort-wrap {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
}

.ndc-prodhead__sort-label {
  color:#7780ba;
  font-size:13px;
  font-weight:800;
}

.ndc-sort-btn {
  min-width:190px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 16px;
  border:1px solid #dce3ff;
  border-radius:12px;
  color:#263075;
  background:#fff;
  box-shadow:0 8px 18px rgba(40,60,160,.06);
  font:800 13px/1 inherit;
  cursor:pointer;
}

.ndc-sort-btn svg {
  width:16px;
  height:16px;
  color:#7581c7;
}

.ndc-sort-drop {
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  width:220px;
  padding:6px;
  border:1px solid #dce3ff;
  border-radius:14px;
  background:#fff;
  box-shadow:0 14px 30px rgba(25,36,110,.14);
}

.ndc-sort-wrap.is-open .ndc-sort-drop {
  display:block;
}

.ndc-sort-item {
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#263075;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}

.ndc-sort-item:hover,
.ndc-sort-item.is-active {
  color:#fff;
  background:#315eff;
}

.ndc-grid {
  display:grid;
  grid-template-columns:repeat(8, minmax(132px, 1fr));
  column-gap:16px;
  row-gap:20px;
  grid-auto-rows:1fr;
}

.ndc-card {
  --tile-accent:var(--cc2, #3d40c9);
  --tile-fill:linear-gradient(145deg, var(--cc1, #8a35ff), var(--cc2, #4011d2));
  min-height:224px;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-end;
  gap:0;
  padding:14px 16px;
}

.ndc-card[hidden] {
  display:none !important;
}

.ndc-card::before {
  inset:3px;
  border-radius:12px;
  background:var(--tile-fill);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.38);
}

.ndc-card::after {
  content:"";
  position:absolute;
  inset:3px;
  z-index:1;
  pointer-events:none;
  border-radius:12px;
  background:url("../img/v2/category-decor/tile-inner-glow.png") left top / 100% auto no-repeat;
  opacity:1;
  filter:brightness(2.35) contrast(1.65) saturate(1.15);
}

.ndc-card.is-google {
  color:#11164c;
}

.ndc-card.is-google::before {
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}

.ndc-card.is-google .ndc-card__name,
.ndc-card.is-google .ndc-card__price {
  color:#11164c;
  text-shadow:none;
}

.ndc-card.is-google .ndc-card__go {
  color:#6b78d6;
}

.ndc-card__img {
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  top:20px;
  height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:0 16px;
}

.ndc-card__img img {
  max-width:138px;
  max-height:112px;
  object-fit:contain;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.2));
}

.ndc-card__fallback {
  font-size:54px;
  line-height:1;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.18));
}

.ndc-card__body {
  position:static;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ndc-card__name {
  position:relative;
  z-index:2;
  margin:0;
  max-width:calc(100% - 26px);
  color:#fff;
  font-size:14px;
  line-height:1.12;
  font-weight:900;
  text-shadow:0 1px 3px rgba(0,0,0,.25);
}

.ndc-card__footer {
  min-height:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.ndc-card__price {
  position:relative;
  z-index:2;
  color:#fff;
  font-size:14px;
  line-height:1.12;
  font-weight:900;
  text-shadow:0 1px 3px rgba(0,0,0,.25);
}

.ndc-card__go {
  position:absolute;
  z-index:2;
  right:12px;
  bottom:12px;
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:block;
  box-sizing:border-box;
  background:#fff;
  border:1px solid rgba(225,230,255,.95);
  color:var(--cc2, #3d40c9);
  box-shadow:0 4px 10px rgba(18,35,120,.12);
}

.ndc-card__go svg {
  display:block;
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform:translate(-50%, -50%);
  vector-effect:non-scaling-stroke;
}

.ndc-guarantees {
  margin:28px 0 0;
  display:grid;
  grid-template-columns:repeat(4, minmax(180px, 1fr));
  gap:0;
  padding:18px 24px;
  border:1px solid #dfe4ff;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 28px rgba(40,60,160,.06);
}

.ndc-guarantee {
  display:flex;
  align-items:center;
  gap:14px;
  padding:4px 22px;
  border-left:1px dashed #d7ddff;
}

.ndc-guarantee:first-child {
  border-left:0;
}

.ndc-guarantee__icon {
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#f3f5ff;
  font-size:24px;
}

.ndc-guarantee strong {
  display:block;
  color:#11164c;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
}

.ndc-guarantee span {
  display:block;
  margin-top:3px;
  color:#5f6796;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}

@media (max-width:1280px) {
  .ndc-grid { grid-template-columns:repeat(4, minmax(140px, 1fr)); }
  .ndc-hero {
    grid-template-columns:58px 170px minmax(320px, 1fr) 260px;
    gap:20px;
  }
  .ndc-hero__icon {
    width:140px;
    height:140px;
    border-radius:26px;
  }
  .ndc-hero__icon img,
  .ndc-hero__icon svg {
    width:96px;
    height:96px;
  }
  .ndc-hero__title { font-size:44px; }
  .ndc-hero__sub {
    margin-bottom:16px;
    font-size:16px;
  }
  .ndc-hero__mascot {
    width:307px;
    bottom:-12px;
    height:calc(93% + 98px);
    clip-path:none;
  }
}

@media (max-width:960px) {
  .nd-shop.nd-cat-page { width:calc(100% - 28px); }
  .ndc-hero {
    grid-template-columns:52px 130px minmax(0, 1fr);
    padding-right:24px;
  }
  .ndc-hero__icon { width:120px; height:120px; border-radius:24px; }
  .ndc-hero__icon img, .ndc-hero__icon svg { width:82px; height:82px; }
  .ndc-hero__title { font-size:34px; }
  .ndc-hero__sub { font-size:14px; }
  .ndc-hero__mascot-zone { display:none; }
  .ndc-cattabs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ndc-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .ndc-guarantees { grid-template-columns:1fr 1fr; }
  .ndc-guarantee:nth-child(odd) { border-left:0; }
}

@media (max-width:760px) {
  .nd-shop.nd-cat-page { width:min(100% - 24px, 560px); }
  .ndc-hero {
    height:auto;
    aspect-ratio:auto;
    min-height:auto;
    grid-template-columns:52px 1fr;
    gap:14px;
    padding:18px;
  }
  .ndc-hero__back {
    width:44px;
    height:44px;
  }
  .ndc-hero__icon {
    grid-column:1 / -1;
    width:118px;
    height:118px;
  }
  .ndc-hero__mascot-zone {
    display:none;
  }
  .ndc-hero__body {
    grid-column:1 / -1;
  }
  .ndc-hero__title { font-size:32px; }
  .ndc-hero__sub { font-size:13px; }
}

@media (max-width:560px) {
  .nd-shop.nd-cat-page { width:min(100% - 24px, 560px); }
  .ndc-hero {
    height:auto;
    aspect-ratio:auto;
    min-height:auto;
    grid-template-columns:52px 1fr;
    gap:14px;
    padding:18px;
  }
  .ndc-hero__icon {
    grid-column:1 / -1;
    width:112px;
    height:112px;
  }
  .ndc-hero__mascot-zone {
    display:none;
  }
  .ndc-hero__body {
    grid-column:1 / -1;
  }
  .ndc-hero__title { font-size:30px; }
  .ndc-hero__sub { font-size:13px; }
  .ndc-cattabs { grid-template-columns:1fr; }
  .ndc-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
  .ndc-prodhead { align-items:flex-start; flex-direction:column; }
  .ndc-sort-wrap, .ndc-sort-btn { width:100%; }
  .ndc-guarantees { grid-template-columns:1fr; }
  .ndc-guarantee { border-left:0; border-top:1px dashed #d7ddff; }
  .ndc-guarantee:first-child { border-top:0; }
}
