/*
 Theme Name: Storefront Child
 Template: storefront
 Version: 1.0.0
*/

/* BASE TYPOGRAPHY */
body {
    font-family: 'Poppins', sans-serif !important;
}
 
/* LAYOUT GÉNÉRAL */
.col-full {
    max-width: none !important;
    width: 100% !important;
    padding-left: 100px !important;
    padding-right: 100px !important;
    box-sizing: border-box !important;
}

.site-main {
    margin: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .site-main {
    margin-left: 20px;
    margin-right: 20px;
    }
}
  
/* Header icons style */ 
.header-icons { 
    display: flex;
    align-items: center;
    gap: 15px;
}    

.header-icons .user-icon a, 
.header-icons .cart-icon a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    position: relative; 
    width: 40px;
    height: 40px; border-radius: 50%;
    transition: background 0.3s; 
} 

.header-icons .user-icon i { 
    font-size: 23px;
    color: #333; 
} 

.header-icons 
.cart-icon img.custom-cart-icon { 
    width: 27px;
    height: 27px; 
} 

.header-icons .cart-count { 
    position: absolute; 
    top: -6px; 
    right: -6px; 
    background: #f2295b; 
    color: #fff; 
    font-size: 12px; 
    font-weight: bold; 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* PRODUITS - BOUTIQUE */  
.product-miniature {
    border-radius: 10px !important;
    border: solid 1px #cecece !important;
    box-shadow: 1px 1px 5px #cecece !important;
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
    width: 300px;
}

.thumbnail-container{
    margin: 10px;
}

.product-left{
    line-height: 18px;
}

.product-image-container {
    position: relative;
    height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}
  
.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.10);
}  

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-image-container a.thumbnail.product-thumbnail {
    display: block;  
  }

.product-miniature .product-title {
    text-align: left;
    margin-top: 10px;
    margin-left: 10px;
    font-weight: normal;
    font-size: 14px;  
    height: 24px;
}

.product-miniature .product-price-and-shipping {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 10px;
}

.btn.add-to-cart {
    display: block;
    width: calc(100% - 20px);
    margin: 0 10px; 
    position: relative;
    font-weight: 400;
    line-height: 14px;
    text-decoration: none;
    text-align: center !important;
    background: #40b8db;
    color: #fff;
    border-radius: 5px;
}
.btn.add-to-cart:hover {
    background: #f117d8 !important;
}

.product-miniature .add-to-cart-or-refresh {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    margin-bottom: 0;
    padding-left: 10px;
}

.quantity-input {
    width: 60px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cecece;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: #333;
    outline: none;
}

/* FOOTER PERSONNALISÉ */
.site-footer {
    background-color: #5fd2f0;
    color: #fff;
    padding: 1em;
}

.custom-footer,
.footer-column h3 {
    color: #fff;
    font-weight: bold;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1 1 250px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-icons img {
    width: 24px;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* Supprimer les marges des titres et paragraphes dans le footer */
footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    margin: 0 !important;
}

/* PRODUIT DU MOIS */
.produit-du-mois-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.produit-mois-box {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    align-items: center;
}

.produit-image {
    flex: 1 1 40%;
}

.produit-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.produit-infos {
    flex: 1 1 60%;
}

.produit-titre {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.produit-description {
    color: #555;
    margin-bottom: 15px;
}

.produit-prix {
    font-size: 20px;
    font-weight: bold;
    color: #e60023;
    margin-bottom: 15px;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .current {
    background-color: #5fd2f0;
    color: white;
    font-weight: bold;
}

/* HEADER / ALIGNEMENTS ELEMENTOR */
.elementor-location-header .elementor-widget,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-nav-menu,
.elementor-location-header .elementor-widget-image,
.elementor-location-header .elementor-button-wrapper,
.elementor-location-header .elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
}

.e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 2rem !important;
}

/* BARRE DE RECHERCHE HEADER */
.hfe-search-form__container {
    background: #F8F9FA !important;
    border-radius: 30px !important;
    border: 1px solid #E5E7EB !important;
    min-height: 35px !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

.hfe-search-form__container:focus-within {
    border-color: #52cbe0 !important;
    background: #FFFFFF !important;
}

.hfe-search-form__input {
    background: transparent !important;
    border: none !important;
    color: #1F2937 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    padding: 12px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    flex: 1 !important;
    height: 35px !important;
}

.hfe-search-form__input::placeholder {
    color: #9CA3AF !important;
}

.hfe-search-submit {
    background: #52cbe0 !important;
    border: none !important;
    color: #6B7280 !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hfe-search-submit i {
    font-size: 18px !important;
}

/* PRODUCTS SECTION */
.products-wrapper {
    position: relative;
    padding: 40px 0;
}

.products-wrapper .accueil-title {
    font-size: 23px;
    margin-bottom: 5px;
}

.products-line {
    width: 100%;
    height: 2px;
    background-color: #f117d8;
    margin: 10px auto 30px;
    border-radius: 3px;
}

.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.products-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    scrollbar-width: none;
}
.products-container::-webkit-scrollbar {
    display: none;
}

.products-container ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
}

.products-container ul.products li.product {
    min-width: 300px;
    scroll-snap-align: start;  
    margin-bottom: 0;
}

.scroll-btn {
    background-color: #fff;
    border: 1px solid #000000;
    color: #000000;
    cursor: pointer;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}
.scroll-btn:hover {
    background-color: #fff;
    color: #f117d8;
}

.scroll-btn.left {
    position: absolute;
    left: -20px;
}

.scroll-btn.right {
    position: absolute;
    right: -20px;
}

@media (min-width: 768px) {
    .site-main ul.products li.product {
    margin-right: 0 !important;
    }
}

/* Grille produits WooCommerce */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 23px;
    justify-content: center;
}

/* Style individuel du produit */
.woocommerce ul.products li.product {
    width: 100%;
    border-radius: 10px;
    border: solid 1px #cecece;
    box-shadow: 1px 1px 5px #cecece;
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
}

ul.products li.product.product-category img{
    margin-bottom: 0.5em !important;
}

/* Image proportionnelle */
.woocommerce ul.products li.product img {
    height: 250px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.woocommerce-products-header__title.page-title{
    color: #f117d8;
    text-align: left;
    font-weight: normal;
    height: 32px;
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Style général du popup */
.login-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* Contenu du popup */
.login-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.login-popup-content h2 {
    margin-bottom: 15px;
    text-align: center;
}

.login-popup-content label {
    display: block;
    margin-bottom: 5px;
}

.login-popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.btn-login {
    width: 100%;
    font-weight: 400;
    text-decoration: none;
    text-align: center !important;
    background: #40b8db;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.btn-login:hover {
    background: #f117d8
}

.create-account {
    text-align: center;
    margin-top: 15px;
}

.btn-create-account {
    display: inline-block;
    background: #555;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-create-account:hover {
    background: #333;
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-message {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    min-height: 20px;
    transition: color 0.3s ease;
}

.cart-popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.cart-popup-content {
    background: #fff;
    margin-top: 70px;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

/* Message principal */
#popup-message {
    font-size: 16px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 20px;
    position: relative;
}

#popup-message::before {
    content: "✔";
    display: inline-block;
    color: #2e7d32;
    font-weight: bold;
    font-size: 20px;
    margin-right: 8px;
}

/* Boutons */
.cart-popup-content .btn {
    display: inline-block;
    margin: 6px 10px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-popup-content a.btn {
    background-color: #40b8db;
    color: #fff;
}

.cart-popup-content a.btn:hover {
    background-color: #f117d8;
}

.cart-popup-content button.btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.cart-popup-content button.btn:hover {
    background-color: #e9e9e9;
}

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

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
