/* OVERRIDES FOR CART MODAL DRAWER */
.cart_modal {
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    /* dark overlay */
    justify-content: flex-end !important;
    /* align to right */
}

/* Base Wrapper */
.cart_wrapper {
    width: 400px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    /* box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05); */
    position: relative;
    float: right;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    .cart_wrapper {
        width: 100%;
    }
}

/* Header */
.cart_drawer_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #E5E5E5;
}

.cart_title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart_title h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.cart_count_badge {
    background: #F1F1F1;
    color: #333333;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart_close svg {
    border: 1px solid #E5E5E5;
    border-radius: 50%;
    padding: 4px;
    width: 32px;
    height: 32px;
    transition: all 0.2s;
}

.cart_close:hover svg {
    background: #f5f5f5;
}

/* Items List */
.cart_container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Item */
.cart_item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cart_item_img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: #F8F8F8;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.cart_item_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart_item_top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart_item_top h4 {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    padding-right: 15px;
}

.cart_item_del svg {
    cursor: pointer;
    transition: transform 0.2s;
}

.cart_item_del:hover svg {
    transform: scale(1.1);
}

.cart_item_variant {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.cart_item_bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart_item_qty {
    display: flex;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 20px;
    padding: 4px 12px;
    gap: 15px;
}

.qty_btn {
    font-size: 16px;
    color: #666666;
    user-select: none;
    cursor: pointer;
}

.qty_btn:hover {
    color: #1A1A1A;
}

.qty_num {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.cart_item_price {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin: 0;
}

/* Footer elements */
.cart_drawer_footer {
    padding: 24px 30px;
    background: #F9F9F9;
    border-top: 1px solid #E5E5E5;
}

.cart_summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart_summary_row p {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart_summary_row i.fa-plus {
    color: #333333;
    cursor: pointer;
}

.summary_subtotal {
    margin-bottom: 24px;
}

.summary_subtotal h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.cart_actions {
    display: flex;
    gap: 12px;
}

.btn_outline,
.btn_solid {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn_outline {
    background: #FFFFFF;
    color: #D92525 !important;
    border: 1px solid #D92525;
}

.btn_outline:hover {
    background: #FFF5F5;
}

.btn_solid {
    background: #D92525;
    color: #FFFFFF !important;
    border: 1px solid #D92525;
}

.btn_solid:hover {
    background: #B81F1F;
}


/* Empty State */
.cart_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.cart_empty_state h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 10px 0;
}

.cart_empty_state p {
    font-size: 15px;
    color: #666666;
    margin: 0 0 30px 0;
}

.cart_empty_state .btn_solid {
    width: 250px;
    max-width: 100%;
    margin-top: 20px;
    flex: 0 0 auto;
}