/* Combined CSS from globals.css and navbar.css */

/* Modern Navbar Styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
    z-index: 1030;
  }
  
  .navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: #f61919 !important;
    letter-spacing: 0.5px;
  }
  
  .navbar-brand i {
    color: #f61919;
  }
  
  .navbar-nav .nav-link {
    position: relative;
    font-weight: 300;
    font-size: 1.05rem;
    color: #333 !important;
    margin-left: 1.5rem;
    transition: color 0.3s ease-in-out;
    padding-bottom: 3px;
  }
  
  /* Underline animation effect */
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #f61919;
    transition: width 0.3s ease-in-out;
  }
  
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 100%;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #f61919 !important;
  }
  
  .navbar-toggler {
    border: none;
    border-radius: 5px !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Global Styles */
  .bg-orange{
      background-color: #f61919;
  }
  .bg-blue{
      background-color: #2f3ba5;
  }
  .text-orange{
      color: #f61919 !important;
  }
  .btn-orange{
      background-color: #f61919 !important;
      color: #ffffff !important;
      font-weight: 100 !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      position: relative;
      overflow: hidden;
  }
  
  .btn-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }
  
  .btn-orange:hover::before {
    left: 100%;
  }
  
  .btn-orange:hover{
      background-color: #f61919d2 !important;
  }
  .opacity-50{
      opacity: 0.5;
  }
  .blur-img{
      display: block;
      max-width: 100%;
      height: auto;
      filter: blur(3px);
      transform: translateZ(0);
      will-change: filter;
  }
  .shadow-end {
      box-shadow: 15px 0 15px -5px rgba(0,0,0,0.3) !important;
  }
  .header-text {
      z-index: 9999;
      color: #f61919;
  }
  .z-index-999{
      z-index: 999;
  }
  .header-text-container {
      background: rgba(170, 61, 61, 0.4);
      backdrop-filter: blur(5px);
      color: #ffffff;
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      max-width: 90%;
  }
  @media (max-width: 768px) {
      .header-text-container {
      padding: 1.5rem;
      }
  }
  .splash-container {
      background-color: #f8f9fa;
      position: relative;
      overflow: hidden;
  }
  .splash-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
  }
  .splash-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.9;
      pointer-events: none;
  }
  
  /* Z-index fixes */
  .carousel {
      position: relative;
  }
  
  .carousel-item img {
      height: 100vh;
      object-fit: cover;
      width: 100%;
  }
  
  /* Ensure overlay text is above carousel images */
  .header-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      opacity: 0;
      animation: fadeInOverlay 1.2s ease-out 0.5s forwards;
      
  }

  @keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply different delays for staggered animation */
.animate-fade-up[data-delay="0.2"] {
    animation-delay: 0.3s;
}

.animate-fade-up[data-delay="0.4"] {
    animation-delay: 0.3s;
}

.animate-fade-up[data-delay="0.6"] {
    animation-delay: 0.3s;
}

/* Optional: Add a subtle scale effect for the button on hover */
.btn-orange {
    transition: all 0.3s ease;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
  
  /* Carousel controls should be above overlay text */
  .carousel-control-prev,
  .carousel-control-next {
      z-index: 3;
      opacity: 0 !important;
  }
  
  .carousel-indicators {
      z-index: 3;
  }
  
  /* Adjust for fixed navbar */
  header {
     
  }

  /* Ensure main content starts after navbar on all pages */
  main {
      
  }

  /* Mobile-specific navbar adjustments */
  @media (max-width: 768px) {
      .navbar {
          padding: 0.75rem 0;
      }

      header {
         
      }

      main {
          
      }
  }
  
  /* Cart Styles */
  .cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f61919;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(246, 25, 25, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }
  
  .cart-button:hover {
    transform: scale(1.1);
  }

  .clear-cart-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
  }

  .clear-cart-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    box-shadow: 0 6px 25px rgba(246, 25, 25, 0.6);
  }
  
  .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #2f3ba5;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
  }
  
  /* Sidebar du panier */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .cart-sidebar.open {
    right: 0;
  }
  
  .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .cart-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
  }
  
  .cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
  }
  
  .close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close-cart:hover {
    color: #f61919;
  }
  
  .cart-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
  }
  
  .cart-item {
    display: flex;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 0.5rem;
  }

  .cart-item:last-child {
    margin-bottom: 0;

  }

  .cart-item-details {
    flex: 1;
  }

  .cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
  }

  .cart-item-reference {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
  }

  .cart-item-attributes {
    font-size: 0.75rem;
    color: #6c757d;
  }

  .cart-item-price {
    color: #f61919;
    font-weight: 600;
  }
  
  .cart-item-actions {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .quantity-btn:hover {
    background-color: #f8f9fa;
  }
  
  .quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 0.5rem;
    padding: 0.25rem;
  }
  
  .remove-item {
    color: #999;
    background: none;
    border: none;
    margin-left: auto;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .remove-item:hover {
    color: #f61919;
  }
  
  .cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
  }
  
  .cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
  }
  
  .checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #f61919;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
  }
  
  .checkout-btn:hover {
    background-color: #e01616;
  }
  
  .empty-cart {
    text-align: center;
    padding: 2rem 0;
    color: #666;
  }
  
  .empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
  }

 

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-weight: 600;
    color: #dc3545;
    font-size: 0.9rem;
}

.remove-from-cart {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
}

.remove-from-cart:hover {
    color: #c82333;
}

/* Toast Styles */
.toast-container {
    z-index: 9999;
}

.toast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
  
  /* Animation pour les cartes au survol */
  .card-hover-animation {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
  }
  
  .card-hover-animation:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Animation pour les icônes */
  .icon-animation {
    transition: all 0.4s ease;
    display: inline-block;
  }
  
  .card-hover-animation:hover .icon-animation {
    transform: scale(1.1) rotate(5deg);
    color: #e01616 !important;
  }
  
  /* Animation d'entrée personnalisée pour AOS */
  [data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
  }
  
  [data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Animation pour le titre principal */
  [data-aos="fade-up"]:first-child {
    transition-delay: 0.1s;
  }
  
  /* Smooth scrolling pour toute la page */
  html {
    scroll-behavior: smooth;
  }
  
  /* Responsive */
  @media (max-width: 576px) {
    .cart-sidebar {
      max-width: 95%;
    }

    .cart-button {
      width: 60px;
      height: 60px;
      bottom: 20px;
      right: 20px;
    }

.cart-item {
  padding: 0.625rem;
  margin-bottom: 0.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile-specific cart adjustments */
.cart-item:last-child {
  margin-bottom: 0;
}

.cart-body {
  padding: 1rem;
  padding-bottom: 0.5rem;
}

.cart-item-image {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.cart-item-content {
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.85rem;
  margin-bottom: 0.125rem;
}

.cart-item-reference {
  font-size: 0.7rem;
}

.cart-item-attributes {
  font-size: 0.7rem;
}

.cart-item-actions {
  gap: 0.5rem;
}

.quantity-controls {
  padding: 0.2rem;
}

.quantity-btn {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.quantity-display {
  min-width: 20px;
  font-size: 0.8rem;
}

.cart-item-total {
  font-size: 0.85rem;
}

.remove-from-cart {
  padding: 0.25rem;
  font-size: 0.8rem;
}
  }

/* Responsive adjustments for cuisine section */
@media (max-width: 992px) {

    #productCarousel .carousel-item div {
      height: 220px !important;
    }
  }
  
@media (max-width: 768px) {
    .bg-orange {
    text-align: center;
    }
    .bg-orange h2 {
    font-size: 1.6rem;
    }
    .bg-orange p {
    font-size: 1rem;
    }
    #coverCarousel img {
    height: 250px !important;
    }
    
    .card-hover-animation:hover {
    transform: translateY(-5px);
    }
}