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

body {
    visibility: hidden;
}

.app {
    width: 100%;
    height: 100%;

    display: flex;
    flex-wrap: wrap;

    font-family: 'Poppins', sans-serif;
}

.app-wrapper {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Do not edit, this allows you to view changes easily in your browser */
.dev-wrapper {
    display: none;

    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;

    margin: auto;

    width: 29rem;
    height: 58.5rem;
}

/* --------------------------------------------------------------------------------- */


#login-page {
    display: block;
    width: 100%;
    margin-top: 0;
}

.login-header {
    width: 100%;
    text-align: center;
    padding: 0 3%;
    height: 15vh; /* Hauteur du header relative à la hauteur de l'écran */
    background-color: white;
    color: black;
    font-weight: bold;
    box-shadow: 0 0.2vh 0.4vh rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2vh;
}

.login-container {
    margin-top: 15vh; /* Ajout d'un espace pour que le contenu commence sous le header */
    padding: 1%;
    box-sizing: border-box;
    width: 100%;
}

.login-title {
    width: 100%;
    text-align: left;
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 1vh;
    padding-left: 2%; /* Ajoute un peu d'espace à gauche */
}

.login-subtitle {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 1vh;
    padding-left: 4%; /* Ajoute un peu d'espace à gauche */
}

#login-password {
    width: 90%;
    padding: 3.5%;
    margin: 0 auto; /* Centre horizontalement l'élément */
    margin-top: 0;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-size: 1.2rem;
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
    display: block; /* Pour garantir que le champ de saisie est un élément de bloc */
}

#login-password:disabled {
    opacity: 0.7;
}

.login-password-reset {
    margin-top: 2vh;
    margin-right: 2.5%;
    text-align: right;
}

.login-password-reset a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-text-result {
    display: none;
    text-align: center;
    color: red;
    font-size: 0.9rem;
    margin-top: 2vh;
}

.login-button {
    display: block;
    width: 90%;
    padding: 2.5%;
    margin: 3vh auto;
    background-color: #f8b809;
    border: none;
    border-radius: 1rem;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 1.2rem;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-button:hover {
    background-color: #ffd700;
}

.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2vh 0;
    width: 100%;
}

.login-separator::before,
.login-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.login-separator span {
    padding: 0 2%;
    font-size: 0.75rem;
    color: #666;
}

.login-access-key-button {
    display: block;
    width: 90%;
    padding: 2.5%;
    margin: 2vh auto;
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 1.0rem;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-access-key-button:hover {
    background-color: black;
    color: white;
}

.login-spacer {
    width: 100%;
    border-bottom: 1px solid #ccc;
    margin: 4vh 0;
}

.login-footer {
    text-align: center;
    margin-top: 2vh;
    font-size: 0.8rem;
    color: #007185;
}

.login-footer a {
    display: block;
    text-decoration: none;
    color: #007185;
    margin: 1vh 0;
}

.login-footer-inline {
    display: flex;
    justify-content: center;
    gap: 2%;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer p {
    color: #999;
    margin-top: 2vh;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------------- */


#loading-page {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #fff;
}

.loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-container img {
    width: 60%;
    height: auto;
    margin-bottom: 2vh;
}

.loading-text {
    font-size: 1rem;
    color: #555;
    font-family: 'Arial', sans-serif;
}

/* --------------------------------------------------------------------------------- */


/* Header */
.products-header {
    width: 100%;
    text-align: center;
    padding: 0 2%;
    height: 15vh;
    background-color: white;
    color: black;
    font-weight: bold;
    box-shadow: 0 0.2vh 0.4vh rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 2vh;
}

/* Barre de recherche */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 1.5rem;
    padding: 1.5% 3%;
    width: 98%;
}

.search-bar i {
    font-size: 1.8rem;
    color: #555;
    margin-right: 2%;
}

.search-bar input {
    width: 100%;
    padding: 2% 2%;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-bar input::placeholder {
    color: #888;
}

/* Barre des résultats et filtre */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2% 3%;
    background-color: #f0f0f0;
    font-size: 0.85rem;
    color: #555;
    margin-top: 15vh; /* Assurez-vous qu'elle se place juste en dessous du header */
}

.results-text {
    font-weight: normal;
}

.filter-text {
    cursor: pointer;
    color: #007BFF;
    font-weight: bold;
}

.results-bar span:hover {
    text-decoration: underline;
}

.products-container {
    margin-top: 0;
    padding: 3% 2%;
    box-sizing: border-box;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
}

.product-item {
    display: flex;
    align-items: flex-start; /* Image à gauche, informations à droite */
    background-color: #f7f7f7; /* Changement de fond pour correspondre à l'image */
    padding: 2%;
    border-radius: 0.5rem; /* Bordure plus carrée */
    box-shadow: 0 0.2vh 0.5vh rgba(0, 0, 0, 0.1); /* Ombre plus légère */
    margin-bottom: 2vh;
    width: 100%;
    border-bottom: 1px solid #ddd; /* Ligne de séparation plus douce */
}

.product-item img {
    width: 37vw; /* Augmenter la taille de l'image à 30% de la largeur de l'écran */
    height: 37vw; /* Assurer que la hauteur soit égale à la largeur */
    object-fit: cover; /* Assurer que l'image garde son ratio sans être déformée */
    border-radius: 5px; /* Coins arrondis pour l'image, mais moins que le container */
    margin-right: 2%; /* Espacement entre l'image et les informations */
}

.product-item .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%; /* Largeur ajustée pour les informations */
    padding-left: 2%; /* Espacement entre l'image et les informations */
}

.product-item .product-info h2 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 1vh;
}

.product-item .product-info p {
    font-size: 1rem;
    color: #555;
    margin-top: 0.1vh;
}

.product-item .product-info .product-category {
    font-size: 0.9rem;
    color: #007BFF; /* Couleur bleue pour la catégorie */
    margin-top: 0.1vh; /* Un peu d'espace au-dessus */
    font-weight: bold;
}

.product-item .product-info .delivery-info {
    font-size: 0.8rem;
    color: #000000;
    margin-top: 0.1vh;
}

.product-item .product-info .delivery-info--accelerated {
    font-size: 0.8rem;
    color: #000000;
    margin-top: 0.1vh;
}

.product-item .product-info:before {
    content: "";
    display: block;
    height: 100%;
    width: 1px;
    background-color: #ddd; /* Légère ligne de séparation */
    margin-left: 2%;
}

#products-page h1 {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin-top: 2vh;
}

/* Conteneur des prix */
.product-price-container {
    display: flex;
    justify-content: center; /* Centre le contenu horizontalement */
    align-items: center; /* Centre le contenu verticalement */
    gap: 0.5rem; /* Espacement entre les éléments */
    margin-top: 1rem; /* Espacement au-dessus */
}

/* Style de base pour tous les prix */
.product-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff9900; /* Couleur pour le prix principal */
    display: inline-block;
}

/* Prix barré */
.product-base-price {
    font-size: 0.9rem;
    color: #888; /* Couleur pour le prix barré */
    text-decoration: line-through; /* Ajoute une ligne au-dessus du prix */
}

/* Variation de prix (pourcentage) */
.product-price-change {
    font-size: 0.9rem;
    color: #28a745; /* Couleur verte pour une réduction */
    font-weight: bold;
}

.price-container {
    display: flex;
    justify-content: center; /* Centre horizontalement sur la page */
    align-items: center; /* Centre verticalement les éléments à l'intérieur */
    gap: 0.5rem; /* Espacement entre les éléments */
    width: 100%; /* Assure que le conteneur occupe toute la largeur */
    text-align: center; /* Centre les textes à l'intérieur */
}

.price {
    font-size: 1.0rem;
    color: #ff9900;
    font-weight: bold;
}

.base-price {
    font-size: 1.0rem;
    color: #999;
    text-decoration: line-through; /* Ajoute une ligne au-dessus du prix */
}

.price-change {
    font-size: 1.0rem;
    color: #28a745; /* Vert pour la réduction */
    font-weight: bold;
}

.remove-from-cart-btn {
    background-color: #ff4d4d;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.remove-from-cart-btn:hover {
    background-color: #e60000;
}

.results-bar {
    display: flex;
    justify-content: space-between; /* Espacement entre les éléments à gauche et à droite */
    align-items: center;
    width: 100%;
    padding: 2% 3%;
    background-color: #f0f0f0;
    font-size: 0.85rem;
    color: #555;
    margin-top: 15vh;
}

.action-buttons {
    display: flex;
    gap: 1rem; /* Espacement entre "Booster" et "Payer" */
}

.boost-text, .pay-text {
    cursor: pointer;
    color: #007BFF; /* Couleur bleue pour les textes cliquables */
    font-weight: bold;
}

.boost-text:hover, .pay-text:hover {
    text-decoration: underline;
    color: #0056b3; /* Couleur plus foncée au survol */
}

.order-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.order-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.order-info h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: #333;
}

.order-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* --------------------------------------------------------------------------------- */

/* Page */
#view-product-page {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    height: 100vh;
    background-color: #f9f9f9;
}

/* Conteneur des détails du produit */
.product-details-container {
    margin-top: 15vh; /* Place en dessous du header */
    padding: 2vw;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Aligne les éléments verticalement */
    align-items: center;
    justify-content: space-between; /* Texte en haut et bouton en bas */
}

/* Image du produit */
.product-image-container {
    width: 50%;
    text-align: center;
    margin: 0 auto 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Informations du produit */
.product-details {
    width: 100%;
    text-align: center; /* Centre tous les textes horizontalement */
}

/* Alignement des textes */
.price-calculator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.quantity-container {
    margin-bottom: 1rem;
    text-align: center;
}

.quantity-container label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.quantity-container input {
    width: 5rem;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 0.3rem;
}

/* Boost option */
.boost-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.total-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
}

/* Bouton Ajouter au panier */
.button-container {
    display: flex;
    justify-content: center; /* Centre le bouton horizontalement */
    width: 100%;
}

.add-to-cart-btn {
    width: 50%; /* Réduction de la largeur */
    padding: 0.8rem 1.5rem; /* Ajustement des espaces internes */
    font-size: 1.2rem; /* Augmentation de la taille du texte */
    color: #fff; /* Couleur du texte */
    background-color: #ff9900; /* Couleur de fond */
    border: none; /* Suppression de la bordure */
    border-radius: 2rem; /* Bordure arrondie pour un effet moderne */
    cursor: pointer; /* Curseur en forme de main */
    text-align: center; /* Texte centré */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* Ombre pour donner du relief */
    transition: all 0.3s ease; /* Transition douce pour le hover */
    display: block; /* Assure que le bouton reste centré */
}

.add-to-cart-btn:hover {
    background-color: #e68a00; /* Couleur légèrement plus sombre */
}

.add-to-cart-btn:active {
    transform: scale(0.98); /* Effet de réduction lors du clic */
}


/* --------------------------------------------------------------------------------- */

.products-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ccc;
    z-index: 10;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-icon i {
    font-size: 2rem;
    margin-bottom: 2%;
}

.footer-icon span {
    font-size: 0.9rem;
    line-height: 1;
}

.footer-icon:hover {
    color: #007BFF;
}

