 :root {
            --primary-color: #39af4a;
            --secondary-color: #2ecc71;
            --background-color: #f4f4f4;
            --text-color: #333;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .container {
            margin: 0 auto;
            padding: 20px;
            display: flex;
        }
.mobile-menu-btn {
    font-size: 30px;
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
    }

    nav .nav-container {
        display: none;
    }

    nav.active .nav-container {
        display: flex;
        flex-direction: column;
    }
}




        /* 📱 Version Mobile */
@media (max-width: 768px) {
    
    nav {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content,
    .dropdown-sub-content {
        position: relative !important;
        width: 100%;
    }

    .search-container {
        width: 100%;
    }

    #product-list.grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #product-list.list-view {
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        width: 100%;
        position: relative;
        order: 2;
    }

    .recommendations {
        width: 100%;
    }
}




.sidebar {
  width: 235px;
  background-color: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-right: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
 }

.sidebar h2 {
  font-size: 1.75em;
  margin-bottom: 25px;
  color: #f39200;//var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid #f39200;//var(--primary-color);
  padding-bottom: 10px;
}

#filters {
  list-style-type: none;
  color: #f39200;
  padding: 0;
  margin: 0;
}

#filters li {
    cursor: pointer;
    color: #f39200;
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#filters li:hover {
  background-color: #f39200;//var(--primary-color);
  color: #fff;
  transform: translateX(5px);
}

#filters li::after {
  content: '→';
  opacity: 0;
  transition: opacity 0.3s ease;
}

#filters li:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}
#advanced-filter {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 15px;
  color: #f39200;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 20px auto;
}

#advanced-filter div {
  margin-bottom: 20px;
}

#advanced-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f39200;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#advanced-filter input[type="number"],
#advanced-filter select {
  width: 100%;
  padding: 6px 15px;
  border: 1px solid #f39200;//#e1e5ee;
  border-radius: 8px;
  font-size: 1em;
  color: f39200;//#495057;
  transition: all 0.3s ease;
  background-color: #fff;
}

#advanced-filter input[type="number"]:focus,
#advanced-filter select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

#advanced-filter select {
  appearance: none;
  color: #f39200;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

#advanced-filter button {
    width: 100%;
    padding: 3px 20px;
    background-color: #f39200;//var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

 #advanced-filter button:hover {
   background-color: #f39200;//var(--primary-color-dark);
   transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}  

@media (max-width: 480px) {
  #advanced-filter {
    padding: 20px;
  }
  
  #advanced-filter input[type="number"],
  #advanced-filter select,
  #advanced-filter button {
    padding: 6px 12px;
    color: #f39200;
  }
}
        main {
            flex-grow: 1;
        }

        .view-icons {
            text-align: right;
            margin-bottom: 20px;
        }

        .view-icon {
            cursor: pointer;
            margin-left: 10px;
            fill: #f39200;//var(--text-color);
            transition: fill 0.3s ease;
        }

        /* .view-icon:hover {
            fill: #f39200;//var(--primary-color);
        } */

        #product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 20px;
        }

        .product {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 6px var(--shadow-color);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px var(--shadow-color);
        }

        .product img {
            width: 100%;
            height: 200px;
            cursor: pointer;
            object-fit: cover;
        }

        .product-content {
            color: #f39200;//recent ajouter pour la a adapter
            padding: 15px;
        }

.product h3 {
    text-align: center;
    color: #f39200;
    font-size: 0.9em;
    margin-bottom: 10px;
    height: 55px; /* Fixe la hauteur de la description */
}


        .product-actions {
            display: flex;
            justify-content: space-between;
        }

        .product-actions button {
            background: none;
            border: none;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .details-btn{
            color: red;
        }

        .product-actions button:hover {
            transform: scale(1.1);
           
        }

p{
    color: #f39200;
}
.comparison-modal {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden; /* Changé de overflow-x: auto à overflow: hidden */
}

.comparison-modal .table-container {
  overflow-x: auto; /* Ajout d'un conteneur avec défilement horizontal */
  max-height: 80vh; /* Limite la hauteur maximale */
  padding-bottom: 1rem; /* Espace pour la barre de défilement */
}

.comparison-modal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
}
.comparison-modal th, .comparison-modal td {
  border: none;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.comparison-modal th {
  background-color: #72b03a;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-modal tr {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.comparison-modal tr:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.comparison-modal td:first-child,
.comparison-modal th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.comparison-modal td:last-child,
.comparison-modal th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.comparison-modal td {
  background-color: #f8f9fa;
  color: #333;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
   .comparison-modal {
    padding: 1rem;
    margin: 1rem auto;
  }
  
  .comparison-modal .table-container {
    max-height: 70vh;
  }
  
  .comparison-modal th, .comparison-modal td {
    padding: 0.8rem;
    font-size: 0.8rem;
  }
}

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

.comparison-modal {
  animation: fadeIn 0.5s ease-in-out;
}
  .eye-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.eye-btn:hover {
    background-color: #f39200;//rgba(255, 255, 255, 1);
}

.eye-btn svg {
    width: 20px;
    height: 20px;
}
        #pagination {
            text-align: center;
            margin-top: 30px;
        }
.recommendations {
    width: 250px;
    margin-left: 20px;
    background-color: #f39200;//f7f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px var(--shadow-color);
}
.navigation-history {
    color: #f39200;
    margin-top: 40px;
    padding: 25px;
    background-color: #f0f4f8;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}
button.remove-cart-btn {

     border-radius: 3px;
    cursor: pointer;
    padding: 5px;
    width: 70px;
    color: #f39200;
    border: none;
    background-color: #ff5555;
}
.navigation-history:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.h2{
    text-align:center;
    text-transform: uppercase;
}

 h3{
    color: #f39200;
}
#navigation-history {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #ecf0f1;
}

#navigation-history::-webkit-scrollbar {
    height: 6px;
}

#navigation-history::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 10px;
}

#navigation-history::-webkit-scrollbar-thumb {
    background-color: #bdc3c7;
    border-radius: 10px;
}

.history-item {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    transition: transform 0.3s ease;
}

.history-item:hover {
    transform: translateY(-5px);
}

.history-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.history-item img:hover {
    transform: scale(1.05);
}

#recommended-products .product {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#recommended-products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#recommended-products .product:last-child {
    border-bottom: none;
}

#recommended-products img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#recommended-products img:hover {
    transform: scale(1.05);
}

#recommended-products h3 {
    font-size: 1em;
    margin: 15px 0 10px;
    color: #f39200;//#2c3e50;
}

#recommended-products p {
    font-size: 1em;
    color: #f39200;//var(--primary-color);
    font-weight: 600;
}

#recommended-products .details-btn {
    display: block;
    margin: auto;
    background-color: #f39200;//var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-btn{
    color: #f39200;
    border: none;
}

#recommended-products .details-btn:hover {
    background-color:  #f39200;//var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn {
    margin: 0 8px;
    padding: 10px 20px;
    background-color: #f39200;//var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-btn:hover, .page-btn:focus {
    background-color: #f39200;//darken(var(--primary-color), 10%);
    box-shadow: var(--box-shadow);
}

.page-btn.active {
    background-color: #f39200;//var(--secondary-color);
}

#product-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#product-list.list-view .product {
    display: flex;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

#product-list.list-view .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#product-list.list-view .product img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

#product-list.list-view .product-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#product-list.list-view .product-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

#product-list.list-view .product-actions button {
    padding: 8px 16px;
    background-color: #f39200;
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

#product-list.list-view .product-actions button:hover {
    background-color: darken(var(--primary-color), 10%);
}
@media (max-width: 768px) {
    #product-list.list-view .product {
        flex-direction: column;
    }

    #product-list.list-view .product img {
        width: 100%;
        height: 200px;
    }

    #product-list.list-view .product-content {
        padding: 20px;
    }
}
   .modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 1000;
    max-width: 80%;
    width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.modal.show {
    display: block;
}

.product-detail-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
h2.recomm {
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1.2em;
}
.modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
div#product-modal {
    overflow: auto;
    width: 100%;
    z-index: 1003;
}
.modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.product-info {
    margin-top: 15px;
}

.price {
     /* visibility: hidden;//cacher le price des articles sur le site */
    font-weight: hidden;

    color: #f39200;//var(--primary-color);
}

.description {
    text-align:center;
    color: #000;//#f39200;
    margin-top: 10px;
      height: 70px; /* Fixe la hauteur de la description */
}

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .overlay.show {
            display: block;
        }

        #cart, #favorites {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100%;
            background-color: #fff;
            box-shadow: -4px 0 10px var(--shadow-color);
            transition: right 0.3s ease-in-out;
            z-index: 1000;
            overflow-y: auto;
            padding: 20px;
        }

        #cart.show, #favorites.show {
            z-index:1002;
            right: 0;
        }

        .cart-icon, .fav-icon {
            position: fixed;
            bottom: 5px;
            right: 30px;
            background-color: #f39200;//var(--primary-color);
            color: #fff;
            padding: 15px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 4px 6px var(--shadow-color);
            transition: background-color 0.3s ease, transform 0.3s ease;
            z-index: 1001;
        }
        

.cart-count, .fav-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f39200;;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}
#compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    color: #f39200;
    background-color: #f39200;//rgb(226 226 226 / 58%);
    padding: 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
button#compare-now {
    font-weight: 600;
    color: #fff;
    background-color: #f39200;//#72b03a;
    border: none;
    width: 140px;
    cursor: pointer;
    border-radius: 15px;
    display: block;
    margin: auto;
    padding: 6px;
}
button.remove-compare {
    font-weight: 600;
    color: #fff;
    background-color: #f39200;//#72b03a;
    border: none;
    width: 140px;
    cursor: pointer;
    border-radius: 15px;
    display: block;
    margin: auto;
    padding: 6px;
}
#compare-products {
    margin-left: 50px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

#compare-products::-webkit-scrollbar {
  height: 8px;
}

#compare-products::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#compare-products::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#compare-products .compare-item {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 15px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#compare-products .compare-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

#compare-products img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#compare-products img:hover {
  transform: scale(1.1);
}

#close-compare-bar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;//var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

#close-compare-bar:hover {
  /* color:#f39200; //var(--accent-color); */
  transform: rotate(90deg) scale(1.2);
}

#compare-bar.is-hidden {
  transform: translateY(100%);
}

.cart-icon:hover, .fav-icon:hover {
  background-color: while;//#2980b9;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fav-icon {
  right: 120px;
  color: #ffffff;
  background-color: #f39200;//var(--secondary-color);
}

.cart-icon:hover{
     background-color: #ffffff;
}

.fav-icon:hover {
  background-color: #ffffff;//#27ae60;
}
.p{
    height:50px;
}

        .notification {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #e74c3c;
            color: #fff;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 12px;
            font-weight: bold;
        }

        .close-sidebar {
            position: absolute;
            top: 20px;
            right: 20px;
            cursor: pointer;
            font-size: 24px;
            color: var(--text-color);
            transition: color 0.3s ease;
        }

        .close-sidebar:hover {
            color: var(--primary-color);
        }

        .cart-item, .fav-item {
            background-color: #f9f9f9;
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
.share-buttons {
    margin-top: 100px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.share-btn {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-btn[data-platform="facebook"] {
    background-color: #3b5998;
    color: white;
}

.share-btn[data-platform="twitter"] {
    background-color: #1da1f2;
    color: white;
}

.share-btn[data-platform="whatsapp"] {
    background-color: #25d366;
    color: white;
}

.share-btn[data-platform="email"] {
    background-color: #d44638;
    color: white;
}

.share-btn:hover {
    opacity: 0.8;
}
        .remove-btn {
            background-color: #e74c3c;
            color: #fff;
            border: none;
            padding: 5px 10px;
            border-radius: 3px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .remove-btn:hover {
            background-color: #c0392b;
        }
/* Styles pour la navigation principale */
nav {
    background-color: #ffffff;//#3aa12a;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 15px;
}
h2.titre {
    text-transform: uppercase;
    text-align: center;
}
.logo-container {
    width: 100px;
    height: 50px;
    margin-right: 20px;
}
p.prix {
    text-align: center;
    color: #000;//#f39200;
}
p.prix2 {
        margin-top: 50px;
    font-weight:bold;
    text-align: center;
    color: #000;//#f39200;
}
button.compare-btn {
    background: #f39200;
    display: block;
    color: #f39200;
    margin: auto;
}
#logo {
    /* Ajustez selon votre logo */
    width: 100%;
    height: 100%;
    display: flex;
    color: #f39200;
    align-items: center;
    justify-content: center;
}
.rating {
     text-align: center;
    color: #f39200;//#ffd700;
    font-size: 1.2em;
}

.fav-btn{

    color: #f39200;
}

.star {
    opacity: 0.3;
}

.star.filled {
    opacity: 1;
}
.home-icon {
    margin-right: 20px;
}

.home-icon svg {
    fill: #f39200;
}
.cart-total {
    margin-top: 20px;
    font-weight: bold;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.cart-total h3 {
    margin: 0;
    text-align: right;
    color: #f39200;
}
/* .search-container {
    position: relative;
    margin-right: 20px;
}

#search-input {
    padding: 8px;
    width: 200px;
    /* border: none; 
    border-radius: 4px;
    border-color: #f39200;
} */


.search-container {
    position: relative;
    margin-right: 20px;
    color: #f39200;
}

#search-input {
    padding: 10px 15px;
    width: 220px;
    border: 2px solid #f39200;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

#search-input::placeholder {
    color: #a0a0a0;
}

#search-input:focus {
    border-color: #f39200;
    box-shadow: 
        0 0 0 3px rgba(243, 146, 0, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

#search-input:hover {
    border-color: #e68200;
}



        #logo img {
    height: 80px;
}

#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

#search-suggestions div {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#search-suggestions img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

#search-suggestions div:hover {
    background-color: #f1f1f1;
}
.h3{
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}
/* Le reste des styles pour la navigation reste inchangé */

nav .dropdown {
    width: 100%;
    display: inline-block;
    position: relative;
}

nav .dropdown > a {
    color: #f39200;//white;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 10px;
    display: inline-block;
}

nav .dropdown:hover > a {
    background-color: #f39200;
    color: #ffffff;
}
.recently-viewed {
    margin-top: 40px;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.recently-viewed:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.recently-viewed h2 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #f39200;//#2c3e50;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#recently-viewed-products {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

#recently-viewed-products::-webkit-scrollbar {
    height: 8px;
}

#recently-viewed-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#recently-viewed-products::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

#recently-viewed-products .product {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
}

#recently-viewed-products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#recently-viewed-products .product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#recently-viewed-products .product img:hover {
    transform: scale(1.08);
}

#recently-viewed-products .product .product-name {
    margin-top: 12px;
    font-size: 1.1em;
    color: #34495e;
    font-weight: 600;
}

#recently-viewed-products .product .product-price {
    margin-top: 8px;
    font-size: 1.2em;
    color: #e74c3c;
    font-weight: 700;
}

@media (max-width: 768px) {
    .recently-viewed {
        padding: 20px;
    }

    #recently-viewed-products .product {
        width: 180px;
    }

    #recently-viewed-products .product img {
        height: 160px;
    }
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
}


.quantity-control button {
    width: 30px;
    height: 30px;
    background-color: #f39200;
    border: none;
    cursor: pointer;
}

.item-quantity {
    width: 50px;
    text-align: center;
    margin: 0 5px;
}
/* Styles pour les menus déroulants */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 10px //ajute recent
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
     color: #f39200;
    padding: 12px 16px;
    text-decoration: none;
     display: block;
     transition: background-color 0.3s ease; 
}
.dropdown-content a:hover {
    background-color: #f39200;
    color: #ffffff;
}

/* Styles pour les sous-menus */
.dropdown-sub-content {
    display:none;
    position: absolute; 
    left: -100%; // 40%
    top: 0;
    background-color: #f9f9f9;
    min-width: 200px;  
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 
    margin-left: -10px; //ajout recent
}

.dropdown-content div:hover .dropdown-sub-content {
    display:block;
}

/* Ajustements pour les menus à plusieurs niveaux */
.dropdown-content div {
     position: relative; //absolute

}

.dropdown-content div > a:after {
     content: '\25B6';
    float: right;
    font-size: 12px; // ajout recent
    margin-left: 10px; // ajout recent
}

/* Responsive design pour les petits écrans */
@media screen and (max-width: 768px) {
    nav .dropdown {
        display: block;
    }

    .dropdown-content,
    .dropdown-sub-content {
        position: static;
        display: none;
        width: 100%;
    }

    .dropdown:hover .dropdown-content,
    .dropdown-content div:hover .dropdown-sub-content {
        display: block;
    }

    .dropdown-content div > a:after {
        content: '\25BC';
    }
}
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                margin-bottom: 20px;
            }

            #cart, #favorites {
                width: 100%;
            }

            /* =========================================
   FIX MOBILE — 1 PRODUIT PAR LIGNE
========================================= */
@media (max-width: 768px) {

    #product-list.grid-view {
        grid-template-columns: 1fr !important;
    }

    .product {
        width: 100%;
        margin: 0 auto;
    }

    .product img {
        height: 260px;
        object-fit: contain;
    }

    .product-content {
        text-align: center;
    }
}


/* =========================================
   MOBILE — MASQUER FILTRES & RECOMMANDATIONS
========================================= */
@media (max-width: 768px) {

    /* Bloc filtres */
    .filters,
    .filter-container,
    .filter-sidebar,
    .product-filters {
        display: none !important;
    }

    /* Bloc recommandations */
    .recommendations,
    .recommended-products,
    .related-products,
    .suggested-products {
        display: none !important;
    }

}

/* =========================================
   MOBILE — SUPPRESSION DES FILTRES
========================================= */
@media (max-width: 768px) {

    /* Conteneur principal des filtres */
    .filters,
    .filter-container,
    .filter-sidebar,
    .filters-sidebar,
    .filters-panel,
    .filters-wrapper,

    /* Titres */
    .filters h2,
    .filters h3,
    .filter-title,

    /* Filtres avancés */
    .advanced-filters,
    .filters-advanced,
    .advanced-filter-box,

    /* Champs prix / note */
    .price-filter,
    .price-min,
    .price-max,
    .rating-filter,

    /* Boutons filtres */
    .filter-actions,
    .apply-filters,
    .reset-filters {
        display: none !important;
    }

}

/* =========================================
   MOBILE — SUPPRESSION DES FILTRES
========================================= */
@media (max-width: 768px) {

    /* Conteneur principal des filtres */
    .filters,
    .filter-container,
    .filter-sidebar,
    .filters-sidebar,
    .filters-panel,
    .filters-wrapper,

    /* Titres */
    .filters h2,
    .filters h3,
    .filter-title,

    /* Filtres avancés */
    .advanced-filters,
    .filters-advanced,
    .advanced-filter-box,

    /* Champs prix / note */
    .price-filter,
    .price-min,
    .price-max,
    .rating-filter,

    /* Boutons filtres */
    .filter-actions,
    .apply-filters,
    .reset-filters {
        display: none !important;
    }

}

