.cart-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transition: transform 0.2s ease;
    z-index: 1100;
}

.cart-container:hover {
    transform: scale(1.1);
}

.cart-icon {
    color: #000000;
    position: relative;
}

.cart-icon svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart dropdown */
.cart-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    width: 320px;
    background: #ffffff;
    color: #333;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 12px;
    display: none;
}

.cart-dropdown.visible {
    display: block;
}

.cart-dropdown h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.cart-items {
    max-height: 260px;
    overflow-y: auto;
    margin: 8px 0 12px 0;
    padding-right: 6px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    gap: 8px;
}

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

.cart-item-price {
    font-weight: 600;
    margin-right: 8px;
}

.cart-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

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

.cart-empty {
    text-align: center;
    color: #777;
    padding: 16px 0;
    font-size: 14px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cart-total {
    font-weight: 700;
}

.checkout-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #1d4ed8;
}