/* ============================================================
   EuroMarket - Cart Drawer Styles
   ============================================================ */

:root {
    --white: #FFFFFF;
    --border-color: #E5E5E0;
    --text-main: #1A1A1A;
    --accent-primary: #1E3A8A;
    --bg-main: #FAFAF8;
    --text-secondary: #6B7280;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    background: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.2rem;
    padding: 8px;
}

.cart-close-btn:hover {
    color: var(--accent-primary);
}

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

.cart-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 48px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-main);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.cart-item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

.cart-item-remove {
    position: absolute;
    top: 16px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: #dc2626;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
}

.cart-total-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-primary);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.btn-checkout:hover {
    background: #1d4ed8;
    color: var(--white);
}

/* Responsive */
@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
    }
}