/* Стили для выпадающего меню корзины */
.cart-box {
    position: relative;
}

.cart-drop {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    padding: 15px;
}

.cart-drop.hidden {
    display: none;
}

.cart-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    flex-shrink: 0;
    margin-right: 10px;
}

.cart-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    margin-right: 10px;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-quantity {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.cart-item-price {
    font-weight: 600;
    color: #007bff;
}

.cart-item-remove {
    flex-shrink: 0;
}

.btn-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    background: #c82333;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cart-total-items {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cart-total-price {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

.cart-actions {
    text-align: center;
}

.cart-actions .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.cart-actions .btn:hover {
    background: #0056b3;
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-drop {
        right: -50px;
        min-width: 250px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .cart-drop {
        right: -100px;
        min-width: 200px;
        max-width: 220px;
    }
}
