/* Cart Drawer & Top Notification Banner CSS */

/* Top Added Notification Banner */
.cart-added-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    width: 90%;
    max-width: 750px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}
.cart-added-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cart-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #1e1b4b;
}
.cart-banner-icon {
    width: 24px;
    height: 24px;
    background: #4338ca;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold;
    font-size: 13px;
}
.cart-banner-btn {
    background: #1e40af;
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.15s;
}
.cart-banner-btn:hover {
    background: #1e3a8a;
}

/* Side Drawer Overlay & Panel */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
    transform: translateX(0);
}

/* Drawer Header */
.cart-drawer-head {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #fff;
}
.cart-drawer-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-drawer-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.cart-drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Drawer Items List */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}
.drawer-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: start;
    position: relative;
}
.drawer-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}
.drawer-item-details strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
}
.drawer-item-details small {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.3;
}
.drawer-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}
.drawer-qty-btn {
    background: #f1f5f9;
    border: 0;
    width: 26px;
    height: 26px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}
.drawer-qty-btn:hover { background: #e2e8f0; }
.drawer-qty-val {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
}
.drawer-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.drawer-item-price span {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
}
.drawer-remove-btn {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
}
.drawer-remove-btn:hover { color: #ef4444; }

/* Extras items inside drawer */
.drawer-extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
    font-size: 12px;
}
.drawer-extra-item strong { color: #166534; }
.drawer-extra-item span { font-weight: 800; color: #166534; }

/* Drawer Footer */
.cart-drawer-foot {
    padding: 20px 24px;
    border-top: 2px solid #f1f5f9;
    background: #f8fafc;
}
.drawer-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 17px;
}
.drawer-subtotal-row span {
    color: #475569;
    font-weight: 600;
}
.drawer-subtotal-row strong {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}
.drawer-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #475569;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.15s;
    border: 0;
    cursor: pointer;
}
.drawer-checkout-btn:hover {
    background: #334155;
}

/* Header Cart Icon (Image 2 style) */
.header-cart-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}
.header-cart-badge-wrap:hover {
    opacity: 0.9;
}
.cart-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-icon-svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}
.cart-badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 2px solid #10082f;
}
