/*
Theme Name: Infinity
Theme URI: https://infiniti8.by
Author: Infiniti Riva Trade
Description: Тема WordPress «Infinity» — перенос React-сайта Infiniti Riva Trade (сыпучие материалы оптом и в розницу). Тёмная тема, сезонный акцентный цвет (лето/зима/всё), каталог товаров с фильтрами, модальные окна, счётчики статистики.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: infinity
*/

/* ===================== Шрифты ===================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== Цветовые переменные (сезоны) ===================== */
:root {
  --accent: #F59E0B;
  --accent-rgb: 245, 158, 11;
  --accent-dim: #92400E;
  color-scheme: dark;
}

[data-season="winter"] {
  --accent: #38BDF8;
  --accent-rgb: 56, 189, 248;
  --accent-dim: #0369A1;
}

[data-season="all"] {
  --accent: #E5E7EB;
  --accent-rgb: 229, 231, 235;
  --accent-dim: #4B5563;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:#222021;
  color: #F0EDE8;
  margin: 0;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background:#222021; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.font-display { font-family: 'Oswald', sans-serif; }

/* accent color utility */
.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.border-accent { border-color: var(--accent); }
.shadow-accent { box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2); }
.hover\:bg-accent:hover { background: var(--accent); }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:border-accent:hover { border-color: var(--accent); }

/* preloader */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-32px); }
}
@keyframes wipeDown {
  from { transform: scaleY(1); transform-origin: top; }
  to { transform: scaleY(0); transform-origin: top; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow { animation: spinSlow 1s linear infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--accent-rgb), 0); }
  50% { box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.anim-fade-in-up { animation: fadeInUp 0.6s ease both; }
.anim-scale-in { animation: scaleIn 0.7s ease both; }
.anim-fade-in { animation: fadeIn 0.5s ease both; }

.marquee-inner { animation: marquee 30s linear infinite; }

/* card hover lift */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--accent) !important;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.15);
}

/* season button */
.season-btn {
  transition: all 0.3s ease;
  border: 1.5px solid rgba(255,255,255,0.1);
}
.season-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
  transform: scale(1.04);
}
.season-btn.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* form input */
.form-input {
  background:#48494B;
  border: 1px solid #5A5D63;
  color: #F0EDE8;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-input::placeholder { color: #555; }

/* product category pill */
.pill {
  transition: all 0.2s ease;
  cursor: pointer;
}
.pill.active {
  background: var(--accent);
  color: #0A0A0A;
}

/* ===================== Доп. стили под WordPress-обвязку ===================== */
/* border-white/06 (кастомный tailwind-класс из оригинала, у Tailwind CDN его нет по умолчанию) */
.border-white\/06 { border-color: rgba(255,255,255,0.06); }

/* preloader / modal display helpers (JS переключает через .is-hidden) */
.is-hidden { display: none !important; }
[data-catalog-item].is-filtered-out { display: none !important; }

/* WP admin bar offset для фиксированного хедера */
.admin-bar header.site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar header.site-header { top: 46px; }
}

/* screen-reader-text (стандарт WP) */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}