/* ======================================================
 * RESTAURANT COLOR SYSTEM
 * ====================================================== */
:root {
    --color-bg: #f5f1e6;
    --color-primary: #7a6e49;
    --color-dark: #4f4a50;
    --color-soft: #e8e2d3;
}

/* ======================================================
 * GLOBAL
 * ====================================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-dark);
    font-family: "Inter", sans-serif;
}

/* ======================================================
   EXTRAS / TOPPINGS — PREMIUM STYLE
====================================================== */

/* ---------- Toggle Button ---------- */

#toggle-extras,
#custom-plugin-toggle-extras {
    display: inline-block;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--color-soft);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s ease;
}

#toggle-extras:hover {
    background: var(--color-primary);
    color: #fff;
}


/* ---------- Extras Container ---------- */

#extras-container,
#custom-plugin-extras-container,
.extras-container,
.custom-plugin-extras-container {  
    overflow-y: auto;
    max-height: 50vh;
    flex: 1 1 auto;
    margin-top: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 6px 18px rgba(0,0,0,.06);

    padding: 10px;
}


/* ---------- Scroll behaviour (lange Listen) ---------- */

.extras-container ul,
.custom-plugin-extras-container ul {

    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 260px;
}


/* Webkit Scrollbar */
.extras-container ul::-webkit-scrollbar {
    width: 6px;
}

.extras-container ul::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 10px;
}


/* ---------- Single Extra Item ---------- */

.extras-container li,
.custom-plugin-extras-container li {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;
    margin-bottom: 6px;

    border-radius: 10px;
    background: #fafafa;

    transition: all .18s ease;
}

.extras-container li:hover {
    background: #f3f3f3;
}


/* ---------- Checkbox Premium ---------- */

.extras-container input[type="checkbox"] {

    appearance: none;
    width: 20px;
    height: 20px;

    border-radius: 6px;
    border: 2px solid var(--color-primary);
    margin-right: 12px;

    position: relative;
    cursor: pointer;
    transition: all .18s ease;
}

.extras-container input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.extras-container input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
}


/* ---------- Label Layout ---------- */

.extras-container label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}


/* ---------- Price Badge ---------- */

.extra-price {

    margin-left: auto;
    font-weight: 600;
    font-size: 14px;

    color: var(--color-primary);

    background: var(--color-soft);
    padding: 4px 10px;
    border-radius: 999px;
}


/* ---------- Smooth expand animation ---------- */

#extras-container {
    animation: extrasFade .25s ease;
}

@keyframes extrasFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================
 * SPEISEKARTE – WRAPPER & SCROLL
 * ====================================================== */

#shop-categories-wrapper {
    position: relative;
    width: 100%;
}

.scroll-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 20px;
    z-index: 50;
}

.scroll-control {
    background-color: rgba(79,74,80,.85);
    color: var(--color-bg);
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
}

/* scroll container */

#vanic-categories-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#vanic-categories-container::-webkit-scrollbar {
    display: none;
}

/* ======================================================
 * KATEGORIEN
 * ====================================================== */

#shop-categories-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.shop-categories-list {
    list-style: none !important;
    padding: 0 50vw;
    margin: 0;
    display: flex;
    gap: 20px;
    width: max-content;
}

.category-item {
    background: #fff;
    flex: 0 0 auto;
    width: 55vw;
    scroll-snap-align: center;
    margin-bottom: 30px;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(79,74,80,0.08),
        0 2px 6px rgba(79,74,80,0.05);
    transition: .35s ease;
}

.category-item:hover {
    transform: translateY(-4px);
}

@media (max-width:768px){
    .category-item{
        width:100vw;
    }
}

.category-title {
    background: transparent;
    border: none;
    color: var(--color-dark) !important;
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 12px;
    position: relative;
}

.category-title::after {
    content:"";
    display:block;
    width:60px;
    height:2px;
    background:var(--color-primary);
    margin:10px auto 0;
}

.category-description {
    font-style: italic;
    color: #8a8478;
    margin-bottom: 25px;
    font-size: 15px;
    text-align: center;
}

/* ======================================================
 * PRODUKTE
 * ====================================================== */

.menu-product {
    display:flex;
    align-items:flex-start;
    position:relative;
    padding:14px 10px;
    border-bottom:1px dashed rgba(79,74,80,.2);
    cursor:pointer;
    transition:.25s ease;
}

.menu-product:hover {
    transform:translateX(6px);
    background:rgba(245,241,230,.4);
    border-radius:10px;
}

.product-image {
    max-width:60px;
    margin-right:10px;
}

.product-info {
    flex:1;
    display:flex;
    flex-direction:column;
}

.product-info h3 {
    display:flex;
    justify-content:space-between;
    font-size:17px;
    font-weight:600;
    color:var(--color-dark);
}

.product-description {
    font-size:14px;
    line-height:1.5;
    color:#7c766b;
    max-width:85%;
    margin-top:6px;
}

.price {
    font-weight:600;
    color:var(--color-primary);
    white-space:nowrap;
}

/* PLUS BUTTON */

.add-icon {
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:28px;
    height:28px;
    background:var(--color-primary);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    transition:.25s ease;
}

.add-icon.open {
    transform:translateY(-50%) rotate(45deg);
}

/* ======================================================
 * AJAX PRODUCT OVERLAY (NEW SYSTEM)
 * ====================================================== */

.pizza-overlay {
    margin-top:15px;
    max-height:0;
    opacity:0;
    overflow:hidden;
    transition:max-height .45s ease, opacity .35s ease;
}

.pizza-overlay.open {

    opacity: 1;
    max-height: 85vh;
    display: flex;
}

/* overlay card */

.overlay-inner {
    display: flex;
    flex-direction: column;
    background:#fff;
    border-radius:20px;
    padding:22px;
    box-shadow:0 15px 40px rgba(79,74,80,.18);
    animation:overlayIn .35s ease;
    width: 100%;
}

@keyframes overlayIn {
    from {
        transform:translateY(20px);
        opacity:0;
    }
}

.overlay-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.overlay-header h3 {
    margin:0;
    font-size:20px;
}

.overlay-close {
    background:none;
    border:none;
    font-size:28px;
    cursor:pointer;
    color:var(--color-dark);
}

.overlay-image {
    width:100%;
    border-radius:14px;
    margin:15px 0;
}

.overlay-description {
    color:#7c766b;
    line-height:1.6;
}

.overlay-footer {
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.overlay-price {
    font-size:18px;
    font-weight:600;
    color:var(--color-primary);
}

.overlay-add {
    background:var(--color-primary);
    color:#fff;
    padding:12px 18px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
    transition:.25s ease;
}

.overlay-add:hover {
    background:var(--color-dark);
}

/* ======================================================
 * STATUS BAR
 * ====================================================== */

.status-bar {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    text-align:center;
    font-weight:bold;
    z-index:10000;
}

.status-bar.open {
    background:var(--color-primary);
    color:var(--color-bg);
}

.status-bar.closed {
    background:#b33a3a;
    color:#fff;
}

/* ======================================================
 * CART ICON
 * ====================================================== */

#cart-icon {
    position:fixed;
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--color-dark);
    color:var(--color-bg);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

#cart-icon:hover {
    background:var(--color-primary);
}

#cart-count {
    position:absolute;
    top:5px;
    right:5px;
    background:var(--color-bg);
    color:var(--color-dark);
    border-radius:50%;
    padding:2px 5px;
    font-size:12px;
    font-weight:bold;
}

/* ======================================================
 * NOTIFICATION
 * ====================================================== */

.notification {
    display:none;
    position:fixed;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(79,74,80,.95);
    color:var(--color-bg);
    padding:10px 20px;
    border-radius:6px;
    z-index:9999;
}

/* ======================================================
 * PLUS / MINUS BUTTONS
 * ====================================================== */

.plus-btn,
.minus-btn {
    background:var(--color-primary);
    color:var(--color-bg);
    border:none;
    width:25px;
    border-radius:100px;
    cursor:pointer;
}

/* WooCommerce Variation Price Fix */
.single_variation .price {
    display:none !important;
}

/* ======================================================
   STICKY BOTTOM BAR
====================================================== */

#gastro-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    height: 70px;
    padding: 10px 14px;

    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.08);

    display: flex;
    align-items: center;
    gap: 12px;

    z-index: 99998;

    box-shadow: 0 -4px 20px rgba(0,0,0,.08);

    transition: transform .25s ease, opacity .25s ease;
}

/* Seite nicht unter Bar verschwinden lassen */
body {
    padding-bottom: 80px;
}

.bottom-call {
    width: 52px;
    height: 52px;

    border-radius: 14px;
    background: var(--color-soft);
    color: var(--color-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    text-decoration: none;

    transition: .2s ease;
}

.bottom-call:hover {
    background: var(--color-primary);
    color: #fff;
}

.bottom-cart {
    flex: 1;
    height: 52px;

    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-decoration: none;
    font-weight: 600;

    transition: .2s ease;
}

.bottom-cart:hover {
    background: var(--color-dark);
}

.cart-icon {
    font-size: 20px;
}

.cart-info {
    font-size: 15px;
}

/* ======================================================
   MINI CART DRAWER OVERLAY
====================================================== */

#gastro-cart-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;

    z-index: 99999;
}

#gastro-cart-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

/* ======================================================
   DRAWER PANEL
====================================================== */

.cart-drawer-inner {
    position: absolute;
    right: 0;
    top: 0;

    height: 100%;
    width: 420px;
    max-width: 95%;

    background: #ffffff;

    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.9,.35,1);

    box-shadow: -12px 0 40px rgba(0,0,0,.2);

    display: flex;
    flex-direction: column;
}

#gastro-cart-drawer.open .cart-drawer-inner {
    transform: translateX(0);
}

/* ======================================================
   HEADER
====================================================== */

.cart-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--color-bg);
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--color-dark);
}

#cart-drawer-close {
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-dark);
    transition: .2s;
}

#cart-drawer-close:hover {
    transform: scale(1.15);
}

/* ======================================================
   CONTENT AREA
====================================================== */

#cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* ======================================================
   HIDE PRODUCT IMAGES (DEIN WUNSCH)
====================================================== */

#cart-drawer-content .mini_cart_item img,
#cart-drawer-content .woocommerce-mini-cart__item img {
    display: none !important;
}

/* ======================================================
   CART ITEMS
====================================================== */

#cart-drawer-content .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
}

#cart-drawer-content .mini_cart_item {
    padding: 14px 0;
    border-bottom: 1px dashed rgba(79,74,80,.2);

    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* product name */

#cart-drawer-content .mini_cart_item a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
}

/* quantity + price */

#cart-drawer-content .quantity {
    color: #7c766b;
    font-size: 14px;
}

/* remove button */

#cart-drawer-content .remove {
    align-self: flex-start;
    text-decoration: none;
    color: #b33a3a !important;
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}

#cart-drawer-content .remove:hover {
    color: #ff0000 !important;
}

/* ======================================================
   TOTAL AREA
====================================================== */

#cart-drawer-content .woocommerce-mini-cart__total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--color-soft);

    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);

    display: flex;
    justify-content: space-between;
}

/* ======================================================
   BUTTONS
====================================================== */

#cart-drawer-content .woocommerce-mini-cart__buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* view cart */

#cart-drawer-content .button {
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
}

/* cart button */

#cart-drawer-content .button.wc-forward {
    background: var(--color-soft);
    color: var(--color-dark);
}

#cart-drawer-content .button.wc-forward:hover {
    background: var(--color-primary);
    color: #fff;
}

/* checkout button */

#cart-drawer-content .checkout {
    background: var(--color-primary);
    color: #fff !important;
}

#cart-drawer-content .checkout:hover {
    background: var(--color-dark);
}

/* ======================================================
   EMPTY CART
====================================================== */

#cart-drawer-content .woocommerce-mini-cart__empty-message {
    text-align: center;
    color: #7c766b;
    padding: 40px 10px;
}

/* ======================================================
   MOBILE OPTIMIZATION
====================================================== */

@media (max-width: 768px) {

    .cart-drawer-inner {
        width: 100%;
        max-width: 100%;
    }

}

/* ======================================================
   MINI CART QUANTITY CONTROLS
====================================================== */

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.qty-controls button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s;
}

.qty-controls button:hover {
    background: var(--color-dark);
}

.qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--color-dark);
}

/* ======================================================
   CART BAR PULSE ANIMATION
====================================================== */

#gastro-bottom-bar.pulse {
    animation: cartPulse .45s ease;
}

@keyframes cartPulse {

    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }

}

/* iFrame Bereich im Overlay */
.overlay-iframe-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

/* iFrame Höhe: Launch-sicher (ohne Auto-Resize) */
.overlay-iframe-wrap .product-iframe {
    width: 100%;
    height: 600px;
    border: 0;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    transition:height .18s ease;
}

/* Loader (klein, dezent) */
.overlay-loader {
    position: absolute;
    inset: 0;
    background: rgba(79, 74, 80, 0.18);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.overlay-loader::after {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 3px solid rgba(79, 74, 80, 0.25);
    border-top-color: rgba(79, 74, 80, 0.85);
    animation: spin 0.8s linear infinite;
}

.overlay-loader.is-hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-iframe {
    transition: height .18s ease;
}

/* ======================================================
   CATEGORY ICON STYLE (LIGHT ICON LOOK)
   nur Plugin Icons — keine echten Produktbilder!
====================================================== */

img[src*="/assets/icons/"] {

    /* kein Hintergrund */
    background: none !important;

    /* luftiger */
    padding: 10%;

    /* dünner & heller */
    opacity: 0.2;

    /* Linien optisch leichter machen */
    filter:
        brightness(1.35)
        contrast(0.85);

    object-fit: contain;

    transition: opacity .2s ease, filter .2s ease;
}

/* leichter Hover Effekt */
.menu-product:hover img[src*="/assets/icons/"],
.wc-block-cart-item:hover img[src*="/assets/icons/"] {
    opacity: 0.6;
    filter:
        brightness(1.45)
        contrast(0.9);
}