/* Variables */
:root {
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --color-background: #f4f6f7;
  --color-surface: #ffffff;
  --color-surface-alt: #e8edee;
  --color-surface-muted: #f7f9f9;
  --color-border: #dbe2e4;
  --color-divider: #e7edef;
  --color-text: #10212b;
  --color-text-secondary: #52616d;
  --color-text-muted: #85939d;
  --color-accent: #2357d6;
  --color-accent-hover: #1c46ad;
  --color-success: #1c7f55;
  --color-warning: #a56a1d;
  --color-danger: #b23f38;
  --color-inverse: #ffffff;
  --color-footer: #0f1720;
  --color-footer-border: rgba(255, 255, 255, 0.08);
  --color-footer-muted: rgba(255, 255, 255, 0.72);
  --color-overlay: rgba(15, 23, 32, 0.56);

  --shadow-card: 0 1px 2px rgba(16, 33, 43, 0.05);

  --radius-card: 10px;
  --radius-control: 8px;
  --radius-pill: 999px;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-16: 16px;
  --text-18: 18px;
  --text-22: 22px;
  --text-28: 28px;
  --text-36: 36px;
  --text-48: 48px;

  --line-body: 1.5;
  --line-heading: 1.2;

  --content-width: 1320px;
  --hero-image: url("assets/category-images/compute-systems.png");
  --build-banner-image: url("assets/category-images/compute-systems.png");
  --category-hero-image: url("assets/category-images/graphics-cards.png");

  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='52' viewBox='0 0 220 52' fill='none'%3E%3Cpath d='M0 26h54m0 0V10h42m0 16h58m0 0v16h66' stroke='%230B1220' stroke-width='1.2'/%3E%3Ccircle cx='54' cy='26' r='2.5' fill='%230B1220'/%3E%3Ccircle cx='96' cy='10' r='2.5' fill='%230B1220'/%3E%3Ccircle cx='154' cy='26' r='2.5' fill='%230B1220'/%3E%3Ccircle cx='220' cy='42' r='2.5' fill='%230B1220'/%3E%3C/svg%3E");
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='52' viewBox='0 0 220 52' fill='none'%3E%3Cpath d='M0 26h54m0 0V10h42m0 16h58m0 0v16h66' stroke='%23FFFFFF' stroke-width='1.2'/%3E%3Ccircle cx='54' cy='26' r='2.5' fill='%23FFFFFF'/%3E%3Ccircle cx='96' cy='10' r='2.5' fill='%23FFFFFF'/%3E%3Ccircle cx='154' cy='26' r='2.5' fill='%23FFFFFF'/%3E%3Ccircle cx='220' cy='42' r='2.5' fill='%23FFFFFF'/%3E%3C/svg%3E");

  --transition-color: color 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 200ms ease;
}

html[data-theme="dark"] {
  --color-background: #0d1318;
  --color-surface: #121b21;
  --color-surface-alt: #16212a;
  --color-surface-muted: #0f181f;
  --color-border: #21303a;
  --color-divider: #1a2630;
  --color-text: #f1f5f5;
  --color-text-secondary: #c1cbd1;
  --color-text-muted: #8d99a3;
  --color-accent: #6d8eff;
  --color-accent-hover: #89a3ff;
  --color-success: #38a169;
  --color-warning: #d0a252;
  --color-danger: #d46b64;
  --color-inverse: #0f1720;
  --color-footer: #091016;
  --color-footer-border: rgba(255, 255, 255, 0.08);
  --color-footer-muted: rgba(255, 255, 255, 0.7);
  --color-overlay: rgba(0, 0, 0, 0.72);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-16);
  line-height: var(--line-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-color);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* Utilities */
.container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-inline: var(--space-24);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono-text,
.sku-code,
.hero-stat-value,
.price-was,
.product-spec-row,
.spec-chip,
.product-meta-inline,
.review-count {
  font-family: var(--font-mono);
}

/* Top bars */
.utility-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 32px;
  background: var(--color-footer);
  color: var(--color-footer-muted);
  border-bottom: 1px solid var(--color-footer-border);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: 32px;
}

.utility-links,
.utility-status {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  font-size: var(--text-12);
}

.utility-links a:hover,
.utility-button:hover {
  color: var(--color-inverse);
}

.utility-button {
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 32px;
  z-index: 55;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
}

html[data-theme="dark"] .site-header {
  background: rgba(11, 15, 23, 0.98);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(340px, 520px) auto;
  align-items: center;
  gap: var(--space-16);
  min-height: 72px;
}

.header-main > * {
  min-width: 0;
}

.brand,
.brand-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 34px;
  height: 32px;
  flex: 0 0 34px;
}

.brand-mark span {
  position: static;
  background: var(--color-accent);
}

.brand-tile {
  width: 6px;
  border-radius: 2px 2px 1px 1px;
}

.brand-tile:nth-child(1) {
  height: 13px;
}

.brand-tile:nth-child(2) {
  height: 25px;
}

.brand-tile:nth-child(3) {
  height: 19px;
}

.brand-tile:nth-child(4) {
  height: 31px;
}

.brand-node-north,
.brand-node-south {
  width: 14px;
  height: 8px;
  border-radius: 999px;
}

.brand-node-east,
.brand-node-west {
  width: 8px;
  height: 14px;
  border-radius: 999px;
}

.brand-node-north {
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.brand-node-east {
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
}

.brand-node-south {
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.brand-node-west {
  top: 50%;
  left: 1px;
  transform: translateY(-50%);
}

.brand-node-core {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--color-text);
  box-shadow: 0 0 0 3px var(--color-surface);
  transform: translate(-50%, -50%);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: var(--text-18);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-tag {
  color: var(--color-text-muted);
  font-size: var(--text-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.primary-nav a {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav a:hover,
.section-link:hover,
.footer-column a:hover,
.footer-social a:hover,
.brand-logo:hover {
  color: var(--color-accent);
}

.header-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-12);
  min-height: 44px;
  padding: 0 var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  min-width: 0;
}

.header-search:focus-within,
.filter-search input:focus,
.sort-control select:focus,
.newsletter-form input:focus,
.quantity-stepper input:focus,
.price-range-input:focus {
  border-color: var(--color-accent);
  outline: 2px solid rgba(26, 86, 219, 0.16);
  outline-offset: 0;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.header-search input,
.header-search button,
.filter-search input,
.newsletter-form input,
.quantity-stepper input {
  border: 0;
  background: transparent;
  color: var(--color-text);
}

.header-search input,
.filter-search input,
.newsletter-form input,
.quantity-stepper input {
  min-width: 0;
}

.header-search input::placeholder,
.filter-search input::placeholder,
.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

.header-search button {
  color: var(--color-accent);
  font-size: var(--text-14);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-8);
  flex-wrap: nowrap;
  justify-self: end;
}

.header-action,
.mobile-nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.header-action:hover,
.mobile-nav-toggle:hover,
.wishlist-outline:hover,
.view-toggle-button:hover,
.tab-button:hover,
.pagination-button:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.header-action svg,
.mobile-nav-toggle svg,
.wishlist-outline svg,
.view-toggle-button svg,
.theme-toggle svg,
.filters-close svg {
  width: 18px;
  height: 18px;
}

.action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--text-12);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-dark {
  display: none;
}

html[data-theme="dark"] .theme-icon-dark {
  display: block;
}

html[data-theme="dark"] .theme-icon-light {
  display: none;
}

.mobile-nav-toggle {
  display: none;
}

/* Overlay and mobile drawer */
.site-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 70;
}

body.mobile-nav-open .site-overlay,
body.filters-open .site-overlay {
  display: block;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 340px);
  padding: var(--space-24);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 75;
}

body.mobile-nav-open .mobile-drawer {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-24);
}

.mobile-drawer-header p {
  font-size: var(--text-18);
  font-weight: 700;
}

.mobile-drawer-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}

.mobile-drawer-nav {
  display: grid;
  gap: var(--space-16);
}

.mobile-drawer-nav a {
  color: var(--color-text-secondary);
  font-size: var(--text-16);
  font-weight: 600;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-14);
  font-weight: 600;
  transition: var(--transition-color);
  cursor: pointer;
}

.button-primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #ffffff;
}

.button-primary:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
}

.button-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Section scaffolding */
.market-section {
  padding-block: var(--space-48);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.section-kicker {
  color: var(--color-text-muted);
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker-inverse {
  color: rgba(255, 255, 255, 0.8);
}

.section-link {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
  font-weight: 600;
}

h1 {
  font-size: var(--text-48);
  line-height: var(--line-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-28);
  line-height: var(--line-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-18);
  line-height: var(--line-heading);
  font-weight: 600;
}

.section-divider {
  position: relative;
  height: 36px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-light);
  background-repeat: repeat-x;
  background-size: 220px 52px;
  opacity: 0.05;
}

.section-divider-muted {
  background: var(--color-surface-alt);
}

html[data-theme="dark"] .section-divider::before {
  background-image: var(--pattern-dark);
}

/* Hero */
.hero-marketplace {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--color-surface);
}

.hero-atmosphere,
.catalog-hero-atmosphere,
.build-banner-atmosphere,
.site-footer-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) saturate(0) contrast(0.9);
  opacity: 0.35;
}

.hero-atmosphere {
  background-position: right center;
  background-size: cover;
  filter: grayscale(1) saturate(0) blur(1px) contrast(0.92);
  opacity: 0.18;
}

.hero-marketplace::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 250, 0.97) 0%, rgba(247, 248, 250, 0.95) 42%, rgba(247, 248, 250, 0.82) 68%, rgba(247, 248, 250, 0.46) 100%);
}

html[data-theme="dark"] .hero-marketplace::after {
  background:
    linear-gradient(90deg, rgba(11, 15, 23, 0.95) 0%, rgba(11, 15, 23, 0.93) 42%, rgba(11, 15, 23, 0.78) 68%, rgba(11, 15, 23, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px);
  align-items: center;
  gap: var(--space-48);
  min-height: 520px;
  padding-block: var(--space-48);
}

.hero-copy {
  display: grid;
  gap: var(--space-24);
  max-width: 640px;
}

.hero-summary {
  max-width: 560px;
  color: var(--color-text-secondary);
  font-size: var(--text-18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.trust-strip li {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text-secondary);
  font-size: var(--text-13);
  font-weight: 500;
}

html[data-theme="dark"] .trust-strip li {
  background: rgba(17, 24, 39, 0.9);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
}

.hero-stat-card {
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: none;
}

html[data-theme="dark"] .hero-stat-card {
  background: rgba(17, 24, 39, 0.88);
}

.hero-stat-value {
  display: block;
  margin-bottom: var(--space-8);
  font-size: var(--text-22);
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  color: var(--color-text-muted);
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-spotlight {
  position: relative;
  z-index: 1;
}

.hero-feature-card {
  display: grid;
  gap: var(--space-16);
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .hero-feature-card {
  background: rgba(17, 24, 39, 0.92);
}

.hero-feature-image {
  padding: var(--space-24);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-card);
  background: var(--color-surface-muted);
}

.hero-feature-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero-feature-meta {
  display: grid;
  gap: var(--space-8);
}

.hero-feature-meta p {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
}

/* Cards and grids */
.category-grid,
.product-grid,
.guide-grid {
  display: grid;
  gap: var(--space-24);
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.product-card,
.guide-card,
.info-card,
.tab-panel,
.empty-state {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.category-card:hover,
.product-card:hover,
.guide-card:hover {
  border-color: var(--color-accent);
}

.category-card-link,
.guide-card-link {
  display: grid;
  height: 100%;
}

.category-card-media,
.product-card-media,
.guide-card-media {
  position: relative;
  padding: var(--space-24);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-muted);
}

.category-card-media img,
.product-card-media img,
.guide-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: opacity 200ms ease;
}

.guide-card-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1) saturate(0.25);
}

.category-card:hover .category-card-media img,
.product-card:hover .product-card-media img,
.guide-card:hover .guide-card-media img {
  opacity: 0.92;
}

.category-card-body,
.product-card-body,
.guide-card-body {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-16);
}

.category-card-title,
.guide-card-title {
  font-size: var(--text-18);
  font-weight: 700;
  line-height: var(--line-heading);
}

.category-card-meta,
.guide-card-copy {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
}

.category-card-cta,
.guide-card-cta {
  color: var(--color-accent);
  font-size: var(--text-14);
  font-weight: 600;
}

.product-card {
  position: relative;
  display: grid;
  overflow: hidden;
}

.product-card-top {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  right: var(--space-12);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-8);
  z-index: 1;
}

.product-card-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

html[data-theme="dark"] .product-card-save {
  background: rgba(17, 24, 39, 0.94);
}

.product-card-save.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-card-save svg {
  width: 16px;
  height: 16px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--space-12);
  border-radius: var(--radius-pill);
  font-size: var(--text-12);
  font-weight: 700;
}

.product-badge-sale {
  background: rgba(180, 35, 24, 0.12);
  color: var(--color-danger);
}

.product-badge-new {
  background: rgba(26, 86, 219, 0.12);
  color: var(--color-accent);
}

.product-badge-bestseller {
  background: rgba(11, 18, 32, 0.08);
  color: var(--color-text);
}

.product-badge-condition {
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

.product-card-media {
  display: block;
  padding: var(--space-32) var(--space-24) var(--space-24);
}

.product-card-body {
  gap: var(--space-12);
}

.product-brand {
  color: var(--color-text-muted);
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-title {
  font-size: var(--text-16);
  font-weight: 600;
  line-height: 1.35;
}

.product-title a {
  color: var(--color-text);
}

.product-title,
.product-title a {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-spec-row {
  color: var(--color-text-secondary);
  font-size: var(--text-12);
  line-height: 1.45;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-13);
}

.rating-stars {
  color: var(--color-accent);
  font-size: var(--text-14);
  letter-spacing: 1px;
}

.review-count {
  color: var(--color-text-muted);
  font-size: var(--text-12);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.price-now {
  font-size: var(--text-22);
  font-weight: 700;
  line-height: 1.1;
}

.price-was {
  color: var(--color-text-muted);
  font-size: var(--text-13);
  text-decoration: line-through;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 var(--space-12);
  border-radius: var(--radius-pill);
  font-size: var(--text-12);
  font-weight: 700;
}

.stock-in {
  color: var(--color-success);
  background: rgba(4, 120, 87, 0.12);
}

.stock-low {
  color: var(--color-warning);
  background: rgba(180, 83, 9, 0.12);
}

.stock-out {
  color: var(--color-danger);
  background: rgba(180, 35, 24, 0.12);
}

.product-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  justify-content: space-between;
}

.product-card-footer .button {
  min-height: 40px;
  padding-inline: var(--space-16);
}

.product-card-qty {
  color: var(--color-text-muted);
  font-size: var(--text-12);
}

/* Home extras */
.best-sellers-section {
  padding-top: var(--space-32);
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
}

.tab-button,
.view-toggle-button,
.pagination-button,
.filters-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-color);
}

.tab-button {
  font-size: var(--text-14);
  font-weight: 600;
}

.tab-button.is-active,
.view-toggle-button.is-active,
.pagination-button.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.build-banner {
  position: relative;
  overflow: hidden;
  background: var(--color-footer);
  color: #ffffff;
}

.build-banner-atmosphere {
  background-image: var(--build-banner-image);
  opacity: 0.22;
}

.catalog-hero-atmosphere {
  background-image: var(--category-hero-image);
  opacity: 0.24;
}

.build-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.92) 0%, rgba(11, 18, 32, 0.8) 48%, rgba(11, 18, 32, 0.72) 100%);
}

.build-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding-block: var(--space-48);
}

.build-banner-inner p:not(.section-kicker) {
  max-width: 700px;
  margin-top: var(--space-12);
  color: rgba(255, 255, 255, 0.78);
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-16);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-16);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Catalog hero and layout */
.catalog-hero {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  background: var(--color-footer);
  color: #ffffff;
}

.catalog-hero-atmosphere {
  background-image: var(--category-hero-image);
  opacity: 0.24;
}

.catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.84) 0%, rgba(11, 18, 32, 0.68) 58%, rgba(11, 18, 32, 0.72) 100%);
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-32);
}

.catalog-hero h1 {
  font-size: var(--text-36);
}

.catalog-hero p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 780px;
}

.catalog-hero-meta {
  font-size: var(--text-13);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-breadcrumb-wrap {
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-block: var(--space-16);
  color: var(--color-text-muted);
  font-size: var(--text-13);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.catalog-section {
  padding-top: var(--space-32);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-32);
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 120px;
  display: grid;
  gap: var(--space-16);
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  align-self: start;
  max-height: calc(100vh - 144px);
  overflow: auto;
  scrollbar-width: thin;
}

.filters-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-16);
}

.filters-panel-header h2 {
  font-size: var(--text-22);
}

.filters-close,
.mobile-filter-button {
  display: none;
}

.filter-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.filter-price {
  display: grid;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}

.filter-price-title,
.filter-group-title {
  font-size: var(--text-14);
  font-weight: 700;
}

.price-range-input {
  width: 100%;
  accent-color: var(--color-accent);
}

.price-range-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  color: var(--color-text-secondary);
  font-size: var(--text-13);
}

.price-reset {
  color: var(--color-accent);
  font-size: var(--text-12);
  font-weight: 600;
  cursor: pointer;
}

.filter-groups {
  display: grid;
  gap: var(--space-12);
}

.filter-accordion {
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-12);
}

.filter-accordion:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: var(--text-14);
  font-weight: 700;
}

.filter-accordion summary::-webkit-details-marker {
  display: none;
}

.filter-accordion summary::after {
  content: "+";
  color: var(--color-text-muted);
}

.filter-accordion[open] summary::after {
  content: "−";
}

.filter-options {
  display: grid;
  gap: var(--space-12);
  padding-top: var(--space-12);
}

.filter-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-13);
}

.filter-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--color-accent);
}

.filter-option-name {
  color: var(--color-text);
  font-weight: 500;
}

.filter-option-count {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.catalog-content {
  min-width: 0;
  display: grid;
  gap: var(--space-24);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.catalog-results p {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
  font-weight: 500;
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.view-toggle {
  display: inline-flex;
  gap: var(--space-8);
}

.view-toggle-button {
  width: 40px;
  padding: 0;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-13);
  font-weight: 600;
}

.sort-control select {
  min-height: 40px;
  padding: 0 var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
}

.product-grid-catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid-catalog.is-list {
  grid-template-columns: 1fr;
}

.product-grid-catalog.is-list .product-card {
  grid-template-columns: 220px minmax(0, 1fr);
}

.product-grid-catalog.is-list .product-card-media {
  height: 100%;
  border-right: 1px solid var(--color-divider);
  border-bottom: 0;
}

.product-grid-catalog.is-list .product-card-media img {
  aspect-ratio: 4 / 3;
}

.product-grid-catalog.is-list .product-card-body {
  padding: var(--space-24);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.pagination-button {
  min-height: 40px;
  font-size: var(--text-14);
  font-weight: 600;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.cart-summary[hidden] {
  display: none;
}

.cart-summary h2 {
  margin-top: var(--space-4);
  font-size: var(--text-22);
}

.cart-summary p:not(.section-kicker) {
  margin-top: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-14);
}

.cart-summary-actions,
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.cart-item-controls button:not(.cart-remove),
.cart-item-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.cart-item-controls button {
  cursor: pointer;
}

.cart-remove {
  color: var(--color-danger);
  font-size: var(--text-12);
  font-weight: 600;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-64);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: var(--space-16);
  color: var(--color-text-secondary);
}

.about-copy .section-link {
  justify-self: start;
}

/* Server configurator */
.server-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-footer);
}

.server-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 32, 0.98) 0%, rgba(15, 23, 32, 0.88) 58%, rgba(15, 23, 32, 0.68) 100%), var(--hero-image) center / cover no-repeat;
  filter: saturate(0.25);
}

.server-hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  gap: var(--space-16);
  min-height: 300px;
}

.server-hero h1 {
  max-width: 760px;
  font-size: var(--text-48);
}

.server-hero p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.server-config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-32);
  align-items: start;
}

.server-configurator,
.server-support-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.server-configurator {
  display: grid;
  gap: var(--space-32);
  padding: var(--space-32);
}

.server-configurator fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.server-configurator legend {
  margin-bottom: var(--space-16);
  font-size: var(--text-22);
  font-weight: 700;
}

.server-model-grid,
.server-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}

.server-model-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-12);
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.server-model-card:has(input:checked) {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface));
}

.server-model-card input {
  margin-top: 4px;
  accent-color: var(--color-accent);
}

.server-model-card span,
.server-option-grid label,
.server-notes {
  display: grid;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-14);
  font-weight: 600;
}

.server-model-card strong {
  color: var(--color-text);
  font-size: var(--text-14);
}

.server-model-card small {
  color: var(--color-text-muted);
  font-size: var(--text-12);
  font-weight: 400;
}

.server-option-grid select,
.server-notes textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
}

.server-notes textarea {
  min-height: 132px;
  resize: vertical;
}

.server-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-divider);
}

.server-form-footer p {
  max-width: 560px;
  color: var(--color-text-muted);
  font-size: var(--text-13);
}

.server-support-panel {
  position: sticky;
  top: 120px;
  display: grid;
  gap: var(--space-16);
  padding: var(--space-24);
}

.server-support-panel h2 {
  font-size: var(--text-22);
}

.server-support-panel ol {
  display: grid;
  gap: var(--space-12);
  margin: 0;
  padding-left: var(--space-24);
  color: var(--color-text-secondary);
  font-size: var(--text-14);
}

.compact-footer {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.empty-state {
  display: grid;
  gap: var(--space-12);
  justify-items: start;
  padding: var(--space-32);
}

.empty-state[hidden] {
  display: none;
}

.empty-state-icon {
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
}

.empty-state p {
  color: var(--color-text-secondary);
  max-width: 460px;
}

/* Detail page */
.detail-section {
  padding-block: var(--space-32) var(--space-64);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: var(--space-32);
  margin-top: var(--space-24);
}

.product-gallery,
.product-summary-panel,
.detail-tabs-section {
  display: grid;
  gap: var(--space-16);
}

.product-gallery-main {
  padding: var(--space-32);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.product-gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-12);
}

.thumb-button {
  padding: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.thumb-button.is-active {
  border-color: var(--color-accent);
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.product-summary-panel {
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.product-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.wishlist-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.wishlist-outline.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-price-block {
  display: grid;
  gap: var(--space-8);
}

.product-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.sku-code {
  color: var(--color-text-muted);
  font-size: var(--text-12);
}

.spec-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.spec-chip {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: var(--text-12);
}

.purchase-panel {
  display: grid;
  gap: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-divider);
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.quantity-control span {
  font-size: var(--text-14);
  font-weight: 700;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 40px 72px 40px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.quantity-stepper button {
  width: 40px;
  height: 40px;
  background: var(--color-surface-muted);
  cursor: pointer;
}

.quantity-stepper input {
  width: 100%;
  height: 40px;
  text-align: center;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}

.info-card {
  padding: var(--space-16);
}

.info-card-title {
  margin-bottom: var(--space-12);
  font-size: var(--text-14);
  font-weight: 700;
}

.detail-list,
.overview-list {
  display: grid;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-14);
  list-style: disc;
  padding-left: var(--space-16);
}

.detail-list li,
.overview-list li {
  list-style: disc;
}

.detail-tabs-section {
  margin-top: var(--space-32);
}

.detail-tabs-nav {
  margin-bottom: 0;
}

.tab-panels {
  display: grid;
}

.tab-panel {
  display: none;
  padding: var(--space-24);
}

.tab-panel.is-active {
  display: block;
}

.overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-24);
}

.overview-panel p,
.reviews-panel p,
.qa-panel p,
.compatibility-panel p {
  color: var(--color-text-secondary);
  font-size: var(--text-14);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
  vertical-align: top;
  font-size: var(--text-14);
}

.spec-table th {
  width: 180px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.related-section {
  margin-top: var(--space-48);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-64);
  background: var(--color-footer);
  color: #ffffff;
}

.site-footer-pattern {
  background-image: var(--pattern-dark);
  background-repeat: repeat;
  background-size: 220px 52px;
  filter: none;
  opacity: 0.05;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
  padding-block: var(--space-48);
}

.footer-column {
  display: grid;
  gap: var(--space-12);
}

.footer-column-brand {
  gap: var(--space-16);
}

.footer-title {
  font-size: var(--text-14);
  font-weight: 700;
  color: #ffffff;
}

.footer-copy,
.footer-column a,
.footer-bottom p,
.footer-social a {
  color: var(--color-footer-muted);
  font-size: var(--text-14);
}

.newsletter-form {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.payment-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-12);
  font-weight: 600;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding-block: var(--space-16) var(--space-24);
  border-top: 1px solid var(--color-footer-border);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* Email contact reminder */
.email-contact-toast {
  position: fixed;
  right: var(--space-24);
  bottom: var(--space-24);
  z-index: 120;
  width: min(376px, calc(100vw - 32px));
  padding: var(--space-16);
  border: 1px solid rgba(54, 168, 156, 0.72);
  border-radius: var(--radius-card);
  background: rgba(15, 23, 32, 0.97);
  box-shadow: 0 8px 24px rgba(6, 15, 22, 0.18);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.email-contact-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.email-contact-toast-title {
  padding-right: var(--space-32);
  font-size: var(--text-16);
  font-weight: 700;
  line-height: var(--line-heading);
}

.email-contact-toast-copy {
  margin-top: var(--space-8);
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-14);
  line-height: var(--line-body);
}

.email-contact-toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.email-contact-toast-action {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: #ffffff;
  cursor: pointer;
  font-size: var(--text-13);
  font-weight: 600;
  transition: var(--transition-color);
}

.email-contact-toast-action:hover {
  border-color: var(--color-accent-hover);
  background: var(--color-accent-hover);
}

.email-contact-toast-action-secondary {
  border-color: rgba(255, 255, 255, 0.26);
  background: transparent;
}

.email-contact-toast-action-secondary:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.email-contact-toast-close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: var(--transition-color);
}

.email-contact-toast-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.email-contact-toast-action:focus-visible,
.email-contact-toast-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1199px) {
  .primary-nav {
    gap: var(--space-16);
  }

  .header-main {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero-inner,
  .product-detail-layout,
  .overview-panel,
  .build-banner-inner {
    grid-template-columns: 1fr;
  }

  .product-grid-four,
  .category-grid,
  .brand-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: var(--space-12);
    row-gap: var(--space-12);
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .brand-tag {
    font-size: 11px;
  }
}

@media (max-width: 1023px) {
  .container {
    padding-inline: var(--space-16);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 82vh;
    overflow: auto;
    border-radius: 18px 18px 0 0;
    z-index: 80;
  }

  body.filters-open .filters-panel {
    display: grid;
  }

  .filters-close,
  .mobile-filter-button {
    display: inline-flex;
  }

  .product-grid-catalog,
  .product-grid-four,
  .category-grid,
  .guide-grid,
  .brand-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-config-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .server-support-panel {
    position: static;
  }

  .hero-stats,
  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: var(--text-36);
  }

  h2 {
    font-size: var(--text-22);
  }

  .utility-inner,
  .section-header,
  .catalog-toolbar,
  .catalog-toolbar-actions,
  .footer-bottom,
  .quantity-control,
  .purchase-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-status {
    display: none;
  }

  .site-header {
    top: 32px;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    padding-block: var(--space-12);
  }

  .brand-tag {
    display: none;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions {
    gap: var(--space-4);
  }

  .header-actions [aria-label="Account support"],
  .header-actions [aria-label="Wishlist"] {
    display: none;
  }

  .header-action:not(.theme-toggle),
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-marketplace {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-block: var(--space-32);
  }

  .trust-strip,
  .hero-actions {
    width: 100%;
  }

  .hero-stats,
  .product-grid-four,
  .product-grid-catalog,
  .category-grid,
  .guide-grid,
  .brand-row,
  .product-gallery-thumbs,
  .detail-info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-grid-catalog.is-list .product-card {
    grid-template-columns: 1fr;
  }

  .product-grid-catalog.is-list .product-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }

  .product-card-footer,
  .price-range-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-hero {
    min-height: 148px;
  }

  .cart-summary,
  .cart-summary-actions,
  .server-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .server-model-grid,
  .server-option-grid,
  .compact-footer {
    grid-template-columns: 1fr;
  }

  .server-configurator {
    padding: var(--space-24);
  }

  .server-hero h1 {
    font-size: var(--text-36);
  }

  .email-contact-toast {
    right: auto;
    bottom: max(var(--space-16), env(safe-area-inset-bottom));
    left: 50%;
    transform: translate(-50%, 8px);
  }

  .email-contact-toast.is-visible {
    transform: translate(-50%, 0);
  }
}
