/* Cart Drawer Styles */
#custom-cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    /* Hidden by default */
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    /* Topmost */
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#custom-cart-drawer.open {
    right: 0;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

#cart-overlay.open {
    display: block;
}

/* Header & Progress Bar */
.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.shipping-progress {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #4caf50;
    width: 0%;
    transition: width 0.3s;
}

/* Upsell Block */
.upsell-block {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upsell-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.upsell-info {
    flex: 1;
}

.upsell-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.upsell-price {
    color: #e91e63;
    font-weight: bold;
}

.btn-add-upsell {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Cart Items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    position: relative;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-right: 15px;
}

.item-details {
    flex: 1;
}

.item-delete {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: fit-content;
    margin-top: 5px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.item-price {
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    right: 0;
}

/* Footer & Checkout */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.coupon-area {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-apply-coupon {
    padding: 10px 15px;
    border: 1px solid #333;
    background: white;
    border-radius: 20px;
    cursor: pointer;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: #689f38;
    /* Darker Green for Contrast */
    color: white;
    text-align: center;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-checkout:hover {
    background: #558b2f;
}

.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #128c7e;
    /* WhatsApp Teal Darker */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}