@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap');

/* ===================== CONFIGURATION PREMIUM ===================== */
:root {
  --primary: #ff4747;
  --primary-dark: #e03636;
  --secondary: #0f172a; /* Nwa fonse modèn */
  --accent: #ff8c42; /* Orange pou ti detay */
  --bg-main: #f8fafc; /* Gri trè lejè pwofesyonèl */
  --white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(at 0% 0%, rgba(255, 71, 71, 0.03) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(15, 23, 42, 0.02) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== TITRES & TEXTES ===================== */
h1, h2, h3, .sora {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===================== PRODUCT GRID & CARDS ===================== */
.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.product-card-modern {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 15px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-modern:hover .card-img-wrap img {
  transform: scale(1.1);
}

.card-info h3 {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 8px;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-modern {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===================== BOUTONS PREMIUM ===================== */
.btn-add-modern {
  width: 100%;
  padding: 12px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-modern:hover {
  background: var(--primary);
  box-shadow: 0 8px 15px rgba(255, 71, 71, 0.3);
}

/* ===================== SECTIONS & HEADERS ===================== */
.section-header-modern {
  margin-bottom: 40px;
  position: relative;
}

.section-header-modern h2 {
  font-size: 28px;
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.section-header-modern h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===================== MARKETPLACE BG ===================== */
.marketplace-bg {
  background: #fff;
  padding: 60px 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 100px rgba(15, 23, 42, 0.03);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .product-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ===================== SKELETON LOADER ANIMATION ===================== */
  .skeleton {
    background: #f1f5f9;
    background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
    border-radius: 15px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
  }

  @keyframes shine {
    to { background-position-x: -200%; }
  }

  .skeleton-card {
    background: white;
    padding: 20px;
    border-radius: 25px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .skeleton-img { width: 100%; aspect-ratio: 1; border-radius: 20px; }
  .skeleton-title { height: 18px; width: 85%; border-radius: 4px; }
  .skeleton-price { height: 22px; width: 40%; border-radius: 4px; }
  .skeleton-btn { height: 45px; width: 100%; border-radius: 15px; }

  .section-header-modern h2 {
    font-size: 22px;
  }
}
