/* =========================================
   SAFE SPARES CART MODULE
========================================= */

.header-cart{

    position: relative;

    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    padding: 10px 16px;

    border-radius: 999px;

    transition: all 0.25s ease;

    border: 1px solid transparent;

    cursor: pointer;

    min-height: 48px;
}

.header-cart:hover{

    background: rgba(71,130,61,0.08);

    border-color: rgba(71,130,61,0.18);
}

.cart-icon-wrapper{

    position: relative;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(71,130,61,0.10);

    color: #47823D;

    font-size: 20px;

    transition: all 0.25s ease;
}

.header-cart:hover .cart-icon-wrapper{

    transform: scale(1.05);

    background: rgba(71,130,61,0.15);
}

.cart-label{

    font-size: 16px;
    font-weight: 600;

    color: #243127;

    white-space: nowrap;
}

.cart-badge{

    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 999px;

    background: #FF7A00;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;

    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* =========================================
   MINI CART PANEL
========================================= */

.mini-cart-panel{

    position: fixed;

    top: 0;
    right: -420px;

    width: 400px;
    max-width: 92vw;

    height: 100vh;

    background: #fff;

    z-index: 99999;

    display: flex;
    flex-direction: column;

    transition: right 0.35s ease;

    box-shadow:
    -8px 0 30px rgba(0,0,0,0.08);
}

.mini-cart-panel.active{

    right: 0;
}

.mini-cart-overlay{

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.45);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 99990;
}

.mini-cart-overlay.active{

    opacity: 1;
    visibility: visible;
}

.mini-cart-header{

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid #ececec;
}

.mini-cart-title{

    margin: 0;

    font-size: 20px;
    font-weight: 700;

    color: #243127;
}

.mini-cart-close{

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,0.05);

    font-size: 24px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.mini-cart-close:hover{

    background: rgba(0,0,0,0.10);

    transform: rotate(90deg);
}

.mini-cart-body{

    flex: 1;

    overflow-y: auto;

    padding: 24px 20px;
}

.mini-cart-empty{

    min-height: 60vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.mini-cart-empty-icon{

    width: 90px;
    height: 90px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(71,130,61,0.10);

    color: #47823D;

    font-size: 38px;

    margin-bottom: 18px;
}

.mini-cart-empty h4{

    margin: 0 0 8px;

    font-size: 22px;
    font-weight: 700;

    color: #243127;
}

.mini-cart-empty p{

    margin: 0;

    font-size: 15px;

    color: #6b7280;

    max-width: 260px;
}

.mini-cart-footer{

    border-top: 1px solid #ececec;

    padding: 20px;
}

.mini-cart-subtotal{

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    font-size: 17px;
}

.mini-cart-subtotal strong{

    color: #47823D;

    font-size: 22px;
}

.mini-cart-actions{

    display: grid;

    grid-template-columns: 1fr;
}

.mini-cart-view-btn,
.mini-cart-checkout-btn{

    height: 50px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-weight: 700;

    transition: all 0.25s ease;
}

.mini-cart-view-btn{

    background: #FF7A00;

    color: #fff;
}

.mini-cart-view-btn:hover{

    transform: translateY(-2px);

    box-shadow:
    0 10px 24px rgba(255,122,0,0.22);
}

.mini-cart-checkout-btn{

    background: #47823D;
    gap: 10px;
    color: #fff;
}

.mini-cart-checkout-btn:hover{

    transform: translateY(-2px);

    box-shadow:
    0 10px 24px rgba(71,130,61,0.22);
}

.mini-cart-view-btn,
.mini-cart-checkout-btn{

    text-decoration: none !important;
}

.mini-cart-view-btn:hover,
.mini-cart-view-btn:focus,
.mini-cart-view-btn:active{

    color: #fff !important;
}

.mini-cart-checkout-btn:hover,
.mini-cart-checkout-btn:focus,
.mini-cart-checkout-btn:active{

    color: #fff !important;
}

/* =========================================
   MINI CART ITEMS
========================================= */

.mini-cart-item{

    display: flex;

    gap: 14px;

    padding-bottom: 18px;
    margin-bottom: 18px;

    border-bottom: 1px solid #f1f1f1;
}

.mini-cart-item-image{

    width: 82px;
    height: 82px;

    object-fit: cover;

    border-radius: 14px;

    background: #f8f8f8;
}

.mini-cart-item-info{

    flex: 1;
}

.mini-cart-item-info h4{

    margin: 0 0 6px;

    font-size: 15px;
    line-height: 1.4;

    color: #243127;
}

.mini-cart-item-info p{

    margin: 0 0 10px;

    color: #47823D;

    font-weight: 700;
}

.mini-cart-item-bottom{

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remove-cart-item{

    border: none;

    background: transparent;

    color: #FF7A00;

    font-weight: 700;

    cursor: pointer;
}

/* =========================================
   QTY CONTROLS
========================================= */

.mini-cart-qty-controls{

    display: flex;
    align-items: center;

    gap: 10px;

    background: #f6f6f6;

    border-radius: 999px;

    padding: 4px 10px;
}

.qty-btn{

    width: 26px;
    height: 26px;

    border: none;

    border-radius: 50%;

    background: #fff;

    color: #243127;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;

    box-shadow:
    0 2px 6px rgba(0,0,0,0.08);
}

.qty-btn:hover{

    background: #47823D;

    color: #fff;

    transform: scale(1.08);
}

.qty-number{

    min-width: 16px;

    text-align: center;

    font-weight: 700;

    color: #243127;
}

@media(max-width:900px){

    .header-cart{

        padding:0 !important;

        width:52px;
        height:52px;

        min-width:52px;

        border-radius:50%;

        display:flex;

        align-items:center;
        justify-content:center;
    }

    .cart-icon-wrapper{

        margin:0 auto;
    }
}