/* Основной контейнер корзины */
.eko-basket-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
.eko-basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.eko-basket-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.eko-basket-count {
    font-size: 14px;
    color: #666;
}

/* Таблица товаров */
.eko-basket-items {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.eko-basket-items__header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 60px;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.eko-basket-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 60px;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    align-items: center;
    transition: background 0.2s;
}

.eko-basket-item:hover {
    background: #f8f9fa;
}

/* Колонка товара */
.eko-basket-col--product {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.eko-basket-item__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.eko-basket-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eko-basket-item__info {
    flex: 1;
}

.eko-basket-item__name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.eko-basket-item__name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.eko-basket-item__name a:hover {
    color: #4CAF50;
}

.eko-basket-item__props {
    font-size: 13px;
    color: #666;
}

.eko-basket-item__prop {
    margin-bottom: 4px;
}

.eko-basket-item__prop-name {
    font-weight: 500;
}

/* Цены */
.eko-basket-item__price-old,
.eko-basket-item__sum-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.eko-basket-item__price-current,
.eko-basket-item__sum-current {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.eko-basket-item__discount {
    font-size: 13px;
    color: #4CAF50;
    margin-top: 4px;
}

/* Количество */
.eko-basket-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.eko-basket-quantity__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.eko-basket-quantity__btn:hover {
    background: #e9ecef;
}

.eko-basket-quantity__input {
    width: 60px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.eko-basket-quantity__input::-webkit-outer-spin-button,
.eko-basket-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.eko-basket-quantity__measure {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* Кнопка удаления */
.eko-basket-item__delete {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eko-basket-item__delete:hover {
    background: #fee;
    color: #f44336;
}

.eko-basket-item__delete svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Итого */
.eko-basket-total {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 300px 300px;
    gap: 30px;
    align-items: center;
}

.eko-basket-total__weight {
    font-size: 14px;
    color: #666;
}

.eko-basket-total__price {
    text-align: right;
}

.eko-basket-total__label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.eko-basket-total__price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.eko-basket-total__price-current {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.eko-basket-total__discount {
    font-size: 14px;
    color: #4CAF50;
    margin-top: 8px;
}

/* Кнопки */
.eko-btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.eko-btn--primary {
    background: #4CAF50;
    color: #fff;
}

.eko-btn--primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
	color: #fff;
}

.eko-btn--large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
}

/* Пустая корзина */
.eko-basket-empty {
    text-align: center;
    padding: 80px 20px;
}

.eko-basket-empty__icon {
    margin-bottom: 30px;
}

.eko-basket-empty__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.eko-basket-empty__text {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
}

/* Алерты */
.eko-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.eko-alert--error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Адаптив */
@media (max-width: 992px) {
    .eko-basket-total {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .eko-basket-total__price {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .eko-basket-items__header {
        display: none;
    }
    
    .eko-basket-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .eko-basket-col--product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .eko-basket-item__image {
        width: 120px;
        height: 120px;
    }
    
    .eko-basket-quantity {
        margin: 0 auto;
    }
    
    .eko-basket-col--price::before {
        content: 'Цена: ';
        font-weight: 600;
    }
    
    .eko-basket-col--sum::before {
        content: 'Сумма: ';
        font-weight: 600;
    }
}
