@font-face {
  font-family: "AppPixel";
  src: url("../fonts/pixelify-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AppPixel";
  src: url("../fonts/pixelify-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AppPixel";
  src: url("../fonts/pixelify-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #fbfcfa;
  --text: #1f271f;
  --muted: #7d8679;
  --line: #edf0ea;
  --green: #d53b00;
  --green-dark: #ad2f00;
  --green-soft: #fff0ea;
  --shadow: 0 18px 48px rgba(31, 39, 31, 0.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(230,235,228,.55) 0 1px, transparent 1px 140px),
    radial-gradient(circle at 24% 6%, rgba(213,59,0,.12), transparent 22%),
    var(--bg);
  letter-spacing: 0;
}
@media (min-width: 1041px) {
  body { zoom: .75; }
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.topbar {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0 14px;
}
.topbar > *, .search-row, .search, .social, .cta { min-width: 0; max-width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; font-size: 23px; }
.logo-image { display: block; width: min(210px, 100%); height: auto; object-fit: contain; }
.footer .logo-image { width: 165px; }
.simple-header .logo-image { width: 200px; }
.logo-mark { width: 32px; height: 32px; color: var(--green-dark); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #aab3a5; }
.search input {
  width: 100%; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px;
  padding: 0 18px 0 46px; outline: none; box-shadow: 0 8px 28px rgba(34,40,32,.04);
}
.search input:focus { border-color: rgba(213,59,0,.62); box-shadow: 0 0 0 4px rgba(213,59,0,.12); }
.search-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; max-height: 360px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 20px 46px rgba(31,39,31,.16); }
.search-suggestions[hidden] { display: none; }
.search-suggestions button { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; width: 100%; border: 0; border-radius: 7px; background: transparent; padding: 8px; color: inherit; text-align: left; cursor: pointer; }
.search-suggestions button:hover { background: var(--green-soft); }
.search-suggestions img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; background: #e8f4ff; }
.search-suggestions span { min-width: 0; display: grid; gap: 3px; }
.search-suggestions strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.search-suggestions small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.cta { height: 46px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #18b9f2, #079bd8); color: #fff; font-weight: 900; padding: 0 22px 0 18px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 26px rgba(7, 155, 216, .2); text-transform: uppercase; }
.cta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cta-icon { width: 27px; height: 27px; display: block; fill: currentColor; flex: 0 0 auto; }
.social { display: flex; gap: 9px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #64705e; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.social-link-telegram svg,
.social-link-vk svg { fill: currentColor; stroke: none; }
.cart-trigger { position: relative; color: #ad2f00; background: var(--green-soft); }
.cart-trigger span { position: absolute; right: -4px; top: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; background: var(--green); color: #ffffff; font-size: 11px; font-weight: 900; }
.nav {
  display: flex; gap: 5px; align-items: center; padding: 10px 14px; margin-bottom: 16px; border: 1px solid var(--line);
  border-radius: 8px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.nav a, .nav button { min-height: 42px; border: 0; border-radius: 7px; background: transparent; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: #394336; cursor: pointer; }
.nav a.active { color: #1a3110; box-shadow: inset 0 -3px 0 var(--green); }
.nav .all-games { margin-left: auto; background: var(--green-soft); color: #ad2f00; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.panel { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.section { padding: 20px; }
.section + .section { margin-top: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.section-title h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.section-title h2::before { content: ""; display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--green); margin-right: 10px; vertical-align: -3px; }
.section-title span { color: var(--muted); font-size: 13px; min-width: 0; }
.hero-catalog { min-height: 355px; display: grid; align-content: start; gap: 18px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.game-chip { min-height: 76px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; transition: border-color .18s, transform .18s; }
.game-chip:hover { transform: translateY(-2px); border-color: rgba(213,59,0,.55); }
.game-chip.active { border-color: rgba(213,59,0,.8); background: var(--green-soft); box-shadow: inset 0 -3px 0 var(--green); }
.game-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #e8f4ff; border: 1px solid var(--line); }
.game-chip:not(:has(img)) { grid-template-columns: minmax(0, 1fr); align-content: center; }
.game-chip span { min-width: 0; display: grid; gap: 5px; }
.game-chip strong { font-size: 14px; }
.game-chip small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 38px; border: 1px solid var(--line); background: var(--surface); color: #53604e; border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.filter img { width: 22px; height: 22px; object-fit: cover; border-radius: 6px; background: #e8f4ff; }
.filter.active { border-color: transparent; background: var(--green-soft); color: #ad2f00; font-weight: 800; }
.product-feature-section { min-height: 548px; padding: 0; overflow: hidden; }
.product-feature-section.is-collapsed { display: none; }
.product-feature { min-height: 548px; display: grid; align-content: start; gap: 12px; padding: 14px 20px 24px; }
.product-path { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: #667062; font-size: 15px; font-weight: 500; line-height: 1.35; }
.product-path span, .product-path button, .product-path a { display: inline-flex; align-items: center; min-width: 0; border: 0; background: transparent; padding: 0; color: inherit; font-size: inherit; line-height: inherit; cursor: default; text-decoration: none; }
.product-path button, .product-path a { cursor: pointer; }
.product-path button:hover, .product-path a:hover { color: #ad2f00; }
.product-path span::before, .product-path button::before, .product-path a::before { content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 8px; border-radius: 2px; background: var(--green); }
.product-feature-card { position: relative; width: min(740px, calc(100% - 64px)); min-height: 430px; margin: 2px auto 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; border: 1px solid rgba(237,240,234,.9); border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgba(31,39,31,.08); }
.feature-close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: #e8f4ff; color: #75806f; font-size: 24px; line-height: 1; cursor: pointer; }
.product-feature-media { display: grid; gap: 10px; }
.product-feature-main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: 8px; background: #fff; cursor: zoom-in; }
.product-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.product-gallery-thumb { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 7px; padding: 0; overflow: hidden; background: #e8f4ff; cursor: pointer; }
.product-gallery-thumb.active { border-color: var(--green-dark); box-shadow: 0 0 0 2px rgba(213,59,0,.2); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 28px; background: rgba(7, 13, 20, .88); cursor: zoom-out; }
.product-image-lightbox[hidden] { display: none; }
.product-image-lightbox img { display: block; width: auto; height: auto; max-width: min(1180px, calc(94vw - 164px)); max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 22px 70px rgba(0, 0, 0, .4); background: #fff; cursor: default; }
.product-image-lightbox img.is-changing { opacity: .72; transform: scale(.992); }
.product-image-lightbox img { transition: opacity .16s ease, transform .16s ease; }
.product-image-lightbox__close { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border: 0; border-radius: 999px; color: #172637; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }
.product-image-lightbox__nav { position: static; flex: 0 0 auto; width: 60px; height: 78px; margin: 0; border: 0; border-radius: 14px; color: #172637; background: rgba(255, 255, 255, .96); font-size: 54px; line-height: 1; cursor: pointer; box-shadow: 0 10px 32px rgba(0, 0, 0, .25); }
.product-image-lightbox__nav:hover { background: #fff; transform: scale(1.04); }
.product-image-lightbox__nav--prev, .product-image-lightbox__nav--next { inset: auto; }
.product-image-lightbox__counter { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 13px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .58); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
body.product-image-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .product-image-lightbox { padding: 58px 12px 64px; touch-action: pan-y; }
  .product-image-lightbox img { max-width: 96vw; max-height: 78vh; }
  .product-image-lightbox__nav { position: fixed; top: auto; bottom: 14px; width: 48px; height: 44px; margin: 0; border-radius: 999px; font-size: 34px; }
  .product-image-lightbox__nav--prev { left: 16px; }
  .product-image-lightbox__nav--next { right: 16px; }
  .product-image-lightbox__counter { bottom: 21px; }
}
.product-feature-info { min-width: 0; display: grid; gap: 10px; padding-right: 8px; }
.product-feature-info h2 { margin: 0 36px 6px 0; font-size: 22px; line-height: 1.25; }
.product-feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #778172; font-size: 13px; }
.product-feature-price-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.product-feature-price { font-size: 31px; font-weight: 950; line-height: 1.05; }
.product-rating-control { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.product-rating-control button { width: 34px; height: 34px; border: 0; background: transparent; color: #dfe3dc; padding: 0; font-size: 32px; line-height: 1; cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.04); }
.product-rating-control button.active,
.product-rating-control button:hover,
.product-rating-control button:hover ~ button.active { color: #ffc400; }
.product-rating-control:hover button { color: #ffc400; }
.product-rating-control button:hover ~ button { color: #dfe3dc; }
.text-rating { color: #ffc400; font-size: 34px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.product-options { display: flex; flex-wrap: wrap; gap: 8px; }
.product-options button { min-height: 40px; border: 1px solid rgba(213,59,0,.48); border-radius: 8px; background: #fff7f3; color: #7a2600; padding: 7px 11px; display: inline-grid; gap: 2px; cursor: pointer; text-align: left; }
.product-options button:hover { border-color: var(--green-dark); background: var(--green-soft); }
.product-options button:focus-visible,
.product-options button.is-selected { border-color: #d71920; box-shadow: 0 0 0 2px rgba(215,25,32,.18); outline: none; }
.product-options span { font-size: 12px; font-weight: 800; line-height: 1.2; }
.product-options strong { font-size: 14px; line-height: 1.2; }
.product-feature-description { min-height: 260px; max-height: 560px; overflow: auto; padding-right: 8px; color: #4e594b; font-size: 14px; line-height: 1.6; }
.product-feature-description p { display: block; margin: 0 0 16px; }
.product-feature-description img { max-width: 100%; height: auto; border-radius: 6px; }
.content-body .gallery,
.product-feature-description .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.content-body .gallery-item,
.product-feature-description .gallery-item { float: none !important; width: auto !important; margin: 0 !important; text-align: center; }
.content-body .gallery-icon,
.product-feature-description .gallery-icon { margin: 0; }
.content-body .gallery a,
.product-feature-description .gallery a { display: block; overflow: hidden; border-radius: 8px; background: #eef4f0; }
.content-body .gallery img,
.product-feature-description .gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0 !important; border-radius: 8px; }
.product-feature-delivery-type { display: grid; gap: 5px; margin-top: 12px; padding: 13px 15px; border: 1px solid #e3e9ed; border-radius: 11px; background: #fff; text-align: center; color: #526573; }
.product-feature-delivery-type > span { font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; color: #738491; }
.product-feature-delivery-type > strong { color: #1f3443; font-size: 14px; line-height: 1.35; }
.product-feature-delivery-comment { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; margin-top: 4px; padding: 14px 18px; border: 1px solid #e3e9ed; border-radius: 11px; background: #fff; color: #526573; }
.product-feature-delivery-comment > span { font-size: 13px; color: #738491; }
.product-feature-delivery-comment > small { color: #6a7a86; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.product-feature-steps { margin-top: 0; }
.product-feature-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 4px; }
.product-feature-actions .secondary-action { min-width: 110px; }
.admin-edit-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(213,59,0,.42); border-radius: 8px; background: #fff7f3; color: #ad2f00; font-size: 13px; font-weight: 800; padding: 0 12px; }
.admin-edit-action:hover { background: var(--green-soft); border-color: var(--green-dark); }
.feature-buy { min-width: 190px; min-height: 42px; border: 0; border-radius: 8px; background: linear-gradient(180deg, var(--green), var(--green-dark)); color: #fff; font-size: 23px; font-weight: 950; line-height: 1; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(124,37,0,.18); }
.feature-buy:hover, .buy:hover, .more:hover, .order-form button:hover, .primary-action:hover { filter: brightness(.96); box-shadow: inset 0 -2px 0 rgba(124,37,0,.2), 0 10px 22px rgba(213,59,0,.18); }
.catalog-section .filters { margin-bottom: 16px; }
.catalog-section .products { margin-top: 4px; }
.catalog-search {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  margin: 0 0 14px;
  color: #53604e;
  font-size: 12px;
  font-weight: 800;
}
.catalog-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  font-size: 13px;
  font-weight: 500;
}
.catalog-search input:focus {
  border-color: rgba(213,59,0,.62);
  box-shadow: 0 0 0 4px rgba(213,59,0,.12);
}
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; min-width: 0; transition: transform .18s, box-shadow .18s, border-color .18s; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(213,59,0,.55); box-shadow: 0 16px 32px rgba(31,39,31,.08); }
.product-card.is-selected { border-color: #d71920; box-shadow: 0 0 0 2px rgba(215,25,32,.22), 0 16px 32px rgba(31,39,31,.1); }
.product-card.is-selected .thumb { box-shadow: inset 0 0 0 2px rgba(215,25,32,.65); }
.thumb { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; aspect-ratio: 1 / 1; background: #e8f4ff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 10px; display: grid; gap: 8px; }
.product-title { min-height: 38px; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.45; font-weight: 750; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-title:hover { color: #ad2f00; }
.badge { width: fit-content; max-width: 100%; border-radius: 5px; background: #f0eafe; color: #6c47b8; padding: 4px 7px; font-size: 10px; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-bottom { display: grid; grid-template-columns: 1fr; gap: 8px; }
.price { font-size: 18px; font-weight: 900; white-space: nowrap; }
.buy { display: inline-flex; justify-content: center; width: 100%; align-items: center; gap: 5px; min-height: 32px; border: 0; border-radius: 7px; color: #ad2f00; background: var(--green-soft); padding: 0 9px; font-size: 12px; font-weight: 850; cursor: pointer; }
.buy svg { width: 15px; height: 15px; }
.more-wrap { display: flex; justify-content: center; align-items: center; width: 100%; margin-top: 18px; }
.more { width: min(260px, 100%); border: 0; background: linear-gradient(180deg, #f05a1d, #d53b00); color: #ffffff; border-radius: 8px; min-height: 44px; padding: 0 28px; font-weight: 850; cursor: pointer; }
.side { display: grid; gap: 14px; }
.side-card { padding: 18px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.side-card h3::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--green); border-radius: 5px; display: inline-block; }
.side-card h3 a { color: inherit; }
.side-card h3 a:hover { color: var(--green-dark); }
.side-search { display: grid; gap: 6px; margin: 0 0 12px; color: #53604e; font-size: 11px; font-weight: 800; }
.side-search input { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; outline: none; font-size: 12px; }
.side-search input:focus { border-color: rgba(213,59,0,.62); box-shadow: 0 0 0 3px rgba(213,59,0,.12); }
.side-empty { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.news-item, .recent-item { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 8px 0; }
.news-item + .news-item, .recent-item + .recent-item { border-top: 1px solid var(--line); }
.news-item img, .recent-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.news-item strong, .recent-item strong { display: block; font-size: 12px; line-height: 1.35; }
.news-item small, .recent-item small { color: var(--muted); font-size: 11px; }
.order-form { display: grid; gap: 10px; }
.order-form input { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: none; }
.order-form button { height: 40px; border: 0; border-radius: 8px; background: var(--green); color: #ffffff; font-weight: 850; cursor: pointer; }
.review-stars { color: #ffb000; font-size: 13px; letter-spacing: 1px; }
.review-text { color: #4e594b; font-size: 12px; line-height: 1.55; margin: 8px 0 0; }
.link-more { display: inline-flex; margin-top: 12px; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.side .link-more { font-weight: 650; }
.side-card strong, .side-card h3 { font-weight: 700; }
.footer { margin-top: 16px; padding: 24px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.footer h4 { margin: 0 0 10px; font-size: 14px; }
.footer a, .footer p { display: block; color: var(--muted); font-size: 13px; margin: 7px 0; }
.payments { display: flex; flex-wrap: nowrap; gap: 9px; align-items: center; margin-top: 12px; font-weight: 950; color: #222922; }
.payment-wallet { width: 31px; height: 24px; display: inline-grid; place-items: center; color: #303830; flex: 0 0 auto; }
.payment-wallet svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pay-brand { min-width: 0; min-height: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #171d17; padding: 0; font-size: 16px; line-height: 1; letter-spacing: 0; flex: 0 0 auto; }
.pay-brand.visa,
.pay-brand.mc,
.pay-brand.mir { color: #171d17; }
.simple-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0 14px; }
.product-header { padding-top: 0; }
.simple-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.simple-nav a, .simple-nav button { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #394336; padding: 0 14px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 750; }
.simple-nav a:hover, .simple-nav button:hover { border-color: rgba(213,59,0,.55); color: #ad2f00; }
.content-layout { padding: 0 0 36px; }
.single-layout { padding-bottom: 36px; }
.single-main { display: grid; gap: 16px; min-width: 0; }
.single-related-section { margin-top: 0; }
.single-related-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-panel { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 28px; }
.content-panel h1 { margin: 8px 0 16px; font-size: 30px; line-height: 1.18; }
.content-body { color: #4e594b; font-size: 15px; line-height: 1.7; }
.content-body p { margin: 0 0 14px; }
.content-body a { color: var(--green-dark); font-weight: 800; }
.content-body img { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.content-body img.alignnone { margin-left: 0; margin-right: auto; }
.content-body img.alignleft { display: inline; float: left; margin: 2px 12px 8px 0; }
.content-body img.alignright { display: inline; float: right; margin: 2px 0 8px 12px; }
.content-body img.aligncenter { display: block; float: none; margin-left: auto; margin-right: auto; }
.back-link { color: var(--green-dark); font-size: 13px; font-weight: 850; }
.content-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.content-date { display: block; color: var(--muted); margin: -8px 0 18px; font-size: 13px; }
.single-product-panel { display: grid; gap: 16px; max-width: none; margin: 0; padding: 22px; }
.single-product-path { margin-top: 2px; }
.single-product-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.single-product-card > *, .single-product-info { min-width: 0; max-width: 100%; }
.single-product-info { min-width: 0; display: grid; gap: 10px; }
.single-product-info h1 { margin: 0; font-size: 27px; line-height: 1.18; }
.single-product-subtitle { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.single-product-card .product-feature-main-image { width: 100%; }
.single-product-card .content-body { max-width: 100%; max-height: 430px; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; word-break: break-word; padding-right: 8px; }
.single-product-card .content-body > * { max-width: 100%; box-sizing: border-box; }
.single-product-card .content-body pre { margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.single-product-card .content-body table { width: 100% !important; max-width: 100%; table-layout: fixed; }
.single-product-card .content-body th,
.single-product-card .content-body td { overflow-wrap: anywhere; word-break: break-word; }
.single-product-card .content-body iframe,
.single-product-card .content-body video { max-width: 100%; height: auto; }
.single-product-card .content-actions { align-self: end; }
.post-list { display: grid; gap: 14px; }
.post-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; }
.post-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.post-card time { color: var(--muted); font-size: 12px; }
.post-card p { color: #4e594b; line-height: 1.55; margin: 10px 0 0; }
.pagination { margin-top: 18px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; display: inline-flex; align-items: center; }
.pagination .current { background: var(--green-soft); color: #ad2f00; font-weight: 850; }
.empty { display:none; padding: 24px; text-align: center; color: var(--muted); }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(20, 26, 20, .52); backdrop-filter: blur(6px); }
.modal { position: relative; width: min(900px, calc(100vw - 28px)); max-height: min(820px, calc(100vh - 36px)); overflow: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,.58); background: #fff; box-shadow: 0 28px 80px rgba(21,27,21,.28); }
.modal-close { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: #f3f6f1; color: #4c5848; font-size: 26px; line-height: 1; cursor: pointer; }
.modal-head { padding: 30px 72px 14px 30px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 29px; line-height: 1.22; font-weight: 850; }
.modal-body { padding: 26px 30px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 14px; padding: 0 30px 30px; flex-wrap: wrap; }
.primary-action, .secondary-action { min-height: 50px; border-radius: 8px; padding: 0 26px; font-size: 16px; font-weight: 800; cursor: pointer; }
.primary-action { border: 0; background: linear-gradient(180deg, var(--green), var(--green-dark)); color: #ffffff; }
.secondary-action { border: 1px solid var(--line); background: #fff; color: #475443; }
.primary-action:disabled, .secondary-action:disabled { cursor: not-allowed; opacity: .55; filter: grayscale(.35); }
.checkout-modal, .checkout-modal button, .checkout-modal input, .checkout-modal textarea { font-family: "AppPixel", "Fixedsys", "Terminal", "Courier New", monospace; -webkit-font-smoothing: none; font-smooth: never; text-rendering: geometricPrecision; }
.checkout-modal { width: min(820px, calc(100vw - 28px)); }
.contact-modal { width: min(680px, calc(100vw - 28px)); }
.checkout-modal .modal-head h2 { font-family: "AppPixel", "Fixedsys", "Terminal", "Courier New", monospace; font-size: 31px; font-weight: 600; }
.checkout-modal .checkout-form label, .checkout-modal .payment-methods legend, .checkout-modal .checkout-summary strong { font-weight: 600; }
.checkout-modal .checkout-form input, .checkout-modal .checkout-form textarea { font-weight: 400; }
.checkout-modal .checkout-form input::placeholder, .checkout-modal .checkout-form textarea::placeholder { font-weight: 400; }
.checkout-modal .payment-methods span, .checkout-modal .primary-action, .checkout-modal .secondary-action { font-weight: 600; }
.product-modal { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.product-modal img { width: 220px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #e8f4ff; }
.product-modal-info { display: grid; gap: 10px; }
.product-modal-info p { margin: 0; color: #4e594b; line-height: 1.55; }
.product-modal-price { font-size: 28px; font-weight: 950; }
.product-steps { margin: 6px 0 0; padding-left: 18px; color: #4e594b; line-height: 1.65; }
.cart-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.cart-row strong { display: block; font-size: 14px; line-height: 1.35; }
.cart-row small { display: block; margin-top: 4px; color: var(--muted); }
.qty { display: inline-grid; grid-template-columns: 30px 32px 30px; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { height: 32px; border: 0; background: #e8f4ff; cursor: pointer; font-weight: 900; }
.qty span { text-align: center; font-weight: 850; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-size: 18px; }
.empty-cart { padding: 18px; border-radius: 8px; background: #e8f4ff; color: var(--muted); text-align: center; }
.checkout-form, .contact-form { display: grid; gap: 16px; }
.checkout-form label, .contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: #43503f; }
.checkout-form input, .checkout-form textarea, .contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; outline: none; resize: vertical; font-size: 17px; font-weight: 400; line-height: 1.45; }
.checkout-form input { min-height: 52px; }
.contact-form input { min-height: 48px; }
.checkout-form textarea { min-height: 92px; }
.contact-form textarea { min-height: 104px; }
.checkout-form input::placeholder, .checkout-form textarea::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: #14a8ff; font-weight: 400; opacity: 1; }
.checkout-form input:focus, .checkout-form textarea:focus, .contact-form input:focus, .contact-form textarea:focus { border-color: rgba(213,59,0,.62); box-shadow: 0 0 0 4px rgba(213,59,0,.12); }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(550px, 100%); margin: 0 auto; padding: 0; border: 0; }
.payment-methods legend { grid-column: 1 / -1; padding: 0 0 2px; font-size: 14px; font-weight: 700; color: #43503f; text-align: left; }
.payment-methods label { position: relative; display: block; cursor: pointer; }
.payment-methods input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.payment-methods span { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4e594b; font-size: 15px; font-weight: 700; }
.payment-methods input:checked + span { border-color: rgba(213,59,0,.75); background: var(--green-soft); color: #ad2f00; box-shadow: inset 0 0 0 1px rgba(213,59,0,.32); }
.payment-method-icon { width: 38px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.payment-method-icon.qr { width: 27px; height: 27px; image-rendering: auto; }
.checkout-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 18px; border-radius: 8px; background: #fff7f3; color: #4e594b; font-size: 18px; line-height: 1.4; }
.status-result { display: grid; gap: 8px; padding: 16px; border-radius: 8px; background: #fff7f3; color: #4e594b; line-height: 1.55; }
.status-result strong { color: var(--text); }
.status-result p { margin: 0; }
.status-result.success { background: var(--green-soft); }
.status-result.error { background: #fff3f0; color: #7d2f1e; }
.pay-box { display: grid; gap: 8px; margin-top: 8px; padding: 16px; border-radius: 8px; border: 1px dashed rgba(213,59,0,.55); background: #fff; }
.pay-box.warning { border-color: rgba(196,126,34,.55); background: #fffaf2; }
.pay-card-lines { display: grid; gap: 6px; width: min(220px, 100%); }
.pay-card-lines span { display: block; height: 10px; border-radius: 999px; background: #dfe8d9; }
.pay-card-lines span:nth-child(1) { width: 100%; }
.pay-card-lines span:nth-child(2) { width: 74%; }
.pay-card-lines span:nth-child(3) { width: 46%; }
.pay-box small { color: var(--muted); }
.checkout-payment-visual { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.checkout-payment-card, .checkout-payment-qr { min-width: 0; display: grid; place-items: center; gap: 7px; border-radius: 8px; background: #fff; border: 1px solid #eef1eb; padding: 10px; text-align: center; color: #53604e; font-size: 12px; line-height: 1.35; }
.payment-card-icon { width: 70px; height: 70px; object-fit: contain; }
.payment-qr { width: 82px; height: 82px; object-fit: contain; image-rendering: auto; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 1100; max-width: min(460px, calc(100% - 24px)); transform: translate(-50%, 22px); opacity: 0; pointer-events: none; border-radius: 8px; background: #1f271f; color: #fff; padding: 12px 16px; box-shadow: 0 18px 48px rgba(31,39,31,.22); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1040px) {
  .topbar { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .social { justify-content: flex-start; }
  .layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-feature-card { width: min(820px, 100%); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 18px); }
  .simple-header { align-items: flex-start; flex-direction: column; }
  .simple-header .logo-image { width: min(220px, 76vw); }
  .content-panel { padding: 20px; }
  .content-panel h1 { font-size: 24px; }
  .single-product-card { grid-template-columns: 1fr; gap: 18px; }
  .single-product-card .product-feature-main-image { max-width: 320px; margin: 0 auto; }
  .nav { overflow-x: auto; }
  .nav a, .nav button { white-space: nowrap; }
  .nav .all-games { margin-left: 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-feature-section, .product-feature { min-height: 0; }
  .product-feature { padding: 14px; }
  .product-path { font-size: 14px; gap: 8px 14px; }
  .product-feature-card { width: 100%; min-height: 0; grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .product-feature-main-image { max-width: 320px; margin: 0 auto; }
  .product-gallery { grid-template-columns: repeat(5, minmax(0, 58px)); justify-content: center; }
  .product-feature-info h2 { margin-right: 34px; font-size: 19px; }
  .product-feature-price-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-rating-control { flex-basis: auto; }
  .product-feature-description { min-height: 0; max-height: none; }
  .product-feature-actions { justify-content: stretch; }
  .product-feature-actions .secondary-action, .feature-buy, .admin-edit-action { width: 100%; min-width: 0; }
  .side { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .modal-actions { justify-content: stretch; }
  .primary-action, .secondary-action { width: 100%; }
  .payment-methods { grid-template-columns: 1fr; }
  .checkout-payment-visual { grid-template-columns: 1fr; }
  .product-modal { grid-template-columns: 1fr; }
  .product-modal img { width: min(260px, 100%); margin: 0 auto; }
  .cart-row { grid-template-columns: 48px 1fr; }
  .cart-row .qty { grid-column: 2; width: max-content; }
}
@media (max-width: 460px) {
  .logo { font-size: 20px; }
  .logo-image { width: min(220px, 76vw); }
  .footer .logo-image { width: min(180px, 70vw); }
  .section { padding: 14px; }
  .product-title { font-size: 12px; }
  .price { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .section-title { display: grid; grid-template-columns: 1fr; }
  .game-grid, .products { grid-template-columns: 1fr; gap: 10px; }
  .product-body { padding: 9px; }
  .product-title { font-size: 12px; min-height: 35px; }
  .price { font-size: 16px; }
}

:root {
  --bg: #f6f9fd;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --text: #162238;
  --muted: #6f7d90;
  --line: #dce8f5;
  --green: #d53b00;
  --green-dark: #ad2f00;
  --green-soft: #fff0ea;
  --ps-blue: #0070cc;
  --ps-blue-dark: #005da8;
  --ps-blue-soft: #e8f4ff;
  --shadow: 0 18px 48px rgba(0, 62, 112, 0.08);
}

body {
  background:
    linear-gradient(135deg, rgba(0,112,204,.07) 0 1px, transparent 1px 140px),
    radial-gradient(circle at 20% 5%, rgba(0,112,204,.16), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(213,59,0,.12), transparent 24%),
    var(--bg);
}

.panel,
.side-card,
.content-panel,
.footer-inner,
.nav {
  border-color: var(--line);
}

.cta {
  background: linear-gradient(180deg, #0084e8, var(--ps-blue));
  box-shadow: 0 10px 26px rgba(0,112,204,.22);
}

.cta:hover {
  filter: brightness(.98);
  box-shadow: 0 12px 28px rgba(0,112,204,.26);
}

.search svg,
.icon-btn {
  color: #607792;
}

.search input:focus,
.catalog-search input:focus,
.side-search input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0,112,204,.55);
  box-shadow: 0 0 0 4px rgba(0,112,204,.12);
}

.search-suggestions button:hover,
.nav .all-games,
.cart-trigger,
.filter.active,
.game-chip.active,
.buy,
.pagination .current,
.status-result.success {
  background: var(--green-soft);
}

.cart-trigger,
.buy,
.nav .all-games,
.filter.active,
.pagination .current,
.link-more,
.back-link,
.content-body a,
.side-card h3 a:hover,
.simple-nav a:hover,
.simple-nav button:hover,
.product-title:hover,
.product-path button:hover,
.product-path a:hover,
.admin-edit-action,
.feature-close:hover,
.cart-trigger:hover {
  color: var(--green-dark);
}

.buy {
  border: 1px solid rgba(213,59,0,.16);
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.buy:hover,
.buy:focus-visible {
  background: linear-gradient(180deg, #f05a1d, var(--green));
  border-color: rgba(173,47,0,.72);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 0 rgba(124,37,0,.24), 0 10px 20px rgba(213,59,0,.22);
}

.buy:hover svg,
.buy:focus-visible svg {
  color: #fff;
}

.cart-trigger span,
.section-title h2::before,
.product-path span::before,
.product-path button::before,
.product-path a::before {
  background: var(--green);
  color: #fff;
}

.nav a.active {
  color: var(--ps-blue-dark);
  box-shadow: inset 0 -3px 0 var(--ps-blue);
}

.game-chip:hover,
.product-card:hover,
.simple-nav a:hover,
.simple-nav button:hover {
  border-color: rgba(213,59,0,.5);
}

.game-chip.active {
  border-color: rgba(213,59,0,.72);
  box-shadow: inset 0 -3px 0 var(--green);
}

.product-gallery-thumb.active,
.product-options button:hover,
.admin-edit-action:hover {
  border-color: var(--green-dark);
}

.product-gallery-thumb.active {
  box-shadow: 0 0 0 2px rgba(213,59,0,.18);
}

.product-options button,
.admin-edit-action {
  border-color: rgba(213,59,0,.34);
  background: #fff7f3;
  color: var(--green-dark);
}

.feature-buy,
.more,
.order-form button,
.primary-action {
  background: linear-gradient(180deg, #f05a1d, var(--green));
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(124,37,0,.2);
}

.feature-buy:hover,
.buy:hover,
.more:hover,
.order-form button:hover,
.primary-action:hover {
  filter: brightness(.97);
  box-shadow: inset 0 -2px 0 rgba(124,37,0,.24), 0 10px 22px rgba(213,59,0,.18);
}

.side-card h3::before {
  border-color: var(--ps-blue);
}

.badge {
  background: var(--ps-blue-soft);
  color: var(--ps-blue-dark);
}

.payment-methods input:checked + span {
  border-color: rgba(213,59,0,.62);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(213,59,0,.2);
}

.pay-box {
  border-color: rgba(213,59,0,.42);
}

.qty button,
.empty-cart,
.checkout-summary,
.status-result,
.checkout-payment-visual {
  background: #f8fbff;
}

body.app-has-bg-image {
  background:
    linear-gradient(135deg, rgba(246,249,253,.86), rgba(246,249,253,.68)),
    linear-gradient(135deg, rgba(0,112,204,.07) 0 1px, transparent 1px 140px),
    radial-gradient(circle at 20% 5%, rgba(0,112,204,.16), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(213,59,0,.12), transparent 24%),
    var(--app-site-bg),
    var(--bg);
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center, center, center, center, center top, center;
  background-attachment: scroll, scroll, scroll, scroll, fixed, scroll;
}

.product-card.is-selected,
.product-card.is-selected:hover {
  border-color: #d71920 !important;
  box-shadow: 0 0 0 2px rgba(215,25,32,.32), 0 16px 32px rgba(31,39,31,.1);
}

.product-card:hover {
  border-color: #d71920;
}

.product-header,
.single-layout {
  width: min(1320px, calc(100% - 28px));
}

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

.single-product-panel {
  padding: 30px;
}

.single-product-card {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 30px;
}

.single-side {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 1040px) {
  .single-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile layout repair: keep every page in one readable column. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell,
  .product-header,
  .single-layout {
    width: calc(100% - 20px);
    max-width: 100%;
    margin-inline: auto;
  }

  .topbar,
  .search-row,
  .layout,
  .single-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    gap: 16px;
    padding-top: 8px;
  }

  .topbar .logo {
    justify-self: center;
  }

  .topbar .logo-image {
    width: min(150px, 48vw);
  }

  .search-row {
    gap: 12px;
  }

  .search,
  .search input,
  .cta {
    min-width: 0;
    width: 100%;
  }

  .cta {
    padding-inline: 16px;
  }

  .cta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav a,
  .nav button {
    flex: 0 0 auto;
    min-height: 54px;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .layout {
    display: grid;
    gap: 16px;
  }

  .layout > *,
  .layout > div,
  .single-main,
  .single-product-card,
  .single-product-card > *,
  .single-product-info {
    min-width: 0;
    width: 100%;
  }

  .side,
  .single-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 0;
  }

  .product-feature-section:has([data-product-feature]:empty) {
    display: none;
  }

  .section,
  .catalog-section,
  .single-product-panel,
  .side-card {
    padding: 16px;
  }

  .catalog-search {
    width: 100%;
    margin: 0 0 14px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .filter {
    flex: 0 0 auto;
  }

  .products,
  .single-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card,
  .product-body,
  .product-bottom {
    min-width: 0;
  }

  .product-bottom {
    align-items: stretch;
  }

  .single-product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .single-product-path {
    overflow-wrap: anywhere;
  }

  .single-product-card .product-feature-media {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .single-product-card .product-feature-main-image {
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }

  .product-gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
  }

  .single-product-info h1 {
    font-size: 24px;
  }

  .single-product-card .content-body {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-feature-delivery-comment {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .content-actions,
  .product-feature-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .content-actions > *,
  .product-feature-actions > *,
  .primary-action,
  .secondary-action,
  .admin-edit-action {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 20px 120px;
  }

  .footer-popular {
    padding-right: 90px;
  }

  .modal-backdrop {
    place-items: end center;
    padding: 10px 0 0;
  }

  .modal,
  .checkout-modal,
  .contact-modal {
    width: 100%;
    max-height: calc(100svh - 10px);
    border-radius: 16px 16px 0 0;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .modal-head {
    padding: 24px 60px 14px 18px;
  }

  .modal-head h2,
  .checkout-modal .modal-head h2 {
    font-size: 24px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 18px 18px;
  }

  .checkout-form,
  .contact-form {
    gap: 14px;
  }

  .checkout-form input,
  .checkout-form textarea,
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .payment-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    font-size: 16px;
  }

  .checkout-payment-visual {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .products,
  .single-related-products {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .product-header,
  .single-layout {
    width: calc(100% - 18px);
  }

  .single-product-panel {
    padding: 20px;
  }

  .single-product-card,
  .single-side {
    grid-template-columns: 1fr;
  }
}

/* PSD alignment: /var/www/Новое.psd */
:root {
  --bg: #f1f7fd;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --text: #142743;
  --muted: #7a8797;
  --line: #dbe8f5;
  --green: #ed0019;
  --green-dark: #c90014;
  --green-soft: #fff1ed;
  --psd-blue: #058be8;
  --psd-blue-dark: #0073cc;
  --shadow: 0 18px 48px rgba(30, 74, 116, .08);
}

body {
  font-family: "AppPixel", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 220, 251, .68), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(255, 231, 225, .82), transparent 30%),
    linear-gradient(90deg, #eaf5ff 0%, #f8fbff 48%, #fff6f3 100%);
}

body.app-has-bg-image {
  background:
    linear-gradient(90deg, rgba(234,245,255,.88), rgba(255,246,243,.82)),
    var(--app-site-bg),
    linear-gradient(90deg, #eaf5ff 0%, #f8fbff 48%, #fff6f3 100%);
  background-size: auto, cover, auto;
  background-position: center, center top, center;
  background-attachment: scroll, fixed, scroll;
}

.shell {
  width: min(1260px, calc(100% - 28px));
}

.topbar {
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 8px 0 18px;
}

.logo {
  min-height: 96px;
  justify-content: center;
}

.logo-image {
  width: 136px;
  max-height: 98px;
  object-fit: contain;
}

.footer .logo {
  min-height: 116px;
  display: grid;
  justify-items: center;
  align-content: center;
}

.footer .logo-image {
  width: 136px;
}

.search-row {
  grid-template-columns: minmax(270px, 1fr) minmax(350px, auto);
  gap: 14px;
}

.search input {
  height: 50px;
  border-color: #d8e6f5;
  border-radius: 8px;
  color: #718093;
  box-shadow: 0 10px 25px rgba(23, 76, 126, .05);
}

.search svg {
  color: #7692ac;
}

.cta {
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0798f2, #0078d7);
  box-shadow: 0 12px 24px rgba(0, 120, 215, .22);
  letter-spacing: .02em;
  font-size: 15px;
}

.social {
  gap: 10px;
}

.topbar .social-link-telegram,
.topbar .social > [data-contact-open],
.topbar .social > a[href="#status"] {
  display: none;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-color: #dbe8f5;
  background: rgba(255,255,255,.92);
  color: #68839b;
  box-shadow: 0 8px 20px rgba(30, 74, 116, .07);
}

.social-link-vk {
  color: #2f6fa8;
}

.cart-trigger {
  color: #d94a1b;
  background: #fff1ed;
}

.nav {
  min-height: 70px;
  margin-bottom: 22px;
  padding: 0 18px;
  border-color: #dbe8f5;
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 36px rgba(30, 74, 116, .08), inset 0 -4px 0 var(--green);
}

.nav a,
.nav button {
  min-height: 52px;
  color: #344154;
  font-size: 14px;
  font-weight: 800;
}

.nav a.active {
  color: #0073cc;
  box-shadow: inset 0 -4px 0 var(--green);
}

.nav .all-games {
  background: #fff1ed;
  color: #c94c1d;
  padding-inline: 22px;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.panel,
.side-card,
.footer-inner,
.content-panel {
  border-color: #dbe8f5;
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 36px rgba(30, 74, 116, .08);
}

.catalog-section {
  padding: 24px;
}

.section-title h2 {
  color: #142743;
  font-size: 22px;
  letter-spacing: .02em;
}

.section-title h2::before,
.product-path span::before,
.product-path button::before,
.product-path a::before,
.side-card h3::before {
  background: var(--green);
  border-color: var(--green);
}

.catalog-search {
  width: min(420px, 100%);
  margin: -52px auto 58px;
}

.catalog-search span,
.side-search span {
  display: none;
}

.catalog-search input,
.side-search input,
.order-form input {
  border-color: #dbe8f5;
  background: #fff;
  color: #6f7d90;
  box-shadow: 0 8px 20px rgba(30, 74, 116, .04);
}

.filters {
  gap: 9px;
}

.filter {
  min-height: 42px;
  border-color: #dbe8f5;
  background: #fff;
  color: #607087;
  padding-inline: 15px;
  font-weight: 700;
}

.filter.active {
  background: #fff1ed;
  color: #c94c1d;
}

.products {
  gap: 14px;
}

.product-card {
  border-color: #dbe8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(30, 74, 116, .05);
}

.product-card:hover,
.product-card.is-selected,
.product-card.is-selected:hover {
  border-color: #d71920 !important;
  box-shadow: 0 0 0 2px rgba(215,25,32,.28), 0 16px 32px rgba(30, 74, 116, .1);
}

.product-card .thumb {
  background: #eaf6ff;
}

.product-title {
  color: #142743;
  font-weight: 900;
}

.badge {
  background: #dff1ff;
  color: #0073cc;
  border-radius: 5px;
}

.price {
  color: #142743;
  font-size: 21px;
  font-weight: 950;
}

.buy {
  min-height: 38px;
  border-radius: 8px;
  background: #fff1ed;
  color: #c94c1d;
  font-weight: 900;
}

.more {
  width: min(320px, 100%);
  min-height: 58px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f20b20, #d90016);
  font-size: 17px;
  text-transform: none;
  box-shadow: 0 12px 24px rgba(237,0,25,.18);
}

.side {
  gap: 16px;
}

.side-card {
  padding: 22px;
}

.side-card h3 {
  color: #142743;
  font-size: 18px;
  justify-content: center;
}

.side-card h3::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
}

.order-form button {
  min-height: 46px;
  border-radius: 8px;
  background: #dff8ed;
  color: #344154;
}

.link-more {
  color: #c94c1d;
}

.footer {
  margin-top: 22px;
}

.footer-inner {
  position: relative;
  grid-template-columns: 1.1fr .85fr .95fr 1.35fr;
  padding: 56px 54px 36px;
  overflow: hidden;
}

.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--green);
}

.footer-inner::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 98px;
  height: 188px;
  background: url("../brand/psd-footer-bunny.png") center bottom / contain no-repeat;
}

.footer h4 {
  color: #142743;
  font-size: 16px;
}

.footer a,
.footer p {
  color: #7a8797;
}

.footer-inner > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .logo {
    justify-content: flex-start;
    min-height: auto;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  .social {
    justify-content: flex-start;
  }
  .catalog-search {
    margin: 0 0 18px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 18px);
  }
  .nav {
    overflow-x: auto;
    min-height: 58px;
  }
  .nav a,
  .nav button {
    white-space: nowrap;
  }
  .footer-inner {
    padding: 46px 22px 120px;
    grid-template-columns: 1fr;
  }
}

/* TZ single product: move the former right column below the full product window. */
.single-layout > .single-main {
  grid-row: 1;
}

.single-layout > .single-side {
  grid-row: 2;
  margin-top: 18px;
}

/* TZ single product final order: product window -> sidebar blocks -> related catalog. */
.single-layout > .single-main {
  display: contents;
}

.single-layout > .single-main > .content-panel,
.single-layout > .single-main > .single-product-panel {
  grid-row: 1;
}

.single-layout > .single-side {
  grid-row: 2;
  margin-top: 18px;
}

.single-layout > .single-main > .single-related-section {
  grid-row: 3;
  margin-top: 18px;
}

/* PSD icon/color pass: match sidebar icon set and footer payment marks. */
.side-card h3::before {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.side > .side-card:nth-child(1) h3::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #20d941;
}

.side > .side-card:nth-child(2) h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ed0019' d='M12 2 4.5 5.2v5.7c0 4.9 3.2 9.4 7.5 10.8 4.3-1.4 7.5-5.9 7.5-10.8V5.2L12 2Z'/%3E%3Cpath fill='white' d='M11 15.5h2v2h-2v-2Zm1-9.3c2 0 3.4 1.1 3.4 2.8 0 1.1-.5 1.8-1.6 2.5-.8.5-1 .8-1 1.7v.5h-1.7V13c0-1.3.5-1.9 1.5-2.5.8-.5 1.1-.9 1.1-1.5 0-.7-.6-1.2-1.6-1.2-1 0-1.7.5-2.2 1.3L8.6 8.1c.7-1.2 1.9-1.9 3.4-1.9Z'/%3E%3C/svg%3E");
}

.side > .side-card:nth-child(3) h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238b98a8' stroke-width='2' d='M6 3h9l3 3v15H6z'/%3E%3Cpath fill='none' stroke='%238b98a8' stroke-width='2' d='M14 3v4h4M8 11h8M8 15h8'/%3E%3C/svg%3E");
}

.side > .side-card:nth-child(4) h3::before,
.side > .side-card.single-popular-card h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ed0019' stroke-width='2.4'/%3E%3Cpath fill='%23ed0019' d='m15.8 7.2-2.2 6.4-6.4 2.2 2.2-6.4 6.4-2.2Z'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='white'/%3E%3C/svg%3E");
}

.side > .side-card:nth-child(5) h3::before {
  width: 19px;
  height: 19px;
  border: 3px solid #ed0019;
  border-radius: 5px;
  background: transparent;
}

.single-side.side > .side-card:nth-child(1) h3::before { background: #20d941; border-radius: 999px; width: 11px; height: 11px; }
.single-side.side > .side-card:nth-child(2) h3::before { width: 20px; height: 20px; border-radius: 0; background: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ed0019' d='M12 2 4.5 5.2v5.7c0 4.9 3.2 9.4 7.5 10.8 4.3-1.4 7.5-5.9 7.5-10.8V5.2L12 2Z'/%3E%3Cpath fill='white' d='M11 15.5h2v2h-2v-2Zm1-9.3c2 0 3.4 1.1 3.4 2.8 0 1.1-.5 1.8-1.6 2.5-.8.5-1 .8-1 1.7v.5h-1.7V13c0-1.3.5-1.9 1.5-2.5.8-.5 1.1-.9 1.1-1.5 0-.7-.6-1.2-1.6-1.2-1 0-1.7.5-2.2 1.3L8.6 8.1c.7-1.2 1.9-1.9 3.4-1.9Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: contain; }
.single-side.side > .side-card:nth-child(3) h3::before { width: 20px; height: 20px; border-radius: 0; background: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238b98a8' stroke-width='2' d='M6 3h9l3 3v15H6z'/%3E%3Cpath fill='none' stroke='%238b98a8' stroke-width='2' d='M14 3v4h4M8 11h8M8 15h8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: contain; }

.side-card h3 {
  gap: 9px;
}

.payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-brand {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
}

.pay-brand.visa {
  min-width: 54px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: linear-gradient(#ffffff 0 48%, #255bd8 48% 100%);
  color: #1646b8;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(22,70,184,.16);
}

.pay-brand.visa::after {
  content: "SECURE";
  display: block;
  margin-top: -6px;
  color: #fff;
  font-size: 7px;
  letter-spacing: .04em;
}

.pay-brand.mc {
  display: none;
}

.pay-brand.mir {
  color: #111827;
  font-size: 18px;
}

.payment-wallet svg {
  width: 22px;
  height: 22px;
  fill: #111827;
}

/* Final TZ pass: footer links/payment placement and product side blocks in one row. */
.footer-inner > div:first-child .payments {
  margin-top: 16px;
  justify-content: flex-start;
}

.footer-popular-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: #9aa5b5;
  line-height: 1.7;
}

.footer-popular-links a {
  display: inline-flex;
  width: auto;
  color: #7a8797;
  text-decoration: none;
}

.footer-popular-links a:hover {
  color: #ed0019;
}

.single-layout > .single-side {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .single-layout > .single-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .single-layout > .single-side {
    grid-template-columns: 1fr;
  }
}

/* Final PSD font pass: the reference uses a clean compact sans, not the pixel font across the whole storefront. */
:root {
  --font-main: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nav a,
.nav button {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.cta {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.search input,
.catalog-search input,
.side-search input,
.order-form input {
  font-size: 13px;
  font-weight: 400;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.section-title span {
  font-size: 13px;
  font-weight: 400;
}

.filter {
  font-size: 13px;
  font-weight: 600;
}

.filter.active {
  font-weight: 700;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.price,
.product-feature-price {
  font-weight: 800;
  letter-spacing: 0;
}

.price {
  font-size: 20px;
}

.buy,
.more,
.feature-buy,
.primary-action,
.secondary-action,
.order-form button {
  font-weight: 700;
  letter-spacing: 0;
}

.side-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.side-card p,
.review-text,
.news-item strong,
.recent-item strong,
.link-more {
  font-family: var(--font-main);
  letter-spacing: 0;
}

.news-item strong,
.recent-item strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
}

.news-item small,
.recent-item small {
  font-size: 12px;
  font-weight: 400;
}

.footer h4 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer a,
.footer p,
.footer-popular-links {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.single-product-info h1,
.content-panel h1,
.modal-head h2 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: 0;
}

/* Keep the deliberately retro checkout window isolated from the main storefront typography. */
.checkout-modal,
.checkout-modal button,
.checkout-modal input,
.checkout-modal textarea {
  font-family: "AppPixel", "Fixedsys", "Terminal", "Courier New", monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
}

/* Final font/centering correction requested after report review. */
.more,
.more-wrap .more,
button.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.18;
  padding: 0 28px;
}

.modal,
.modal button,
.modal input,
.modal textarea,
.checkout-modal,
.checkout-modal button,
.checkout-modal input,
.checkout-modal textarea,
.contact-modal,
.contact-modal button,
.contact-modal input,
.contact-modal textarea,
.checkout-form,
.checkout-form label,
.checkout-form input,
.checkout-form textarea,
.payment-methods,
.payment-methods legend,
.payment-methods span,
.checkout-summary,
.status-result,
.pay-box {
  font-family: var(--font-main) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-smooth: auto;
  text-rendering: optimizeLegibility !important;
  letter-spacing: 0;
}

.checkout-modal .modal-head h2,
.modal-head h2 {
  font-family: var(--font-main) !important;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.checkout-modal .checkout-form label,
.checkout-modal .payment-methods legend,
.checkout-modal .checkout-summary strong,
.checkout-modal .payment-methods span,
.checkout-modal .primary-action,
.checkout-modal .secondary-action {
  font-weight: 700;
}

.checkout-modal .checkout-form input,
.checkout-modal .checkout-form textarea,
.checkout-modal .checkout-form input::placeholder,
.checkout-modal .checkout-form textarea::placeholder {
  font-weight: 400;
}

/* Single product: align "Открыть каталог" actions. */
.single-product-panel .content-actions {
  align-items: stretch;
}

.single-product-panel .secondary-action,
.single-product-panel .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

/* Checkout polish: one calm form and one unmistakable payment action. */
.modal-backdrop {
  animation: app-checkout-backdrop-in .18s ease-out both;
}

.checkout-modal {
  width: min(760px, calc(100vw - 28px));
  border: 1px solid rgba(23, 49, 69, .10);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(15, 34, 49, .28);
  animation: app-checkout-modal-in .24s cubic-bezier(.2, .8, .2, 1) both;
}

.checkout-modal .modal-head {
  padding: 26px 76px 18px 28px;
  border-bottom-color: rgba(23, 49, 69, .09);
}

.checkout-modal .modal-head h2 {
  color: #173145;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
}

.checkout-modal .modal-close {
  top: 17px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: #f3f6f8;
  color: #526474;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.checkout-modal .modal-close:hover {
  background: #ffe9e4;
  color: #c63218;
  transform: rotate(6deg);
}

.checkout-modal .modal-body {
  padding: 24px 28px 20px;
}

.checkout-modal .checkout-form {
  gap: 18px;
}

.checkout-modal .checkout-form label,
.checkout-modal .payment-methods legend {
  color: #344d5e;
  font-size: 13px;
}

.checkout-modal .checkout-form input,
.checkout-modal .checkout-form textarea {
  border-color: #d9e2e8;
  border-radius: 11px;
  background: #fbfdfe;
  color: #173145;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.checkout-modal .checkout-form input:hover,
.checkout-modal .checkout-form textarea:hover {
  border-color: #b9c9d4;
  background: #fff;
}

.checkout-modal .checkout-form input:focus,
.checkout-modal .checkout-form textarea:focus {
  border-color: #ea4b2d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(234, 75, 45, .12);
}

.checkout-modal .payment-methods {
  width: 100%;
  gap: 12px;
}

.checkout-modal .payment-methods span {
  min-height: 52px;
  border-color: #d9e2e8;
  border-radius: 11px;
  background: #fbfdfe;
  color: #465b69;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.checkout-modal .payment-methods label:hover span {
  border-color: #b9c9d4;
  background: #fff;
  transform: translateY(-1px);
}

.checkout-modal .payment-methods input:checked + span {
  border-color: #ec684f;
  background: #fff3ef;
  color: #b72f18;
  box-shadow: 0 0 0 2px rgba(236, 104, 79, .12);
}

.checkout-modal .checkout-summary {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px 18px;
  padding: 18px 20px;
  border: 1px solid #e4ebef;
  border-radius: 12px;
  background: #f7fafc;
  color: #4b5f6c;
  font-size: 16px;
}

.checkout-modal .checkout-summary strong {
  color: #173145;
}

.checkout-modal .modal-actions {
  align-items: center;
  padding: 0 28px 26px;
}

.checkout-modal [data-submit-order] {
  min-width: 240px;
  min-height: 54px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff5a32 0%, #ed321d 58%, #d91b17 100%);
  box-shadow: 0 12px 28px rgba(218, 39, 26, .24), inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.checkout-modal [data-submit-order]::after {
  content: " →";
  margin-left: 8px;
  font-size: 20px;
  line-height: 1;
}

.checkout-modal [data-submit-order]:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(218, 39, 26, .30), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.checkout-modal [data-submit-order]:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(218, 39, 26, .22);
}

.checkout-modal [data-submit-order]:disabled::after {
  content: "";
}

@keyframes app-checkout-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes app-checkout-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .checkout-modal {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 17px;
  }

  .checkout-modal .modal-head {
    padding: 22px 66px 15px 20px;
  }

  .checkout-modal .modal-body {
    padding: 20px;
  }

  .checkout-modal .payment-methods {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-modal .checkout-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .checkout-modal .checkout-summary strong:not(:first-child) {
    margin-top: 8px;
  }

  .checkout-modal .modal-actions {
    position: sticky;
    bottom: 0;
    padding: 12px 20px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.88), #fff 28%);
  }

  .checkout-modal [data-submit-order] {
    order: -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .checkout-modal {
    animation: none;
  }
}

@media (max-width: 640px) {
  .product-feature-delivery-comment {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 15px;
  }
}

.single-popular-card > .link-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* Footer PSD rebuild: match the reference footer structure and icon placement. */
.footer {
  margin-top: 28px;
}

.footer-inner {
  grid-template-columns: 1.15fr .82fr .92fr .46fr 1.35fr;
  align-items: start;
  gap: 22px;
  min-height: 176px;
  padding: 52px 46px 28px;
  border-radius: 8px;
  overflow: hidden;
}

.footer-inner::before {
  height: 24px;
  background: #ed0019;
}

.footer-inner::after {
  right: 18px;
  bottom: 0;
  width: 76px;
  height: 116px;
  background-size: contain;
  background-position: right bottom;
  z-index: 0;
}

.footer-inner > * {
  z-index: 1;
}

.footer-brand {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding-top: 3px;
}

.footer-brand .logo {
  min-height: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.footer-brand .logo-image,
.footer .footer-brand .logo-image {
  width: 112px;
  height: auto;
}

.footer-brand p,
.footer .footer-brand p {
  margin: 10px 0 0;
  color: #8b95a3;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.footer h4,
.footer .footer-menu h4,
.footer .footer-buyers h4,
.footer .footer-popular h4 {
  margin: 0 0 10px;
  color: #142743;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.footer a,
.footer p {
  color: #7c8796;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin: 6px 0;
}

.footer-menu,
.footer-buyers,
.footer-popular,
.footer-payments {
  padding-top: 8px;
}

.footer-payments {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-payments .payments {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 0;
}

.footer-payments .pay-brand.visa {
  min-width: 50px;
  height: 29px;
  font-size: 13px;
}

.footer-payments .pay-brand.visa::after {
  font-size: 6px;
  margin-top: -5px;
}

.footer-payments .pay-brand.mir {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.footer-popular {
  padding-right: 66px;
}

.footer-popular-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  color: #8b95a3;
  font-size: 12px;
  line-height: 1.55;
}

.footer-popular-links a {
  color: #7c8796;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
}

.footer-popular-links span {
  color: #a5aeb9;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 48px 26px 110px;
  }
  .footer-payments {
    justify-content: flex-start;
  }
  .footer-popular {
    padding-right: 74px;
  }
}

@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    justify-items: start;
    text-align: left;
  }
}

/* Sidebar buyers links: each item must be its own line, as in the PSD reference. */
.side-card > .link-more,
.side-card > a.link-more {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin-top: 8px;
  line-height: 1.35;
}

.side-card > h3 + .link-more {
  margin-top: 0;
}

.side-card > .link-more + .link-more {
  margin-top: 8px;
}

/* Client pass 2026-07-07: make the menu selector straight and keep footer text away from the PSD bunny. */
.nav {
  position: relative;
  overflow: hidden;
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #ed0019;
  z-index: 1;
}

.nav a,
.nav button {
  position: relative;
  z-index: 2;
}

.nav a::before,
.nav button::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4px;
  height: 3px;
  border-radius: 0;
  background: #ed0019;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .14s ease, transform .14s ease;
}

.nav a:hover::before,
.nav button:hover::before,
.nav a.active::before,
.nav button.active::before {
  opacity: 1;
  transform: translateY(0);
}

.nav a.active,
.nav button.active {
  box-shadow: none;
}

.nav a.active::after,
.nav button.active::after {
  content: none;
}

.footer-inner::after {
  right: 14px;
  bottom: 0;
  width: 76px;
  height: 116px;
  z-index: 1;
  pointer-events: none;
}

.footer-popular {
  padding-right: 150px;
}

.footer-popular-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: 150px;
}

.footer-popular-links span {
  display: none;
}

.footer-payments .payments,
.footer-payments .payments-psd {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 4px;
}

.payment-mark {
  display: block;
  max-width: 100%;
  height: auto;
}

.payment-mark-visa {
  width: 40px;
}

.payment-mark-mir {
  width: 38px;
}

@media (max-width: 980px) {
  .footer-popular {
    padding-right: 122px;
  }
}

/* Product page: keep service blocks in a real right column on desktop. */
@media (min-width: 1041px) {
  .single-layout {
    width: min(1380px, calc(100% - 20px));
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
  }

  .single-product-card {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 24px;
  }

  .single-layout > .single-main {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    gap: 16px;
  }

  .single-layout > .single-main > .content-panel,
  .single-layout > .single-main > .single-product-panel,
  .single-layout > .single-main > .single-related-section {
    grid-row: auto;
    margin-top: 0;
  }

  .single-layout > .single-side {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 2;
    grid-row: 1;
    gap: 16px;
    margin-top: 0;
  }
}

/* Final mobile cascade: placed last so later desktop styling cannot win. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell,
  .product-header,
  .single-layout {
    width: calc(100% - 20px);
    max-width: 100%;
    margin-inline: auto;
  }

  .topbar,
  .search-row,
  .layout,
  .single-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .layout {
    display: grid;
    gap: 16px;
  }

  .layout > *,
  .layout > div,
  .single-main,
  .single-product-card,
  .single-product-card > *,
  .single-product-info {
    min-width: 0;
    width: 100%;
  }

  .nav {
    display: flex;
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav a,
  .nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .side,
  .single-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-column: 1 !important;
    gap: 14px;
    margin-top: 0;
  }

  .single-layout > .single-main {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    gap: 16px;
  }

  .single-layout > .single-side {
    grid-row: 2;
  }

  .single-layout > .single-main > .single-product-panel,
  .single-layout > .single-main > .content-panel,
  .single-layout > .single-main > .single-related-section {
    grid-row: auto;
    margin-top: 0;
  }

  .product-feature-section:has([data-product-feature]:empty) {
    display: none;
  }

  .section,
  .catalog-section,
  .single-product-panel,
  .side-card {
    padding: 16px;
  }

  .products,
  .single-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .single-product-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }

  .single-product-card .product-feature-media {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .single-product-card .product-feature-main-image {
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }

  .single-product-card .content-body {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-feature-delivery-comment,
  .content-actions,
  .product-feature-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-actions > *,
  .product-feature-actions > * {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .products,
  .single-related-products {
    grid-template-columns: minmax(0, 1fr);
  }
}
