:root {
    --accent: #ff6e40;
    --accent-2: #ffab40;
    --bg: #f7f7f8;
    --card: #ffffff;
    --muted: #666;
}

* {
    box-sizing: border-box
}

body {
    font-family: Inter, system-ui, Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    color: #111
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(90deg, var(--card), var(--card));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04)
}

.header-left {
    display: flex;
    gap: 16px;
    align-items: center
}
/* Icône livraison */
.icon-delivery {
    width: 35px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Police arabe élégante */
.titre-ar,
.subtitle-ar {
    font-family: 'Tajawal', sans-serif;
}

/* Titre français */
.titre-fr {
    color: #222; /* noir doux */
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2px;
}

/* Titre arabe */
.titre-ar {
    color: #FF6E40; /* orange du site */
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Sous-titre fr */
.subtitle-fr {
    color: #666; /* gris foncé */
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Sous-titre arabe */
.subtitle-ar {
    color: #FF6E40;
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px
}
.arabe {
    font-size: 0.9em;
    color: #ff6e40;  /* ou une autre couleur si tu veux */
    font-weight: 600;
    display: block;
    margin-top: 3px;
}

.whatsapp {
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none
}

.container {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px
}

.card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(12, 12, 12, 0.04)
}

.big-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px
}

.link-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer
}

.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

.item {
    display: flex;
    gap: 12px;
    align-items: center
}

.item img {
    width: 101px;
    height: 89px;
    object-fit: cover;
    border-radius: 10px;
}

.item .meta {
    flex: 1
}

.item h3 {
    margin: 0;
    font-size: 16px
}

.item .meta h3 {
    font-size: 1.2rem;   
    font-weight: 700;
}

.item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 15px
}

.card .price {
    font-size: 1.15rem;   
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.trash-icon {
    width: 20px;
    height: 20px;
    color: #e63946; 
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-remove:hover .trash-icon {
    transform: scale(1.15);
    color: #ff2d2d;
}
.cart-row div:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

#panier-list .cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #efefef
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 800
}

/* Bandeau logo moderne */
.top-logo-bar {
    width: 100%;
    background: white;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.logo-main {
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

/* Bouton retour */
.link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Panier wrapper */
.cart-wrapper {
    position: relative;
}

.cart-icon-btn {
    background: none;
    border: none;
    font-size: 0;
    cursor: pointer;
    padding: 5px;
}

.cart-icon-btn .icon {
    width: 26px;
    height: 26px;
    color: #333; 
}

/* Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red; 
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Spinner de chargement */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* toujours au-dessus */
}

.loader-overlay.hidden {
    display: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #ff6e40;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 





@media(min-width:700px) {
    .list {
        grid-template-columns: repeat(2, 1fr)
    }
}