/* ============================================================
   LA ROSTISSERIA – Tienda [rostisseria_tienda] v1.4
   Tipografía: La Belle Aurore (títulos) + Nunito Sans (cuerpo)
   Color marca: #903C1C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=La+Belle+Aurore&family=Nunito+Sans:wght@300;400;700&display=swap');

.lr-shell *,
.lr-shell *::before,
.lr-shell *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lr-shell {
    --brand:        #903C1C;
    --brand-hover:  #6e2c13;
    --brand-light:  #fdf0eb;
    --brand-border: #e8c9bc;
    --radius:       8px;

    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: #1a1009;
    line-height: 1.5;

    width: 100%;
    border: 1px solid #e0d4c6;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 82vh;
    height: 82vh;
    background: #fff;
}

/* Cabecera interna oculta — el título lo pone el tema */
.lr-header {
    display: none;
}

.lr-carta-title {
    font-family: 'La Belle Aurore', cursive;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    text-align: center;
    padding: 12px 16px 10px;
    margin: 0;
    color: var(--brand);
    border-bottom: 1px solid var(--brand-border);
    background: #fffefc;
    flex-shrink: 0;
}

.lr-seasonal-note {
    font-size: 0.9rem;
    color: #5c4a3d;
    font-style: italic;
    padding: 0 4px 14px;
    margin: 0;
    max-width: 42em;
    line-height: 1.45;
}

.lr-bebidas-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lr-bebida-block .lr-grid {
    margin-top: 0;
}

.lr-subsection-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--brand);
    padding: 4px 4px 8px;
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: 4px;
}

/* ── CUERPO: 3 columnas ── */
.lr-body {
    display: grid;
    grid-template-columns: 190px 1fr 250px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

/* ── SIDEBAR IZQUIERDA ── */
.lr-sidenav {
    background: #faf7f3;
    border-right: 1px solid var(--brand-border);
    padding: 12px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-self: stretch;
}

.lr-sidenav-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #b0a090;
    font-weight: 700;
    padding: 0 14px 10px;
}

.lr-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: none;
    border-left: 3px solid transparent;
    background: none;
    text-align: left;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: background .12s, color .12s;
    line-height: 1.3;
}

.lr-nav-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: .5;
    flex-shrink: 0;
}

.lr-nav-btn:hover {
    background: var(--brand-light);
    color: #555;
}

.lr-nav-btn.active {
    background: var(--brand-light);
    color: var(--brand);
    border-left-color: var(--brand);
    font-weight: 700;
}

.lr-nav-btn.active svg {
    opacity: 1;
}

.lr-nav-count {
    margin-left: auto;
    font-size: 10px;
    background: #fff;
    border: 1px solid #e8ddd3;
    border-radius: 10px;
    padding: 1px 5px;
    color: #b0a090;
    flex-shrink: 0;
}

/* ── GRID CENTRAL ── */
.lr-main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    background: #fff;
}

.lr-loading {
    text-align: center;
    padding: 40px;
    color: #bbb;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
}

.lr-section-title {
    font-family: 'La Belle Aurore', cursive;
    font-size: 40px;
    font-weight: 400;
    color: var(--brand);
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--brand-border);
    line-height: 1.2;
}

.lr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.lr-card {
    background: #fff;
    border: 1px solid #ede4d9;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.lr-card:hover {
    border-color: var(--brand);
    box-shadow: 0 2px 8px rgba(144,60,28,.10);
}

.lr-card-img {
    width: 100%;
    height: 180px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lr-card-img svg {
    width: 56px;
    height: 56px;
    fill: var(--brand);
    opacity: .4;
}

.lr-card-body {
    padding: 18px;
}

.lr-card-name {
    font-family: 'La Belle Aurore', cursive;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    color: #1a1009;
    margin-bottom: 6px;
}

.lr-card-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 14px;
    min-height: 60px;
}

.lr-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.lr-price {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.lr-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    font-family: 'Nunito Sans', sans-serif;
}

.lr-add-btn:hover {
    background: var(--brand-hover);
}

/* ── CARRITO ── */
.lr-cart {
    border-left: 1px solid var(--brand-border);
    background: #faf7f3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-self: stretch;
}

.lr-cart-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fff;
}

.lr-cart-title {
    font-family: 'La Belle Aurore', cursive;
    font-size: 22px;
    font-weight: 400;
    color: #1a1009;
    line-height: 1;
}

.lr-cart-badge {
    background: var(--brand);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
    min-width: 22px;
    text-align: center;
}

.lr-cart-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px;
}

.lr-empty-cart {
    text-align: center;
    padding: 28px 8px;
    color: #ccc;
    font-size: 12px;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.8;
}

.lr-empty-cart svg {
    width: 28px;
    height: 28px;
    fill: #ddd;
    display: block;
    margin: 0 auto 8px;
}

.lr-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 0;
    border-bottom: 1px solid #ede4d9;
}

.lr-cart-item:last-child {
    border-bottom: none;
}

.lr-cart-item-info {
    flex: 1;
    min-width: 0;
}

.lr-cart-item-name {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1a1009;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lr-cart-item-price {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.lr-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.lr-qty-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: border-color .12s, color .12s;
    font-family: 'Nunito Sans', sans-serif;
    padding: 0;
}

.lr-qty-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.lr-qty-num {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
    color: #1a1009;
}

/* ── PIE DEL CARRITO ── */
.lr-cart-foot {
    padding: 12px;
    border-top: 1px solid var(--brand-border);
    flex-shrink: 0;
    background: #fff;
}

.lr-delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.lr-dtog {
    padding: 7px 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #faf7f3;
    font-size: 12px;
    font-family: 'Nunito Sans', sans-serif;
    color: #888;
    cursor: pointer;
    text-align: center;
    transition: all .12s;
    line-height: 1;
}

.lr-dtog.active {
    border-color: var(--brand);
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 700;
}

.lr-row-price {
    display: flex;
    justify-content: space-between;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.lr-row-total {
    font-size: 14px;
    font-weight: 700;
    color: #1a1009;
    margin-bottom: 10px;
    padding-top: 6px;
    border-top: 1px solid #ede4d9;
}

.lr-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 10px;
    color: #aaa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lr-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    color: #333;
    background: #fff;
    margin-bottom: 8px;
}

.lr-condimento-wrap {
    margin-bottom: 8px;
}

.lr-pickup-info {
    background: var(--brand-light);
    border-left: 3px solid var(--brand);
    border-radius: 0 5px 5px 0;
    padding: 7px 9px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    color: #5a3010;
    line-height: 1.6;
    margin-bottom: 8px;
}

.lr-checkout-btn {
    width: 100%;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 12px;
    font-size: 16px;
    font-family: 'La Belle Aurore', cursive;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .02em;
}

.lr-checkout-btn:hover:not(:disabled) {
    background: var(--brand-hover);
}

.lr-checkout-btn:disabled {
    background: #e8e0d8;
    color: #bbb;
    cursor: default;
}

.lr-notice {
    margin-top: 7px;
    padding: 7px 9px;
    border-radius: 5px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    background: #eafaf0;
    color: #2a7a3a;
    text-align: center;
}

/* ── OVERRIDES DEL TEMA ── */
.elementor-widget-shortcode .lr-shell,
.entry-content .lr-shell,
.wp-block-shortcode .lr-shell {
    width: 100% !important;
    max-width: 100% !important;
}
.elementor-widget-shortcode {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .lr-shell { height: auto; min-height: 500px; }
    .lr-body  { grid-template-columns: 130px 1fr 190px; }
    .lr-section-title { font-size: 30px; }
}

@media (max-width: 660px) {
    .lr-shell { height: auto; border-radius: 0; border-left: none; border-right: none; }
    .lr-body  { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
    .lr-sidenav {
        border-right: none;
        border-bottom: 1px solid var(--brand-border);
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 0;
    }
    .lr-sidenav-label { display: none; }
    .lr-nav-btn {
        flex-direction: column;
        gap: 2px;
        padding: 6px 10px;
        border-left: none;
        border-bottom: 2px solid transparent;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .lr-nav-btn.active { border-left-color: transparent; border-bottom-color: var(--brand); }
    .lr-nav-count { display: none; }
    .lr-main       { max-height: 380px; }
    .lr-section-title { font-size: 28px; }
    .lr-cart       { border-left: none; border-top: 1px solid var(--brand-border); }
    .lr-cart-items { max-height: 180px; }
}
