/* Cart Button - IM GRID-LAYOUT STYLE */
.cart-btn {
    position: relative;
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--anthracite);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-block;
    border-radius: 4px;
    text-align: center;
}

.cart-btn:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Cart Sidebar - RECHTS AUSFAHREND */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 20000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

/* Cart Sidebar Header */
.cart-sidebar-header {
    padding: 2rem;
    border-bottom: 2px solid var(--anthracite);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-title {
    font-size: 2rem;
    color: var(--anthracite);
    font-family: 'Cormorant Garamond', serif;
}

.cart-sidebar-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--carbon-grey);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
}

.cart-sidebar-close:hover {
    color: var(--anthracite);
}

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(27, 27, 27, 0.1);
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--light-stone);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.1rem;
    color: var(--anthracite);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cart-item-price {
    color: var(--stone-leather);
    font-size: 0.95rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--stone-leather);
    background: transparent;
    color: var(--anthracite);
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--anthracite);
    color: var(--white);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--stone-leather);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #d32f2f;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: var(--carbon-grey);
}

/* Cart Summary Footer */
.cart-summary {
    border-top: 2px solid var(--anthracite);
    padding: 2rem;
    background: var(--off-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--anthracite);
    margin-bottom: 1.5rem;
}

.cart-checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--anthracite);
    border: 1px solid var(--anthracite);
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.cart-checkout-btn:hover {
    background: transparent;
    color: var(--anthracite);
}

/* Overlay für Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 27, 27, 0.7);
    backdrop-filter: blur(5px);
    z-index: 19999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}