:root {
    --primary-color: #032b33; /* Beige-marron du logo et boutons */
    --secondary-color: #F8F5F1; /* Arrière-plan clair */
    --text-color: #333;
    --light-grey: #E0E0E0;
    --dark-grey: #666;
    --green-success: #4CAF50;
    --red-error: #F44336;
    --border-radius: 8px;
    --padding-base: 15px;
}
body, body *{
    font-family: 'Montserrat', sans-serif !important;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    background-image: url(../web-images/cappuccino.jpg);
    /* background-size: 80px; */
    /* background-repeat: repeat; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-base);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    flex: 1;
    text-align: center;
}
.logo img {
    height: 150px;
}

.categories {
    display: flex;
	/*display: none;*/
    gap: 10px;
    background-color: var(--secondary-color);
	padding: 10px;
    border-radius: var(--border-radius);
    justify-content: center;
    margin: 30px;
}

.category-btn {
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark-grey);
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
	background-color: #FFFFFF;
}

.category-btn:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--padding-base);
    padding-bottom: 80px; /* Space for the fixed footer */
}

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Cover the area, crop if necessary */
    display: block;
}

.product-details {
    padding: var(--padding-base);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows details to take available space */
}

.product-category {
    background-color: var(--light-grey);
    color: var(--dark-grey);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    width: fit-content;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--padding-base);
}

.product-price .unit {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--dark-grey);
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px; /* Fixed width for selector */
    margin-top: auto; /* Push to bottom */
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-selector button {
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 1.1em;
    cursor: pointer;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
}

.quantity-selector button:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.quantity-selector .quantity {
    padding: 0 10px;
    font-weight: 600;
    color: var(--text-color);
}

.footer {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
}

.total-display {
    font-size: 1.2em;
    font-weight: 700;
}

.view-cart-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.view-cart-btn:hover {
    background-color: var(--light-grey);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Initially hidden */
    width: 380px;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    padding: var(--padding-base);
    box-sizing: border-box; /* Include padding in width */
    overflow-y: auto; /* Allow scrolling for long carts */
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--padding-base);
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: var(--padding-base);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-color);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--dark-grey);
}

.cart-items {
    /*flex-grow: 1;  Allow cart items to take available space */
    margin-bottom: var(--padding-base);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--light-grey);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info .item-name {
    margin: 0;
    font-weight: 600;
}

.item-info .item-price {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: var(--dark-grey);
}

.remove-item-btn {
    background-color: var(--red-error);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
    background-color: darken(var(--red-error), 10%);
}

.delivery-info {
    background-color: var(--secondary-color);
    padding: var(--padding-base);
    border-radius: var(--border-radius);
    margin-bottom: var(--padding-base);
}

.delivery-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.free-delivery {
    color: var(--green-success);
    font-weight: 600;
}

.deposit-info {
    color: var(--dark-grey);
}

.delivery-zone {
    margin: 15px 0;
}

.delivery-zone label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.delivery-zone select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    background-color: #fff;
    font-size: 1em;
}

.delivery-details {
    border-top: 1px solid var(--light-grey);
    padding-top: var(--padding-base);
    margin-top: var(--padding-base);
}

.delivery-details p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.delivery-details p span {
    font-weight: 600;
}

.cart-final-total {
    font-size: 1.2em;
    color: var(--primary-color);
}

.customer-info {
    margin-bottom: var(--padding-base);
}

.customer-info input,
.customer-info textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}
.order-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px var(--padding-base);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.hidden {
    display: none;
}
header.header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header form {
    margin-left: auto;
}
header form select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
.fullwidth-slider {
    width: 100vw;
    margin: 0;
    padding: 0;
	margin-bottom: 60px !important;
}
.fullwidth-slider .slide,
.fullwidth-slider .slide img {
    width: 100%;
    object-fit: cover;
}
.fullwidth-slider .slick-dots li button:before {
    font-size: 16px;
    color: #032b33;
    opacity: 1;
}
.fullwidth-slider .slick-dots li.slick-active button:before {
    color: #032b33;
}
.main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    padding: 60px 20px;
    z-index: 1000;
    transition: left 0.3s ease-in-out;
}
.main-menu.open {
    left: 0;
	z-index: 9999;
}

.main-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}
.main-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s;
}
.main-menu ul li a:hover {
    color: #032b33;
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .categories {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0px;
    }

    .category-btn {
        margin: 5px;
    }

    .products-grid {
		grid-template-columns: repeat(2, 1fr);
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.open {
        right: 0;
		z-index: 99999999;
    }

    .footer {
        padding: 10px;
        font-size: 0.9em;
    }

    .view-cart-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
	header form {
        top: 10%;
        right: 0;
        transform: none;
    }
}
header.header{
    display: grid !important;
    grid-template-columns: 56px 1fr 120px;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}
.hamburger{
    width: 56px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    justify-self: start;
    align-self: center;
    z-index: 1002;
    font-size: 40px;
}
.hamburger span{
    display: block;
    width: 22px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo{
    justify-self: center;
    text-align: center;
    margin: 0;
}
.logo img{
    height: 150px;
    display: block;
    margin: 0 auto;
}
header.header form{
    position: static !important;
    justify-self: end;
    display: flex;
    align-items: center;
    margin: 0;
}
header.header form select{
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 991px){
    header.header{
        grid-template-columns: 48px 1fr 90px;
        padding: 8px 12px;
    }
    .logo img{
        height: 48px;
    }
    header.header form select{
        font-size: 13px;
        padding: 4px 8px;
    }
    .hamburger{
        width: 48px;
        height: 36px;
    }
}
@media (max-width: 768px) {
    .products-grid {
        padding-bottom: 180px;
    }
}
.header-bar {
    color: rgb(234, 171, 6);
    background-color: rgb(1, 37, 49);
    text-align: center;
    padding: 10px;
    font-size: 14px;
}
#main-menu .close-menu {
    background: none;
    border: none;
    color: black;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 30px;
}

.slick-dotted.slick-slider{
    display: none;
}