/* ===== main.css — RollsByTepyuk ===== */
/* 🎨 Цветовая схема: лосось + пастельный голубой */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  /* 🔥 Основные цвета */
  --primary: #ff9233;           /* 🍣 Лосось/суши — основной акцент */
  --primary-dark: #e67e22;      /* Тёмный оранжевый для ховера */
  --accent: #ffb366;            /* Светлый акцент для градиентов */
  
  /* 🔹 Фоновые и текстовые */
  --bg-light: #f8fbff;          /* 🌊 Пастельный голубой фон */
  --text-dark: #2c3e50;         /* Тёмный сине-серый для контраста */
  --text-muted: #7f9db5;        /* Приглушённый голубовато-серый */
  
  /* 🔹 Тени с холодным оттенком */
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
  
  /* 🔹 Прочее */
  --radius: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ===== БАЗА ===== */
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0; padding: 0;
}

/* ===== КНОПКИ ===== */
.btn-primary {
  background: var(--primary); 
  border: none; 
  padding: 10px 24px;
  border-radius: 50px; 
  font-weight: 500; 
  transition: all var(--transition-fast);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark); 
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}
.btn-outline-primary {
  border-color: var(--primary); 
  color: var(--primary);
  border-radius: 50px; 
  padding: 8px 20px; 
  transition: all var(--transition-fast);
}
.btn-outline-primary:hover { 
  background: var(--primary); 
  color: white; 
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative; 
  min-height: 70vh; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  color: white; 
  text-align: center; 
  padding: 2rem 1rem;
  /* 🎨 Новый градиент: тёмный синий + акцент лосося */
  background: 
    radial-gradient(ellipse at top, rgba(255, 146, 51, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 179, 102, 0.12), transparent 50%),
    linear-gradient(135deg, #1a2530 0%, #1e3a4a 50%, #2c526a 100%);
}
.hero::after {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-content, .hero-scroll { position: relative; z-index: 2; }

.hero::before {
  content: ''; 
  position: absolute; 
  inset: 0;
  background-image: 
    radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px; 
  background-position: 0 0, 15px 15px;
  animation: floatBg 20s linear infinite; 
  pointer-events: none;
}
@keyframes floatBg {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-50px) rotate(2deg); }
}

.hero-float {
  position: absolute; 
  opacity: 0.14; 
  color: white; 
  pointer-events: none; 
  z-index: 1;
  animation: floatItem var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s); 
  font-size: var(--size, 2rem);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}
.hero-float:nth-child(odd) { animation-name: floatItem; }
.hero-float:nth-child(even) { animation-name: floatItemAlt; }

@keyframes floatItem {
  0%, 100% { transform: translateY(0) rotate(0deg) translateX(0); }
  25% { transform: translateY(-25px) rotate(3deg) translateX(8px); }
  50% { transform: translateY(-15px) rotate(-2deg) translateX(-5px); }
  75% { transform: translateY(-30px) rotate(2deg) translateX(3px); }
}
@keyframes floatItemAlt {
  0%, 100% { transform: translateY(0) rotate(0deg) translateX(0); }
  25% { transform: translateY(-20px) rotate(-3deg) translateX(-6px); }
  50% { transform: translateY(-35px) rotate(2deg) translateX(4px); }
  75% { transform: translateY(-18px) rotate(-1deg) translateX(-2px); }
}
@media (max-width: 767px) { .hero-float { display: none; } }

.hero-content { max-width: 800px; animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); 
  font-weight: 800; 
  line-height: 1.1;
  margin-bottom: 1.5rem; 
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { 
    text-shadow: 0 4px 20px rgba(255, 146, 51, 0.5); 
  }
  to { 
    text-shadow: 0 4px 35px rgba(255, 179, 102, 0.8), 0 0 70px rgba(255, 146, 51, 0.4); 
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); 
  opacity: 0.97;
  margin-bottom: 2.5rem; 
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta { 
  animation: fadeInUp 1s ease-out 0.6s both, pulse 2s infinite 1.2s; 
}
@keyframes pulse { 
  0%, 100% { transform: scale(1); } 
  50% { transform: scale(1.05); } 
}

.hero-scroll {
  position: absolute; 
  bottom: 2rem; 
  left: 50%; 
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75); 
  font-size: 1.5rem; 
  animation: bounce 2s infinite;
  z-index: 2; 
  text-decoration: none;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-15px); }
  60% { transform: translateX(-50%) translateY(-8px); }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.2rem !important; }
  .hero-subtitle { font-size: 1.1rem !important; }
  .display-5 { font-size: 2rem !important; }
}

/* ===== PRODUCT CARD ===== */
.rol-card {
  background: white; 
  border-radius: 24px; 
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; 
  border: none;
}
.rol-card::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); 
  transition: transform 0.4s ease;
}
.rol-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 146, 51, 0.18);
}
.rol-card:hover::before { transform: scaleX(1); }

.rol-card-image-wrapper {
  position: relative; 
  overflow: hidden; 
  height: 240px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2fa 100%);
}
.rol-card-image-wrapper img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rol-card:hover .rol-card-image-wrapper img { 
  transform: scale(1.15) rotate(2deg); 
}

.rol-card-badges {
  position: absolute; 
  top: 12px; 
  left: 12px; 
  display: flex;
  flex-direction: column; 
  gap: 6px; 
  z-index: 3;
}
.badge-new, .badge-bestseller, .badge-discount {
  padding: 5px 12px; 
  border-radius: 50px; 
  font-size: 0.75rem;
  font-weight: 600; 
  color: white; 
  box-shadow: 0 2px 10px rgba(255, 146, 51, 0.3);
  letter-spacing: 0.3px; 
  text-transform: uppercase;
}
/* 🎨 Обновлённые градиенты бейджей */
.badge-new { 
  background: linear-gradient(135deg, #ffb366 0%, var(--primary) 100%); 
}
.badge-bestseller { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
}
.badge-discount { 
  background: linear-gradient(135deg, var(--primary-dark) 0%, #c96e1a 100%); 
}

.rol-card-body { 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
.rol-card-title { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--text-dark); 
  line-height: 1.3; 
  margin: 0; 
}
.rol-card-description { 
  font-size: 0.9rem; 
  color: var(--text-muted); 
  line-height: 1.5; 
  margin: 0; 
  flex-grow: 1; 
}

.card-top-link {
  text-decoration: none; 
  color: inherit; 
  display: block;
  border-radius: 24px 24px 0 0; 
  overflow: hidden; 
  transition: transform 0.3s ease;
}

.rol-card-footer {
  background: white; 
  padding: 20px; 
  border-top: 1px solid rgba(44, 62, 80, 0.06);
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 15px;
  border-radius: 0 0 24px 24px;
}
.rol-card-price { 
  display: flex; 
  flex-direction: column; 
}
.rol-card-price-label { 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  font-weight: 500; 
}
.rol-card-price-value {
  font-size: 1.75rem; 
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text; 
  line-height: 1;
}
.price-old { 
  font-size: 1rem; 
  color: #aabccc; 
  text-decoration: line-through; 
}
.price-new {
  font-size: 1.3rem; 
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.rol-card-add-btn {
  position: relative; 
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; 
  border: none; 
  border-radius: 16px; 
  font-weight: 600;
  font-size: 0.95rem; 
  cursor: pointer; 
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(255, 146, 51, 0.35); 
  display: flex; 
  align-items: center; 
  gap: 8px;
}
.rol-card-add-btn::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: -100%; 
  width: 100%; 
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s ease;
}
.rol-card-add-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 146, 51, 0.45);
}
.rol-card-add-btn:hover::before { left: 100%; }
.rol-card-add-btn:active { transform: translateY(-1px) scale(0.98); }

.rol-card-add-btn.added {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  cursor: not-allowed !important; 
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(255, 146, 51, 0.3) !important;
}
.rol-card-add-btn.added:hover {
  transform: none !important; 
  box-shadow: 0 4px 15px rgba(255, 146, 51, 0.3) !important;
}
.rol-card-add-btn.added i { transform: none !important; }
.rol-card-add-btn.added::before { display: none; }

@keyframes addedPulse {
  0% { transform: scale(1); } 
  50% { transform: scale(1.1); } 
  100% { transform: scale(1); }
}
.rol-card-add-btn.added { animation: addedPulse 0.4s ease; }

@media (max-width: 767px) {
  .rol-card-image-wrapper { height: 200px; }
  .rol-card-title { font-size: 1.1rem; }
  .rol-card-price-value { font-size: 1.5rem; }
  .rol-card-add-btn { padding: 10px 18px; font-size: 0.9rem; }
  .rol-card img { height: 180px !important; }
}
@media (max-width: 576px) {
  .rol-card-footer { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
  .rol-card-price { flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; }
  .badge-new, .badge-bestseller, .badge-discount { padding: 4px 10px; font-size: 0.7rem; }
}

/* ===== CATEGORY TABS ===== */
.category-tabs-section {
  position: relative !important; 
  top: auto !important; 
  z-index: auto !important;
  border-bottom: 1px solid rgba(44, 62, 80, 0.08); 
  padding: 20px 0;
}
.category-tabs-wrapper {
  overflow-x: auto; 
  padding: 0 15px; 
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs-wrapper::-webkit-scrollbar { display: none; }
.category-tabs {
  display: flex; 
  gap: 10px; 
  min-width: max-content; 
  padding: 10px 0;
}
.category-tab {
  display: flex; 
  align-items: center; 
  gap: 6px; 
  padding: 10px 20px;
  background: #fff; 
  border: 2px solid rgba(44, 62, 80, 0.12); 
  border-radius: 30px;
  color: var(--text-muted); 
  font-size: 0.9rem; 
  font-weight: 500; 
  cursor: pointer;
  transition: all var(--transition-normal); 
  white-space: nowrap;
}
.category-tab i { font-size: 1.1rem; }
.category-tab:hover {
  border-color: var(--primary); 
  color: var(--primary); 
  transform: translateY(-2px);
}
.category-tab.active {
  background: var(--primary); 
  border-color: var(--primary); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 146, 51, 0.35);
}
.category-tab.active i { color: #fff; }

@media (max-width: 576px) {
  .category-tabs-section { top: 60px; }
  .category-tab { padding: 8px 16px; font-size: 0.85rem; }
  .category-tab i { font-size: 1rem; }
}

/* ===== PRODUCT ANIMATIONS & UTILS ===== */
.product-card { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.product-card.show { opacity: 1; }
.product-card.hidden { display: none !important; }

.no-products-message {
  text-align: center; 
  padding: 60px 20px; 
  color: var(--text-muted); 
  display: none;
}
.no-products-message.show { display: block; animation: fadeInUp 0.4s ease; }
.no-products-message i {
  font-size: 3rem; 
  color: var(--primary); 
  opacity: 0.35; 
  margin-bottom: 15px;
}

/* ===== NAVBAR TOGGLER (MOBILE) ===== */
.navbar-toggler {
  display: none; 
  border: 1px solid rgba(44, 62, 80, 0.12) !important;
  padding: 8px 12px !important; 
  background: #fff !important;
  border-radius: 8px !important; 
  transition: all var(--transition-fast) !important;
}
.navbar-toggler i {
  font-size: 1.5rem !important; 
  color: var(--text-dark) !important;
  transition: color var(--transition-fast) !important; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.navbar-toggler:hover {
  border-color: var(--primary) !important; 
  background: var(--bg-light) !important;
}
.navbar-toggler:hover i { color: var(--primary) !important; }
.navbar-toggler.active {
  border-color: var(--primary) !important; 
  background: var(--primary) !important;
}
.navbar-toggler.active i { color: #fff !important; }
.navbar-toggler.active i.bi-list::before { content: '\F12E' !important; }

@media (max-width: 991px) {
  .navbar-toggler {
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    width: 44px; 
    height: 44px;
  }
}
@media (max-width: 480px) {
  .navbar-brand { font-size: 1.25rem !important; }
  .btn-lg { padding: 8px 20px !important; font-size: 1rem !important; }
}

/* ===== FLOATING CART BUTTON ===== */
.floating-cart {
  position: fixed; 
  bottom: 40px; 
  right: 40px; 
  z-index: 1000;
  display: flex; 
  align-items: center; 
  gap: 10px;
  background: var(--primary); 
  color: white;
  padding: 12px 20px; 
  border-radius: 50px;
  text-decoration: none; 
  font-weight: 600; 
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(255, 146, 51, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: cartPulse 2s ease-in-out infinite;
  white-space: nowrap;
}
.floating-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 146, 51, 0.65);
  animation-play-state: paused;
}
.floating-cart i { 
  font-size: 1.2rem; 
  flex-shrink: 0;
}
.floating-cart .cart-text { display: inline; }
.floating-cart .cart-count {
  background: white; 
  color: var(--primary);
  padding: 2px 8px; 
  border-radius: 50px;
  font-size: 0.8rem; 
  font-weight: 700;
  min-width: 24px; 
  text-align: center;
  margin-left: 4px;
}

@keyframes cartPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 4px 20px rgba(255, 146, 51, 0.45); 
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 8px 35px rgba(255, 146, 51, 0.75); 
  }
}

@media (max-width: 480px) {
  .floating-cart {
    bottom: 15px; 
    right: 15px;
    padding: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .floating-cart i { font-size: 1.3rem; }
  .floating-cart .cart-text,
  .floating-cart .cart-count { display: none !important; }
}

/* ===== 🔥 PRELOADER — RollsByTepyuk ===== */
#page-preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* 🎨 Фон прелоадера в новой палитре */
  background: linear-gradient(135deg, var(--bg-light) 0%, #eef5fb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: visible;
  opacity: 1;
}
#page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  width: 80px; height: 80px;
  margin-bottom: 24px;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.preloader-logo svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.preloader-spinner {
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border: 3px solid rgba(255, 146, 51, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  animation: fadeInOut 1.5s ease-in-out infinite;
}
.preloader-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}
@keyframes fadeInOut {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.preloader-progress {
  width: 200px; height: 4px;
  background: rgba(255, 146, 51, 0.12);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}
.preloader-progress-bar {
  height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  animation: progress 1.5s ease-in-out infinite;
}
@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
@media (max-width: 480px) {
  .preloader-logo { width: 60px; height: 60px; }
  .preloader-text { font-size: 1rem; }
  .preloader-subtext { font-size: 0.85rem; }
  .preloader-progress { width: 160px; }
}

/* ===== 🔥 ПОДКЛЮЧЕНИЕ ЛОКАЛЬНОГО ШРИФТА TolkienCyr ===== */
@font-face {
  font-family: 'TolkienCyr';
  /* Путь относительно CSS-файла (если main.css лежит в assets/css/) */
  src: url('../fonts/TolkienCyr.ttf') format('truetype');
  font-display: swap; /* Показывает текст сразу, без мерцания */
  font-weight: normal;
  font-style: normal;
}

/* 🚨 HOTFIX: Убираем отступ между фото и описанием на мобильных */
@media (max-width: 767px) {
  .rol-card-image-wrapper img {
    display: block !important;
    vertical-align: bottom !important;
    height: 180px !important;
    object-fit: cover !important;
  }
  .rol-card-image-wrapper {
    height: 180px !important;
    margin-bottom: 0 !important;
  }
  .rol-card-body {
    padding-top: 12px !important;
  }
}


/* ===== PROMO MODAL — фикс кнопки закрытия ===== */
.promo-modal .modal-content {
  position: relative;
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 60px rgba(255, 146, 51, 0.35);
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 🔹 Кнопка закрытия — позиционирование */
.promo-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.8;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.promo-modal .modal-close:hover {
  opacity: 1;
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.promo-modal .modal-close:focus {
  box-shadow: 0 0 0 3px rgba(255, 146, 51, 0.4);
  outline: none;
}

/* 🔹 Кнопка "Смотреть меню" */
.promo-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 146, 51, 0.4);
  cursor: pointer;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 146, 51, 0.55);
  color: white;
}

/* 🔹 Декоративные иконки */
.promo-decoration {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.promo-decoration i {
  font-size: 1.3rem;
  color: var(--primary);
  opacity: 0.8;
  animation: floatIcon 2s ease-in-out infinite;
}

.promo-decoration i:nth-child(2) { animation-delay: 0.2s; }
.promo-decoration i:nth-child(3) { animation-delay: 0.4s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 🔹 Заголовок с ценой */
.promo-title {
  margin: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.promo-title-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

.promo-title-price {
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.promo-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* Адаптив */
@media (max-width: 480px) {
  .promo-modal .modal-close { top: 12px; right: 12px; width: 28px; height: 28px; }
  .promo-title-main { font-size: 1.2rem; }
  .promo-title-price { font-size: 1.8rem; }
  .promo-btn { padding: 12px 24px; font-size: 1rem; }
}

/* ============================================================================
   🖼️ ПРОГРЕССИВНАЯ ЗАГРУЗКА ИЗОБРАЖЕНИЙ (skeleton + fade-in)
   Работает поверх существующих стилей .rol-card-image-wrapper
   ============================================================================ */

/* 🔥 Skeleton-лоадер (мерцание) */
.rol-card-image-wrapper .img-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f5f5f5 40%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: imgShimmer 1.5s infinite ease-in-out;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rol-card-image-wrapper .img-skeleton.hidden {
  opacity: 0;
}

@keyframes imgShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* /assets/img/placeholder.jpg */
/* 🔥 Само изображение — изначально невидимо */
.rol-card-image-wrapper .product-img {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* 🔥 Появление после загрузки */
.rol-card-image-wrapper .product-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* 🔥 Hover для загруженного изображения (поверх существующего transform) */
.rol-card:hover .rol-card-image-wrapper .product-img.loaded {
  transform: scale(1.15) rotate(2deg);
}

/* 🔥 Отключаем анимации для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rol-card-image-wrapper .img-skeleton {
    animation: none;
    background: #e8e8e8;
  }
  .rol-card-image-wrapper .product-img {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .rol-card-image-wrapper .product-img.loaded {
    transform: none;
  }
}