/* Fragvault — Main page */


:root {
  --bg-main: #0a0f0c;
  --bg-footer: #0e1420;
  --bg-sidebar: #121620;
  --bg-card: #151a24;
  --bg-input: #1a2030;
  --bg-nav-active: #1e2433;
  --purple: #7b61ff;
  --purple-hover: #6a52eb;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #6b7280;
  --container-max: 1440px;
  --sidebar-width: 240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: var(--font-family);
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Фоновое изображение — только главная */
body.page-home {
  background-image: url('../images/body-top-center-bg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

/* App layout */

.app {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container-max);
  min-height: 100vh;
  margin: 0 auto;
}

/* Sidebar */

.sidebar {
  flex-shrink: 0;
  width: var(--sidebar-width);
  align-self: flex-start;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-sidebar);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 24px 0 24px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 97, 255, 0.5) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(123, 97, 255, 0.4);
  border-radius: 3px;
  transition: background-color 0.15s;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(123, 97, 255, 0.7);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.sidebar__logo-img {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.sidebar__logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar__nav {
  flex: none;
}

.sidebar__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}

.sidebar__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar__link--active {
  color: var(--text-primary);
  background: var(--bg-nav-active);
}

.sidebar__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar__link-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.sidebar__link-icon--active {
  background: var(--purple);
  border-radius: var(--radius-sm);
}

.sidebar__link-icon--active .sidebar__link-icon-img {
  filter: brightness(0) invert(1);
}

.sidebar__link-text {
  flex: 1;
  min-width: 0;
}

/* Main */

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 48px;
  gap: 48px;
}

/* Burger menu (mobile) */

.burger {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.burger:hover {
  background: #1c2230;
}

.burger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
}

body.sidebar-open {
  overflow: hidden;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: var(--input-height);
  padding: 0 16px 0 48px;
  border-radius: var(--input-radius);
  color: var(--input-text);
  font-size: 0.9375rem;
  outline: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Plain fallback button (no WOOCS). FOX switcher: assets/css/woocs.css */
button.currency {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
}

button.currency:hover {
  color: var(--text-secondary);
}

/* Hero */

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
}

/* Sections */

.section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--purple);
  transition: color 0.15s;
}

.section__link:hover {
  color: var(--purple-hover);
}

.skins-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

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

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

/* Horizontal scrollable variant — desktop = 2 rows of cards with column-based
   widths, narrower viewports gracefully reduce visible columns / collapse to a
   single carousel row so cards stay readable. */
.skins-grid--scrollable {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 97, 255, 0.4) transparent;
}

.skins-grid--scrollable.skins-grid--5 {
  grid-auto-columns: calc((100% - 64px) / 5);
}

.skins-grid--scrollable.skins-grid--4 {
  grid-auto-columns: calc((100% - 48px) / 4);
}

.skins-grid--scrollable > * {
  scroll-snap-align: start;
}

/* Autoscroll mode — turn off scroll-snap so JS animation doesn't fight snap points,
   and hide the scrollbar until the user actually decides to scroll. */
.skins-grid--scrollable[data-autoscroll] {
  scroll-snap-type: none;
  scrollbar-width: none;
}

.skins-grid--scrollable[data-autoscroll]::-webkit-scrollbar {
  height: 0;
}

.skins-grid--scrollable[data-autoscroll] > * {
  scroll-snap-align: none;
}

/* Scrollbar reappears only when the user is actively scrolling (wheel / drag / touch).
   The JS strips this class ~1.5s after the last interaction. */
.skins-grid--scrollable[data-autoscroll].is-user-scrolling {
  scrollbar-width: thin;
}

.skins-grid--scrollable[data-autoscroll].is-user-scrolling::-webkit-scrollbar {
  height: 6px;
}

.skins-grid--scrollable::-webkit-scrollbar {
  height: 6px;
}

.skins-grid--scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.skins-grid--scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(123, 97, 255, 0.4);
  border-radius: 3px;
}

.skins-grid--scrollable::-webkit-scrollbar-thumb:hover {
  background-color: rgba(123, 97, 255, 0.7);
}

/* Tablet — show ~2.5 cards visible across 2 rows. */
@media (max-width: 1023px) {
  .skins-grid--scrollable.skins-grid--5,
  .skins-grid--scrollable.skins-grid--4 {
    grid-auto-columns: 42vw;
  }
}

/* Mobile — single row of cards with one full + peek of the next. */
@media (max-width: 768px) {
  .skins-grid--scrollable.skins-grid--5,
  .skins-grid--scrollable.skins-grid--4 {
    grid-template-rows: 1fr;
    grid-auto-columns: 78vw;
    scroll-padding-left: 16px;
  }
}

/* Skin card */

.skin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.skin-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skin-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skin-card__type {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.skin-card__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.skin-card__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.skin-card__image img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.skin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.skin-card__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.skin-card__cta .added_to_cart {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.skin-card__cta .added_to_cart:hover {
  color: var(--purple);
}

.skin-card__price {
  font-size: 1rem;
  font-weight: 600;
}

.skin-card__cart {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background 0.15s;
}

.skin-card__cart:hover {
  background: var(--purple-hover);
}

.skin-card__cart img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Floating cart (fixed, bottom-right) */
a.fragvault-floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

a.fragvault-floating-cart:hover {
  box-shadow: 0 10px 32px rgba(123, 97, 255, 0.35);
}

a.fragvault-floating-cart img {
  width: 22px;
  height: 22px;
}

.fragvault-floating-cart__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #ffffff;
  color: #121926;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-family);
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.fragvault-floating-cart--empty .fragvault-floating-cart__count {
  display: none;
}

/* Block 3: Pick your weapon */

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.weapon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  transition: background 0.15s;
}

.weapon-card:hover {
  background: #1c2230;
}

.weapon-card__image {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weapon-card__image img {
  object-fit: contain;
  max-height: 56px;
}

.weapon-card__name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
}

.weapon-card__arrow {
  flex-shrink: 0;
  color: var(--text-primary);
  display: flex;
  opacity: 0.7;
}

/* Block 4: Promo + features */

.section--promo {
  gap: 20px;
}

.promo-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 14, 20, 0.88) 0%, rgba(11, 14, 20, 0.45) 50%, rgba(11, 14, 20, 0.15) 100%),
    url('../images/buying-scins-b.png') right center / cover no-repeat;
  background-color: #1a1528;
}

.promo-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 14, 20, 0.7) 40%, transparent 100%);
  pointer-events: none;
}

.promo-hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.promo-hero__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card__num {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
}

.feature-card__label {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Block 6: Upgrade */

.upgrade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0;
}

.upgrade__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade__weapons {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade__weapons-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  object-fit: contain;
}

.upgrade__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.upgrade__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.upgrade__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  width: 100%;
  background: var(--bg-footer);
  padding: 48px 0;
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer__aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo-img {
  width: 54px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.site-footer__logo-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.site-footer__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-footer__payments {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-badge {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.15s;
}

.site-footer__nav a:hover {
  color: var(--text-secondary);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.site-footer__block p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-footer__block a:hover {
  color: var(--text-primary);
}
