.cart-page {
    margin-top: 120px;
    margin-bottom: 50px;
}

.cart-item {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cart-item-details {
    padding-right: 20px;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-variant {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.quantity-display {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: #f8f9fa;
    font-weight: 500;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    position: sticky;
    top: 140px;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.summary-total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.btn-checkout {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
}
.btn-clear-discount {
    background: #ef4444;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-discount:hover {
    background: #dc2626;
}
.continue-shopping:hover {
    text-decoration: underline;
}

.cart-item-total {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.discount-section {
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.discount-input {
    width: 140px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.btn-apply-discount {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-discount:hover {
    background: var(--primary-color);
}

.discount-success {
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
}

.discount-error {
    color: #dc3545;
    margin-top: 10px;
}

.discount-row {
    color: #28a745;
    font-weight: 500;
}

.multiple-discounts-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #0066cc;
}

.edit-quantity-note {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}



/* Cart Drawer Styles */
.cart-drawer {
    width: 450px !important;
    max-width: 100%;
}

.cart-drawer .offcanvas-body {
    overflow-y: auto;
    background-color: #f8f9fa;
}

.cart-drawer-container {
    min-height: 200px;
}

/* Cart Items in Drawer */
.cart-drawer-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    background: white;
    position: relative;
    transition: background-color 0.2s ease;
}

.cart-drawer-item:hover {
    background-color: #f8f9fa;
}

.cart-drawer-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-left: 15px;
}

.cart-drawer-item-details {
    flex: 1;
}

.cart-drawer-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #212529;
    text-decoration: none;
    display: block;
}

.cart-drawer-item-title:hover {
    color: var(--primary-color);
}

.cart-drawer-item-variant {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cart-drawer-item-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.cart-drawer-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-drawer-item-remove {
    position: absolute;
    top: 10px;
    right: 90%;
    background: none;
    width: 40px;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cart-drawer-item-remove:hover {
    background: #dc3545;
    color: white;
}

/* Cart Drawer Summary */
.cart-drawer-summary {
    padding: 15px;
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-view-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-checkout-drawer {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-checkout-drawer:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
}

.btn-continue-shopping {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #5a6268;
    color: white;
}

/* Empty Cart Drawer */
.cart-drawer-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-drawer-empty-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.cart-drawer-empty h4 {
    margin-bottom: 10px;
    color: #212529;
}

.cart-drawer-empty p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Discount Section in Drawer */
.cart-drawer-discount {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-drawer-discount h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.drawer-discount-input-group {
    display: flex;
    gap: 8px;
}

.drawer-discount-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.9rem;
}

.drawer-btn-apply {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.drawer-btn-apply:hover {
    background: var(--primary-color);
}

/* Discount badges in drawer */
.drawer-discount-badge {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 2px;
}

.drawer-discount-badge i {
    margin-right: 5px;
    cursor: pointer;
}

/* Notification for cart actions */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-right: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification.success {
    border-right-color: #28a745;
}

.cart-notification.error {
    border-right-color: #dc3545;
}

.cart-notification i {
    font-size: 1.2rem;
}

.cart-notification.success i {
    color: #28a745;
}

.cart-notification.error i {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 576px) {
    .cart-drawer {
        width: 100% !important;
    }
    
    .cart-drawer-item-image {
        width: 60px;
        height: 60px;
    }
}

/* Keep your existing cart page styles for the full cart page if you still want it */
.cart-page {
    margin-top: 120px;
    margin-bottom: 50px;
}

/* ... rest of your existing cart page CSS ... */



/* ========== CART DRAWER STYLES ========== */
.cart-drawer {
    width: 450px !important;
    max-width: 100%;
}

.cart-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #f8f9fa;
}

.cart-drawer-items-container {
    flex: 1;
    padding: 15px;
}

.cart-drawer-summary-container {
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* Cart Items */
.cart-drawer-item {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.cart-drawer-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-drawer-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-left: 15px;
}

.cart-drawer-item-details {
    flex: 1;
}

.cart-drawer-item-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #212529;
    text-decoration: none;
    display: block;
}

.cart-drawer-item-title:hover {
    color: var(--primary-color);
}

.cart-drawer-item-variant {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.cart-drawer-item-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 8px;
}

.cart-drawer-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-drawer-item-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cart-drawer-item-remove:hover {
    background: #dc3545;
    color: white;
}

/* Cart Summary */
.cart-drawer-summary {
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.summary-total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-color);
    border-bottom: none;
    margin-top: 10px;
}

/* Discount Section */
.discount-section-drawer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.discount-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.95rem;
}

.btn-apply-discount {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-apply-discount:hover {
    background: var(--primary-color);
}

.btn-clear-discount {
    background: #ef4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-discount:hover {
    background: #dc2626;
}

/* Discount Badges */
.applied-discounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    gap: 8px;
}

.discount-badge i {
    cursor: pointer;
    font-size: 0.8rem;
}

.discount-badge i:hover {
    color: #ffc107;
}

/* Discount Messages */
.discount-success {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px;
    background: #d4edda;
    border-radius: 5px;
}

.discount-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px;
    background: #f8d7da;
    border-radius: 5px;
}

/* Buttons */
.btn-checkout-drawer {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-checkout-drawer:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
}

.btn-continue-drawer {
    background: #6c757d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-continue-drawer:hover {
    background: #5a6268;
    color: white;
}

/* Empty Cart */
.empty-cart-drawer {
    text-align: center;
    padding: 50px 20px;
}

.empty-cart-drawer i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-cart-drawer h4 {
    margin-bottom: 10px;
    color: #212529;
}

.empty-cart-drawer p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Multiple Discounts Note */
.multiple-discounts-note {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #0066cc;
}

/* Cart Badge */
.cart-badge, #cartBadge, #cartBadgeForMobile {
    position: absolute;
    top: -29px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-right: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification.success {
    border-right-color: #28a745;
}

.cart-notification.error {
    border-right-color: #dc3545;
}

.cart-notification i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 576px) {
    .cart-drawer {
        width: 100% !important;
    }
    
    .cart-drawer-item-image {
        width: 60px;
        height: 60px;
    }
}