.trades-page {
  padding: 32px 18px 60px;
  gap: 18px;
  align-items: start;
}
.trades-sidebar {
  display: grid;
  gap: 18px;
}
.trades-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}
.trades-steps li {
  display: grid;
  gap: 4px;
  line-height: 1.6;
  font-size: 13px;
}
.trades-steps strong {
  font-size: 14px;
  color: var(--text);
}
.trades-note {
  font-size: 12px;
  line-height: 1.6;
}
.trades-content {
  display: grid;
  gap: 24px;
  padding: 24px 22px;
}
.trades-content__header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.trades-content__header p {
  margin: 0;
  font-size: 13px;
}
.trades-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.trades-showcase {
  display: grid;
  gap: 12px;
}
.trade-tiles {
  display: grid;
  gap: 12px;
}
.trade-tile {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}
.trade-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 20px;
  font-weight: 800;
}
.trade-info strong {
  display: block;
  margin-bottom: 4px;
}
.trade-info .muted {
  font-size: 12px;
}
.faq-links {
  display: grid;
  gap: 10px;
}
.auth-page {
  padding: 32px 18px 60px;
  gap: 18px;
  align-items: start;
}
.auth-info {
  display: grid;
  gap: 18px;
}
.auth-info h3 {
  margin: 0;
}
.auth-info__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 18px;
}
.auth-info__list li {
  display: grid;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
}
.auth-info__list strong {
  font-size: 14px;
  color: var(--text);
}
.auth-note {
  font-size: 12px;
  line-height: 1.6;
}
.auth-card {
  display: grid;
  gap: 20px;
  padding: 24px 22px;
}
.faq-page {
  padding: 32px 18px 60px;
  gap: 18px;
  align-items: start;
}
.faq-sidebar {
  display: grid;
  gap: 18px;
}
.faq-links {
  display: grid;
  gap: 10px;
}
.faq-links a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel-2);
  transition: all 0.2s ease;
}
.faq-links a:hover {
  background: var(--card-hover);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.faq-content {
  display: grid;
  gap: 24px;
  padding: 24px 22px;
  background: var(--panel);
}
.faq-group {
  display: grid;
  gap: 12px;
}
.faq-group h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}
.faq-group h2 {
  margin: 0 0 4px;
  font-size: 22px;
}
.faq-content details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel-2);
  cursor: pointer;
}
.faq-content summary {
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 20px;
}
.faq-content summary::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
  transition: transform .2s ease;
}
.faq-content details[open] summary::after {
  transform: rotate(180deg);
}
.faq-content details p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.auth-card__header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
.auth-card__header p {
  margin: 0;
  font-size: 13px;
}
.auth-body {
  display: grid;
  gap: 24px;
}
.auth-steps {
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.step-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.step-text {
  font-size: 13px;
  line-height: 1.5;
}
.auth-action {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.steam-btn.large {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 62, 79, 0.2);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.steam-btn.large:hover {
  transform: translateY(-2px);
  background: rgba(14, 62, 79, 0.9);
  box-shadow: 0 4px 12px rgba(14, 62, 79, 0.3);
}
.auth-action .muted {
  font-size: 12px;
  max-width: 420px;
}
/* === SkinMarket — стили === */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Anchor offset for fixed header */
h2[id] {
  scroll-margin-top: 80px;
}
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --text: #121114;
  --muted: #748595;
  --accent: #0e3e4f;
  --accent-2: #20bbed;
  --border: #eff1f3;
  --card: #ffffff;
  --card-hover: #f8f9fb;
  --pill: #eff1f3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.4 'Commissioner', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #f71735; text-decoration: underline; }

/* Page Header (Top Bar) */
.page-header {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.page-header__section {
  padding: 8px 0;
}
.page-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.app-location {
  display: flex;
  align-items: center;
}
.app-location__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.app-location__current {
  color: var(--text);
  font-size: 13px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.nav__item {
  margin: 0;
}
.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--text);
  text-decoration: none;
}
.page-header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.page-header__phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.page-header__phone:hover {
  color: var(--accent-2);
  text-decoration: none;
}
.page-header__email {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.page-header__email:hover {
  color: var(--text);
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  width: 100%;
}
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.brand-text span {
  color: var(--muted);
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}
.logo img {
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: row; align-items: center; line-height: 1; gap: 4px; }
.brand-text span { color: var(--muted); font-size: 12px; }

.navlinks { display: flex; gap: 14px; }
.navlinks a { padding: 8px 10px; border-radius: 10px; color: var(--text); }
.navlinks a.active, .navlinks a:hover { 
  background: var(--card-hover); 
  color: var(--accent-2);
}

.actions { display: flex; gap: 10px; align-items: center; }
.actions button,
.actions a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.actions button:hover,
.actions a:hover {
  background: var(--card-hover);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* Поиск в навбаре */
.navbar-search {
  position: relative;
  display: inline-block;
}
.navbar-search input {
  width: 300px;
  padding: 8px 40px 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.navbar-search input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb, 247, 23, 53), 0.1);
}
.navbar-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  .navbar-search input {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }
}
.actions .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: #f71735;
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.primary { background: var(--accent); border: none; color: white; font-weight: 600; }
.primary:disabled {
  background: #dce1e6;
  color: #748595;
  cursor: not-allowed;
  border: 1px solid #dce1e6;
}
.primary:disabled:hover {
  background: #dce1e6;
  color: #748595;
  border-color: #dce1e6;
}

/* Layout */
.container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 18px;
  max-width: 1280px; margin: 0 auto;
}

/* Filters */
.filters { background: var(--panel); position: sticky; top: 110px; height: fit-content; }
.filters h3 { margin: 0 0 12px; }
.field { display: grid; gap: 6px; margin: 10px 0 12px; }
.filter-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.filter-link {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
  font-size: 14px;
  border: none;
  background: transparent;
  text-align: left;
}
.filter-link:hover {
  color: var(--accent-2);
}
.filter-link.active {
  color: #000;
  font-weight: 600;
  font-size: 16px;
}
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
}
.field-range .range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; gap: 10px; align-items: center; margin: 12px 0; color: var(--muted); }
.filters button.ghost {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  margin-top: 12px;
  transition: all 0.2s ease;
}
.filters button.ghost:hover {
  background: var(--card-hover);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.note ul { margin: 6px 0 0 16px; padding: 0; }

/* Ad */
.ad-box { margin-top: 16px; }
.ad-box a { display: block; text-decoration: none; }
.ad-box img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.ad-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ad-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 62, 79, 0.2);
}
.ad-content {
  position: relative;
  z-index: 1;
}
.ad-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.ad-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
  font-weight: 500;
}
.ad-text {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Single page */
.single-page,
.single-col {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 32px 18px 60px;
}
.requisites-card {
  display: grid;
  gap: 18px;
}
.requisites-card header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}
.requisites-card header p {
  margin: 0;
}
.requisites-list {
  display: grid;
  gap: 12px;
}
.req-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.req-row .label {
  color: var(--muted);
  font-size: 13px;
}
.req-row .value {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.req-footer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.req-footer a {
  color: var(--accent-2);
}
.active-link {
  color: var(--accent-2);
}
.privacy-card {
  display: grid;
  gap: 16px;
  min-height: auto;
}
.privacy-card .catalog-toolbar {
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 18px;
}
.privacy-card .catalog-toolbar h1,
.privacy-card .catalog-toolbar h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.privacy-card .catalog-toolbar .muted {
  font-size: 13px;
}
.privacy-content {
  display: grid;
  gap: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.privacy-content ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.privacy-content a {
  color: var(--accent-2);
}

/* Cart */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(380px, 92vw);
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: right 0.3s ease;
  z-index: 100;
}
.cart-panel.active {
  right: 0;
}
.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.cart-panel__header h3 { margin: 0; font-size: 18px; }
.cart-list {
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.cart-item__info { display: grid; gap: 6px; }
.cart-item .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item .meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cart-item .price {
  font-weight: 700;
  font-size: 14px;
}
.cart-item__price {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.cart-item__price .price { font-size: 15px; }
.cart-item .remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
}
.cart-item .remove:hover {
  color: var(--accent-2);
}
.cart-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
}
.cart-summary {
  padding: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  background: var(--panel-2);
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.cart-offer-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 8px 0;
}
.cart-offer-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}
.cart-offer-checkbox a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-offer-checkbox a:hover {
  color: #f71735;
}
.cart-summary .primary {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 15px;
}
.cart-summary .primary:disabled {
  background: #dce1e6;
  color: #748595;
  cursor: not-allowed;
  border: 1px solid #dce1e6;
}
.cart-summary .primary:disabled:hover {
  background: #dce1e6;
  color: #748595;
  border-color: #dce1e6;
}
.cart-list.empty {
  display: grid;
}

/* Catalog */
.catalog { background: var(--panel); min-height: 60vh; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.catalog .count { color: var(--muted); }
.sort select { 
  padding: 8px 10px; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  background: var(--bg); 
  color: var(--text);
  transition: border-color 0.2s ease;
}
.sort select:focus {
  outline: none;
  border-color: var(--accent-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px); 
  border-color: var(--accent-2); 
  box-shadow: 0 4px 16px rgba(0,0,0,.05); 
}
.card .thumb { background: #f8f9fb; display: grid; place-items: center; aspect-ratio: 16/10; }
.card img { max-width: 100%; }
.card .body { padding: 12px; display: grid; gap: 6px; }
.card .title { font-weight: 700; font-size: 15px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; flex-wrap: wrap; row-gap: 6px; }
.pill { background: var(--pill); border: 1px solid var(--border); padding: 4px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 18px; }
.card .actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 8px; }
.card button { padding: 10px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; }
.card button.buy { background: var(--accent); border: none; font-weight: 600; color: white; }
.card button.buy:hover {
  background: rgba(14, 62, 79, 0.9);
  box-shadow: 2px 4px 7px rgba(14, 62, 79, 0.3);
}

/* Hover style unified with reset button for ghost buttons */
.card .actions .ghost { transition: all 0.2s ease; }
.card .actions .ghost:hover {
  background: var(--card-hover);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.pagination { display: grid; place-items: center; margin-top: 18px; }
.pagination button { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; transition: all 0.2s ease; }
.pagination button:hover { background: var(--card-hover); border-color: var(--accent-2); color: var(--accent-2); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.footer .pay .pill { margin-left: 6px; }

/* Modal */
dialog { 
  padding: 0; 
  border: none; 
  background: transparent; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(520px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.modal header { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.modal header h3 { margin: 0; color: var(--text); }
.modal .modal-body { padding: 16px; display: grid; gap: 12px; }
.modal .modal-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.modal .modal-item img { width: 120px; height: 120px; object-fit: contain; }
.modal-qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qty-control { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); }
.qty-control button { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.qty-control button:hover { background: var(--card-hover); border-color: var(--accent-2); color: var(--accent-2); }
.qty-control input { width: 48px; text-align: center; border: none; background: transparent; color: var(--text); font-size: 14px; }
.qty-control input:focus { outline: none; }
.modal .modal-actions { padding: 12px 16px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); background: var(--bg); }
.muted { color: var(--muted); font-size: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .container { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  /* Page Header адаптация для планшетов */
  .page-header__top {
    gap: 16px;
    padding: 0 16px;
  }
  .nav {
    gap: 12px;
  }
  .nav__link {
    font-size: 12px;
  }
  .page-header__contacts {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  /* Page Header адаптация для мобильных */
  .page-header__top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px 16px;
  }
  .app-location {
    justify-content: center;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }
  .nav__link {
    font-size: 11px;
    padding: 4px 8px;
  }
  .page-header__contacts {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .page-header__phone,
  .page-header__email {
    font-size: 12px;
  }
}

@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr; }
  
  /* Page Header для маленьких экранов */
  .page-header {
    font-size: 12px;
  }
  .page-header__section {
    padding: 6px 0;
  }
  .page-header__top {
    gap: 10px;
    padding: 6px 12px;
  }
  .app-location__current {
    font-size: 11px;
  }
  .nav {
    gap: 6px 8px;
  }
  .nav__link {
    font-size: 10px;
    padding: 3px 6px;
  }
  .page-header__contacts {
    gap: 6px 10px;
  }
  .page-header__phone {
    font-size: 11px;
  }
  .page-header__email {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  /* Адаптация страницы товара для планшетов */
  .product-page {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 480px) {
  /* Скрываем некоторые элементы на очень маленьких экранах */
  .nav__item:nth-child(n+4) {
    display: none;
  }
  .page-header__email {
    display: none;
  }
  
  /* Адаптация страницы товара */
  .product-page {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
