:root {
  --qtm-navy: #0a2540;
  --qtm-navy-dark: #071a2e;
  --qtm-blue: #0072ce;
  --qtm-blue-dark: #00579c;
  --qtm-light: #f4f7fb;
  --qtm-border: #dde4ee;
  --qtm-text: #1f2937;
  --qtm-muted: #5b6b7c;
}

html {
  scroll-behavior: smooth;
}

/* ─── Boxed page layout ───
   .container-lp is a shared class name — partner/index.php also puts it on
   the page's OUTER wrapper (which contains the site header + nav menu, see
   partner/index.php:641), not just this page's own content wrapper. Scoping
   to .qtm-page (added alongside .container-lp only on this page's own root
   div, see partner/quantum.php) keeps this boxed treatment off the site
   header/menu and off every other partner page. */
.qtm-page {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 767px) {
  .qtm-page {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ─── Buttons ─── */
.btn-theme {
  display: inline-block;
  background-color: var(--qtm-blue) !important;
  color: #fff !important;
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-theme:hover {
  background-color: var(--qtm-blue-dark) !important;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 87, 156, 0.35);
  transform: translateY(-1px);
}

.btn-theme:focus-visible {
  outline: 2px solid var(--qtm-blue);
  outline-offset: 2px;
}

/* ─── Intro ───
   Full-bleed hero: break out of the boxed .qtm-page container to span the
   viewport edge-to-edge while the h1/p stay centred within it. */
.qtm-shop-intro {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 64px 32px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.4), rgba(7, 26, 46, 0.5)),
    url('/images/quantum/data-infrastructure-v3.webp') center / cover no-repeat;
}

.qtm-shop-intro h1 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.qtm-shop-intro p {
  color: #d7e1ee;
  max-width: 620px;
  margin: 8px auto 0;
}

@media (max-width: 767px) {
  .qtm-shop-intro {
    padding: 48px 20px;
  }
}

/* ─── Category sections ─── */
.qtm-shop-section {
  padding: 32px 0;
  border-top: 1px solid var(--qtm-border);
}

.qtm-shop-section:first-of-type {
  border-top: none;
}

.qtm-shop-section h2 {
  color: var(--qtm-navy);
  font-size: 1.35rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qtm-shop-section h2 i {
  color: var(--qtm-blue);
  font-size: 1.05rem;
}

.qtm-shop-section > p {
  color: var(--qtm-muted);
  max-width: 760px;
  line-height: 1.6;
  margin: -8px 0 24px;
}

/* ─── Product card ─── */
.qtm-shop-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--qtm-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.qtm-shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--qtm-blue), var(--qtm-blue-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.qtm-shop-card:hover {
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.12);
  border-color: var(--qtm-blue);
  transform: translateY(-4px);
}

.qtm-shop-card:hover::before {
  transform: scaleX(1);
}

.qtm-shop-card-img {
  position: relative;
  background: var(--qtm-light);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
}

.qtm-shop-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(10, 37, 64, 0.14));
}

.qtm-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--qtm-blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.12);
}

.qtm-shop-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.qtm-shop-card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--qtm-navy);
  margin: 0 0 10px;
}

.qtm-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.qtm-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--qtm-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.qtm-spec-list i {
  color: var(--qtm-blue);
  font-size: 11px;
  margin-top: 4px;
  flex-shrink: 0;
}

.qtm-shop-card-body .btn-theme {
  align-self: flex-start;
  margin-top: 14px;
}

/* ─── Footer note ─── */
.qtm-shop-footer {
  padding: 28px 0 40px;
  text-align: center;
  border-top: 1px solid var(--qtm-border);
}

.qtm-shop-footer p {
  color: var(--qtm-muted);
  margin: 0;
}

.qtm-shop-footer a {
  color: var(--qtm-blue);
  font-weight: 600;
  text-decoration: none;
}

.qtm-shop-footer a:hover {
  text-decoration: underline;
}
