/* -----------------------------
   KINOUSH STORE - Style général
   ----------------------------- */

/* --- 1. RESET DE BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

/* --- 2. HEADER / NAVBAR --- */
header {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #0d6efd; /* bleu bootstrap */
}

/* --- 3. HERO SECTION --- */
.hero-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.hero-section h1 {
  font-weight: 700;
  color: #111;
}

.hero-section p {
  color: #555;
  font-size: 1.1rem;
}

.hero-section .btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: 0.3s;
}

.hero-section .btn:hover {
  transform: translateY(-3px);
}

/* --- 4. CATEGORIES --- */
section h2 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #222;
}

.category-card {
  border: none;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease-in-out;
  padding: 2rem 1rem;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- 5. PRODUITS --- */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  border-bottom: 1px solid #eee;
  height: 250px;
  object-fit: cover;
}

.card-body h3 {
  font-size: 1rem;
  color: #333;
}

.card-body p {
  color: #0d6efd;
  font-weight: 600;
}

/* --- 6. BOUTON GLOBAL --- */
.btn-dark {
  background-color: #111;
  border: none;
}

.btn-dark:hover {
  background-color: #0d6efd;
}

/* --- 7. FOOTER --- */
footer {
  background-color: #111;
  color: #fff;
  font-size: 0.9rem;
}

footer p {
  margin: 0.2rem 0;
  color: #ddd;
}

footer .small {
  color: #aaa;
  font-size: 0.8rem;
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-section img {
    margin-top: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- 9. SPÉCIAL - EFFETS DE TRANSITION --- */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}



header {
  background: #fff;
}

header a {
  color: #111;
}

header a:hover {
  color: #0d6efd;
}


.category-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.category-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-name {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  text-align: center;
  padding: .6rem;
  font-weight: 500;
  letter-spacing: .3px;
}

.category-placeholder {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: center;
  background: #f1f1f1;
  font-size: 2rem;
  color: #999;
}
.gender-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gender-tile img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.gender-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.gender-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
}



.navbar-brand img {
  height: 55px;
  object-fit: contain;
}

.navbar-brand span {
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #111;
}







/* --- LOGO HEADER --- */
.logo-header {
  height: 70px;      /* 🔥 Ajuste la taille ici */
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}


/* --- HEADER & LOGO --- */
.logo-small {
  height: 40px;   /* Tu peux mettre 30, 35, 45 selon ce que tu préfères */
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

header .container {
  gap: 1rem;  /* évite les énormes espaces */
}


.btn-back {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #000;
  border-radius: 6px;
  color: #000;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-back:hover {
  background: #000;
  color: #fff;
}
/* --- HEADER ICONES --- */
.header-icon img {
  height: 26px;          /* taille de l'icône */
  width: auto;
  object-fit: contain;
  transition: 0.2s ease;
  opacity: 0.85;
}

.header-icon img:hover {
  opacity: 1;
  transform: scale(1.1); /* léger zoom au survol */
}

.icon-bar {
  gap: 20px; /* espace entre icônes */
}


/* --- ICONES HEADER PREMIUM --- */
.icon-bar {
  gap: 18px;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f3f3f7;              /* petit fond clair rond */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-icon img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.header-icon:hover {
  background: #111;                 /* cercle noir au survol */
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

.header-icon:hover img {
  filter: brightness(2);            /* ic??ne plus lumineuse sur fond noir */
}


/* --- Product detail media --- */
.product-detail-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  background: #f3f3f3;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-placeholder {
  width: 100%;
  height: 100%;
  background: #e1e1e1;
}

@media (max-width: 768px) {
  .product-detail-media {
    aspect-ratio: 1 / 1;
    max-height: 420px;
  }
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3366;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --- Réseaux sociaux footer --- */
.social-icon img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  filter: invert(1);          /* Icônes blanches sur fond dark */
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover img {
  opacity: 1;
  transform: translateY(-2px);
}



/* Icônes header */
.header-icon img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: .85;
  transition: all .2s ease;
}
.header-icon:hover img{
  opacity: 1;
  transform: translateY(-1px);
}

/* Badge panier */
.cart-badge{
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}



.header-icon img{
  height: 20px;
  width: 20px;
  object-fit: contain;
  opacity: .9;
  transition: .2s;
}
.header-icon:hover img{ opacity: 1; transform: translateY(-1px); }

.cart-badge{
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff2d55;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}





.header-icon { position: relative; display: inline-flex; align-items: center; }
.header-icon img { height: 22px; width: 22px; }

.cart-badge{
  position:absolute;
  top:-6px;
  right:-8px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#dc3545;
  color:#fff;
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

/* --- HEADER MOBILE --- */
.header-wrap {
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.main-nav a:hover {
  color: #0d6efd;
}

.menu-toggle {
  display: none;
  border: none;
  background: #f3f3f7;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .main-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
  }

  .main-nav a {
    width: 100%;
    padding: 0.35rem 0;
  }

  .navbar-brand {
    order: 1;
  }

  .icon-bar {
    order: 3;
    margin-left: auto;
  }
}

/* ------------------------------------------------------------------
   Theme v2 (Overrides) - more premium look without changing behavior
   ------------------------------------------------------------------ */
:root {
  --bg: #0b0f1a;
  --bg2: #0f1b2d;
  --surface: #ffffff;
  --surface2: rgba(255, 255, 255, 0.86);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.62);
  --border: rgba(11, 18, 32, 0.10);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --brand: #2a6cff;
  --brand2: #00d1b2;
  --brand3: #ff2d55;
}

body {
  font-family: "Plus Jakarta Sans", "Poppins", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(42, 108, 255, 0.28), rgba(0, 0, 0, 0) 60%),
    radial-gradient(1000px 500px at 85% 0%, rgba(0, 209, 178, 0.22), rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8ff 40%, #f7f7fb 100%);
  color: var(--text);
}

main {
  min-height: 60vh;
}

/* Header: glassy + crisp */
header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: none;
}

.brand-text {
  font-family: "Fraunces", "Plus Jakarta Sans", "Poppins", serif;
  letter-spacing: 0.6px;
}

.navbar-brand img {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.10));
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0.2rem;
  color: rgba(11, 18, 32, 0.84);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.12rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.9;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.icon-bar {
  gap: 14px;
}

.header-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.10);
}

.header-icon:hover {
  background: rgba(11, 18, 32, 0.92);
}

/* Buttons */
.btn {
  border-radius: 999px;
}

.btn-dark {
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(11, 18, 32, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.18);
}

.btn-dark:hover {
  background: linear-gradient(135deg, rgba(42, 108, 255, 0.95), rgba(0, 209, 178, 0.75));
}

.btn-outline-dark {
  border-color: rgba(11, 18, 32, 0.25);
  color: rgba(11, 18, 32, 0.9);
}

.btn-outline-dark:hover {
  border-color: rgba(11, 18, 32, 0.10);
  background: rgba(11, 18, 32, 0.06);
}

/* Cards */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.08);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(11, 18, 32, 0.14);
}

.card-img-top {
  height: auto;
  aspect-ratio: 4 / 5;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 14px;
  border-color: rgba(11, 18, 32, 0.14);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(42, 108, 255, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(42, 108, 255, 0.14);
}

/* Home hero */
.hero-section.hero-home {
  background:
    radial-gradient(900px 450px at 15% 30%, rgba(42, 108, 255, 0.20), rgba(0, 0, 0, 0) 60%),
    radial-gradient(800px 420px at 80% 10%, rgba(0, 209, 178, 0.18), rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.hero-section.hero-home .display-5 {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  letter-spacing: 0.2px;
}

.hero-section.hero-home img.img-fluid {
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.18);
}

/* Gender tiles */
.gender-tile {
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(11, 18, 32, 0.14);
}

.gender-tile img {
  height: 320px;
}

.gender-label {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 1.2rem 1rem;
}

/* Subtle page entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: fadeUp 0.35s ease both;
}

/* Mobile polish */
@media (max-width: 768px) {
  header {
    background: rgba(255, 255, 255, 0.88);
  }
  .hero-section.hero-home img.img-fluid {
    border-radius: 22px;
  }
  .gender-tile img {
    height: 220px;
  }
}
