/* ============================================================
   Enzo Commander — Frontend Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Scope all styles to our wrap — reset font globally inside */
.ec-wrap,
.ec-wrap * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    box-sizing: border-box;
}

.ec-wrap {
    color: #2C2416;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 64px;
    width: 100%;
}

/* Neutralise le padding qu'Elementor impose sur son widget shortcode parent */
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
    padding: 0 !important;
    margin: 0 !important;
}

/* Idem pour le menu */
.em-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 64px;
    width: 100%;
}

/* ---- Step header ---- */
.ec-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.ec-step-num {
    background: #C45019 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1 !important;
}

.ec-step-header h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #2C2416 !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

/* ---- Tabs ---- */
.ec-tabs {
    display: flex;
    margin-bottom: 28px;
    border-bottom: 2px solid #E8E8E8;
    gap: 0;
}

.ec-wrap .ec-tab {
    all: unset !important;
    display: inline-block !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #999 !important;
    cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: color .15s, border-color .15s !important;
    line-height: 1.5 !important;
}

.ec-wrap .ec-tab:hover {
    color: #C45019 !important;
    border-bottom-color: #C45019 !important;
    background: transparent !important;
}

.ec-wrap .ec-tab.active {
    color: #C45019 !important;
    border-bottom-color: #C45019 !important;
    background: transparent !important;
}

.ec-tab-content { display: none; }
.ec-tab-content.active { display: block; }

/* ---- Category title ---- */
.ec-category-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #aaa !important;
    margin: 28px 0 14px !important;
    padding: 0 !important;
    border: none !important;
}

.ec-category-title:first-child { margin-top: 4px !important; }

/* ---- Products grid — uniform 4 cols everywhere ---- */
.ec-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .ec-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ec-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}





/* ---- Product card — uniform height with flex ---- */
.ec-card {
    background: #fff;
    border: 1.5px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    height: 100%;
}

.ec-card:hover {
    border-color: #C45019;
    box-shadow: 0 2px 12px rgba(196,80,25,.10);
    z-index: 2;
}

.ec-card.ec-card--selected {
    border-color: #C45019;
    box-shadow: 0 0 0 2px rgba(196,80,25,.15);
    z-index: 2;
}

.ec-card.ec-card--has-supps {
    z-index: 10;
}

/* Image: full width, not cropped */
.ec-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F5F0EB;
    flex-shrink: 0;
    overflow: hidden;
}

.ec-card__img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ec-card__img--placeholder {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DDD !important;
    font-size: 36px !important;
}

.ec-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.ec-card__name {
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    color: #2C2416 !important;
    line-height: 1.35 !important;
}

.ec-card__desc {
    font-size: 11px !important;
    color: #888 !important;
    margin: 0 0 10px !important;
    line-height: 1.55 !important;
    flex: 1;
}

.ec-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.ec-card__prix {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #C45019 !important;
    white-space: nowrap;
}

/* ---- Qty buttons — full reset against theme ---- */
.ec-card__qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ec-wrap .ec-qty-btn {
    all: unset !important;
    background: #F5F0EB !important;
    border: 1px solid #DDD !important;
    border-radius: 4px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #2C2416 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: background .12s !important;
    box-shadow: none !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.ec-wrap .ec-qty-btn:hover {
    background: #EBE3D9 !important;
    color: #2C2416 !important;
}

.ec-qty-val {
    font-size: 13px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    text-align: center !important;
    color: #2C2416 !important;
    line-height: 1 !important;
}

/* ---- Cart bar ---- */
.ec-cart-bar {
    position: sticky;
    bottom: 16px;
    background: #2C2416;
    color: #fff !important;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    z-index: 100;
}

.ec-cart-bar__info {
    font-size: 14px !important;
    color: #fff !important;
}

.ec-cart-bar__info strong {
    color: #C45019 !important;
}

/* ---- Primary button ---- */
.ec-wrap .ec-btn--primary {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #C45019 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    cursor: pointer !important;
    transition: background .15s !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
}

.ec-wrap .ec-btn--primary:hover {
    background: #D4622A !important;
    color: #fff !important;
}

/* ---- Pay button ---- */
.ec-wrap .ec-btn--pay {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #C45019 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    transition: background .15s !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.ec-wrap .ec-btn--pay:hover { background: #D4622A !important; }
.ec-wrap .ec-btn--pay:disabled { background: #ccc !important; cursor: not-allowed !important; }

/* ---- Back link ---- */
.ec-wrap .ec-btn-back {
    all: unset !important;
    color: #888 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: none !important;
    line-height: 1 !important;
}

.ec-wrap .ec-btn-back:hover { color: #2C2416 !important; text-decoration: none !important; }

/* ---- Form grid ---- */
.ec-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) { .ec-form-grid { grid-template-columns: 1fr; } }

.ec-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ec-field label {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .8px !important;
    color: #888 !important;
    line-height: 1 !important;
}

.ec-input,
.ec-wrap select.ec-input {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    border: 1.5px solid #DDD !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #2C2416 !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .15s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

.ec-input:focus,
.ec-wrap select.ec-input:focus {
    border-color: #C45019 !important;
    box-shadow: 0 0 0 2px rgba(196,80,25,.10) !important;
}

.ec-field-error {
    color: #C45019 !important;
    font-size: 12px !important;
    margin-top: 4px;
}

.ec-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ---- Recap ---- */
.ec-recap-mini,
.ec-payment-recap {
    background: #F9F6F3;
    border: 1px solid #EBE3D9;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 24px;
    line-height: 1.9 !important;
}

/* ---- Payment ---- */
.ec-payment-box {
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    transition: border-color .2s;
}

.ec-payment-box:focus-within {
    border-color: #C45019;
    box-shadow: 0 0 0 3px rgba(196,80,25,.08);
}

.ec-payment-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .8px !important;
    color: #aaa !important;
    display: block !important;
    margin-bottom: 14px !important;
}

.ec-stripe-element {
    min-height: 24px;
    padding: 2px 0;
}

.ec-stripe-errors {
    color: #C45019 !important;
    font-size: 12px !important;
    margin-top: 10px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ec-payment-total {
    text-align: right;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #2C2416 !important;
    margin: 16px 0 0;
}

.ec-payment-total strong { color: #C45019 !important; }

.ec-secure-note {
    font-size: 11px !important;
    color: #aaa !important;
    text-align: center;
    margin-top: 12px !important;
    line-height: 1.6 !important;
}

/* ---- Confirmation ---- */
.ec-confirmation {
    text-align: center;
    padding: 56px 24px;
}

.ec-confirmation__icon {
    width: 64px;
    height: 64px;
    background: #C45019;
    color: #fff !important;
    border-radius: 50%;
    font-size: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ec-confirmation h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2C2416 !important;
    margin: 0 0 12px !important;
}

.ec-confirmation p {
    font-size: 15px !important;
    color: #666 !important;
    margin: 0 0 8px !important;
}

/* ---- Empty state ---- */
.ec-empty {
    font-size: 14px !important;
    color: #bbb !important;
    font-style: italic !important;
    padding: 32px 0;
    text-align: center;
}

/* ---- Responsive cart bar ---- */
@media (max-width: 600px) {
    .ec-cart-bar { flex-direction: column; gap: 10px; text-align: center; }
    .ec-wrap .ec-btn--primary { width: 100% !important; }
    .ec-step-header h2 { font-size: 18px !important; }
}

/* ---- Step footer (back button at bottom) ---- */
.ec-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

.ec-step-footer--payment {
    justify-content: flex-start;
    margin-top: 12px;
    padding-top: 12px;
}

/* ---- Pizza limit notice ---- */
.ec-pizza-limit-notice {
    background: #FFF8F5;
    border: 1.5px solid #C45019;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px !important;
    color: #2C2416 !important;
    margin-top: 24px;
    line-height: 1.6 !important;
}

.ec-pizza-limit-notice a {
    color: #C45019 !important;
    text-decoration: none !important;
}

.ec-pizza-limit-notice a:hover {
    text-decoration: underline !important;
}

/* ---- Slot loading ---- */
.ec-slot-loading {
    font-size: 11px !important;
    color: #aaa !important;
    font-style: italic !important;
    margin-top: 4px;
    display: block;
}

/* ============================================================
   Mobile overrides
   ============================================================ */
@media (max-width: 600px) {

    .ec-wrap {
        padding: 0 12px 100px;
    }

    /* Step header */
    .ec-step-header {
        margin-bottom: 20px;
    }

    .ec-step-header h2 {
        font-size: 18px !important;
    }

    /* Tabs — full width, equal split */
    .ec-tabs {
        margin-bottom: 20px;
    }

    .ec-wrap .ec-tab {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    /* Products — keep 4 cols on mobile too, just tighter gap */
    .ec-products {
        gap: 10px;
    }

    /* Cart bar — full width sticky at bottom */
    .ec-cart-bar {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        margin: 0;
        padding: 12px 16px;
        flex-direction: row;
        gap: 12px;
    }

    .ec-cart-bar__info {
        font-size: 13px !important;
    }

    .ec-wrap .ec-btn--primary {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* Form — single column */
    .ec-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Step footer */
    .ec-step-footer {
        flex-direction: row;
        gap: 12px;
        margin-top: 20px;
    }

    .ec-wrap .ec-btn--primary {
        flex: 1 !important;
        width: auto !important;
    }

    /* Pay button */
    .ec-wrap .ec-btn--pay {
        font-size: 14px !important;
        padding: 13px 16px !important;
    }

    /* Recap box */
    .ec-recap-mini,
    .ec-payment-recap {
        font-size: 12px !important;
        padding: 10px 14px;
    }
}




/* ============================================================
   Étape Suppléments
   ============================================================ */

.ec-supps-intro {
    font-size: 14px !important;
    color: #888 !important;
    margin: 0 0 28px !important;
    line-height: 1.6 !important;
}

/* Bloc par pizza */
.ec-supp-block {
    background: #fff;
    border: 1.5px solid #E8E8E8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ec-supp-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F9F6F3;
    padding: 12px 16px;
    border-bottom: 1px solid #F0EBE4;
}

.ec-supp-block__name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2C2416 !important;
}

.ec-supp-block__qty {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #C45019 !important;
    background: #FFF0E8;
    padding: 3px 10px;
    border-radius: 50px;
}

/* Ligne supplément */
.ec-supp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #F5F0EB;
    transition: background .1s;
}

.ec-supp-row:last-child {
    border-bottom: none;
}

.ec-supp-row:hover {
    background: #FAFAFA;
}

.ec-supp-row__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.ec-supp-row__name-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ec-supp__badge {
    display: inline-block;
    background: #FFF0E8;
    color: #C45019;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    padding: 2px 7px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 1px;
}

.ec-supp-row__name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2C2416 !important;
}

.ec-supp-row__prix {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #C45019 !important;
}

/* Contrôles quantité supplément */
.ec-supp-row__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ec-wrap .ec-supp-btn {
    all: unset !important;
    background: #F5F0EB !important;
    border: 1px solid #DDD !important;
    border-radius: 4px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #2C2416 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background .12s !important;
    box-shadow: none !important;
}

.ec-wrap .ec-supp-btn:hover {
    background: #EBE3D9 !important;
}

.ec-supp-val {
    font-size: 14px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    text-align: center !important;
    color: #2C2416 !important;
}

.ec-supp-max {
    font-size: 11px !important;
    color: #bbb !important;
    min-width: 24px;
}

.ec-supp-block__num {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #C45019 !important;
    opacity: .8;
}

/* ---- Apple Pay / Payment Request Button ---- */
#ec-payment-request-button {
    margin-bottom: 4px;
}

.ec-payment-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.ec-payment-or::before,
.ec-payment-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}

.ec-payment-or span {
    font-size: 12px !important;
    color: #aaa !important;
    white-space: nowrap;
}

/* Step footer aligned right when no back button */
.ec-step-footer--end {
    justify-content: flex-end;
}

/* ============================================================
   Sticky bottom bar — global across all steps
   ============================================================ */

.ec-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #2C2416;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.18);
    gap: 16px;
}

.ec-sticky-bar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.ec-sticky-bar__count {
    font-size: 13px !important;
    color: rgba(255,255,255,.55) !important;
    white-space: nowrap;
}

.ec-sticky-bar__total {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.ec-sticky-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ec-sticky-back {
    color: rgba(255,255,255,.55) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.ec-sticky-back:hover { color: #fff !important; }

.ec-wrap .ec-sticky-next {
    padding: 11px 28px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    min-width: 160px !important;
    justify-content: center !important;
}

/* Add bottom padding to wrap so content isn't hidden under sticky bar */
.ec-wrap {
    padding-bottom: 96px !important;
}

@media (max-width: 600px) {
    .ec-sticky-bar {
        padding: 10px 14px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .ec-sticky-bar__left {
        flex: 1;
        min-width: 0;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
    .ec-sticky-bar__count {
        font-size: 11px !important;
        line-height: 1 !important;
    }
    .ec-sticky-bar__total {
        font-size: 16px !important;
        line-height: 1 !important;
    }
    .ec-sticky-bar__right {
        flex-shrink: 0;
        gap: 10px;
    }
    .ec-wrap .ec-sticky-next {
        min-width: 0 !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .ec-sticky-back {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* ---- Cutoff timer banner ---- */
.ec-cutoff-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF8F0;
    border: 1.5px solid #F0C080;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px !important;
    color: #2C2416 !important;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ec-cutoff-timer {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #C45019 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

/* ---- Closed banner ---- */
.ec-closed-banner {
    background: #FFF0F0;
    border: 1.5px solid #F0C0C0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px !important;
    color: #2C2416 !important;
    margin-bottom: 20px;
    line-height: 1.7 !important;
    text-align: center;
}

.ec-closed-banner a {
    color: #C45019 !important;
    text-decoration: none !important;
}

.ec-closed-banner a:hover {
    text-decoration: underline !important;
}

/* ---- Supplément sous-options ---- */
.ec-supp-options {
    padding: 8px 0 4px 0;
    display: none;
}

.ec-supp-select {
    font-size: 12px !important;
    padding: 7px 10px !important;
    border-color: #C45019 !important;
}

/* ---- Commentaire ---- */
.ec-field--full {
    grid-column: 1 / -1;
}

.ec-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5 !important;
}
