/* ============================================
   NXTCORE Performance Laptops — Apple-Style Listing
   ============================================ */

/* --- Page Reset --- */
.perf-page {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  color: #1d1d1f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide HostX wrapper elements on performance listing page */
.whmcs-templatefile-products .master-breadcrumb.hostx-bread-crumb-data,
.whmcs-templatefile-products .shoping-cart-background.cart-product-list {
  display: none !important;
}
.whmcs-templatefile-products .container > .row > .primary-content {
  padding-top: 0 !important;
}
.perf-page#order-standard_cart.hostx-cart-body-section {
  margin-top: 0 !important;
  overflow-x: clip;
  max-width: 100%;
}

/* --- Fade-In Scroll Animation --- */
.perf-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.perf-fade-in.visible {
  opacity: 1;
  transform: none;
}
.perf-fade-in-delay-1 { transition-delay: 0.1s; }
.perf-fade-in-delay-2 { transition-delay: 0.2s; }
.perf-fade-in-delay-3 { transition-delay: 0.3s; }
.perf-fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   SECTION 1: HERO (100vh video)
   ============================================ */
.perf-hero {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  margin-left: -50vw;
  background: #000;
}
.perf-hero__video,
.perf-hero__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.perf-hero__poster {
  z-index: 1;
}
.perf-hero__video {
  z-index: 2;
}
.perf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0.5) 100%
  );
}
.perf-hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #f5f5f7;
  padding: 0 24px;
  max-width: 800px;
}
.perf-hero__eyebrow {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,245,247,0.7);
  margin-bottom: 12px;
}
.perf-hero__title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #fff 0%, #b0b0b5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.perf-hero__tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: rgba(245,245,247,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.4;
}
.perf-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 980px;
  color: #f5f5f7;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.perf-hero__cta:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.03);
  color: #fff;
  text-decoration: none;
}
.perf-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: perf-bounce 2s infinite;
}
.perf-hero__scroll svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.6);
}
@keyframes perf-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   SECTION 2: FLAGSHIP SPOTLIGHT
   ============================================ */
.perf-flagship {
  position: relative;
  z-index: 1;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #000;
  color: #f5f5f7;
  padding: 100px 24px;
  overflow: hidden;
}
.perf-flagship__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.perf-flagship__media {
  position: relative;
}
.perf-flagship__image {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}
.perf-flagship__video {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
.perf-flagship__info {
  max-width: 500px;
}
.perf-flagship__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffc300;
  margin-bottom: 12px;
}
.perf-flagship__name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}
.perf-flagship__desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245,245,247,0.7);
  margin-bottom: 32px;
}
.perf-flagship__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.perf-flagship__spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.perf-flagship__spec-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f5f5f7;
}
.perf-flagship__spec-label {
  font-size: 13px;
  color: rgba(245,245,247,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.perf-flagship__price {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.perf-flagship__price-from {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245,245,247,0.5);
}
.perf-flagship__ctas {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.perf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #fff;
  color: #1d1d1f;
  border: none;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.perf-btn-primary:hover {
  background: #e8e8ed;
  transform: scale(1.02);
  color: #1d1d1f;
  text-decoration: none;
}
.perf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: #2997ff;
  border: 1px solid #2997ff;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.perf-btn-secondary:hover {
  background: #2997ff;
  color: #fff;
  text-decoration: none;
}

/* ============================================
   SECTION 3: PRODUCT LINEUP
   ============================================ */
.perf-lineup {
  position: relative;
  z-index: 1;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #f5f5f7;
  padding: 100px 24px;
}
.perf-lineup__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.perf-lineup__header {
  text-align: center;
  margin-bottom: 64px;
}
.perf-lineup__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 8px;
}
.perf-lineup__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin: 0;
}

/* --- Filter Sidebar --- */
.perf-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 79;
}
.perf-sidebar-overlay.open { display: block; }

.perf-filter-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 80;
  pointer-events: none;
}

.perf-sidebar-toggle {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: none;
  border-right: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 0 16px 16px 0;
  box-shadow: 2px 0 20px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.perf-sidebar-toggle:hover {
  background: #fff;
  box-shadow: 2px 0 30px rgba(0,0,0,0.1);
}
.perf-sidebar-toggle i { font-size: 18px; color: #1d1d1f; }
.perf-sidebar-toggle-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.perf-sidebar-toggle-badge {
  background: #0071e3;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.perf-filter-sidebar.open .perf-sidebar-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-10px);
}

.perf-sidebar-panel {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 4px 0 40px rgba(0,0,0,0.08);
}
.perf-filter-sidebar.open .perf-sidebar-panel { transform: translateX(0); }

.perf-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px 20px;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.perf-sidebar-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}
.perf-sidebar-close {
  background: #f5f5f7;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #86868b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.perf-sidebar-close:hover { background: #e8e8ed; color: #1d1d1f; }

.perf-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 24px;
  -webkit-overflow-scrolling: touch;
}

.perf-sidebar-body .perf-filter-group {
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  padding: 18px 0;
}
.perf-sidebar-body .perf-filter-group:first-child { padding-top: 12px; }
.perf-sidebar-body .perf-filter-group:last-child { border-bottom: none; }
.perf-sidebar-body .perf-filter-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.perf-sidebar-body .perf-filter-group-title:hover { color: #1d1d1f; }
.perf-sidebar-body .perf-filter-group-title::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Pro';
  font-weight: 900;
  font-size: 8px;
  color: #d2d2d7;
  transition: transform 0.2s;
}
.perf-sidebar-body .perf-filter-group.collapsed .perf-filter-group-title::after { transform: rotate(-90deg); }
.perf-sidebar-body .perf-filter-group.collapsed .perf-filter-options { display: none; }
.perf-sidebar-body .perf-filter-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.perf-sidebar-body .perf-filter-options li { padding: 2px 0; }
.perf-sidebar-body .perf-filter-options li label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 8px;
  transition: background 0.12s;
}
.perf-sidebar-body .perf-filter-options li label:hover { background: #f5f5f7; }
.perf-sidebar-body .perf-filter-options li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0071e3;
  cursor: pointer;
  flex-shrink: 0;
}
.perf-sidebar-body .perf-fd-label { flex: 1; min-width: 0; }
.perf-sidebar-body .perf-filter-count { color: #86868b; font-size: 12px; margin-left: auto; flex-shrink: 0; }
.perf-sidebar-body .perf-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--dot);
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.perf-sidebar-footer {
  padding: 16px 24px;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.perf-sidebar-reset {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #1d1d1f;
  font-family: inherit;
  transition: all 0.15s;
}
.perf-sidebar-reset:hover { background: #f5f5f7; border-color: #86868b; }

/* --- Active filter chips --- */
.perf-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px;
  align-items: center;
}
.perf-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  font-size: 13px;
  color: #1d1d1f;
}
.perf-filter-chip button {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #86868b;
  padding: 0;
  line-height: 1;
}
.perf-filter-chip button:hover { color: #1d1d1f; }
.perf-clear-all-filters {
  background: none;
  border: none;
  font-size: 13px;
  color: #0071e3;
  cursor: pointer;
  font-weight: 500;
  padding: 6px 4px;
  font-family: inherit;
}
.perf-clear-all-filters:hover { text-decoration: underline; }

/* --- Results bar --- */
.perf-results-bar {
  padding: 0 0 12px;
}
.perf-results-count {
  font-size: 13px;
  color: #86868b;
}

.perf-lineup__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product Card */
.perf-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.perf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.perf-card__image-wrap {
  position: relative;
  background: #fafafa;
  padding: 32px 24px;
  text-align: center;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.perf-card__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.perf-card:hover .perf-card__image {
  transform: scale(1.05);
}
.perf-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}
.perf-card__body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.perf-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.perf-card__name a {
  color: inherit;
  text-decoration: none;
}
.perf-card__name a:hover {
  color: #0071e3;
}
.perf-card__tagline {
  font-size: 14px;
  color: #6e6e73;
  margin: 0 0 20px;
  line-height: 1.5;
}
.perf-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perf-card__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1d1d1f;
}
.perf-card__spec-icon {
  width: 20px;
  height: 20px;
  color: #0071e3;
  flex-shrink: 0;
}
.perf-card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.perf-card__price {
  display: flex;
  flex-direction: column;
}
.perf-card__price-from {
  font-size: 12px;
  color: #6e6e73;
}
.perf-card__price-value {
  font-size: 24px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.perf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.perf-card__cta:hover {
  background: #0077ed;
  color: #fff;
  text-decoration: none;
}

/* ============================================
   SECTION 4: COMPARE TABLE
   ============================================ */
.perf-compare {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #fff;
  padding: 100px 24px;
}
.perf-compare__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.perf-compare__header {
  text-align: center;
  margin-bottom: 56px;
}
.perf-compare__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin: 0 0 8px;
}
.perf-compare__sub {
  font-size: 17px;
  color: #6e6e73;
}

.perf-compare__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.perf-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.perf-compare__table thead th {
  vertical-align: top;
  text-align: center;
  padding: 24px 20px;
  border-bottom: 2px solid #e8e8ed;
}
.perf-compare__table thead th:first-child {
  width: 180px;
  text-align: left;
}
.perf-compare__th-img {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}
.perf-compare__th-name {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 4px;
}
.perf-compare__th-price {
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 0 12px;
}
.perf-compare__th-cta {
  display: inline-flex;
  padding: 10px 24px;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.perf-compare__th-cta:hover {
  background: #0077ed;
  color: #fff;
  text-decoration: none;
}
.perf-compare__table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #1d1d1f;
  text-align: center;
  vertical-align: top;
}
.perf-compare__table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.perf-compare__table tbody tr:hover td {
  background: #f9f9fb;
}

/* ============================================
   SECTION 5: WHY PERFORMANCE
   ============================================ */
.perf-why {
  position: relative;
  z-index: 1;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 100px 24px;
}
.perf-why__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.perf-why__header {
  text-align: center;
  margin-bottom: 64px;
}
.perf-why__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}
.perf-why__sub {
  font-size: 17px;
  color: rgba(245,245,247,0.6);
}
.perf-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.perf-why__card {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
}
.perf-why__card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.perf-why__card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #2997ff;
}
.perf-why__card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.perf-why__card-desc {
  font-size: 14px;
  color: rgba(245,245,247,0.6);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   CTA BANNER
   ============================================ */
.perf-cta-banner {
  position: relative;
  z-index: 1;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
  padding: 80px 24px;
  margin-bottom: 60px;
  text-align: center;
  color: #f5f5f7;
}
.perf-cta-banner__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.perf-cta-banner__sub {
  font-size: 17px;
  color: rgba(245,245,247,0.6);
  margin: 0 0 28px;
}
.perf-cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.perf-cta-banner__btn:hover {
  background: #0077ed;
  transform: scale(1.02);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
.perf-loading {
  text-align: center;
  padding: 60px 24px;
  color: #6e6e73;
  font-size: 17px;
}
.perf-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e8ed;
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: perf-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes perf-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .perf-flagship__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .perf-flagship__info {
    max-width: 600px;
    margin: 0 auto;
  }
  .perf-flagship__specs {
    justify-content: center;
  }
  .perf-flagship__ctas {
    justify-content: center;
  }
  .perf-lineup__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .perf-hero {
    min-height: 500px;
  }
  .perf-hero__title {
    font-size: 40px;
  }
  .perf-hero__tagline {
    font-size: 16px;
  }
  .perf-flagship {
    padding: 60px 20px;
  }
  .perf-flagship__specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .perf-flagship__spec-value {
    font-size: 22px;
  }
  .perf-lineup {
    padding: 60px 20px;
  }
  .perf-lineup__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .perf-compare {
    padding: 60px 16px;
  }
  .perf-why {
    padding: 60px 20px;
  }
  .perf-why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .perf-why__card {
    padding: 24px 16px;
  }
  .perf-card__body {
    padding: 20px 20px 24px;
  }
  .perf-card__name {
    font-size: 19px;
  }
  .perf-cta-banner {
    padding: 60px 20px;
  }
  .perf-filter-sidebar { display: none !important; }
  .perf-sidebar-overlay { display: none !important; }
  .perf-active-filters { display: none !important; }
}

@media (max-width: 480px) {
  .perf-hero {
    min-height: 400px;
  }
  .perf-hero__eyebrow {
    font-size: 14px;
  }
  .perf-hero__cta {
    padding: 14px 28px;
    font-size: 15px;
  }
  .perf-flagship__name {
    font-size: 28px;
  }
  .perf-flagship__desc {
    font-size: 16px;
  }
  .perf-flagship__ctas {
    flex-direction: column;
    align-items: center;
  }
  .perf-btn-primary,
  .perf-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .perf-why__grid {
    grid-template-columns: 1fr;
  }
  .perf-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .perf-card__cta {
    width: 100%;
    justify-content: center;
  }
  .perf-compare__table {
    min-width: 600px;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .perf-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .perf-hero__scroll {
    animation: none;
  }
  .perf-card:hover {
    transform: none;
  }
  .perf-card:hover .perf-card__image {
    transform: none;
  }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.perf-breadcrumb {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 5;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.perf-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.perf-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.perf-breadcrumb__sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}
.perf-breadcrumb__current {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}



/* ============================================
   COMPARE TABLE — Mobile Scroll Hint
   ============================================ */
.perf-compare__scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .perf-compare__scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 500;
    animation: perf-hint-pulse 2s ease-in-out infinite;
  }
  @keyframes perf-hint-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
  .perf-compare__scroll-hint svg {
    animation: perf-hint-arrow 1.5s ease-in-out infinite;
  }
  @keyframes perf-hint-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
  }
}

/* ============================================
   FLAGSHIP IMAGE — Proper sizing
   ============================================ */
.perf-flagship__image {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

/* ============================================
   CARD IMAGE — Clickable
   ============================================ */
.perf-card__image-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ============================================
   MOBILE FIXES v5
   ============================================ */

/* Hero: use dvh for mobile address bar, prevent overflow */
.perf-hero {
  height: 100dvh;
}

/* Prevent horizontal scrollbar from 100vw sections */
.perf-page#order-standard_cart {
  overflow-x: hidden;
}

/* Safe area padding for notched devices */
.perf-hero__content {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
  /* Hero: shorter on small screens */
  .perf-hero {
    height: 100svh;
    min-height: 450px;
  }

  /* Breadcrumb: smaller on mobile */
  .perf-breadcrumb {
    font-size: 11px;
    top: 12px;
    left: 16px;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Flagship spec values smaller */
  .perf-flagship__spec-value {
    font-size: 20px;
  }

  /* Compare table: ensure scrollable */
  .perf-compare__table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .perf-compare__table {
    min-width: 650px !important;
  }
  .perf-compare__table thead th {
    padding: 16px 12px;
  }
  .perf-compare__th-img {
    max-width: 100px;
    max-height: 80px;
  }
  .perf-compare__th-name {
    font-size: 14px;
  }
  .perf-compare__th-price {
    font-size: 16px;
  }
  .perf-compare__th-cta {
    padding: 10px 20px;
    font-size: 13px;
  }
  .perf-compare__table tbody td {
    font-size: 13px;
    padding: 12px 10px;
  }

  /* Ensure touch targets >= 44px */
  .perf-btn-primary,
  .perf-btn-secondary,
  .perf-card__cta,
  .perf-compare__th-cta,
  .perf-cta-banner__btn {
    min-height: 44px;
  }

  /* Hero CTA full width */
  .perf-hero__cta {
    padding: 14px 32px;
  }

  /* Scroll indicator smaller */
  .perf-hero__scroll svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  /* Breadcrumb: hide middle segment */
  .perf-breadcrumb {
    font-size: 11px;
  }

  /* Flagship specs 2x2 stays but tighter */
  .perf-flagship__specs {
    gap: 12px;
  }
  .perf-flagship__spec-value {
    font-size: 18px;
  }

  /* Why grid: single column */
  .perf-why__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Cards: tighter padding */
  .perf-card__image-wrap {
    padding: 20px 16px;
  }

  /* CTA banner tighter */
  .perf-cta-banner {
    padding: 48px 20px;
    margin-bottom: 40px;
  }
}





/* ============================================
   COMPARE TABLE — Sticky Header + Sticky First Column
   ============================================ */

/* All header cells: stick to top when scrolling vertically */
.perf-compare__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 2px 0 #e8e8ed;
}

/* First column body cells: stick to left when scrolling horizontally */
.perf-compare__table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 2px 0 4px rgba(0,0,0,0.06);
  min-width: 140px;
}

/* Top-left corner cell: stick both directions */
.perf-compare__table thead th:first-child {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.06);
  min-width: 140px;
}

/* Hover state keeps background solid */
.perf-compare__table tbody tr:hover td:first-child {
  background: #f9f9fb;
}

/* Keep section z-index low so site header stays on top */
.perf-compare {
  z-index: 1;
}

/* ============================================
   SECTION 6: LATEST FROM THE BLOG
   ============================================ */
.perf-articles {
  position: relative;
  z-index: 1;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #f5f5f7;
  padding: 100px 24px;
}
.perf-articles__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.perf-articles__header {
  text-align: center;
  margin-bottom: 56px;
}
.perf-articles__eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 8px;
}
.perf-articles__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin: 0 0 8px;
}
.perf-articles__sub {
  font-size: 17px;
  color: #6e6e73;
}
.perf-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.perf-articles__more {
  text-align: center;
}

/* Article Card */
.perf-article {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.perf-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.perf-article__image-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e8ed;
}
.perf-article__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.perf-article:hover .perf-article__image {
  transform: scale(1.05);
}
.perf-article__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.perf-article__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0071e3;
  margin-bottom: 8px;
}
.perf-article__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d1d1f;
  margin: 0 0 10px;
}
.perf-article__title a {
  color: inherit;
  text-decoration: none;
}
.perf-article__title a:hover {
  color: #0071e3;
}
.perf-article__excerpt {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.perf-article__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #86868b;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 1024px) {
  .perf-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .perf-articles {
    padding: 60px 20px;
  }
  .perf-articles__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .perf-article__body {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .perf-articles {
    padding: 48px 16px;
  }
}
