/* ===== Внешний вид GSM и GAMES (skin-v2). Настройки — «Панель управления» → «Внешний вид» (опция fantom_look, см. skin.php).
   Каждая часть работает только со своим классом на body: look-font, look-grid, look-buttons, look-words.
   Классы ставит skin.php только на своей стороне (mode-gsm / mode-games), поэтому правила общие. Полупрозрачности — от var(--text): видны и на тёмной, и на светлой теме.
   Цвета (палитра, акцент, полоса, метка скидки) — переменными из skin.php (fantom_look_css), здесь их нет. ===== */

/* --- Шрифты --- */
html body.skin-v2.look-font {
  --font: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
}
html body.skin-v2.look-font h1, html body.skin-v2.look-font h2, html body.skin-v2.look-font h3,
html body.skin-v2.look-font .entry-title, html body.skin-v2.look-font .page-title,
html body.skin-v2.look-font .product_title, html body.skin-v2.look-font .woocommerce-loop-product__title,
html body.skin-v2.look-font .fantom-hero__text h1, html body.skin-v2.look-font .fantom-footer h4 {
  font-family: var(--font-head) !important; text-transform: uppercase; font-weight: 500 !important; letter-spacing: .02em;
}
html body.skin-v2.look-font h4, html body.skin-v2.look-font h5 { font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; }
html body.skin-v2.look-font .price, html body.skin-v2.look-font .price .woocommerce-Price-amount { font-family: var(--font-head); font-weight: 500 !important; }
html body.skin-v2.look-font ul.products li.product .price { font-size: 23px; }
html body.skin-v2.look-font .single-product .single_variation .price { font-weight: 500; font-size: 38px; }

/* --- Фон: тонкая сетка 32px поверх обычного цвета (на «ещё темнее» цвет берётся свой из --bg) --- */
html body.skin-v2.look-grid {
  background: linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 100% 32px,
              linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 32px 100%, var(--bg) !important;
  background-attachment: fixed !important;
}
html body.skin-v2.look-grid .site-content, html body.skin-v2.look-grid .site-footer { background: transparent !important; }

/* --- Кнопки: таблетка с подсветкой --- */
html body.skin-v2.look-buttons .button, html body.skin-v2.look-buttons a.button, html body.skin-v2.look-buttons button.button,
html body.skin-v2.look-buttons .woocommerce #respond input#submit, html body.skin-v2.look-buttons .single_add_to_cart_button,
html body.skin-v2.look-buttons #place_order, html body.skin-v2.look-buttons .fantom-search-panel button[type=submit] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 82%, #fff), var(--blue-2)) !important;
  border-radius: 999px !important; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px var(--glow) !important;
  transition: transform .25s, box-shadow .25s, filter .25s !important;
}
html body.skin-v2.look-buttons .button:hover, html body.skin-v2.look-buttons a.button:hover, html body.skin-v2.look-buttons button.button:hover,
html body.skin-v2.look-buttons .single_add_to_cart_button:hover, html body.skin-v2.look-buttons #place_order:hover,
html body.skin-v2.look-buttons .fantom-search-panel button[type=submit]:hover {
  filter: none; transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px color-mix(in srgb, var(--blue) 55%, transparent) !important;
}
html body.skin-v2.look-buttons .button:active, html body.skin-v2.look-buttons .single_add_to_cart_button:active, html body.skin-v2.look-buttons #place_order:active { transform: translateY(0); }
html body.skin-v2.look-buttons .single-product .single_add_to_cart_button { border-radius: 999px !important; }
/* второстепенные — стекло */
html body.skin-v2.look-buttons .fantom-hero__cta .button--ghost {
  background: color-mix(in srgb, var(--text) 6%, transparent) !important; border: 0 !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 15%, transparent) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html body.skin-v2.look-buttons .fantom-hero__cta .button--ghost:hover { background: color-mix(in srgb, var(--text) 10%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 60%, transparent) !important; }

/* круглые значки шапки → скруглённые квадраты из стекла */
html body.skin-v2.look-buttons .fantom-icon {
  border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); border-color: color-mix(in srgb, var(--text) 14%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html body.skin-v2.look-buttons .fantom-icon:hover { background: color-mix(in srgb, var(--blue) 25%, transparent); border-color: color-mix(in srgb, var(--blue) 55%, transparent); color: var(--text); }

/* --- Поля ввода --- */
html body.skin-v2.look-buttons input[type=text], html body.skin-v2.look-buttons input[type=email], html body.skin-v2.look-buttons input[type=tel],
html body.skin-v2.look-buttons input[type=password], html body.skin-v2.look-buttons input[type=search], html body.skin-v2.look-buttons input[type=number],
html body.skin-v2.look-buttons input[type=url] {
  border-radius: 999px !important; background: color-mix(in srgb, var(--text) 5%, transparent) !important;
  border-color: color-mix(in srgb, var(--text) 14%, transparent) !important; padding-left: 18px; padding-right: 18px;
  transition: border-color .2s, box-shadow .2s;
}
html body.skin-v2.look-buttons select, html body.skin-v2.look-buttons textarea { border-radius: 16px !important; background: color-mix(in srgb, var(--text) 5%, transparent) !important; border-color: color-mix(in srgb, var(--text) 14%, transparent) !important; }
html body.skin-v2.look-buttons input:focus, html body.skin-v2.look-buttons select:focus, html body.skin-v2.look-buttons textarea:focus {
  border-color: color-mix(in srgb, var(--blue) 65%, transparent) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent) !important;
}
html body.skin-v2.look-buttons .single-product .quantity .qty { border-radius: 999px !important; padding: 0; }
html body.skin-v2.look-buttons .fx-select__btn { border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent) !important; border-color: color-mix(in srgb, var(--text) 14%, transparent); }
html body.skin-v2.look-buttons .fx-select.is-open .fx-select__btn { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
html body.skin-v2.look-buttons .fx-select__list { border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* выпадающая панель поиска — в тон полям */
html body.skin-v2.look-buttons .fantom-search-panel { border-radius: 20px; }

/* способы оплаты — стеклянные таблетки */
html body.skin-v2.look-buttons.woocommerce-checkout #payment ul.payment_methods li > label {
  border-radius: 999px; font-family: var(--font-head); font-weight: 500; letter-spacing: .04em;
}
html body.skin-v2.look-buttons.woocommerce-checkout #payment ul.payment_methods li > input:checked + label {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 82%, #fff), var(--blue-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px var(--glow);
}
html body.skin-v2.look-buttons.woocommerce-checkout #payment div.payment_box { border-radius: 16px; }

/* --- Главная /gsm: фон из GSM-терминов (skin-words.js) на всю ширину экрана за первым экраном --- */
html body.skin-v2.look-words .site { overflow-x: clip; }
html body.skin-v2.look-words .fantom-hero, html body.skin-v2.look-words .fx-hero { position: relative; }
html body.skin-v2.look-words .fantom-hero > *:not(.fx-words), html body.skin-v2.look-words .fx-hero > *:not(.fx-words) { position: relative; z-index: 1; }
html body.skin-v2.look-words .fx-words {
  position: absolute; z-index: 0; pointer-events: none; top: -22px; bottom: -10px;
  left: calc(50% - 50vw); width: 100vw;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
}
html body.skin-v2.look-words .fx-words canvas { display: block; }
/* мягкая подложка под текстом, чтобы слова фона не мешали читать */
html body.skin-v2.look-words .fantom-hero__text::before, html body.skin-v2.look-words .fx-hero__text::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--bg) 55%, transparent);
}

/* --- Телефон, GAMES: нижняя панель (аккаунт / поиск / корзина) — в цвет карточек темы (Storefront красит её чисто белой) --- */
html body.skin-v2.mode-games .storefront-handheld-footer-bar,
html body.skin-v2.mode-games .storefront-handheld-footer-bar ul li > a,
html body.skin-v2.mode-games .storefront-handheld-footer-bar ul li.search .site-search { background-color: var(--surface) !important; }
html body.skin-v2.mode-games .storefront-handheld-footer-bar { border-top: 1px solid var(--border) !important; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
html body.skin-v2.mode-games .storefront-handheld-footer-bar ul li > a { color: var(--text) !important; border-right-color: var(--border) !important; }

@media (prefers-reduced-motion: reduce) {
  html body.skin-v2 * { transition: none !important; }
}
