/* ============================================================
   MUYUSTORE — Styles custom communs
   Ce fichier regroupe tous les styles qui étaient dupliqués
   dans le <style> de chaque page.
   ============================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #eaf4ff 0%, #f3f6fa 12%, #f3f6fa 100%);
  min-height: 100vh;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c8d6e0;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38b6ff;
}

.scroll-hide::-webkit-scrollbar { display: none; }
.scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PRODUCT CARD ─── */
.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px -10px rgba(56, 182, 255, 0.18),
              0 4px 12px -2px rgba(0, 0, 0, 0.06);
}
.product-card .product-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img {
  transform: scale(1.08);
}

/* ─── CATEGORY CARD ─── */
.category-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}
.category-card:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px -6px rgba(56, 182, 255, 0.22);
  border-color: rgba(56, 182, 255, 0.35);
  background: #f0f9ff;
}

/* ─── SEARCH INPUT ─── */
.search-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-input:focus {
  border-color: #38b6ff;
  box-shadow: 0 0 0 4px rgba(56, 182, 255, 0.12);
}
.search-input::placeholder {
  color: #9ca3af;
}

/* ─── MARQUEE ─── */
.marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-marquee 35s linear infinite;
}
@keyframes scroll-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ─── CAROUSEL DOTS ─── */
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-dot.active {
  background: #ffffff;
  width: 28px;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* ─── BADGE PULSE ─── */
.badge-promo {
  animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* ─── SCROLL TO TOP ─── */
#scrollTopBtn {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── HEADER SCROLL GLASS ─── */
.header-scrolled {
  background: rgba(56, 182, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ─── BUTTON HOVER GLOW ─── */
.btn-glow {
  transition: all 0.25s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.4);
}

/* ─── SECTION TITLE ACCENT ─── */
.section-title {
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #38b6ff, #7fd3ff);
}

/* ─── LOADING SHIMMER ─── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── EMPTY STATE BOUNCE ─── */
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-icon {
  animation: float-icon 3s ease-in-out infinite;
}