:root {
    --side-cart-bg: #000;
    --side-cart-text: #fff;
    --side-cart-accent: #bfa235;
    --side-cart-border: rgba(255, 255, 255, 0.1);
    --side-cart-width: 400px;
}

/* Base Body Fix */
body.side-cart-open {
    overflow: hidden !important;
}

.custom-side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

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

.custom-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--side-cart-width);
    height: 100% !important;
    min-height: 100vh !important;
    background: #000 !important;
    color: #fff !important;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.custom-side-cart.active {
    transform: translateX(0);
}

.cart-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--side-cart-border);
    background: #000;
}

.cart-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-cart {
    background: none;
    border: none;
    color: #fff !important;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.close-cart:hover {
    transform: rotate(90deg);
    color: var(--side-cart-accent) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Flexible content area */
#side-cart-dynamic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}

.side-cart-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

/* Custom Scrollbar */
.cart-content::-webkit-scrollbar {
    width: 3px;
}

.cart-content::-webkit-scrollbar-thumb {
    background: var(--side-cart-accent);
}

.custom-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mini-cart-item {
    display: flex !important;
    gap: 15px;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--side-cart-border) !important;
}

.item-image img {
    width: 85px !important;
    height: 85px !important;
    object-fit: cover !important;
    border: 1px solid #222;
}

.item-details {
    flex: 1;
}

.product-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-bottom: 5px !important;
    display: block;
    line-height: 1.3;
}

.product-title:hover {
    color: var(--side-cart-accent) !important;
}

.product-price {
    font-size: 14px !important;
    color: #ccc !important;
    margin-bottom: 12px !important;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #444;
}

.qty-btn {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--side-cart-accent) !important;
    color: #fff !important;
}

.qty-input {
    width: 20px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff !important;
    font-size: 13px;
    padding: 0;
}

.remove-item {
    font-size: 12px !important;
    color: #fff !important;
    text-decoration: underline !important;
    opacity: 0.6;
}

/* Hide theme cart elements that might conflict */
.elementor-menu-cart__container,
.widget_shopping_cart.dropdown,
.header-cart-content {
    display: none !important;
}

.remove-item:hover {
    opacity: 1;
    color: #ff3333 !important;
}

/* Sticky Footer */
.cart-footer {
    padding: 25px 30px;
    background: #0a0a0a;
    border-top: 1px solid var(--side-cart-border);
    margin-top: auto;
}

.subtotal {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.subtotal span {
    color: #fff !important;
}

.checkout-btn {
    display: block !important;
    background: var(--side-cart-accent) !important;
    color: #fff !important;
    text-align: center !important;
    padding: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1.5px;
    margin-bottom: 15px !important;
}

.view-cart {
    display: block !important;
    text-align: center !important;
    color: #fff !important;
    text-decoration: underline !important;
    font-size: 13px !important;
    opacity: 0.7;
}

/* Responsiveness */
@media (max-width: 768px) {
    .custom-side-cart {
        width: 100% !important;
        background: #000 !important;
    }

    .cart-header,
    .cart-footer {
        padding: 20px;
    }

    .cart-content {
        padding: 15px 20px;
    }
}