/* ===== OVERLAY ===== */
#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 1000;
}

#cart-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ===== DRAWER ===== */
#cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;

    width: 380px;
    max-width: 100%;
    height: 100vh;

    background: #fff;
    box-shadow: -10px 0 35px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;

    transition: right 0.35s ease;
    z-index: 1100;
}

#cart-drawer.active {
    right: 0;
}


/* ===== HEADER ===== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px;
    border-bottom: 1px solid #eee;

    font-weight: 600;
    font-size: 16px;

    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}


/* CLOSE BTN */
#close-cart {
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;

    border-radius: 6px;
    cursor: pointer;
}


/* ===== CONTENT ===== */
#cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ===== CART ITEM ===== */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    padding: 10px;

    background: #f9fafb;
    border-radius: 8px;
}


/* LEFT TEXT */
.cart-item div:first-child {
    flex: 1;
}

.cart-item strong {
    font-size: 14px;
}

.cart-item p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}


/* QTY AREA */
.cart-item div:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* QTY NUMBER */
.cart-item span {
    width: 25px;
    text-align: center;
    font-weight: 600;
}


/* BUTTONS */
.cart-item button {
    border: none;
    padding: 4px 8px;
    font-size: 12px;

    background: linear-gradient(135deg, #276c91, #0594b1);
    color: white;

    border-radius: 6px;
    cursor: pointer;
}


/* REMOVE BTN (3rd button) */
.cart-item button:last-child {
    background: #ef4444;
}


/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.cart-footer {
    position: sticky;
    bottom: 0;

    background: #fff;
    padding: 14px;
    border-top: 1px solid #eee;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* TOTAL */
.cart-footer h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 15px;
    margin: 0;
}

/* ===== CHECKOUT BUTTON ===== */
.checkout-btn {
    width: 100%;
    padding: 10px;

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;

    background: linear-gradient(135deg, #276c91, #0594b1);
    color: #fff;

    cursor: pointer;
    transition: all 0.25s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* HOVER */
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 148, 177, 0.4);
}

/* CLICK */
.checkout-btn:active {
    transform: scale(0.98);
}

/* LINK RESET (a tag üçün) */
.cart-footer a {
    text-decoration: none;
    display: block;
    text-align: center;
}

/* ===== MOBILE ===== */
