/*
 * From Uiverse.io by marcelodolza
 * Hover-glow popup card visual adapted from user-supplied source.
 *
 * From Uiverse.io by ElSombrero2 - https://uiverse.io/ElSombrero2/tricky-robin-67
 * MIT License, Copyright (c) ElSombrero2 (Rakotondrasoa Nirilala)
 */

/* ===== PRODUCT TILE: Uiverse flip card adaptation ===== */
.vs-product-card {
  width: 100%;
  max-width: 230px;
  height: 314px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  perspective: 1100px;
  text-align: left;
  cursor: pointer;
  animation: vs-product-enter .55s cubic-bezier(.2,.75,.25,1) both;
  animation-delay: calc(var(--vs-card-index, 0) * 35ms);
}
.vs-product-card:focus-visible {
  outline: 2px solid var(--circuit);
  outline-offset: 6px;
}
.vs-product-card__content {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(.2,.75,.2,1);
  box-shadow: 0 12px 34px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--vs-card-glow-a, #b98cff) 60%, transparent);
  border-radius: 7px;
}
.vs-product-card:hover .vs-product-card__content,
.vs-product-card:focus-visible .vs-product-card__content {
  transform: rotateY(180deg);
}
.vs-product-card__front,
.vs-product-card__back {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vs-card-glow-a, #b98cff) 68%, transparent);
  background: #151515;
}
.vs-product-card__back {
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-product-card__back::before {
  position: absolute;
  content: '';
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(90deg, transparent, var(--vs-card-glow-a, #ff9966), var(--vs-card-glow-b, #ff9966), var(--vs-card-glow-a, #ff9966), transparent);
  animation: vs-product-card-ring 5000ms infinite linear;
}
.vs-product-card__back-content {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px;
  border-radius: 5px;
  background: #151515;
  color: #fff;
  text-align: center;
}
.vs-product-card__back-content strong {
  font: 700 .72rem 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
}
.vs-product-card__back-content small {
  color: #b98cff;
  font: 500 .58rem 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
}
.vs-product-card__back-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(185,140,255,.65);
  border-radius: 16px;
  color: #e7d7ff;
  box-shadow: 0 0 28px rgba(185,140,255,.24), inset 0 0 20px rgba(185,140,255,.1);
  font: 700 1.2rem 'Space Grotesk', sans-serif;
}
.vs-product-card__front {
  transform: rotateY(180deg);
  color: white;
  border: 1px solid rgba(185,140,255,.24);
}
.vs-product-card__image-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #14111b;
}
.vs-product-card__front-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 12px;
  background: linear-gradient(180deg, rgba(4,4,8,.04) 25%, rgba(4,4,8,.88) 100%);
}
.vs-product-card__badge {
  align-self: flex-start;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.16);
  color: #f4eaff;
  font: 600 .6rem 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}
.vs-product-card__description {
  display: block;
  padding: 12px;
  border: 1px solid rgba(185,140,255,.18);
  border-radius: 6px;
  background: rgba(0,0,0,.76);
  box-shadow: 0 0 18px rgba(0,0,0,.45);
  backdrop-filter: blur(7px);
}
.vs-product-card__title {
  display: block;
  min-height: 42px;
  color: #fff;
  font: 700 .82rem/1.3 'Space Grotesk', sans-serif;
}
.vs-product-card__price {
  display: block;
  margin-top: 10px;
  color: #d8baff;
  font: 700 1.08rem 'IBM Plex Sans', sans-serif;
}
.vs-product-card__availability {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.72);
  font: 500 .59rem 'IBM Plex Mono', monospace;
}
.vs-product-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 27%, rgba(255,255,255,.22), transparent 18%),
    radial-gradient(circle at 70% 70%, rgba(108,178,255,.36), transparent 38%),
    linear-gradient(145deg, #241636, #090a13 72%);
}
.vs-product-art::before,
.vs-product-art::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .76;
  animation: vs-product-art-float 4.2s ease-in-out infinite;
}
.vs-product-art::before {
  width: 130px;
  height: 130px;
  left: -20px;
  top: 26px;
  background: rgba(255,76,167,.35);
}
.vs-product-art::after {
  width: 170px;
  height: 170px;
  right: -52px;
  bottom: -34px;
  background: rgba(75,137,255,.36);
  animation-delay: -1.8s;
}
.vs-product-art__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.025));
  box-shadow: 0 14px 42px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.15);
  font: 700 2.65rem 'Space Grotesk', sans-serif;
  text-shadow: 0 0 22px rgba(255,255,255,.3);
}
.vs-product-art__image {
  position: absolute;
  z-index: 2;
  inset: 8% 6%;
  width: 88%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.42));
}
.vs-product-art[data-category="gpu"] { background: radial-gradient(circle at 50% 44%, #28406a, #0b111f 72%); }
.vs-product-art[data-category="motherboard"] { background: radial-gradient(circle at 50% 45%, #34514d, #0b1114 72%); }
.vs-product-art[data-category="cooling"] { background: radial-gradient(circle at 50% 45%, #285a68, #0a111a 72%); }
.vs-product-art[data-category="memory"] { background: radial-gradient(circle at 50% 45%, #61503b, #171019 72%); }
.vs-product-art[data-category="storage"] { background: radial-gradient(circle at 50% 45%, #3f3b65, #0a0b15 72%); }
.vs-product-art[data-category="psu"] { background: radial-gradient(circle at 50% 45%, #515151, #0c0c0c 72%); }
.vs-product-art[data-category="case"] { background: radial-gradient(circle at 50% 45%, #65516a, #100b17 72%); }

/* ===== PRODUCT DETAIL MODAL: Uiverse hover-glow adaptation ===== */
.vs-product-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.vs-product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.vs-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,4,12,.84);
  backdrop-filter: blur(12px);
}
.vs-product-popup-card {
  position: relative;
  z-index: 1;
  width: min(760px, 96vw);
  max-height: min(88vh, 760px);
  overflow: hidden;
  padding: 2px;
  border-radius: 13px;
  background: #171717;
  box-shadow: 0 24px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(24px) scale(.965);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.vs-product-modal.is-open .vs-product-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.vs-product-popup-card::before {
  opacity: 0;
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, #ff2288, #387ef0, transparent);
  transition: opacity 300ms;
  animation: vs-product-popup-rotation 3000ms infinite linear;
  animation-play-state: paused;
}
.vs-product-popup-card:hover::before,
.vs-product-popup-card:focus-within::before {
  opacity: 1;
  animation-play-state: running;
}
.vs-product-popup-card__inner {
  position: relative;
  z-index: 1;
  max-height: min(88vh, 756px);
  overflow: auto;
  border-radius: 11px;
  padding: clamp(18px, 3vw, 28px);
  color: #f7f1ff;
  background: #171717;
}
.vs-product-popup-card__inner::before {
  opacity: 0;
  transition: opacity 300ms;
  content: '';
  display: block;
  width: 160px;
  height: 160px;
  position: absolute;
  top: 12%;
  left: 55%;
  filter: blur(70px);
  background: rgba(255,255,255,.36);
  pointer-events: none;
}
.vs-product-popup-card:hover .vs-product-popup-card__inner::before {
  opacity: .55;
}
.vs-product-modal__close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.vs-product-modal__close:hover {
  background: rgba(255,255,255,.18);
}
.vs-product-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 26px;
  clear: both;
}
.vs-product-modal__visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: #111;
}
.vs-product-modal__visual .vs-product-art {
  min-height: 280px;
}
.vs-product-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 390px;
  object-fit: contain;
  background: radial-gradient(circle at center, #333, #101010 72%);
}
.vs-product-modal__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.vs-product-modal__eyebrow {
  margin: 2px 0 9px;
  color: #cbb0ff;
  font: 600 .67rem 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vs-product-modal__title {
  margin: 0 38px 11px 0;
  color: #fff;
  font: 700 clamp(1.35rem, 3vw, 2rem)/1.12 'Space Grotesk', sans-serif;
}
.vs-product-modal__description {
  margin: 0 0 15px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  line-height: 1.6;
}
.vs-product-modal__price {
  margin: 0 0 15px;
  color: #e0c5ff;
  font: 700 1.7rem 'Space Grotesk', sans-serif;
}
.vs-product-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.vs-product-modal__meta-item {
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
}
.vs-product-modal__meta-item small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.48);
  font: 500 .59rem 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vs-product-modal__meta-item strong {
  display: block;
  color: #fff;
  font-size: .77rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.vs-product-modal__spec-title {
  margin: 0 0 7px;
  color: #fff;
  font: 600 .78rem 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vs-product-modal__specs {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.vs-product-modal__specs li {
  position: relative;
  padding-left: 15px;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
  line-height: 1.45;
}
.vs-product-modal__specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ba8cff;
  box-shadow: 0 0 9px rgba(185,140,255,.7);
}
.vs-product-modal__note {
  margin: 12px 0 0;
  color: rgba(255,255,255,.48);
  font-size: .66rem;
  line-height: 1.45;
}
body.vs-modal-open { overflow: hidden; }

@keyframes vs-product-card-ring {
  0% { transform: rotateZ(0deg); }
  100% { transform: rotateZ(360deg); }
}
@keyframes vs-product-popup-rotation {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes vs-product-art-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(11px); }
}
@keyframes vs-product-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: none) {
  /* Touchscreens have no hover state, so show the product face immediately. */
  .vs-product-card__content { transform: rotateY(180deg); }
}
@media (max-width: 760px) {
  .vs-product-modal { padding: 10px; }
  .vs-product-modal__layout { grid-template-columns: 1fr; gap: 17px; }
  .vs-product-modal__visual, .vs-product-modal__visual .vs-product-art,
  .vs-product-modal__image { min-height: 185px; max-height: 240px; }
  .vs-product-card { max-width: none; height: 300px; }
}
@media (max-width: 420px) {
  .vs-product-modal__meta { grid-template-columns: 1fr 1fr; }
  .vs-product-popup-card__inner { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-product-card,
  .vs-product-card__content,
  .vs-product-popup-card,
  .vs-product-popup-card::before,
  .vs-product-art::before,
  .vs-product-art::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* Catalogue controls and result panel */
.vs-catalog-panel {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(185,140,255,.16);
  border-radius: 18px;
  background: rgba(22,15,34,.72);
  box-shadow: 0 18px 54px rgba(0,0,0,.18);
}


/* Product cards: stable image region above a separate text region. */
.vs-product-grid {
  align-items: stretch;
  justify-items: stretch;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.vs-product-card {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  min-height: 0;
  perspective: none;
  text-align: left;
  animation: vs-product-enter .35s ease both;
}
.vs-product-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(185,140,255,.23);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(34,25,49,.98), rgba(13,12,22,.98));
  transform: none !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.vs-product-card:hover .vs-product-card__content,
.vs-product-card:focus-visible .vs-product-card__content {
  transform: translateY(-3px) !important;
  border-color: var(--vs-card-glow-a, #b98cff);
  box-shadow: 0 16px 34px rgba(0,0,0,.32), 0 0 22px color-mix(in srgb, var(--vs-card-glow-a, #b98cff) 18%, transparent);
}
.vs-product-card__back { display: none !important; }
.vs-product-card__front {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none !important;
}
.vs-product-card__image-wrap {
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 190px;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #14111b;
}
.vs-product-card__front-content {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  padding: 13px;
  gap: 12px;
  background: linear-gradient(160deg, rgba(25,19,38,.99), rgba(12,12,20,.99));
}
.vs-product-card__description {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow-wrap: anywhere;
}
.vs-product-card__title {
  display: block;
  min-height: 0;
  color: #fff;
  font: 700 .88rem/1.4 'Space Grotesk', sans-serif;
  overflow-wrap: anywhere;
}
.vs-product-card__price {
  margin-top: 12px;
  font-size: 1.13rem;
}
.vs-product-card__availability {
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.vs-product-art__image { object-position: center; }
.vs-product-art__icon { pointer-events: none; }
.vs-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.light .vs-product-card__content { background: linear-gradient(155deg,#fff,#f3effa); }
body.light .vs-product-card__front-content { background: linear-gradient(160deg,#fff,#f3effa); }
body.light .vs-product-card__title { color: #251b39; }
@media(max-width:760px) {
  .vs-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .vs-product-card__image-wrap { height: 160px; flex-basis: 160px; }
}
@media(max-width:480px) {
  .vs-product-grid { grid-template-columns: 1fr; }
  .vs-product-card__image-wrap { height: 190px; flex-basis: 190px; }
  .vs-catalog-results { align-items: flex-start; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) {
  .vs-product-card, .vs-product-card__content { animation: none !important; transition: none !important; }
}

/* Source chips and incremental loading. */
.vs-source-filter-wrap{display:block;margin:0 0 20px;min-width:0}
#vsSourceFilter{width:100%;min-height:48px;padding:10px 13px;border:1px solid rgba(185,140,255,.24);border-radius:8px;color:var(--ink);background:rgba(18,13,29,.78);font:500 .78rem 'IBM Plex Sans',sans-serif}
.vs-catalog-sources{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}
.vs-catalog-load-more{display:block;min-width:min(100%,260px);min-height:46px;margin:24px auto 4px;padding:11px 20px;border:1px solid rgba(185,140,255,.38);border-radius:999px;color:#f5f0ff;background:linear-gradient(120deg,rgba(130,88,196,.36),rgba(54,42,78,.62));font:700 .76rem 'Space Grotesk',sans-serif;cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.vs-catalog-load-more:hover{transform:translateY(-2px);border-color:rgba(205,177,255,.75);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.vs-catalog-load-more[hidden]{display:none}
#vsSourceFilter{min-height:47px;border-radius:10px;font-size:14px}.vs-source-status{font-size:.58rem}
@media(prefers-reduced-motion:reduce){.vs-catalog-load-more{transition:none}}


/* In-stock and out-of-stock status colours */
.vs-hardware-stock{display:inline-flex;width:max-content;margin-top:8px;padding:4px 8px;border-radius:999px;font:600 .6rem "IBM Plex Mono",monospace}
.vs-hardware-stock.is-in_stock{color:#8ae9b9;background:rgba(64,205,132,.13);border:1px solid rgba(64,205,132,.32)}
.vs-hardware-stock.is-out_of_stock{color:#ff8b9d;background:rgba(238,82,112,.12);border:1px solid rgba(238,82,112,.3)}
.vs-hardware-stock.is-unknown{color:#bcaecc;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.13)}
.vs-product-card{cursor:pointer}
.vs-product-card:focus-visible{outline:2px solid rgba(163,230,53,.9);outline-offset:5px}

.vs-hardware-price-status{display:inline-flex;width:max-content;margin-top:5px;padding:4px 8px;border-radius:999px;font:500 .55rem "IBM Plex Mono",monospace;color:#c9b8dd;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1)}
.vs-hardware-price-status.is-checked{color:#9bdfbd;border-color:rgba(83,194,133,.22);background:rgba(83,194,133,.07)}


/* Desktop hardware tiles: subtle animated highlight without changing card content or click targets. */
@media (min-width:761px) and (hover:hover) and (pointer:fine) {
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content {
    position:relative;
    overflow:hidden;
    isolation:isolate;
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content::after {
    content:"";
    position:absolute;
    z-index:3;
    inset:-45% -65%;
    pointer-events:none;
    opacity:0;
    background:linear-gradient(112deg,transparent 42%,rgba(255,255,255,.1) 49%,rgba(185,140,255,.16) 52%,transparent 59%);
    transform:translateX(-115%) rotate(8deg);
    transition:transform .82s cubic-bezier(.2,.8,.2,1),opacity .25s ease;
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card:hover .vs-product-card__content::after,
  body:not([data-vivi-chat-only="true"]) .vs-product-card:focus-visible .vs-product-card__content::after {
    opacity:1;
    transform:translateX(115%) rotate(8deg);
  }
}
@media(prefers-reduced-motion:reduce) {
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content::after { display:none!important; }
}
