﻿/* =============================================
   PAGINA MENIU  template-meniu.php
   ============================================= */

.meniu-page {
    padding: 32px 0 64px;
    background: #fff;
}

/*  Layout: sidebar + continut  */
.meniu-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.meniu-sidebar {
    position: sticky;
    top: 90px;
}

/*  Widget sidebar meniu  */
.meniu-widget {
    margin-bottom: 28px;
}

.meniu-widget__title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
/* Lista categorii in sidebar */
.meniu-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meniu-cat-list__item {
    border-bottom: 1px solid #f5f5f5;
}

.meniu-cat-list__item:last-child {
    border-bottom: none;
}

.meniu-cat-list__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: color 0.18s;
    gap: 8px;
}

.meniu-cat-list__btn:hover {
    color: #9a0019;
}

.meniu-cat-list__btn.is-active {
    color: #9a0019;
    font-weight: 800;
}

.meniu-cat-list__count {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 400;
    flex-shrink: 0;
}

/* ── Filtru pret (dual range slider) ─────── */
.meniu-price-filter {
    padding-top: 6px;
}

.meniu-price-track-wrap {
    position: relative;
    height: 20px;
    margin-bottom: 16px;
}

/* Sina gri */
.meniu-price-track-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 0;
}

/* Portiunea selectata (colorata) */
.meniu-price-track__fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: #9a0019;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

/* Cele doua input-uri suprapuse */
.meniu-price-range {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    height: 20px;
    outline: none;
}

.meniu-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #9a0019;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.meniu-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #9a0019;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    cursor: pointer;
    pointer-events: all;
}

.meniu-price-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(154,0,25,0.12);
}

.meniu-price-filter__footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meniu-price-filter__btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.meniu-price-filter__btn:hover {
    background: #9a0019;
}

.meniu-price-filter__label {
    font-size: 0.82rem;
    color: #555;
}


/* Widget: categorii produse */
.meniu-widget.widget_product_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.meniu-widget.widget_product_categories li {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

.meniu-widget.widget_product_categories li:last-child {
    border-bottom: none;
}

.meniu-widget.widget_product_categories a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.meniu-widget.widget_product_categories a:hover {
    color: #9a0019;
}

/* Widget: filtru pret */
.meniu-widget.widget_price_filter .price_slider_wrapper {
    padding-top: 8px;
}

.meniu-widget.widget_price_filter .ui-slider-range {
    background: #9a0019;
}

.meniu-widget.widget_price_filter .ui-slider-handle {
    border-color: #9a0019;
    background: #9a0019;
}

.meniu-widget.widget_price_filter button[type="submit"] {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.meniu-widget.widget_price_filter button[type="submit"]:hover {
    background: #9a0019;
}

/*  Info bar  */
.meniu-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    background: #fdf6e3;
    border: 1px solid #f0d89a;
    border-radius: 8px;
    padding: 0;
    font-size: 0.875rem;
    color: #5a4a1e;
    margin-bottom: 32px;
    overflow: hidden;
}

.meniu-info-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    flex: 1 1 auto;
    line-height: 1.5;
}

.meniu-info-bar__item strong {
    color: #3a2a00;
}

.meniu-info-bar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #9a6c00;
    opacity: 0.85;
}

.meniu-info-bar__sep {
    width: 1px;
    align-self: stretch;
    background: #f0d89a;
}

/*  NIVEL 1: Grid categorii  */
.meniu-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.meniu-cat-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.meniu-cat-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.meniu-cat-card__img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.meniu-cat-card__img-wrap--placeholder {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.meniu-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.meniu-cat-card:hover .meniu-cat-card__img {
    transform: scale(1.06);
}

.meniu-cat-card__info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meniu-cat-card__name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.meniu-cat-card__count {
    font-size: 0.75rem;
    color: #9a0019;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/*  NIVEL 2: Header produse  */
.meniu-produse__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.meniu-produse__count {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1;
}

.meniu-sort-select {
    width: auto;
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 32px 7px 12px;
    font-size: 0.85rem;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.meniu-sort-select:hover,
.meniu-sort-select:focus {
    border-color: #9a0019;
}

.meniu-produse__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

/*  Grid produse  */
.meniu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/*  Card produs  */
.meniu-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.meniu-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.meniu-card--out-of-stock {
    opacity: 0.6;
}

.meniu-card__img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
}

/* Banner STOC EPUIZAT pe imagine */
.meniu-card__oos-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
}

.meniu-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.meniu-card:hover .meniu-card__img {
    transform: scale(1.04);
}

/* Buton Quick View pe hover imagine */
.meniu-card__img-wrap:hover .bdt-qv-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.meniu-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
    gap: 4px;
}

.meniu-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.meniu-card__name a {
    color: #1a1a1a;
    text-decoration: none;
}

.meniu-card__name a:hover {
    color: #9a0019;
}

.meniu-card__weight,
.meniu-card__desc {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

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

.meniu-card__footer .added_to_cart {
    display: none !important;
}

.meniu-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #9a0019;
    white-space: nowrap;
}

.meniu-card__price .woocommerce-Price-amount {
    color: inherit;
}

.meniu-card__atc.button {
    background: #9a0019;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s;
    line-height: 1.4;
    display: inline-block;
}

.meniu-card__atc.button:hover {
    background: #7a0014;
    color: #fff !important;
}

.meniu-card__oos {
    font-size: 0.75rem;
    color: #aaa;
    font-style: italic;
}

.meniu-no-products {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/*  Mobile  */
@media (max-width: 768px) {
    .meniu-page {
        padding: 16px 0 48px;
    }

    .meniu-layout {
        grid-template-columns: 1fr;
    }

    .meniu-sidebar {
        position: static;
        order: -1;
        overflow: visible;
    }

    /* Widget categorii - titlu ascuns, compact */
    .meniu-sidebar .meniu-widget {
        margin-bottom: 12px;
    }

    .meniu-sidebar .meniu-widget__title {
        display: none;
    }

    /* Filtru pret ascuns pe mobil */
    .meniu-sidebar .meniu-widget:has(#meniu-price-min) {
        display: none;
    }

    /* Pills categorii - wrap pe mai multe randuri, se vad toate */
    .meniu-cat-list {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        padding-bottom: 4px;
    }

    .meniu-cat-list::-webkit-scrollbar {
        display: none;
    }

    .meniu-cat-list__item {
        border-bottom: none;
        flex-shrink: 0;
    }

    .meniu-cat-list__btn {
        background: #f0f0f0;
        border: 1.5px solid transparent;
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 0.82rem;
        font-weight: 600;
        width: auto;
        white-space: nowrap;
        transition: background 0.18s, border-color 0.18s, color 0.18s;
    }

    .meniu-cat-list__btn.is-active {
        background: #9a0019;
        border-color: #9a0019;
        color: #fff;
    }

    .meniu-cat-list__count {
        display: none;
    }

    /* Info bar - simplificat pe mobil, fara icon */
    .meniu-info-bar {
        flex-direction: column;
        font-size: 0.74rem;
        margin-bottom: 14px;
        border-radius: 6px;
    }

    .meniu-info-bar__icon {
        display: none;
    }

    .meniu-info-bar__item {
        padding: 8px 12px;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.55;
        flex-wrap: wrap;
    }

    .meniu-info-bar__sep {
        width: 100%;
        height: 1px;
        background: #f0d89a;
        align-self: auto;
    }

    /* Grid categorii - 1 pe linie, card orizontal ca produsele */
    .meniu-cat-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .meniu-cat-card {
        flex-direction: row;
        align-items: stretch;
        border-radius: 10px;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .meniu-cat-card__img-wrap {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        aspect-ratio: unset;
        border-radius: 0;
        flex-shrink: 0;
    }

    .meniu-cat-card__info {
        padding: 12px 14px;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        flex: 1;
    }

    .meniu-cat-card__name {
        font-size: 0.9rem;
        letter-spacing: 0.02em;
        line-height: 1.3;
    }

    .meniu-cat-card__count {
        font-size: 0.78rem;
    }

    /* Grid produse - 1 coloana pe mobil */
    .meniu-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Card produs orizontal pe 1 coloana */
    .meniu-card {
        flex-direction: row;
        align-items: stretch;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .meniu-card__img-wrap {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        aspect-ratio: unset;
        flex-shrink: 0;
    }

    .meniu-card__body {
        flex: 1;
        min-width: 0;
        padding: 10px 12px 10px;
        gap: 3px;
    }

    .meniu-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 8px;
    }

    .meniu-card__atc.button {
        width: 100%;
        text-align: center;
        padding: 7px 10px;
        font-size: 0.76rem;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .meniu-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}