/* Global Cart Styles */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 420px);
    height: 100vh;
    background: #fff;
    z-index: 4000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.close-cart {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-cart:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cart-countdown {
    background: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.shipping-info {
    padding: 20px 24px;
    background: #fff;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fff;
}

.cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
}

.cart-item-info { flex: 1; }

.cart-item-info h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.cart-item-price {
    font-weight: 800;
    color: #0f172a;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 10px;
    width: fit-content;
}

.qty-control button {
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
}

.qty-control span {
    width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.remove-item {
    position: absolute;
    top: 0;
    right: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 24px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #64748b;
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #f1f5f9;
    font-weight: 900;
    font-size: 1.25rem;
    color: #0f172a;
}

.savings {
    color: #10b981;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
}

.empty-cart-msg svg {
    width: 60px;
    height: 60px;
    opacity: 0.2;
    margin-bottom: 15px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
}

.toast {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid #10b981;
    margin-bottom: 10px;
}

