/* Side Cart Base Styles */
.side-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.side-cart-modal.open {
    visibility: visible;
    opacity: 1;
}

.side-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.side-cart-container {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

@media(max-width: 450px) {
    .side-cart-container {
        width: 100%;
        right: -100%;
    }
}

.side-cart-modal.open .side-cart-container {
    right: 0;
}

.side-cart-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.close-side-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #333;
}

.side-cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Scrollbar styling for cart */
.side-cart-body::-webkit-scrollbar {
    width: 6px;
}
.side-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.side-cart-body::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 3px;
}
.side-cart-body::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

.side-cart-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Animations for adding items */
@keyframes addedHighlight {
    0% { background-color: #f0f8ff; }
    100% { background-color: #fff; }
}

.side-cart-item.just-added {
    animation: addedHighlight 2s ease-out;
}

/* Floating toggler custom style if needed */
.fkcart-item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #cf2e2e;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}
