.cart-module {
    --bg-color: #f8f8f6;
    --accent-orange: #f46036;
    --accent-green: #0CC42B;
    --text-black: #111111;
    --text-gray: #888888;
    --text-light-gray: #cccccc;
    --font-heading: "Advent Pro", sans-serif;
    --font-body:
        "Inter", sans-serif; /* Используем Inter для читаемости мелкого текста, как стандарт */

    font-family: var(--font-body);

    overflow-y: auto; /* скролл работает */
    overflow-x: hidden;

    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
    /*background-color: var(--bg-color);*/
    color: var(--text-black);
    width: 100%;
    /*max-width: 480px; */
    /*padding: 20px;*/
}
.container::-webkit-scrollbar {
    display: none;
}
/* --- Хедер --- */
.cart-header {
    /*margin-bottom: 24px;*/
}

.cart-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.cart-actions {
    display: flex;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-green {
    background-color: var(--accent-green);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.items-count {
    color: #555;
    font-size: 14px;
}

/* --- Список товаров --- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.cart-item {
    background-color: transparent;
    display: grid;
    grid-template-columns: 130px 1fr 15px;
    gap: 16px;
    padding: 10px 0;
    position: relative;
}

.item-image-placeholder {
    background-color: #ffffff;
    border-radius: 12px;
    position: relative;
    /*height: 271px;*/
}
.item-image-container {
    height: 200px;
    width: 100%;
}
.item-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.cart-image-container {
    width: 100%;
    height: 140px;
}
.cart-image-container  img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-name {
    font-size: 13px;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    margin-bottom: 8px;
    padding-right: 10px;
}

.item-price-block {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-weight: 700;
    font-size: 16px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light-gray);
    font-size: 13px;
}

/* Контроллер количества */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 140px;
    height: 36px;
    padding: 0 4px;
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px; /* visual adjustment */
}

.qty-val {
    font-weight: 600;
    font-size: 14px;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    align-self: flex-start;
    padding-top: 2px;
}

/* --- Сумма заказа --- */
.cart-total-section {
    margin-bottom: 40px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.total-label {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
}

.total-value {
    font-family: var(--font-heading); /* Шрифт цифр похож на заголовок */
    font-size: 30px;
    font-weight: 600;
}

.checkout-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* --- Рекомендации --- */
.recommendations {
    margin-top: 20px;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rec-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Адаптив для карточек рекомендаций, чтобы они не сплющивались слишком сильно */
@media (max-width: 380px) {
    .rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Скрываем 3й элемент на очень узких экранах */
    .rec-card:nth-child(3) {
        display: none;
    }
}

.rec-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rec-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.1; /* Соотношение сторон как у упаковки */
    background-color: #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    object
}

.rec-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.rec-more-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.rec-name {
    font-size: 11px;
    color: #333;
    line-height: 1.3;
    /* Обрезка текста до 2 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-price {
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
}

/* SVG Icons fill colors */
.icon-stroke {
    stroke: #111;
    stroke-width: 1.5;
    fill: none;
}
.icon-fill {
    fill: #111;
}
.icon-orange-arrow {
    stroke: var(--accent-orange);
    stroke-width: 2;
    fill: none;
}
