﻿/*cartPreview*/
@media (max-width:420px) {
    .cart-preview-box {
        width: 350px !important;
    }
}

.cart-wrapper {
    position: relative;
}

/* dropdown */
.cart-preview-container {
    position: absolute;
    top: calc(100% );
    left: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

/* show */
.cart-wrapper:hover .cart-preview-container {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* main box */
.cart-preview-box {
    width: 400px;
    min-height: 400px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    box-shadow: 0 10px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
    backdrop-filter: blur(8px);
}

/* header */
.cart-preview-header {
    padding: 10px;
    border-bottom: 1px solid #f3f3f3;
    background: linear-gradient( to left, #faf7ff, #ffffff );
    font-size: 15px;
    font-weight: 700;
    color: #4A148C;
}

/* items area */
.cart-preview-items {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}

    /* custom scrollbar */
    .cart-preview-items::-webkit-scrollbar {
        width: 7px;
    }

    .cart-preview-items::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 20px;
    }

/* item */
.cart-preview-item {
    padding: 10px;
    transition: .2s ease;
    border-bottom: 1px solid #f7f7f7;
}

    .cart-preview-item:hover {
        background: #fafafa;
    }


/* image */
.cart-item-top img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #eee;
    background: #fff;
    transition: .25s ease;
}

.cart-preview-item:hover img {
    transform: scale(1.03);
}

/* title */
.cart-item-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.9;
}

/* row 2 */
.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* price */
.cart-item-price {
    font-size: 13px;
    font-weight: 500;
    color: black;
}

/* actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}



/* footer */
.cart-preview-footer {
    padding: 10px 10px 0px 10px;
    border-top: 1px solid #f3f3f3;
    background: #fcfcfc;
}

/* total */
.cart-total-price {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--gray-dark);
}

    .cart-total-price strong {
        font-size: 15px;
        color: var(--royal-red);
    }



/* empty state */
.cart-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999;
    gap: 12px;
}
/*cartPreview*/



.cart-preview-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

    .cart-preview-container.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.checkout-btn{
    background-color:var(--primary-light);
    border:0px;
    color:var(--royal-red);
}

.btn-action{

    color:var(--primary);
}
.spn-action{

    color:var(--primary);
}


