/* =========================
   Bridal Cart Drawer
========================= */
.bridal-cart-drawer {
    width: 440px !important;
    max-width: 100%;
    background: #fffdfb;
    border-left: 1px solid rgba(212, 175, 55, 0.12);
}

/* Header */
.bridal-cart-header {
    min-height: 88px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #b08d57, #d9b8aa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}

.cart-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.bridal-cart-header .offcanvas-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.cart-header-subtitle {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,0.88);
    font-size: 0.82rem;
}

/* Body */
.bridal-cart-body {
    background:
        radial-gradient(circle at top right, rgba(212,175,55,0.05), transparent 28%),
        #fffdfb;
}

/* Scroll areas */
.cart-drawer-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.cart-drawer-summary-container {
    border-top: 1px solid rgba(176, 141, 87, 0.12);
    background: #fff;
    padding: 16px 18px 20px;
    box-shadow: 0 -8px 20px rgba(0,0,0,0.03);
}

/* Empty Cart */
.empty-cart-drawer {
    text-align: center;
    padding: 48px 16px;
}

.empty-cart-drawer i {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff4ef, #f9ece5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c89a8b;
    font-size: 2rem;
    box-shadow:
        inset 0 0 0 1px rgba(176, 141, 87, 0.08),
        0 10px 30px rgba(0,0,0,0.04);
}

.empty-cart-drawer h4 {
    color: #4d4038;
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-cart-drawer p {
    color: #7c6e65;
    line-height: 1.9;
    max-width: 280px;
    margin: 0 auto 20px;
}

.empty-cart-drawer .btn-primary {
    background: linear-gradient(135deg, #d4af37, #e7c7b7);
    border: none;
    border-radius: 30px;
    padding: 11px 24px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22);
}

.empty-cart-drawer .btn-primary:hover {
    opacity: 0.95;
}

/* Cart list */
.cart-drawer-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cart item */
.cart-drawer-item {
    position: relative;
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(176, 141, 87, 0.08);
    transition: all 0.3s ease;
}

.cart-drawer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.cart-drawer-item-image {
    width: 90px;
    height: 112px;
    object-fit: cover;
    border-radius: 18px;
    flex-shrink: 0;
    background: #f6f1ed;
}

.cart-drawer-item-details {
    flex: 1;
    min-width: 0;
    padding-inline-end: 30px;
}

.cart-drawer-item-title {
    display: inline-block;
    color: #4d4038;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 6px;
    text-decoration: none;
}

.cart-drawer-item-title:hover {
    color: #b08d57;
}

.cart-drawer-item-variant {
    color: #8c7a6b;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.cart-drawer-item-price {
    color: #b08d57;
    font-size: 1rem;
    font-weight: 700;
    margin: 10px 0 8px;
}

/* Quantity */
.cart-drawer-item-quantity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff8f4;
    border: 1px solid rgba(176, 141, 87, 0.1);
    border-radius: 999px;
    padding: 6px 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #8b6f5c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.quantity-btn:hover {
    background: #fdf1ea;
    color: #b08d57;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: #4d4038;
}

/* Remove */
.cart-drawer-item-remove {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fff5f3;
    color: #b66d5d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.cart-drawer-item-remove:hover {
    background: #fce6e0;
    color: #a65849;
}

/* Summary */
.cart-drawer-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6d5c52;
    font-size: 1rem;
}

.summary-row span:last-child {
    font-weight: 700;
}

.summary-total {
    padding-top: 10px;
    border-top: 1px dashed rgba(176, 141, 87, 0.18);
    color: #4d4038;
    font-size: 1.08rem;
}

.summary-total span:last-child {
    color: #b08d57;
    font-size: 1.2rem;
}

/* Discount section */
.discount-section-drawer {
    background: #fffaf7;
    border: 1px solid rgba(176, 141, 87, 0.1);
    border-radius: 18px;
    padding: 14px;
}

.discount-section-drawer h6 {
    color: #4d4038;
    font-weight: 700;
    margin-bottom: 12px !important;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.discount-input {
    flex: 1;
    height: 46px;
    border: 1px solid rgba(176, 141, 87, 0.16);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
    color: #5f5147;
    outline: none;
    transition: 0.25s ease;
}

.discount-input:focus {
    border-color: rgba(176, 141, 87, 0.35);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.08);
}


/* Discount messages */
.discount-error,
.discount-success {
    margin-top: 10px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.discount-error {
    background: #fff1ee;
    color: #b25c4b;
}

.discount-success {
    background: #f2fbf4;
    color: #2f8a4c;
}

/* Applied discounts */
.applied-discounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8f4;
    color: #8b6f5c;
    border: 1px solid rgba(176, 141, 87, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.discount-badge i {
    cursor: pointer;
    color: #b66d5d;
    transition: 0.2s ease;
}

.discount-badge i:hover {
    color: #a65849;
}

.multiple-discounts-note {
    background: #fffaf2;
    border: 1px dashed rgba(212, 175, 55, 0.25);
    color: #9a7b35;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Checkout button */
.btn-checkout-drawer {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #d4af37, #e7c7b7);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.btn-checkout-drawer:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

/* Notification */
.cart-notification {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 2000;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    transform: translateY(-12px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification.success {
    background: linear-gradient(135deg, #4caf50, #72c77a);
}

.cart-notification.error {
    background: linear-gradient(135deg, #d9534f, #ea7a76);
}

.cart-notification.info,
.cart-notification.warning {
    background: linear-gradient(135deg, #b08d57, #d9b8aa);
}

/* Scrollbar */
.cart-drawer-items-container::-webkit-scrollbar {
    width: 8px;
}

.cart-drawer-items-container::-webkit-scrollbar-thumb {
    background: rgba(176, 141, 87, 0.25);
    border-radius: 20px;
}

.cart-drawer-items-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Responsive */
@media (max-width: 575.98px) {
    .bridal-cart-drawer {
        width: 100% !important;
    }

    .cart-drawer-item {
        padding: 12px;
        gap: 12px;
    }

    .cart-drawer-item-image {
        width: 78px;
        height: 98px;
    }

    .cart-drawer-item-details {
        padding-inline-end: 20px;
    }

    .discount-input-group {
        flex-direction: column;
    }


    .cart-notification {
        left: 12px;
        right: 12px;
        max-width: none;
        min-width: 0;
    }
}