/* ======================================
   NXTCORE Apple-Style Product Listing v23
   Collapsible sidebar filters
   ====================================== */

/* --- Base overrides --- */
.whmcs-templatefile-products section#main-body { clear: both; width: 100%; }
.whmcs-templatefile-products #order-standard_cart.hostx-cart-body-section { margin-top: 0 !important; overflow-x: hidden; max-width: 100%; }
.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; }

/* ============================================
   VIDEO HERO (full-viewport)
   ============================================ */
.nxt-video-hero {
  position: relative; z-index: 1; width: 100vw; left: 50%; margin-left: -50vw;
  height: clamp(244px, 34vh, 366px); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(125% 150% at 82% -18%, #0b63c4 0%, #07346a 42%, #04203f 100%);
}
.nxt-video-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 120% at 88% 50%, rgba(255,255,255,0.10), transparent 60%);
}
.nxt-hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1240px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nxt-hero-content { text-align: left; color: #fff; max-width: 620px; }
.nxt-hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin: 0 0 10px;
}
.nxt-hero-title {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.04; margin: 0 0 12px; color: #fff;
}
.nxt-hero-tagline {
  font-size: clamp(15px, 1.7vw, 18px); font-weight: 400; color: rgba(255,255,255,0.82);
  max-width: 520px; margin: 0 0 22px; line-height: 1.45;
}
.nxt-hero-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  background: #fff; color: #07346a; border-radius: 980px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: transform 0.18s, box-shadow 0.18s;
}
.nxt-hero-cta span { transition: transform 0.18s; }
.nxt-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); color: #07346a; text-decoration: none; }
.nxt-hero-cta:hover span { transform: translateY(3px); }
.nxt-hero-figure { flex: 0 0 auto; width: 340px; height: 100%; display: flex; align-items: center; justify-content: center; }
.nxt-hero-figure img {
  max-width: 100%; max-height: 76%; object-fit: contain;
  filter: drop-shadow(0 26px 42px rgba(0,0,0,0.45)); transform: rotate(-7deg);
}
@media (max-width: 860px) {
  .nxt-hero-figure { display: none; }
  .nxt-hero-inner { justify-content: center; padding: 0 24px; }
  .nxt-hero-content { text-align: center; }
  .nxt-hero-tagline { margin-left: auto; margin-right: auto; }
}

/* Breadcrumb on hero */
.nxt-hero-breadcrumb {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 5;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.nxt-hero-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nxt-hero-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.nxt-hero-breadcrumb span {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}

.nxt-hero-breadcrumb .current {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin: 0;
}

/* Scroll indicator — hidden on compact hero */
.nxt-hero-scroll {
  display: none;
}

.nxt-hero-scroll svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.6);
}

@keyframes nxt-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .nxt-hero-scroll { animation: none; }
}

/* --- Page --- */
.nxt-listing-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 60px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Breadcrumb --- */
.nxt-breadcrumb {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 0;
  padding: 8px 0;
}
.nxt-breadcrumb a { color: #06c; text-decoration: none; }
.nxt-breadcrumb a:hover { text-decoration: underline; }
.nxt-breadcrumb .sep { margin: 0 5px; color: #d2d2d7; }
.nxt-breadcrumb .sep i { font-size: 7px; vertical-align: 1px; }
.nxt-breadcrumb .current { color: #1d1d1f; font-weight: 500; }

/* --- Category tabs --- */
.nxt-category-tabs {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 18px 2px 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nxt-category-tabs::-webkit-scrollbar { display: none; }
.nxt-category-tabs .tab {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.nxt-category-tabs .tab:hover { background: rgba(0, 0, 0, 0.09); text-decoration: none; color: #1d1d1f; }
.nxt-category-tabs .tab.active { background: #07346a; color: #fff; }
.nxt-category-tabs .tab-all { color: #6b7280; background: transparent; }
.nxt-category-tabs .tab-all:hover { background: rgba(0, 0, 0, 0.05); color: #1d1d1f; }

/* --- Hero --- */
.nxt-listing-hero {
  text-align: center;
  padding: 56px 20px 40px;
}
.nxt-listing-hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.07;
}
.nxt-listing-hero__tagline {
  font-size: 21px;
  color: #86868b;
  margin: 14px auto 0;
  font-weight: 400;
  line-height: 1.38;
  max-width: 560px;
  letter-spacing: 0.011em;
}

/* ============================================
   Filter Sidebar (collapsible)
   ============================================ */

/* Overlay */
.nxt-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;
}
.nxt-sidebar-overlay.open { display: block; }

/* Sidebar container */
.nxt-filter-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 80;
  pointer-events: none;
}

/* Collapsed toggle button */
.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;
}
.sidebar-toggle:hover {
  background: #fff;
  box-shadow: 2px 0 30px rgba(0,0,0,0.1);
}
.sidebar-toggle i {
  font-size: 18px;
  color: #1d1d1f;
}
.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;
}
.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;
}

/* Hide toggle when sidebar is open */
.nxt-filter-sidebar.open .sidebar-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-10px);
}

/* Expanded panel */
.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);
}
.nxt-filter-sidebar.open .sidebar-panel {
  transform: translateX(0);
}

.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;
}
.sidebar-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}
.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;
}
.sidebar-close:hover { background: #e8e8ed; color: #1d1d1f; }

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

/* Filter groups inside sidebar */
.sidebar-body .filter-group {
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  padding: 18px 0;
}
.sidebar-body .filter-group:first-child { padding-top: 12px; }
.sidebar-body .filter-group:last-child { border-bottom: none; }
.sidebar-body .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;
}
.sidebar-body .filter-group-title:hover { color: #1d1d1f; }
.sidebar-body .filter-group-title::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Pro';
  font-weight: 900;
  font-size: 8px;
  color: #d2d2d7;
  transition: transform 0.2s;
}
.sidebar-body .filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
.sidebar-body .filter-group.collapsed .filter-options { display: none; }
.sidebar-body .filter-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-body .filter-options li { padding: 2px 0; }
/* long model lists (Nike/Adidas) scroll instead of dominating the sidebar */
.filter-options-scroll { max-height: 240px; overflow-y: auto; padding-right: 4px; }
.filter-options-scroll::-webkit-scrollbar { width: 6px; }
.filter-options-scroll::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 3px; }
.sidebar-body .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;
}
.sidebar-body .filter-options li label:hover { background: #f5f5f7; }
.sidebar-body .filter-options li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0071e3;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-body .fd-label { flex: 1; min-width: 0; }
.sidebar-body .filter-count { color: #86868b; font-size: 12px; margin-left: auto; flex-shrink: 0; }
.sidebar-body .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;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.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;
}
.sidebar-reset:hover { background: #f5f5f7; border-color: #86868b; }

/* --- Results Bar --- */
.nxt-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}
.nxt-results-bar .results-count {
  font-size: 13px;
  color: #86868b;
}
.nxt-results-bar select {
  padding: 5px 28px 5px 10px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #1d1d1f;
  font-family: inherit;
}

/* --- Active filter chips --- */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 0 10px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
}
.filter-chip button {
  background: none;
  border: none;
  color: #86868b;
  font-size: 14px;
  cursor: pointer;
  padding: 0 1px;
  line-height: 1;
  transition: color 0.12s;
}
.filter-chip button:hover { color: #ff3b30; }
.clear-all-filters {
  background: none;
  border: none;
  color: #06c;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  font-family: inherit;
}
.clear-all-filters:hover { text-decoration: underline; }

/* --- Skeleton --- */
.nxt-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 16px;
}
.skeleton-card-v {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.skeleton-card-v .sk-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f7;
  border-radius: 18px 18px 0 0;
}
.skeleton-card-v .sk-body { padding: 24px 24px 28px; }
.skeleton-card-v .sk-dots { height: 10px; width: 60px; border-radius: 5px; margin-bottom: 14px; }
.skeleton-card-v .sk-title { height: 22px; width: 70%; border-radius: 6px; margin-bottom: 8px; }
.skeleton-card-v .sk-sub { height: 14px; width: 90%; border-radius: 6px; margin-bottom: 20px; }
.skeleton-card-v .sk-price { height: 20px; width: 35%; border-radius: 6px; margin-bottom: 20px; }
.skeleton-card-v .sk-ctas { display: flex; gap: 16px; }
.skeleton-card-v .sk-link { height: 16px; width: 80px; border-radius: 6px; }
.skeleton-card-v .sk-btn { height: 36px; width: 72px; border-radius: 980px; }
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Product grid wrapper (gray bg like performance) --- */
.nxt-listing-page {
  background: #f5f5f7;
}

/* --- Product grid --- */
#productGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Product card --- */
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* Card image */
.product-card-image {
  position: relative;
  background: #fafafa;
  overflow: hidden;
}
.product-card-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 32px 24px;
}
.product-card-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d2d2d7;
  font-size: 48px;
}

/* Card body — left-aligned like performance */
.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 32px;
}

/* Color dots */
.card-color-dots {
  display: flex;
  gap: 6px;
  min-height: 18px;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
}
.card-color-dots .color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--dot);
  border: 1px solid rgba(0,0,0,0.1);
  transition: transform 0.15s;
  cursor: pointer;
}
.card-color-dots .color-dot:hover { transform: scale(1.3); }

/* Name */
.product-card-name {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.product-card-name a { color: inherit; text-decoration: none; }
.product-card-name a:hover { color: #0071e3; text-decoration: none; }

/* Tagline */
.product-card-tagline {
  font-size: 14px;
  color: #6e6e73;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Spec icons */
.card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1d1d1f;
  line-height: 1.3;
}
.card-spec .spec-icon {
  width: 20px;
  height: 20px;
  color: #0071e3;
  flex-shrink: 0;
}

/* Footer: price + CTA */
.product-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;
}

/* Price — stacked */
.product-card-price {
  display: flex;
  flex-direction: column;
}
.price-from {
  font-size: 12px;
  color: #6e6e73;
  font-weight: 400;
}
.price-amount {
  font-size: 24px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

/* CTA */
.cta-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.cta-buy:hover { background: #0077ed; color: #fff; text-decoration: none; }

/* Compare checkbox */
.card-compare {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #86868b;
  margin-top: 14px;
}
.card-compare input { accent-color: #0071e3; cursor: pointer; width: 14px; height: 14px; }
.card-compare label { cursor: pointer; }

/* --- Fade-in --- */
.apple-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.apple-fade-in.visible { opacity: 1; transform: none; }
.apple-fade-in-d1 { transition-delay: 0s; }
.apple-fade-in-d2 { transition-delay: 0.1s; }
.apple-fade-in-d3 { transition-delay: 0.2s; }
.apple-fade-in-d4 { transition-delay: 0.3s; }
.apple-fade-in-d5 { transition-delay: 0.4s; }
.apple-fade-in-d6 { transition-delay: 0.5s; }

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 100px 20px;
  color: #86868b;
  grid-column: 1 / -1;
}
.empty-state i { font-size: 40px; margin-bottom: 16px; display: block; color: #d2d2d7; }
.empty-state p { font-size: 17px; margin: 0 0 24px; }
.btn-reset-filters {
  display: inline-block;
  padding: 10px 24px;
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-reset-filters:hover { background: #0077ed; }

/* --- Compare bar (left-side strip, dark) --- */
.start-compare-actions {
  position: fixed;
  left: 0;
  bottom: 140px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 100;
  padding: 20px 18px;
  width: auto;
  max-width: fit-content;
  right: auto;
  background: #1d1d1f;
  border-radius: 0 18px 18px 0;
  box-shadow: 4px 0 30px rgba(0,0,0,0.2);
}
.start-compare-actions.active { display: flex; }
.start-compare-actions .compare-count-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.start-compare-actions button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease;
  /* Override index.css circle styles */
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
}
button.start-compare {
  padding: 10px 22px !important;
  border-radius: 980px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: #0071e3 !important;
  color: #fff !important;
}
button.start-compare:hover { background: #0077ed !important; }
button.clear-compare {
  padding: 4px 0 !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  background: transparent !important;
  color: rgba(255,255,255,0.45) !important;
  letter-spacing: 0.01em;
}
button.clear-compare:hover { color: rgba(255,255,255,0.8) !important; }

/* --- Compare modal --- */
.compare-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 2000;
  overflow-y: auto;
}
.compare-modal-overlay.open { display: block; }
.compare-modal-container {
  max-width: 1100px;
  margin: 48px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
.compare-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.compare-modal-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;
}
.compare-modal-close:hover { background: #e8e8ed; color: #1d1d1f; }

.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  vertical-align: top;
  padding: 28px 20px;
  text-align: center;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  position: relative;
}
.compare-table th img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  mix-blend-mode: multiply;
}
.compare-noimg { height: 100px; display: flex; align-items: center; justify-content: center; color: #d2d2d7; font-size: 40px; }
.compare-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f5f5f7;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #86868b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.compare-remove:hover { background: #e8e8ed; color: #ff3b30; }
.compare-product-name { font-size: 15px; font-weight: 600; margin: 8px 0 4px; color: #1d1d1f; }
.compare-product-price { font-size: 17px; font-weight: 700; color: #1d1d1f; margin-bottom: 14px; }
.compare-cta { padding: 7px 18px !important; font-size: 12px !important; }
.compare-table td {
  padding: 12px 20px;
  border-bottom: 0.5px solid rgba(0,0,0,0.05);
  vertical-align: top;
  font-size: 13px;
}
.compare-table tbody tr:hover td { background: rgba(0,0,0,0.015); }
.compare-spec-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #86868b;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.compare-spec-value { color: #1d1d1f; line-height: 1.43; }
.compare-na { color: #d2d2d7; }

/* ============================================
   Why Choose Section
   ============================================ */
.nxt-why {
  margin-top: 80px;
  padding: 80px 0;
  border-radius: 24px;
  background: #1d1d1f;
  color: #f5f5f7;
}
.nxt-why__header {
  text-align: center;
  margin-bottom: 56px;
}
.nxt-why__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}
.nxt-why__sub {
  font-size: 17px;
  color: rgba(245,245,247,0.6);
  margin: 0;
}
.nxt-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 40px;
}
.nxt-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;
}
.nxt-why__card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.nxt-why__card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #2997ff;
}
.nxt-why__card-icon svg {
  width: 100%;
  height: 100%;
}
.nxt-why__card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.nxt-why__card-desc {
  font-size: 14px;
  color: rgba(245,245,247,0.6);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .nxt-why__grid { grid-template-columns: repeat(2, 1fr); }
  #productGrid,
  .nxt-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .nxt-listing-page { padding: 12px 32px 80px; }
}

@media (max-width: 900px) {
  .nxt-video-hero { height: 45vh; min-height: 280px; max-height: 380px; }
  .nxt-hero-title { font-size: 40px; }
  .nxt-hero-tagline { font-size: 16px; }
  .nxt-hero-cta { padding: 14px 32px; }
  .nxt-hero-breadcrumb {
    font-size: 11px;
    top: 12px;
    left: 16px;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nxt-listing-page { padding: 8px 20px 88px; }
  .nxt-listing-hero { padding: 36px 0 24px; }
  .nxt-listing-hero h1 { font-size: 40px; }
  .nxt-listing-hero__tagline { font-size: 17px; }

  .nxt-category-tabs { display: none !important; }
  .active-filters { display: none !important; }

  /* Hide desktop sidebar on mobile */
  .nxt-filter-sidebar { display: none !important; }
  .nxt-sidebar-overlay { display: none !important; }

  /* Hide sort dropdown on mobile (sort via bottom bar) */
  .nxt-results-bar select { display: none; }

  .product-card-name { font-size: 18px; }
  .price-amount { font-size: 20px; }
  .product-card-body { padding: 20px 20px 24px; }
  .cta-buy { padding: 10px 20px; font-size: 13px; }

  .start-compare-actions {
    left: 0;
    bottom: 72px;
    border-radius: 0 14px 14px 0;
    padding: 16px 14px;
    gap: 10px;
  }

  .compare-modal-container { margin: 16px; border-radius: 14px; }
  .compare-table { display: table !important; overflow-x: visible !important; }
  .compare-products-content { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 12px; }
  .compare-table th img { max-height: 80px; }
  .compare-product-name { font-size: 13px; }
  .compare-product-price { font-size: 14px; }
}

@media (max-width: 640px) {
  .nxt-why { margin-top: 48px; padding: 48px 0; border-radius: 16px; }
  .nxt-why__grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .nxt-why__header { margin-bottom: 32px; }
  .nxt-why__card { padding: 28px 20px; }
  .nxt-video-hero { min-height: 240px; max-height: 320px; }
  .nxt-hero-eyebrow { font-size: 14px; }
  .nxt-hero-cta { padding: 14px 28px; font-size: 15px; }
  .nxt-hero-scroll svg { width: 24px; height: 24px; }
  #productGrid,
  .nxt-skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nxt-listing-page { padding: 4px 12px 88px; }
  .nxt-listing-hero { padding: 20px 0 14px; }
  .nxt-listing-hero h1 { font-size: 32px; }
  .nxt-listing-hero__tagline { font-size: 15px; }
  .product-card-body { padding: 16px 14px 20px; }
  .product-card-name { font-size: 15px; }
  .product-card-tagline { font-size: 12px; margin-bottom: 12px; }
  .card-specs { gap: 6px; margin-bottom: 16px; }
  .card-spec { font-size: 12px; gap: 7px; }
  .card-spec .spec-icon { width: 16px; height: 16px; }
  .price-amount { font-size: 18px; }
  .cta-buy { padding: 9px 16px; font-size: 12px; }
  .product-card-footer { gap: 8px; padding-top: 14px; }
  .card-compare { margin-top: 10px; }
}
@media (max-width: 380px) {
  #productGrid,
  .nxt-skeleton-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card-body { padding: 20px 20px 24px; }
  .product-card-name { font-size: 19px; }
  .price-amount { font-size: 22px; }
  .cta-buy { padding: 11px 22px; font-size: 14px; }
}

/* ============================================
   Mobile bottom bar + drawers
   ============================================ */
.mobile-bottom-bar { display: none; }
.mob-category-popup { display: none !important; }
.mob-sort-popup { display: none !important; }
.mobile-filter-overlay { display: none; }
.mobile-filter-drawer { display: none; }

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0,0,0,0.12);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
  }
  .mob-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    background: none;
    border: none;
    color: #86868b;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
  }
  .mob-bar-btn i { font-size: 18px; }
  .mob-bar-btn:hover, .mob-bar-btn.active { color: #0071e3; }

  .mob-category-popup {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    bottom: 62px;
    left: 8px;
    z-index: 101;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.14), 0 0 0 0.5px rgba(0,0,0,0.04);
    padding: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  }
  .mob-category-popup.open { opacity: 1; visibility: visible; transform: none; }
  .mob-cat-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
  }
  .mob-cat-option:hover { background: #f5f5f7; text-decoration: none; color: #1d1d1f; }
  .mob-cat-option.active { color: #0071e3; font-weight: 600; }
  .mob-cat-option i { font-size: 15px; width: 20px; text-align: center; color: #86868b; }
  .mob-cat-option.active i { color: #0071e3; }

  .mob-sort-popup {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    bottom: 62px;
    right: 8px;
    z-index: 101;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.14), 0 0 0 0.5px rgba(0,0,0,0.04);
    padding: 4px;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  }
  .mob-sort-popup.open { opacity: 1; visibility: visible; transform: none; }
  .mob-sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: #1d1d1f;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    font-family: inherit;
  }
  .mob-sort-option:hover { background: #f5f5f7; }
  .mob-sort-option.active { color: #0071e3; font-weight: 600; }
  .mob-sort-option i { font-size: 13px; width: 20px; text-align: center; color: #86868b; }
  .mob-sort-option.active i { color: #0071e3; }

  .mobile-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .mobile-filter-overlay.open { opacity: 1; visibility: visible; }
  .mobile-filter-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-filter-drawer.open { transform: translateY(0); }
  .mob-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
  }
  .mob-drawer-header h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
  .mob-drawer-close {
    background: #f5f5f7;
    border: none;
    font-size: 20px;
    color: #86868b;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mob-drawer-close:hover { background: #e8e8ed; }
  .mob-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px;
    -webkit-overflow-scrolling: touch;
  }
  .mob-drawer-body .filter-group { border-bottom: 0.5px solid rgba(0,0,0,0.08); padding: 14px 0; }
  .mob-drawer-body .filter-group:first-child { padding-top: 0; }
  .mob-drawer-body .filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mob-drawer-body .filter-group-title::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    font-size: 9px;
    color: #86868b;
    transition: transform 0.2s;
  }
  .mob-drawer-body .filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
  .mob-drawer-body .filter-group.collapsed .filter-options { display: none; }
  .mob-drawer-body .filter-options { list-style: none; padding: 0; margin: 0; }
  .mob-drawer-body .filter-options li { padding: 6px 0; }
  .mob-drawer-body .filter-options li label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #1d1d1f;
    cursor: pointer;
  }
  .mob-drawer-body .filter-options li input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0071e3;
    cursor: pointer;
  }
  .mob-drawer-body .filter-count { color: #86868b; font-size: 12px; margin-left: auto; }
  .mob-drawer-body .filter-reset { display: none; }
  .mob-drawer-footer {
    display: flex;
    gap: 10px;
    padding: 14px 24px env(safe-area-inset-bottom, 14px);
    border-top: 0.5px solid rgba(0,0,0,0.1);
  }
  .mob-drawer-reset {
    flex: 1;
    padding: 13px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #1d1d1f;
    font-family: inherit;
  }
  .mob-drawer-apply {
    flex: 2;
    padding: 13px;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .mob-drawer-apply:hover { background: #0077ed; }
}

/* ===== UADepot: card star rating + sale badge ===== */
.product-card-image { position: relative; }
.card-sale-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: #E60B09; color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; letter-spacing: .04em;
}
.card-rating { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; }
.card-stars { display: inline-flex; font-size: 13px; line-height: 1; letter-spacing: .5px; }
.card-star { color: #d8d9dd; position: relative; }
.card-star.filled { color: #f5a623; }
.card-star.half { color: #d8d9dd; }
.card-star.half::before { content: '★'; color: #f5a623; position: absolute; left: 0; width: 50%; overflow: hidden; }
.card-rating-count { font-size: 12px; color: #9aa0a6; }

/* ===== UADepot: sneaker sidebar filters (colour swatches + price range) ===== */
.filter-options--swatch { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options--swatch li { width: auto; }
.filter-options--swatch label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 20px; cursor: pointer; font-size: 12px; }
.filter-options--swatch input { margin: 0; }
.filter-options--swatch .color-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: inline-block; }
.filter-options--swatch .filter-count { color: #9aa0a6; }
.filter-price { padding: 6px 2px; }
.filter-price input[type="range"] { width: 100%; accent-color: #00438B; }
.filter-price-label { font-size: 13px; color: #555; margin-top: 6px; }

/* ===== Colour filter swatches ===== */
.filter-colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 10px; padding: 4px 0 2px; }
.color-swatch { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: #1d1d1f; user-select: none; }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.color-dot { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s; }
.color-dot.color-white { box-shadow: inset 0 0 0 1px rgba(0,0,0,.22); }
.color-swatch input:checked + .color-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #07346a; transform: scale(1.08); }
.color-name { text-transform: capitalize; }
.color-swatch:hover .color-name { color: #07346a; }

/* strike-through authentic retail next to our price */
.product-card-price { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-card-price .price-retail { color: #9aa0a6; text-decoration: line-through; font-size: 13px; font-weight: 500; }

/* SEO intro paragraph (category landing copy) */
.nxt-seo-intro { max-width: 1180px; margin: 0 auto; padding: 22px 20px 4px; }
.nxt-seo-intro p { color: #5b6573; font-size: 15px; line-height: 1.7; margin: 0; max-width: 900px; }
@media (max-width: 640px) { .nxt-seo-intro { padding: 16px 16px 0; } .nxt-seo-intro p { font-size: 14px; } }
