@import url('base.css');
body {
    background-color: black;
}
.config-box {
    background: #fff3e6;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #ff7a00;
}

.options {
    margin-top: 15px;
    background: #fff6ee;
    padding: 10px;
    border-radius: 8px;
}

.opt-item {
    margin-left: 10px;
    color: #444;
}
 .preview-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    color: white;
}
.preview-card {
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 20px;
}

.preview-img {
    width: 120px;
    height: auto;
    border-radius: 6px;
}

.preview-info h2 {
    margin: 0;
    font-size: 20px;
    color: #444;
}

.preview-price {
    font-size: 18px;
    font-weight: bold;
    color: #7b4df2;
    margin: 8px 0;
}
/*----------------------------------------------------------*/
.product-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Checkbox premium */
.product-select {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------------------------------------------------------
   CHECKBOX PRODUIT — STYLE PREMIUM
--------------------------------------------------------- */



.product-checkbox {
    appearance: none;
    width: 54px;
    height: 54px;
    border: 3px solid #7b4df2;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: 0.25s ease;
}

/* Effet hover */
.product-checkbox:hover {
    border-color: #5f35d8;
    box-shadow: 0 0 8px rgba(123, 77, 242, 0.45);
}

/* Icône V (checkmark) */
.product-checkbox::after {
    content: "✔";
    font-size: 28px;
    font-weight: 900;
    color: white;
    position: absolute;
    top: 3px;
    left: 14px;
    opacity: 0;
    transition: 0.25s ease;
}

/* Quand coché */
.product-checkbox:checked {
    background: #7b4df2;            /* fond violet */
    border-color: #7b4df2;
}

.product-checkbox:checked::after {
    opacity: 1;                     /* le V apparaît */
}


.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #444;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.product-select input:checked + .checkmark {
    background: #7b4df2;
    border-color: #7b4df2;
}

.product-select input:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 7px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Quantité */
.product-qty {
    margin: 10px 0;
}

.qty-input {
    width: 60px;
    padding: 5px;
    font-size: 16px;
}

/* Titre */
.product-title {
    font-size: 22px;
    margin: 10px 0;
}

/* Image */
.product-img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Description */
.product-desc {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    margin-bottom: 15px;
}

/* Prix */
.product-price {
    background: #ffe600;
    border: 2px solid #d4b300;
    border-radius: 6px;
    padding: 10px;
    
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Arial Black', sans-serif;
    font-size: 1.4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.clone-btn { background: #7b4df2; color: white; }
.options-btn { background: #444; color: white; }
.delete-btn { background: #e63946; color: white; }

/* Tags */
.product-tags {
    margin-bottom: 15px;
}

.product-tags .tag {
    display: inline-block;
    background: #eee;
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Total */

.product-total {
    background-color: crimson;
    color: #fff;
    font-weight: bold;
    font-size: 1.4em;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
    letter-spacing: 0.5px;
    font-family: 'Arial Black', sans-serif;
    
}
/* ---------------------------------------------------------
   POPUP DÉDIÉ À LA CARD
--------------------------------------------------------- */

.product-popup {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.12);

    /* transition d’apparition */
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-popup.hidden {
    display: none;
}

/* ---------------------------------------------------------
   FIELDSET
--------------------------------------------------------- */

.product-popup fieldset {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #fafafa;
}

.product-popup legend {
    font-weight: 600;
    font-size: 15px;
    padding: 0 6px;
    color: #ffffff;
    border: 1px solid black;
    border-radius: 5px;
    background-color: #000000;
    width: auto;
    text-align: center;
}

/* ---------------------------------------------------------
   LABELS + INPUTS
--------------------------------------------------------- */

.product-popup label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 4px 0;
    cursor: pointer;
}

.product-popup input[type="checkbox"],
.product-popup input[type="radio"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* ---------------------------------------------------------
   TOTAL OPTIONS
--------------------------------------------------------- */

.popup-options-total {
    margin-top: 10px;
    padding: 10px;
    background: #eef7ee;
    border: 1px solid #b7d8b7;
    border-radius: 8px;
    font-weight: 600;
    color: #2f7a2f;
    font-size: 15px;
}

/* ---------------------------------------------------------
   POPUP DÉDIÉ À LA CARD
--------------------------------------------------------- */

.product-popup {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    padding: 18px;
    margin-top: 14px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.12);

    /* animation d’apparition */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-popup.hidden {
    display: none;
}

/* ---------------------------------------------------------
   FIELDSET
--------------------------------------------------------- */

.product-popup fieldset {
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    background: #fafafa;
}



/* ---------------------------------------------------------
   LABELS + INPUTS
--------------------------------------------------------- */

.product-popup label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 0;
    cursor: pointer;
    background-color: #7b4df247;
    border-radius: 5px;
}

.product-popup input[type="checkbox"],
.product-popup input[type="radio"] {
    transform: scale(1.25);
    cursor: pointer;
}

/* ---------------------------------------------------------
   TOTAL OPTIONS
--------------------------------------------------------- */

.popup-options-total {
    margin-top: 10px;
    padding: 12px;
    background: #eef7ee;
    border: 1px solid #b7d8b7;
    border-radius: 10px;
    font-weight: 600;
    color: #2f7a2f;
    font-size: 15px;
}

/* ---------------------------------------------------------
   BOUTONS DU POPUP
--------------------------------------------------------- */

.popup-reset,
.popup-validate {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}

.popup-reset {
    background: #f2f2f2;
    color: #444;
    margin-right: 10px;
}

.popup-reset:hover {
    background: #e6e6e6;
}

.popup-validate {
    background: #7b4df2;
    color: white;
}

.popup-validate:hover {
    background: #5722e1;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {
    .product-popup {
        padding: 14px;
    }

    .product-popup fieldset {
        padding: 10px;
    }

    .popup-reset,
    .popup-validate {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}
/* ---------------------------------------------------------
   ÉTIQUETTES D'OPTIONS VALIDÉES
--------------------------------------------------------- */

.options-summary {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-tag {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 5px;
}

.option-tag:hover {
    background: #e6e6e6;
}
.option-total {
    background: #ff4d4d;
    color: white;
    padding: 2px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    margin: 2px;
    font-weight: bold;
}

/* ---------------------------------------------------------
   LIGNE 1 : checkbox + quantité + extra
--------------------------------------------------------- */

.product-header-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
    margin-bottom: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}

.product-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-qty {
    display: flex;
    gap: 6px;
    flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-extra {
    min-width: 40px; /* espace réservé */
}


/* ---------------------------------------------------------
   LIGNE 2 : image + titre + description
--------------------------------------------------------- */

.product-main-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.product-img-wrapper {
    flex-shrink: 0;
    cursor: pointer;
}
.product-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid black;
    padding: 8px;
    border-radius: 5px;
}

.product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.product-desc {
    font-size: 14px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .product-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-img {
        width: 160px;
        height: 160px;
    }

    .product-info {
        text-align: left;
        width: 100%;
    }
}

/* ---------------------------------------------------------
   BOUTONS FINAUX : DELIVERY / CLICK & COLLECT
--------------------------------------------------------- */

.final-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 40px;
    flex-direction: column;
}

.big-btn {
    padding: 18px 32px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    color: white;
}

/* Delivery = violet premium */
.delivery-btn {
    background: #7b4df2;
}

.delivery-btn:hover {
    background: #6a3de0;
    box-shadow: 0 0 12px rgba(123, 77, 242, 0.4);
}

/* Click & Collect = vert premium */
.collect-btn {
    background: #4caf50;
}

.collect-btn:hover {
    background: #449d48;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

/* MOBILE */
@media (max-width: 600px) {
    .final-actions {
        flex-direction: column;
        gap: 16px;
    }

    .big-btn {
        width: 100%;
        text-align: center;
    }
}
/* ---------------------------------------------------------
   RÉSUMÉ DE COMMANDE
--------------------------------------------------------- */

.order-summary {
    margin-top: 40px;
    padding: 20px;
    background: #fafafa;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.order-summary h2 {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-item {
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.order-item-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.order-item-options {
    font-size: 14px;
    color: #555;
}

.order-total {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}
/* LIGHTBOX */
.lightbox.hidden { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  transition: opacity .25s ease;
}
.lightbox-content {
  position: relative;
  max-width: 92%;
  max-height: 92%;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: calc(92vh - 80px);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.lightbox-caption {
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .lightbox-close { width: 32px; height: 32px; font-size: 16px; }
  .lightbox-caption { font-size: 13px; }
}
/* Bouton Commander */
.order-btn {
    background:#7b4df2;
    color:white;
    padding:16px 28px;
    font-size:20px;
    font-weight:700;
    border:none;
    border-radius:14px;
    cursor:pointer;
    transition:0.25s ease;
    width:100%;
    max-width:300px;
    margin:auto;
    display:block;
}

.order-btn:hover {
    background:#6a3de0;
    box-shadow:0 0 12px rgba(123,77,242,0.4);
}

/* Formulaire */
.order-form {
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
    max-width:420px;
    margin:30px auto;
}

.order-form.hidden {
    display:none;
}

.order-title {
    text-align:center;
    font-size:22px;
    margin-bottom:20px;
    color:#4a3bb3;
}

/* Choix Delivery / Collect */
.order-choice {
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
}

.order-radio {
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
    cursor:pointer;
}

.order-radio input {
    transform:scale(1.3);
}

/* Champs adresse */
.address-block {
    margin-top:15px;
}

.address-block.hidden {
    display:none;
}

.address-block input {
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;
    margin-top:5px;
    font-size:16px;
}

/* Bouton valider */
.validate-btn {
    margin-top:25px;
}
.hidden {
    display: none;
}
.order-extra-info {
    background: #08ff0014;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.5;
    border-left: 4px solid #b48dd3; /* violet premium */
}

.mode-disabled-badge {
    display: inline-block;
    background: #ffdddd;
    color: #a33;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
    border: 1px solid #e6b3b3;
}
.order-closed {
    background:#ffe6e6;
    color:#a33;
    padding:18px;
    border-radius:12px;
    text-align:center;
    font-weight:600;
    margin:20px 0;
    border:1px solid #e6b3b3;
}
.hours-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
    color: #2e8b5e;
    text-align: center;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #f8f7ff;
    border-radius: 8px;
    overflow: hidden;
}

.hours-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e2ff;
    font-size: 15px;
}

.day-name {
    font-weight: 600;
    color: #3d2ccf;
    width: 140px;
}

.day-hours {
    color: #444;
}

.day-hours.closed {
    color: #ff4d4d;
    font-weight: 600;
}
header h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2.4em;
    color: var(--color-primary);
}
.btn-login-required {
    display:inline-block;
    margin-top:15px;
    padding:10px 16px;
    background:#5a3df0;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}
.btn-login-required:hover {
    background:#3d2ccf;
}

.btn-orders {
    display:inline-block;
    margin-top:15px;
    padding:10px 16px;
    background:#5a3df0;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}
.btn-orders:hover {
    background:#3d2ccf;
}
 input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    
    box-sizing: border-box;
    
    transition: box-shadow var(--transition), border-color var(--transition);
}
/* --- Bloc Livraison / Collect --- */
#delivery-fields,
#collect-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

/* --- Labels --- */
#delivery-fields label, #collect-fields label {
    font-weight: 600;
    font-size: 0.95em;
    color: #4700ff;
    letter-spacing: 0.5px;
}

/* --- Inputs --- */
#delivery-fields input,
#collect-fields input {
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #7b4df2;
    color: white;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.25s, box-shadow 0.25s;
}

/* --- Focus --- */
#delivery-fields input:focus,
#collect-fields input:focus {
    background: #8c5fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* --- Placeholder --- */
#delivery-fields input::placeholder,
#collect-fields input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

/* --- Mode hidden --- */
.hidden {
    display: none !important;
}
