html {
  font-size: 14px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -40px;
  z-index: 1050;
  padding: 0.5rem 0.75rem;
  background: #0d6efd;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 0.75rem;
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Checkout experience */
.checkout-page {
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 65%);
}

.secure-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-cart {
  max-width: 420px;
}

.empty-cart__icon {
  font-size: 3rem;
}

.checkout-card {
  background: #fff;
}

.checkout-card__header {
  background: linear-gradient(135deg, rgba(243, 246, 255, 0.6), rgba(226, 236, 255, 0.95));
  border-bottom: 1px solid rgba(18, 23, 42, 0.08);
}

.checkout-card__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(18, 23, 42, 0.08);
}

.step-indicator {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(37, 140, 251, 0.9), rgba(86, 120, 255, 0.95));
  color: #fff;
  box-shadow: 0 0.5rem 1.25rem rgba(37, 140, 251, 0.35);
}

.checkout-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #12172a;
}

.checkout-section__title .bi {
  font-size: 1.25rem;
}

.checkout-section + .checkout-section {
  border-top: 1px solid rgba(18, 23, 42, 0.04);
  padding-top: 2rem;
}

.checkout-section .form-label {
  font-weight: 600;
  color: #131a33;
}

.form-control-lg, .form-select-lg {
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}

.payment-options {
  width: 100%;
}

.payment-option {
  position: relative;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.payment-option__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(18, 23, 42, 0.08);
  padding: 1.25rem 1.5rem;
  min-height: 100%;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.payment-option__icon {
  font-size: 1.75rem;
}

.payment-option__label {
  font-weight: 600;
  color: #0f1729;
}

.payment-option__description {
  color: #5f6b88;
  font-size: 0.9rem;
}

.payment-option:hover .payment-option__content {
  border-color: rgba(37, 140, 251, 0.65);
  box-shadow: 0 1rem 2rem rgba(18, 23, 42, 0.08);
}

.payment-option input[type="radio"]:checked + .payment-option__content {
  border-color: rgba(37, 140, 251, 0.95);
  box-shadow: 0 1.25rem 2.5rem rgba(37, 140, 251, 0.2);
  transform: translateY(-3px);
}

.payment-option input[type="radio"]:focus-visible + .payment-option__content {
  outline: 3px solid rgba(37, 140, 251, 0.35);
  outline-offset: 4px;
}

.payment-option input[type="radio"]:disabled + .payment-option__content {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(15%);
}

.checkout-summary {
  background: #fff;
}

.checkout-summary__items {
  margin: 0;
}

.checkout-summary__item + .checkout-summary__item {
  border-top: 1px solid rgba(18, 23, 42, 0.06);
  padding-top: 1rem;
  margin-top: 1rem;
}

.checkout-summary-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  border: 1px solid rgba(18, 23, 42, 0.08);
  box-shadow: 0 1rem 1.75rem rgba(18, 23, 42, 0.08);
}

.summary-collapse summary {
  border-radius: 1rem;
  background: rgba(18, 23, 42, 0.85);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.summary-collapse summary::-webkit-details-marker {
  display: none;
}

.summary-collapse summary:hover {
  background: rgba(18, 23, 42, 0.9);
  transform: translateY(-1px);
}

.summary-collapse[open] summary {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.xsmall {
  font-size: 0.78rem;
}

.btn-gradient {
  background: linear-gradient(135deg, #256cfb, #6285ff);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1rem 2rem rgba(37, 108, 251, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 1.5rem 3rem rgba(37, 108, 251, 0.35);
  filter: brightness(1.05);
}

.btn-gradient:focus-visible {
  color: #fff;
  outline: 3px solid rgba(37, 108, 251, 0.3);
  outline-offset: 3px;
}

.pay-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(18, 23, 42, 0.12);
  box-shadow: 0 -1.25rem 2.5rem rgba(18, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  z-index: 1030;
}

.pay-bar__inner {
  max-width: 960px;
  margin: 0 auto;
}

.checkout-summary-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .checkout-summary-desktop {
    display: none !important;
  }
  .checkout-summary-mobile {
    display: block;
  }
  .checkout-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .checkout-card__footer {
    align-items: stretch !important;
  }
  .payment-options {
    gap: 1rem;
  }
}

.validation-summary-valid {
  display: none !important;
}

/* Mini-cart subtle slide/fade */
.mini-cart-menu {
  transition: transform .15s ease, opacity .15s ease;
  transform-origin: top right;
}
.dropdown.show .mini-cart-menu,
.dropdown-menu.show.mini-cart-menu {
  opacity: 1;
  transform: translateY(0);
}
.mini-cart-menu { opacity: 0; transform: translateY(-4px); }

/* Quantity change pulse */
.qty-changed {
  animation: qtyPulse .35s ease;
}
@keyframes qtyPulse {
  0% { background-color: rgba(37,140,251,.15); }
  100% { background-color: transparent; }
}

/* Button hover micro-interaction */
.btn:hover { transition: transform .08s ease; transform: translateY(-1px); }

/* Mini-cart cloak to prevent FOUC */
.no-js .mini-cart-cloak { display: block; }
.js .mini-cart-cloak { display: none; }
.js .mini-cart-ready { display: block; }

/* Store cards */
.store-section-title {
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .95rem;
  color: var(--bs-primary);
}

.store-card {
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.8rem 1.6rem rgba(0,0,0,.12);
}

.store-card__hero {
  position: relative;
  padding: 1.75rem 1.75rem 1rem;
  color: #fff;
  background: linear-gradient(140deg, rgba(9,14,30,.85) 0%, rgba(4,8,18,.8) 65%), #060a12;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.store-card__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37,140,251,.25), rgba(6,9,18,.92));
  z-index: 1;
  opacity: .95;
}

.store-card__hero .badge {
  background: rgba(255,255,255,.25);
  color: #fff;
  border: none;
}

.store-card__media {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05);
  opacity: .9;
  z-index: 0;
}

.store-card__hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
  background: transparent;
  border-radius: 0;
}

.store-card__badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}

.store-card__badge-fallback {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

.store-card__icon {
  font-size: 2.75rem;
  line-height: 1;
  z-index: 2;
}

.store-card__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  z-index: 2;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0,0,0,.6);
}

.store-card__tagline {
  margin: 0;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  z-index: 2;
  text-shadow: 0 10px 24px rgba(0,0,0,.55);
}

.store-card__body {
  padding: 1.5rem;
}

.store-card__price {
  font-size: 1.15rem;
  font-weight: 700;
}

.store-card__summary {
  font-size: .95rem;
  line-height: 1.4;
  color: #4a4f5c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.store-card__actions .btn {
  min-width: 110px;
}

.store-card__highlights {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .9rem;
}

.store-card__highlights li + li {
  margin-top: .35rem;
}

.store-card__details {
  font-weight: 600;
  font-size: .9rem;
  color: var(--bs-primary);
}

.store-card__details:hover {
  text-decoration: none;
}

.store-card__compare {
  font-size: .85rem;
  color: #0d6efd;
  gap: .35rem;
}

.store-card__compare .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

@media (max-width: 575.98px) {
  .store-card__hero {
    min-height: 170px;
    padding: 1.5rem 1.25rem .75rem;
  }
  .store-card__icon { font-size: 2.25rem; }
}

.text-white-75 { color: rgba(255,255,255,.75) !important; }

.page-hero {
  position: relative;
  padding: 3.5rem 0;
  color: #fff;
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,10,22,.75), rgba(7,12,26,.85));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero--dark {
  background: radial-gradient(circle at top left, rgba(37,140,251,.4), rgba(6,9,18,1));
}

.page-hero--checkout {
  background: radial-gradient(circle at top right, rgba(99,102,241,.4), rgba(8,12,22,1));
}

.page-hero__pills {
  position: relative;
  z-index: 1;
}

.page-hero__pill {
  background: rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.build-hero {
  position: relative;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  border-radius: 1.75rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.build-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5,8,18,.85), rgba(6,10,22,.55));
  border-radius: inherit;
}

.build-hero__highlights {
  background: rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  color: rgba(255,255,255,.95);
}

.build-hero p,
.build-hero .text-white-50,
.build-hero .text-white-75 {
  color: rgba(255,255,255,.9) !important;
}

.build-hero__tags li {
  margin-bottom: .25rem;
  color: rgba(255,255,255,.85);
}

.build-gallery__hero img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

.compare-tray {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: rgba(4,8,18,.95);
  color: #fff;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.compare-tray__item {
  background: rgba(255,255,255,.1);
  border-radius: .75rem;
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.compare-tray__remove {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 0;
}

.compare-tray__remove:hover {
  color: #fff;
}

.compare-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.compare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,18,.4) 0%, rgba(4,8,18,.85) 100%);
}

.compare-card__overlay {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.compare-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.compare-table td, .compare-table th {
  vertical-align: middle;
}

.build-gallery__hero {
  position: relative;
  width: 100%;
  padding-top: 65%;
  border-radius: 1rem;
  overflow: hidden;
}

.build-gallery__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.build-gallery__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: .5rem;
}

.build-gallery__thumb img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: .65rem;
}

.build-gallery__thumb {
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.08);
  padding: .15rem;
}

.build-example {
  background: #f8f9fa;
  border-radius: .75rem;
  padding: 1rem;
  height: 100%;
}

.build-spec-list dt {
  font-weight: 600;
}

.build-summary-list li {
  margin-bottom: .35rem;
}

/* Blog cards */
.blog-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 1.6rem rgba(0,0,0,.12);
}

.blog-card__actions .badge {
  margin-top: 2px;
}

.build-gallery__hero--photograph{background:#e8e5e0;padding-top:75%}
.build-gallery__hero--photograph img{object-fit:contain}

/* Product-page VR offer: secondary to the PC, with the full saving visible. */
.pc-vr-offer {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(5, 8, 18, .82);
  border-left: 2px solid rgba(255, 255, 255, .65);
}
.pc-vr-offer summary { cursor: pointer; }
.pc-vr-offer .btn { white-space: normal; }
#vr-bundle { scroll-margin-top: 2rem; }
