﻿
/*==========================
 FLOATING CART
===========================*/

.floating-cart{
    position:fixed;
    left:50%;
    bottom:15px;
    transform:translateX(-50%);
    width:230px;
    height:53px;
    background:#195844;
    border-radius:40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 8px;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
    z-index:999999;
    animation:cartShow .35s ease;
}

@keyframes cartShow{

    from{
        opacity:0;
        transform:translate(-50%,70px);
    }

    to{
        opacity:1;
        transform:translate(-50%,0);
    }

}

.fc-left{

    display:flex;
    align-items:center;
    gap:10px;

}

.fc-images{

    display:flex;
    align-items:center;

}

.fc-images img{

    width:30px;
    height:30px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
    margin-left:-8px;
    background:#fff;

}

.fc-images img:first-child{

    margin-left:0;

}

.fc-more{

    width:30px;
    height:30px;
    border-radius:50%;
    background:#70867d;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:700;
    border:2px solid #fff;
    margin-left:-8px;

}

.fc-details{

    display:flex;
    flex-direction:column;

}

.fc-items{

    color:#fff;
    font-size:11px;
    line-height:14px;

}

.fc-price{

    color:#fff;
    font-size:22px;
    font-weight:700;
    line-height:22px;

}

.fc-btn{

    width:58px;
    height:40px;
    border-radius:30px;
    background:#F8CF63;
    color:#195844;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-size:16px;
    transition:.25s;

}

.fc-btn:hover{

    background:#ffd84d;
    transform:scale(1.05);

}

/*==========================
 MOBILE
===========================*/

@media(max-width:480px){

.floating-cart{

    width:95%;
    max-width:330px;
    height:54px;
    bottom:12px;

}

.fc-images img,
.fc-more{

    width:28px;
    height:28px;
    font-size:10px;

}

.fc-price{

    font-size:18px;

}

.fc-items{

    font-size:10px;

}

.fc-btn{

    width:52px;
    height:36px;
    font-size:14px;

}

}


        /*==================================================
            CART OVERLAY
==================================================*/

.cart-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:9998;
}

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


/*==================================================
            CART DRAWER
==================================================*/

.cart-drawer{
    position:fixed;
    top:0;
    right:-430px;
    width:400px;
    max-width:100%;
    height:100vh;
    background:#fff;
    box-shadow:-10px 0 35px rgba(0,0,0,.18);
    transition:.35s ease;
    z-index:9999;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

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


/*==================================================
            HEADER
==================================================*/

.cart-header{
    height:70px;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #ececec;
    background:#fff;
}

.cart-header h2{
    margin:0;
    font-size:22px;
    font-weight:600;
    color:#184d3d;
}

.cart-back,
.cart-wishlist{
    width:60px;
    height:20px;
    border:none;
    background:#fff;
    border-radius:50%;
    cursor:pointer;
    font-size:17px;
    color:#184d3d;
}


/*==================================================
            CART INFO
==================================================*/

.cart-info{
    padding:10px 15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #ececec;
}

.cart-info-left{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:18px;
    font-weight:700;
    color:#184d3d;
}

.cart-info-right{
    font-size:16px;
    color:#444;
}


/*==================================================
            BODY
==================================================*/

.cart-body{
    flex:1;
    overflow-y:auto;
    padding:18px;
    background:#fafafa;
}

.cart-body::-webkit-scrollbar{
    width:5px;
}

.cart-body::-webkit-scrollbar-thumb{
    background:#ddd;
}


/*==================================================
            ITEM
==================================================*/

.cart-item{
    width:100%;
    min-height:75px;   /* Card Height */
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:16px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:16px;
    box-sizing:border-box;
    box-shadow:0 3px 10px rgba(0,0,0,.06);
}


/*==================================================
            IMAGE
==================================================*/

.cart-image img{
    width:90px;
    height:90px;
    object-fit:contain;
    background:#f7f7f7;
    border-radius:12px;
}


/*==================================================
            DETAILS
==================================================*/

.cart-details{
    flex:1;
}

.cart-details h4{
    margin:0;
    font-size:16px;
    line-height:22px;
    color:#1f2b42;
}

.cart-pack{
    display:inline-block;
    margin-top:8px;
    padding:3px 10px;
    background:#dff6ff;
    color:#0b5e8e;
    border-radius:6px;
    font-size:13px;
}


/*==================================================
            PRICE
==================================================*/

.cart-price{
    margin-top:10px;
}

.offer-price{
    font-size:26px;
    font-weight:700;
    color:#000;
}

.old-price{
    margin-left:8px;
    color:#888;
    text-decoration:line-through;
}


/*==================================================
            QTY
==================================================*/

.qty-box{
    margin-top:15px;
    width:120px;
    height:40px;
    border:1px solid #ccc;
    border-radius:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    overflow:hidden;
}

.qty-btn{
    width:40px;
    text-align:center;
    text-decoration:none;
    color:#184d3d;
    font-size:24px;
    font-weight:700;
}

.qty{
    font-size:18px;
}


/*==================================================
            DELETE
==================================================*/

.cart-delete{
    display:flex;
    align-items:flex-end;
}

.delete-btn{
    color:#999;
    font-size:22px;
    text-decoration:none;
}


/*==================================================
            FOOTER
==================================================*/

.cart-footer{
    background:#fff;
    border-top:1px solid #ececec;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.grand-total{
    font-size:36px;
    font-weight:700;
    color:#1f2b42;
}

.saving-text{
    margin-top:6px;
    color:#198754;
    font-size:15px;
}

.checkout-btn{
    width:210px;
    height:58px;
    border-radius:35px;
    background:#1d6b52;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
    transition:.3s;
}

.checkout-btn:hover{
    background:#155540;
}


/*==================================================
            MOBILE
==================================================*/

@media(max-width:768px){

.cart-drawer{
    width:75%;
    right:-100%;
}

.cart-header h2{
    font-size:20px;
}

.cart-item{
    padding:12px;
}

.cart-image img{
    width:70px;
    height:70px;
}

.cart-details h4{
    font-size:16px;
    line-height:24px;
}

.offer-price{
    font-size:20px;
}

.checkout-btn{
    width:170px;
    height:50px;
    font-size:20px;
}

.grand-total{
    font-size:28px;
}

}
   

        .announcement-slider{
    display:flex;
    flex-direction:column;
    animation:slideText 9s infinite;
}

.announcement-slider{
    display:flex;
    flex-direction:column;
    animation:slideText 9s infinite;
}

.announcement-item{
    height:28px;
    min-height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
    padding:0;
    line-height:30px;
    box-sizing:border-box;
}

/*@keyframes slideText{

    0%,30%{
        transform:translateY(0);
    }

    33%,63%{
        transform:translateY(-30px);
    }

    66%,96%{
        transform:translateY(-60px);
    }

    100%{
        transform:translateY(0);
    }*/

@keyframes slideText {

    0%,16%{
        transform:translateY(0);
    }

    20%,36%{
        transform:translateY(-30px);
    }

    40%,56%{
        transform:translateY(-60px);
    }

    60%,76%{
        transform:translateY(-90px);
    }

    80%,96%{
        transform:translateY(-120px);
    }

    100%{
        transform:translateY(0);
    }
}

  