/* ─── Pagina Comanda Online ──────────────────────────────────────────────── */

.comanda {
    padding: 70px 20px 80px;
    background-color: #fdf9f4;
    min-height: calc(100vh - 90px);
}

.comanda__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.comanda__header {
    margin-bottom: 40px;
    text-align: center;
}

.comanda__title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    color: #1a1400;
    margin: 0 0 10px;
}

.comanda__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ─── Buton toggle ───────────────────────────────────────────────────────── */

.comanda__info-wrap {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── Inline group (multiple subcategories side by side) ─────────────────── */

.comanda__inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Make each info-wrap transparent to flex so its children become flex items */
.comanda__inline-group > .comanda__info-wrap {
    display: contents;
}

/* Accordion panels inside the inline group span full width and render below all buttons */
.comanda__inline-group .comanda__accordion {
    flex-basis: 100%;
    order: 99;
    margin-top: 0;
    width: 100%;
}

.comanda__info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: rgba(240, 173, 78, 0.3);
    color: #3a2e00;
    border: 1px solid rgba(240, 173, 78, 0.6);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
    width: auto;
}

.comanda__info-toggle:hover {
    background-color: rgba(240, 173, 78, 0.5);
    border-color: rgba(240, 173, 78, 0.9);
}

.comanda__info-toggle-icon {
    font-size: 16px;
    line-height: 1;
}

.comanda__info-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.comanda__info-toggle-main {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.comanda__info-toggle-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.3px;
}

.comanda__info-toggle-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.comanda__info-toggle.is-open .comanda__info-toggle-arrow {
    transform: rotate(180deg);
}

/* ─── Accordion panel ────────────────────────────────────────────────────── */

.comanda__accordion {
    width: 100%;
    border-radius: 4px;
    background-color: #fff;
    margin-top: 10px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.comanda__accordion[hidden] {
    display: grid;
    visibility: hidden;
    grid-template-rows: 0fr;
}

.comanda__accordion.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
}

.comanda__accordion-inner {
    overflow: hidden;
    padding: 0 28px;
    transition: padding 0.4s ease;
}

.comanda__accordion.is-open .comanda__accordion-inner {
    padding: 32px 28px;
}

.comanda__section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #c8a97e;
    margin: 0 0 16px;
}

.comanda__section-title--center {
    text-align: center;
}

/* Categorii meniu */
.comanda__categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.comanda__category-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fdf9f4;
    border: 1px solid #ede5d5;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #2e2e2e;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.comanda__category-link:hover {
    background-color: #3a3000;
    border-color: #3a3000;
    color: #e8dcc8;
}

/* Divider */
.comanda__divider {
    height: 1px;
    background-color: #ede5d5;
    margin: 28px 0;
}

/* Timpi */
.comanda__times {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.comanda__time-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    background-color: rgba(240, 173, 78, 0.15);
    border: 1px solid rgba(240, 173, 78, 0.4);
    border-radius: 4px;
    color: #3a2e00;
}

.comanda__time-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.comanda__time-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #a07020;
    margin-bottom: 3px;
}

.comanda__time-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #3a2e00;
}

/* Grid livrare */
.comanda__delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Zone */
.comanda__zones-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comanda__zones-list li {
    font-size: 14px;
    color: #2e2e2e;
    line-height: 1.5;
}

/* Taxe */
.comanda__fees-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comanda__fees-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.comanda__fee-pin {
    flex-shrink: 0;
    font-size: 16px;
}

.comanda__fee-range {
    flex: 1;
    color: #555;
}

.comanda__fee-val {
    font-weight: 800;
    color: #1a1400;
    white-space: nowrap;
}

.comanda__fee-val--free {
    color: #2e7d32;
}

/* ─── Butoane acțiuni ────────────────────────────────────────────────────── */

.comanda__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.comanda__btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s, transform 0.15s;
}

.comanda__btn--primary {
    background-color: #c8a97e;
    color: #1a1400;
}

.comanda__btn--primary:hover {
    background-color: #b8905e;
    transform: translateY(-1px);
}

/* ─── Page divider ──────────────────────────────────────────────────────── */
.comanda__page-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e0d4c0 20%, #e0d4c0 80%, transparent);
    margin: 0;
    width: 100%;
}

/* ─── Meniu Zilei section ────────────────────────────────────────────────── */
.comanda__meniu-zilei-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
}

.comanda__meniu-zilei-heading {
    font-size: 22px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.5;
    margin: 0 0 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comanda__meniu-zilei-btn {
    display: inline-block;
    background-color: rgba(240, 173, 78, 0.3);
    border: 1px solid rgba(240, 173, 78, 0.6);
    color: #3a2e00;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 48px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.comanda__meniu-zilei-btn:hover {
    background-color: rgba(240, 173, 78, 0.5);
    border-color: rgba(240, 173, 78, 0.9);
}

.comanda__meniu-zilei-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: #7a6a4a;
    font-style: italic;
}

.comanda__meniu-zilei-indisponibil {
    font-size: 15px;
    color: #8a6a3a;
    background: rgba(240, 173, 78, 0.1);
    border: 1px solid rgba(240, 173, 78, 0.4);
    border-radius: 6px;
    padding: 12px 24px;
    margin: 0;
}

/* ─── Separator titlu grup ───────────────────────────────────────────────── */
.comanda__group-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 0;
}

.comanda__group-separator::before,
.comanda__group-separator::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #e0d4c0 40%, #e0d4c0 60%, transparent);
}

.comanda__group-separator span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9a8a6a;
    text-transform: uppercase;
    white-space: nowrap;
}

.comanda__group-separator--main {
    display: block;
    margin-top: 40px;
    margin-bottom: 4px;
}

.comanda__group-separator--main::before,
.comanda__group-separator--main::after {
    display: none;
}

.comanda__group-separator--main span {
    font-size: 22px;
    letter-spacing: 4px;
    color: #7a5c2e;
    display: block;
    text-align: center;
}

/* ─── Secțiunea Oferte ───────────────────────────────────────────────────── */
.comanda__oferte-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 24px 0 8px;
}

@media (max-width: 900px) {
    .comanda__oferte-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .comanda__oferte-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.comanda__oferta-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #e8dfc8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gp-cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #d4a017;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 32px;
    border-radius: 16px;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.comanda__oferta-card:hover {
    box-shadow: 0 4px 16px rgba(200, 169, 126, 0.25);
    transform: translateY(-2px);
}

.comanda__oferta-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.comanda__oferta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comanda__oferta-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.comanda__oferta-name {
    font-size: 13px;
    font-weight: 600;
    color: #2e2e2e;
    margin: 0;
    line-height: 1.3;
}

.comanda__oferta-price {
    font-size: 13px;
    font-weight: 700;
    color: #c8a97e;
    margin: 0;
}

.comanda__oferta-btn {
    display: inline-block;
    margin-top: auto;
    padding: 6px 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #d4a017 0%, #c8860a 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
}

.comanda__oferta-card:hover .comanda__oferta-btn {
    opacity: 0.88;
}

/* ─── "Vezi coșul" link injectat de WooCommerce după add-to-cart ─────────── */
.comanda__oferta-card a.added_to_cart {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 14px;
    background: transparent;
    border: 1.5px solid #d4a017;
    color: #d4a017;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.4px;
    transition: background 0.15s, color 0.15s;
}

.comanda__oferta-card a.added_to_cart:hover {
    background: #d4a017;
    color: #fff;
}

/* ─── Notificare platouri ────────────────────────────────────────────────── */
.comanda__platouri-notice {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.07);
    border: 1px solid rgba(192, 57, 43, 0.25);
    border-radius: 6px;
    padding: 12px 20px;
    margin: 0 0 20px;
    letter-spacing: 0.4px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .comanda__accordion.is-open .comanda__accordion-inner {
        padding: 24px 16px;
    }

    .comanda__delivery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .comanda__times {
        flex-direction: column;
    }
}

/* ─── Notificare alergeni ────────────────────────────────────────────────── */
.comanda__alergeni-notice {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 16px 24px;
    background: #fff8ec;
    border: 1px solid #e0d4c0;
    border-left: 4px solid #c8a97e;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.comanda__alergeni-notice a {
    color: #c8a97e;
    font-weight: 700;
    text-decoration: underline;
}

.comanda__alergeni-notice a:hover {
    color: #a07840;
}

/* ─── Pop-up variații produs ────────────────────────────────────────────── */
.gp-modal[hidden] { display: none; }

.gp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.gp-modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gp-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.gp-modal__close:hover { background: #f0f0f0; color: #333; }

.gp-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding-right: 28px;
    line-height: 1.3;
}

.gp-modal__attr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999;
    margin-bottom: 8px;
}

.gp-modal__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-modal__option {
    padding: 7px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.gp-modal__option:hover {
    border-color: #d4a017;
    background: #fffbf0;
}
.gp-modal__option.is-selected {
    border-color: #d4a017;
    background: #d4a017;
    color: #fff;
}

.gp-modal__price {
    font-size: 18px;
    font-weight: 700;
    color: #c8860a;
    margin: 0;
    min-height: 24px;
}

.gp-modal__add {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4a017 0%, #c8860a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: opacity 0.15s;
}
.gp-modal__add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gp-modal__add:not(:disabled):hover { opacity: 0.88; }

.gp-modal__qty-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gp-modal__qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.gp-modal__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.gp-modal__qty-btn {
    background: #fafafa;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gp-modal__qty-btn:hover { background: #f0f0f0; color: #333; }

.gp-modal__qty-input {
    width: 42px;
    height: 36px;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.gp-modal__qty-input::-webkit-inner-spin-button,
.gp-modal__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
