:root {
    --oc-text-main: #444;
    --oc-text-light: #888;
    --oc-border: #f0f0f0;
    --oc-bg-hover: #fafafa;
    --oc-accent: #000;
}

#cart-offcanvas, #user-offcanvas {
    position: fixed; /* MUSS fixed sein */
    top: 0;
    right: -450px; /* Startposition außerhalb */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10; /* Sehr hoch ansetzen! */
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    display: block !important; /* Sicherstellen, dass es nicht auf none steht */
}
#cart-offcanvas.open, #user-offcanvas.active {
    right: 0;
}

@media (max-width: 480px) {
    #cart-offcanvas, #user-offcanvas {
        width: 100%;
        right: -100%;
    }
}


/* Listen-Stil */
.offcanvas-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-offcanvas-header {display:flex; justify-content: space-between; align-items: center; padding: 10px 25px;
& .close-btn {border: 0;background: transparent; padding: 0px 6px; font-size: 40px;}
}

.cart-offcanvas-footer {display:flex; justify-content: space-between; align-items: center; flex-direction: column; padding: 10px 25px;
   & .btn-view-cart {border-radius: 10px; width: 100%; padding: 30px 0; background:#ccc;}
   & .btn-checkout {border-radius: 10px; width: 100%; padding: 30px 0;}

}



.offcanvas-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 15px 25px;
    border-bottom: 1px solid var(--oc-border);
    transition: background 0.2s;
}

/* Linke Seite: Bild + Name + Mengen-Regler */
.offcanvas-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px; /* Zarter Radius */
    border: 1px solid var(--oc-border);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-size: 14px;
    color: var(--oc-text-main);
    font-weight: 400;
}

/* Mengen-Regler */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--oc-text-light);
}

.qty-btn {
    background: none;
    border: 1px solid var(--oc-border);
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 4px;
    color: var(--oc-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.2s;
}

.qty-btn:hover { border-color: var(--oc-accent); }

/* Rechte Seite: Preis + Löschen */
.offcanvas-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.item-price {
    font-size: 14px;
    font-weight: 500;
    width: 60px;
    color: var(--oc-accent);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.remove-item-btn:hover { color: #ff4d4d; }

/* Zusammenfassung */
.offcanvas-summary {
    margin-top: 25px;
    padding-top: 15px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.summary-label {
    font-size: 14px;
    color: var(--oc-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--oc-accent);
}

.empty-cart-msg {
    text-align: center;
    padding: 50px 0;
    color: var(--oc-text-light);
    font-style: italic;
}

.user-content-container {
& p.small {font-size: 14px; font-weight: 400; line-height: 140%; margin-bottom: 16px; color: #7d7d7d;}

}
/* Offcanvas Login-Form */

#user-offcanvas{
& .user-welcome {padding:10px 25px; margin-bottom: 10px;}
& .user-nav {display: flex; flex-direction: column;}
& .nav-item {border-bottom: 1px solid #eee; background: #ffffff; padding: 15px 20px; width: 100%; text-align: left; color: #1a1a1a; text-transform: uppercase; letter-spacing: .5px; font-size: 14px;}
& .text-passwortvergessen {color:#aaa; display: block; margin-bottom: 10px; font-size: 13px;}
& .text-passwortvergessen:hover {color:#000;}

}



.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% Schwarz */
    z-index: 8; /* Unter dem Warenkorb (999), über dem Shop */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* DER WEICHZEICHNER-TREND */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); /* Für Safari */
}

/* Wenn aktiv: Sichtbar machen */
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}