/**
 * Restaurant theme — driven by CSS custom properties (--accent-color,
 * --accent-text-color, --active-tab-color, --subtitle-bg-color,
 * --subtitle-text-color) declared in the <style> block that index.php renders from
 * abel_config_css (see getRestaurantTheme()/renderThemeStyle() in helpers.php). This
 * file only ever references those variables — never hardcode a color here, or a
 * restaurant's customization stops working for it.
 */

.title-h {
    background-color: var(--accent-color, #008491);
    border-color: var(--accent-color, #008491);
}
.title-h h3,
.title-h .h3carta {
    color: var(--accent-text-color, #ffffff);
}

.subtitle-h {
    background-color: var(--subtitle-bg-color, #000000);
    border-color: var(--subtitle-bg-color, #000000);
}
/* The subcategory name itself keeps the accent color as its own little badge,
   distinct from the (usually darker) bar it sits on — matches the original design. */
.subtitle-h .h3carta {
    color: var(--accent-text-color, #ffffff);
    background-color: var(--accent-color, #008491);
}
.h4carta {
    font-weight: bold;
}

.nav-tabs>li>a.active, .nav-tabs>li>a.active:focus, .nav-tabs>li>a.active:hover {
    background-color: unset !important;
    color: unset !important;
    border-bottom: 4px solid var(--active-tab-color, #008491);
    border-color: var(--active-tab-color, #008491) !important;
    border-left: #fff;
    border-right: #fff;
    border-top: #fff;
}

.body_carta {
    background-color: transparent !important;
}
footer {
    background-color: transparent !important;
}

/* Product cart icon */
.add-to-cart-btn {
    background: #f0f0f0;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    color: #000;
    font-size: 13px;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.add-to-cart-btn:hover { background: #ddd; color: #000; }

.cart-header {
    padding: 0px 10px;
    background: var(--accent-color, #008491);
    color: var(--accent-text-color, #fff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-warning {
    padding: 10px 16px;
    text-align: center;
    color: #000;
    font-style: italic;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: darkorange;
    font-weight: bold;
}

.cart-category-header {
    text-align: center;
    padding: 10px 16px 2px;
    font-style: italic;
    font-size: 16px;
    color: var(--accent-color, #008491);
    font-weight: bold;
}

#cart-floating i { color: var(--accent-text-color, #fff); }
#cart-close { color: var(--accent-text-color, #fff); }

.cart-item-price {
    font-size: 14px;
    color: var(--accent-color, #008491);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

#cart-panel .fa-trash-o { color: var(--accent-text-color, #fff); }

#cart-floating {
    background: var(--accent-color, #008491);
    color: var(--accent-text-color, #fff);
}

#scroll-top-btn {
    background: var(--accent-color, #008491);
    color: var(--accent-text-color, #fff);
}

.cart_explain {
    text-align: center;
    border: var(--accent-color, #008491) 3px double;
    background: lightgrey;
}

#cart-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: 90vw;
    height: 80vh;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 3px solid var(--accent-color, #008491);
}
