.goods {
    margin-top: 2rem;

}
.product.product--inline {
    display: flex;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 2rem;
    align-items: center;
}

.product--inline .product__image {
    flex: 0 0 300px;
    max-height: 300px;
    padding: 10px;
}

.product--inline .product__image .product__figure {
    margin: 0;
}

.product--inline .product__img {
    width: 100%;
    height: auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.product--inline .product__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}

.product--inline .product__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.product--inline .product__title a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.product--inline .product__title a:hover {
    color: var(--primary-color);
}

.product--inline .product__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #0000001A;
}

.product--inline .product__article {
    color: #161616;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 100px;
}

.product--inline .product__article-number {
    color: var(--primary-color);
}

.product--inline .rating {
    display: inline-flex;
    gap: 4px;
}

.product--inline .colors {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product--inline .colors__item {
    padding: 8px 16px;
    border: 1px solid #D4D4D4;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    list-style: none;
}

.product--inline .product__variant-name {
    display: none;
}

.product--inline .colors__item:not(.selected):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product--inline .colors__item.selected {
    background: #333;
    color: #FFF;
    border-color: #333;
}

/* Действия */
.product--inline .product__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.product--inline .counter {
    display: flex;
    align-items: center;
    border: 1px solid #D4D4D4;
}

.product--inline .product__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Цены товара */
.product--inline .product__price {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.product--inline .product__price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.product--inline .product__price-old {
    font-size: 20px;
    color: #666666;
    text-decoration: line-through;
}

/* Планшеты */
@media (max-width: 1024px) {
    .product.product--inline {
        gap: 20px;
    }

    .product--inline .product__image {
        flex: 0 0 250px;
        max-height: 250px;
    }

    .product--inline .product__info {
        padding: 20px;
        gap: 15px;
    }

    .product--inline .product__title {
        font-size: 20px;
    }

    .product--inline .product__price-current {
        font-size: 26px;
    }

    .product--inline .product__price-old {
        font-size: 18px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .product.product--inline {
        margin-bottom: 1rem;
    }
    .product--inline .product__image .product__figure {
        height: 100%;
    }
    .product--inline .product__img {
        height: 100%;
    }
    .product.product--inline {
        flex-direction: column;
        gap: 15px;
    }

    .product--inline .product__image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .product--inline .product__header {
        flex-direction: column;
        gap: .5rem;
    }

    .product--inline .product__info {
        padding: 0 2rem 2rem 2rem;
        width: 100%;
    }

    .product--inline .product__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product--inline .product__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product--inline .colors {
        flex-wrap: wrap;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .product--inline .product__title {
        font-size: 18px;
    }

    .product--inline .product__price-current {
        font-size: 24px;
    }

    .product--inline .product__price-old {
        font-size: 16px;
    }
}

/* Добавляем стили для родительского контейнера */
@media (max-width: 768px) and (min-width: 426px) {
    .goods.goods--table {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product.product--inline {
        height: 100%;
    }

    .product--inline .product__image {
        flex: 0 0 auto;
        max-height: 200px;
    }

    .product--inline .product__title {
        font-size: var(--text-xxxl);
        line-height: 1.2;
    }

    .product--inline .product__meta {
        padding-bottom: 0.8rem;
    }

    .product--inline .product__article {
        padding: 4px 12px;
        font-size: 14px;
    }

    .product--inline .product__price-current {
        font-size: 20px;
    }

    .product--inline .product__price-old {
        font-size: 16px;
    }

    .product--inline .colors__item {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Маленькие мобильные устройства - возвращаем один элемент в строку */
@media (max-width: 425px) {
    .goods.goods--table {
        display: block;
    }

    .product.product--inline {
        margin-bottom: 1rem;
    }
}

/* Большие экраны */
@media (min-width: 1400px) {
    .product.product--inline {
        gap: 20px;
    }

    .product--inline .product__image {
        flex: 0 0 300px;
        max-height: 300px;
    }

    .product--inline .product__info {
        padding: 40px;
    }

    .product--inline .product__title {
        font-size: 28px;
    }

    .product--inline .product__price-current {
        font-size: 36px;
    }

    .product--inline .product__price-old {
        font-size: 24px;
    }
}

/* Средние экраны */
@media (max-width: 1399px) and (min-width: 1100px) {
    .product.product--inline {
        gap: 10px;
    }

    .product--inline .product__image {
        flex: 0 0 250px;
        max-height: 250px;
    }

    .product--inline .product__info {
        padding: 35px;
    }
} 

/* Добавляем стили для карточки товара */
.goods.goods--columns .row {
    gap: 2rem 1rem;
}
.goods.goods--columns .row::before {
    content: none;
}
.product.product--card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    width: calc(33% - .5rem);
}
.product--card .product__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    min-height: 80px;
}

.product--card .product__title {
    margin: 0;
    line-height: 1;
}

.product--card .product__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 500;
}

.product--card .product__link:hover {
    color: var(--primary-color);
}

.product--card .product__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.product--card .product__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product--card .product__options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Стили для опций (золото, серебро, дерево) */
.product--card .colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product--card .colors__item {
    padding: 8px 16px;
    border: 1px solid #D4D4D4;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    list-style: none;
}

.product--card .product__variant-name {
    display: none;
}

.product--card .colors__item:not(.selected):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product--card .colors__item.selected {
    background: #333;
    color: #FFF;
    border-color: #333;
}

/* Стили для количества */
.product--card .product__quantity {
    display: flex;
    align-items: center;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    width: fit-content;
}

.product--card .quantity__value {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    padding: 8px 0;
}

/* Стили для кнопки купить */
.product--card .product__button {
    background: var(--primary-color);
    color: #FFF;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product--card .product__button:hover {
    background: #A01830;
}

.product--card .product__image {
    margin-top: 20px;
}

.product--card .product__image .product__figure {
    margin: 0;
}

.product--card .product__image img {
    width: 100%;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
}

.product--card .product__img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Стили для блока действий */
.product--card .product__actions {
    gap: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product--card .product__actions .item-cart__quantity {
    width: 50%;
    max-width: 50%;
}

.product--card .product__actions .product__basket-actions {
    width: 50%;
}

@media (max-width: 1400px) {
    .product.product--card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 1024px) {
    .product--card .product__actions {
        gap: .5rem;
        display: flex;
        flex-direction: column;
    }
    .product--card .product__actions .item-cart__quantity {
        width: 100%;
        max-width: 100%;
    }
    .product--card .product__actions .product__basket-actions {
        width: 100%;
    }

    .product--card .product__header {
        min-height: auto;
        gap: 0.5rem;
        flex-direction: column;
    }
    .product--card .colors__item {
        padding: 4px 10px;
    }


}
/* Мобильные устройства */
@media (max-width: 768px) {
    .product--card .product__image .product__figure {
        height: 100%;
    }
    .product--card .product__image img {
        height: 100%;
    }
    .product--card .product__title .product__link {
        font-size: var(--text-xxxl);
    }

    .product--card .product__price {
        font-size: 20px;
    }

    .product--card .options__label {
        padding: 6px 12px;
        font-size: 14px;
    }

    .goods.goods--columns .row {
        gap: 1rem;
    }
    
    .product.product--card {
        width: 100%;
        padding: 15px;
        gap: 15px;
    }


    .product--card .product__link {
        font-size: 16px;
        line-height: 1.3;
    }

    .product--card .product__content {
        gap: 15px;
    }

    .product--card .product__actions {
        flex-direction: column;
        gap: 10px;
    }

    .product--card .product__actions .item-cart__quantity,
    .product--card .product__actions .product__basket-actions {
        width: 100%;
        max-width: 100%;
    }

    .product--card .colors {
        gap: 8px;
    }

    .product--card .colors__item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .product--card .product__button {
        width: 100%;
        padding: 10px 20px;
    }

    .product--card .product__image {
        margin-top: 15px;
        max-height: 200px;

    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .product--card .product__link {
        font-size: 14px;
    }

    .product--card .product__price {
        font-size: 18px;
    }
}
