/* ============================================================
   THEREZA MARKET 237 — custom.css
   Palette : Fuchsia #E91E8C · Noir #0a0a0a · Blanc #ffffff
   ============================================================ */

/* ========================================
   VARIABLES ET CONFIGURATION DE BASE
   ======================================== */
:root {
  /* — Couleurs principales Thereza Market 237 — */
  --tm-fuchsia:        #E91E8C;
  --tm-fuchsia-dark:   #C0166F;
  --tm-fuchsia-light:  #fce4f1;
  --tm-fuchsia-glow:   rgba(233, 30, 140, 0.25);
  --tm-black:          #0a0a0a;
  --tm-dark:           #1a1a1a;
  --tm-gray-dark:      #333333;
  --tm-gray-mid:       #666666;
  --tm-gray-light:     #f7f7f7;
  --tm-white:          #ffffff;

  /* — Effets — */
  --tm-transition:     all 0.3s ease;
  --tm-radius:         8px;
  --tm-radius-lg:      14px;
  --tm-shadow-sm:      0 2px 10px rgba(0,0,0,0.08);
  --tm-shadow-md:      0 6px 24px rgba(0,0,0,0.12);
  --tm-shadow-fuchsia: 0 6px 24px rgba(233,30,140,0.30);
}

/* ========================================
   SCROLL SMOOTH & BASE
   ======================================== */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   HEADER ET NAVIGATION
   ======================================== */
#header {
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: var(--tm-white);
  border-bottom: 2px solid var(--tm-fuchsia-light);
}

.header-top {
  background: var(--tm-black);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.header-top a{
  color: var(--tm-fuchsia-light) !important;
}
.header-top a:hover{
  color: none;
}

#_desktop_logo {
  transition: var(--tm-transition);
}

#_desktop_logo:hover {
  transform: scale(1.04);
}

/* Menu principal */

.top-menu a {
  color: var(--tm-gray-dark);
  font-weight: 500;
  padding: 15px 20px;
  transition: var(--tm-transition);
  position: relative;
}

.top-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--tm-fuchsia);
  transition: var(--tm-transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.top-menu a:hover {
  color: var(--tm-fuchsia);
}

.top-menu a:hover::after {
  width: 75%;
}

/* Barre de recherche */
#search_widget input[type="text"] {
  border: 2px solid var(--tm-gray-light);
  border-radius: 25px;
  padding: 10px 20px;
  transition: var(--tm-transition);
}

#search_widget input[type="text"]:focus {
  border-color: var(--tm-fuchsia);
  box-shadow: 0 0 0 3px var(--tm-fuchsia-light);
  outline: none;
}

#search_widget button {
  background: var(--tm-fuchsia);
  color: var(--tm-white);
  border-radius: 25px;
  padding: 10px 20px;
  border: none;
  transition: var(--tm-transition);
}

#search_widget button:hover {
  background: var(--tm-fuchsia-dark);
  transform: translateY(-2px);
  box-shadow: var(--tm-shadow-fuchsia);
}

/* ========================================
   CAROUSEL / BANNIÈRE PRINCIPALE
   Style : Glamour féminin · Thereza Market 237
   ======================================== */

/* — Conteneur global — */
#homeslider,
.homeslider-container,
.carousel {
  min-height: 90vh;
}

/* — Chaque slide — */
.carousel .carousel-item,
#homeslider .homeslider-description,
.homeslider-container .carousel-item {
  min-height: 90vh;
}

/* — Voile dégradé latéral fuchsia/noir — */
.carousel .carousel-item::before,
.homeslider-container .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(233, 30, 140, 0.12) 40%,
    rgba(233, 30, 140, 0.08) 60%,
    rgba(10, 10, 10, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/*.img-fluid{*/
/*  display: none;*/
/*}*/

/* — Ligne décorative fuchsia verticale à gauche —
.carousel .carousel-item::after,
.homeslider-container .carousel-item::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 8%;
  width: 3px;
  height: 55%;
  background: linear-gradient(180deg, var(--tm-fuchsia) 0%, transparent 100%);
  z-index: 2;
  border-radius: 2px;
} */


/* — Bloc de texte du carousel (thème Classic / thème standard) — */
.carousel .caption,
.carousel-caption,
#homeslider .homeslider-description .caption {
  position: absolute !important;
  z-index: 5;
  color: var(--tm-white) !important;
  text-align: left;
  left: 11% !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  padding: 0;
}

/* — Étiquette décorative au-dessus du titre — */
.carousel .caption::before,
.carousel-caption::before {
  content: "✦  CHEZ THEREZA  MARKET 237";
  display: block;
  font-size: 20px;
  font-weight: 700;
  max-width: 60vw;
  letter-spacing: 0.22em;
  color: var(--tm-fuchsia-light);
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
}

/* — Titre h2 — */
.carousel .caption h2,
.carousel-caption h2 {
  color: var(--tm-white) !important;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  max-width: 60vw;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* Mot-clé mis en valeur avec <span> dans le titre */
.carousel .caption h2 span,
.carousel-caption h2 span {
  color: var(--tm-fuchsia);
  font-style: italic;
}

/* — Description — */
.carousel .caption p,
.carousel-caption p {
  color: rgba(255,255,255,0.80) !important;
  font-size: 1.05rem;
  line-height: 1.70;
  margin-bottom: 32px;
  font-weight: 300;
  min-width: 55vw;
}

/* — Bouton principal du carousel — */
.carousel .caption a,
.carousel .caption .btn,
.carousel-caption a,
.carousel-caption .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--tm-fuchsia);
  color: var(--tm-white) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--tm-fuchsia);
  transition: var(--tm-transition);
  box-shadow: var(--tm-shadow-fuchsia);
  position: relative;
  overflow: hidden;
}

.carousel .caption a::before,
.carousel-caption a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.carousel .caption a:hover,
.carousel-caption a:hover {
  background: transparent;
  color: var(--tm-fuchsia) !important;
  border-color: var(--tm-fuchsia);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(233,30,140,0.45);
}

/* — Indicateurs (pastilles en bas) — */
.carousel-indicators li,
.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tm-dark);
  border: none;
  opacity: 1;
  margin: 0 5px;
  transition: var(--tm-transition);
  cursor: pointer;
  display: none;
}

.carousel-indicators .active,
.carousel-indicators button.active {
  background: var(--tm-fuchsia);
  transform: scale(1.35);
}

/* — Flèches de navigation — */
.carousel-control-prev,
.carousel-control-next {
  transform: translateY(-50%);
  bottom: auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  opacity: 0.2;
  transition: var(--tm-transition);
  backdrop-filter: blur(4px);
}

.carousel-control-prev {
  left: 24px;
}

.carousel-control-next {
  right: 24px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: transparent;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: brightness(2);
}

/* — Animation d'entrée du texte sur chaque slide active — */
.carousel-item.active .caption,
.carousel-item.active .carousel-caption {
  animation: tmSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tmSlideIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 24px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* — Responsive carousel — */
@media (max-width: 992px) {
  .carousel .carousel-item,
  .homeslider-container .carousel-item {
    min-height: 400px;
  }

  .carousel .caption,
  .carousel-caption {
    max-width: 70%;
    left: 8% !important;
  }

  .carousel .caption h2,
  .carousel-caption h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .carousel .carousel-item,
  .homeslider-container .carousel-item {
    min-height: 320px;
  }

  .carousel .caption,
  .carousel-caption {
    max-width: 88%;
    left: 6% !important;
  }

  .carousel .caption h2,
  .carousel-caption h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .carousel .caption p,
  .carousel-caption p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .carousel .caption a,
  .carousel-caption a {
    padding: 11px 24px;
    font-size: 0.78rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 38px;
    height: 38px;
  }

  .carousel .carousel-item::after {
    display: none;
  }
}

/* ========================================
   BOUTONS GÉNÉRAUX
   ======================================== */
.btn-primary,
.btn.btn-primary {
  background: var(--tm-fuchsia);
  border: 2px solid var(--tm-fuchsia);
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--tm-transition);
  box-shadow: 0 4px 15px var(--tm-fuchsia-glow);
  color: var(--tm-white);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--tm-fuchsia-dark);
  border-color: var(--tm-fuchsia-dark);
  transform: translateY(-2px);
  box-shadow: var(--tm-shadow-fuchsia);
}

.btn-secondary {
  background: var(--tm-gray-dark);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--tm-transition);
  color: var(--tm-white);
}

.btn-secondary:hover {
  background: var(--tm-black);
  transform: translateY(-2px);
}

.product-miniature__title,
.product-miniature__quickview_button,
.new {
  color: var(--tm-fuchsia) !important;
}
.new{
  display: none;
}


/* ========================================
   PANIER
   ======================================== */
.blockcart {
  position: relative;
}

.cart-products-count {
  background: var(--tm-fuchsia);
  color: var(--tm-white);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background: linear-gradient(135deg, var(--tm-black) 0%, #1f0011 100%);
  color: var(--tm-white);
  padding: 48px 0 24px;
  border-top: 3px solid var(--tm-fuchsia);
}

#footer h3 {
  color: var(--tm-white);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.rtl-flip{
  display: none;
}

.all-product-link {
  color: var(--tm-fuchsia);
  border-color: var(--tm-fuchsia);
} 
.all-product-link:hover{
  background-color: var(--tm-fuchsia);
  border-color: var(--tm-fuchsia);
}

#footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--tm-fuchsia);
  border-radius: 2px;
}

#footer a {
  color: rgba(255,255,255,0.70);
  transition: var(--tm-transition);
  display: inline-block;
}

#footer a:hover {
  color: var(--tm-fuchsia);
  transform: translateX(5px);
  text-decoration: none;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  background: var(--tm-gray-light);
  border-radius: var(--tm-radius);
  padding: 14px 20px;
}

.breadcrumb-item.active {
  color: var(--tm-fuchsia);
  font-weight: 600;
}

.breadcrumb-item a {
  color: var(--tm-gray-mid);
  transition: var(--tm-transition);
}

.breadcrumb-item a:hover {
  color: var(--tm-fuchsia);
  text-decoration: none;
}

/* ========================================
   FORMULAIRES
   ======================================== */
.form-control {
  border: 2px solid #e8e8e8;
  border-radius: var(--tm-radius);
  padding: 12px 15px;
  transition: var(--tm-transition);
}

.form-control:focus {
  border-color: var(--tm-fuchsia);
  box-shadow: 0 0 0 3px var(--tm-fuchsia-light);
  outline: none;
}

/* ========================================
   ALERTES ET NOTIFICATIONS
   ======================================== */
.alert-success {
  background: #fff0f7;
  border-color: var(--tm-fuchsia);
  color: var(--tm-fuchsia-dark);
  border-radius: var(--tm-radius);
}

.alert-info {
  background: var(--tm-fuchsia-light);
  border-color: var(--tm-fuchsia);
  color: var(--tm-fuchsia-dark);
  border-radius: var(--tm-radius);
}

/* ========================================
   CARDS ET BOÎTES PRODUIT
   ======================================== */
.card,
.box {
  border-radius: var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-sm);
  transition: var(--tm-transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.card:hover,
.box:hover {
  box-shadow: 0 10px 30px rgba(233,30,140,0.12);
  transform: translateY(-3px);
}

/* Prix mis en avant */
.price {
  color: var(--tm-fuchsia) !important;
  font-weight: 700;
}

/* Badge "Nouveau" / "Promo" */
.product-flag,
.badge-new,
.badge-sale {
  background: var(--tm-fuchsia) !important;
  color: var(--tm-white) !important;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

/* ========================================
   RESPONSIVE GÉNÉRAL
   ======================================== */
@media (max-width: 768px) {
  .top-menu a {
    padding: 10px 14px;
  }
}