/* Общие стили */
.cart-header {
    margin-bottom: 30px;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: #5c3d2e;
    margin-bottom: 8px;
}

.cart-subtitle {
    font-size: 14px;
    color: #c9aa98;
}

/* Пустая корзина */
.empty-cart {
    background: white;
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.empty-icon {
    font-size: 70px;
    margin-bottom: 15px;
}

.empty-title {
    font-size: 22px;
    color: #5c3d2e;
    margin-bottom: 8px;
}

.empty-text {
    color: #c9aa98;
    margin-bottom: 20px;
}

.empty-link {
    color: #FFABB9;
    text-decoration: none;
}

.btn-continue {
    display: inline-block;
    padding: 10px 28px;
    background: #FFABB9;
    color: white;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-continue:hover {
    background: #ff95a6;
    transform: translateY(-2px);
    color: white;
}

/* Товары в корзине */
.cart-items {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.cart-item {
    padding: 15px;
    border-bottom: 1px solid #f0dfd3;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #5c3d2e;
    margin-bottom: 4px;
}

.cart-item-weight {
    font-size: 12px;
    color: #c9aa98;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFABB9;
}

.cart-item-price-mobile {
    font-size: 16px;
    font-weight: 700;
    color: #FFABB9;
    display: none;
}

/* Управление количеством */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 30px;
    width: fit-content;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #c4816e;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #FFABB9;
    color: white;
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    color: #5c3d2e;
    min-width: 28px;
    text-align: center;
}

.quantity-form {
    display: inline;
}

.cart-remove {
    font-size: 12px;
    text-decoration: none;
    color: #d4a5a5;
    transition: all 0.2s;
    display: inline-block;
    margin-top: 6px;
}

.cart-remove:hover {
    color: #c4816e;
    text-decoration: none;
}

/* Итого */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #5c3d2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0dfd3;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #7a5a4a;
}

.summary-total-row {
    border-top: 1px solid #f0dfd3;
    margin-top: 5px;
    padding-top: 12px;
}

.summary-total {
    font-size: 22px;
    font-weight: 800;
    color: #FFABB9;
}

.summary-divider {
    height: 1px;
    background: #f0dfd3;
    margin: 12px 0;
}

.delivery-info {
    background: #fffbf8;
    padding: 12px;
    border-radius: 12px;
    margin: 12px 0;
}

.delivery-info p {
    margin-bottom: 6px;
    font-size: 12px;
    color: #a87b66;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}

/* Кнопки */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-clear {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: none;
    border: 1px solid #f0dfd3;
    color: #c4816e;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #f5e6d3;
    border-color: #FFABB9;
    color: #b06d5a;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #FFABB9;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background: #ff95a6;
    transform: translateY(-2px);
    color: white;
}

.btn-continue-cart {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: none;
    color: #c4816e;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-continue-cart:hover {
    color: #b06d5a;
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-title {
        font-size: 14px;
    }
    
    .cart-item-price {
        display: none;
    }
    
    .cart-item-price-mobile {
        display: block;
    }
    
    .cart-summary {
        margin-top: 15px;
        position: static;
    }
    
    .empty-cart {
        padding: 30px 20px;
    }
    
    .text-end {
        text-align: left !important;
        margin-top: 8px;
    }
}