/* Фикс иконок в каталоге */
.category-card__image {
    flex-shrink: 0;
}

.fast-view__mini-preview img {
    object-fit: contain;
}

.fast-view__full-previewSwiper img {
    object-fit: contain;
}

.fast-view__button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step_by_step_ordering__prev-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    padding: 0px 24px;
    background: #fff;
    /* border: 2px solid #c10404; */
    border-radius: 8px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #c10404;
    cursor: pointer;
    transition: background 0.2s;
    height: 49px;
    width: fit-content;
}

.step_by_step_ordering__payment-radio:checked+.step_by_step_ordering__payment-label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #c10404;
}

.step_by_step_ordering__payment-radio:checked {
    color: #c10404;
}

/* Стили для авторизации и регистрации */
.auth__error,
.register__error {
    color: #ff4444 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    text-align: center !important;
    padding: 10px !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
    border: 1px solid rgba(255, 68, 68, 0.3) !important;
    border-radius: 6px !important;
    animation: fadeIn 0.3s ease-in-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Открытый текст (контентная секция) ===== */
.open-text {
    margin: 24px 0 40px;
    background: #fff;
    border: 1px solid #EDEDED;
    border-radius: 12px;
    padding: 24px;
}

.open-text__title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #282828;
}

.open-text__intro p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.open-text__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.open-text__card {
    background: #FAFAFA;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    padding: 16px;
}

.open-text__subtitle {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #282828;
}

.open-text__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #555;
}

.open-text__list li {
    line-height: 1.5;
}

@media (max-width: 992px) {
    .open-text__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .open-text {
        padding: 16px;
        border-radius: 10px;
    }

    .open-text__title {
        font-size: 22px;
    }
}

/* Кнопка закрытия модального окна */
.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal__close:hover {
    color: #333;
}

.modal__close:focus {
    outline: none;
    color: #333;
}

/* Улучшение переключателя пароля */
.auth__password-toggle,
.register__password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    transition: color 0.2s ease;
}

.auth__password-toggle:hover,
.auth__password-toggle.active,
.register__password-toggle:hover,
.register__password-toggle.active {
    color: #333;
}

.auth__password-toggle:focus,
.register__password-toggle:focus {
    outline: none;
}

/* Состояние загрузки для кнопок авторизации и регистрации */
.auth__button--primary:disabled,
.register__button--primary:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Дополнительные стили для формы регистрации */
.register__has-account {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.register__login-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #c10404;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register__login-link:hover {
    color: #a00303;
    text-decoration: underline;
}

.max-width-none {
    max-width: none;
}

/* Отзывы личного кабинета */

.LK_comment-item__text {
    max-width: 350px;
}


/* Модальное окно отзыва */
.review-form {
    padding: 0;
    max-width: 100%;
}

.review-form__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5E5;
}

.review-form__title {
    font-size: 24px;
    font-weight: 600;
    color: #282828;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal__close:hover {
    background-color: #F5F5F5;
}

.review-form__product-info {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: #F9F9F9;
    border-radius: 8px;
}

.review-form__product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.review-form__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.review-form__product-details {
    flex: 1;
    text-align: left;
}

.review-form__product-title {
    font-size: 16px;
    font-weight: 500;
    color: #282828;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.review-form__product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.review-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form__rating-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-form__label {
    font-size: 16px;
    font-weight: 500;
    color: #282828;
}

.review-form__rating-stars {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.star {
    cursor: pointer;
    transition: all 0.2s;
}

.star:hover {
    transform: scale(1.1);
}

.star.active path {
    fill: #FFC807 !important;
    stroke: #FFC807 !important;
}

.rating-text {
    font-size: 14px;
    color: #666;
    min-width: 120px;
}

.review-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form__input,
.review-form__textarea {
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    background-color: #fff;
}

.review-form__input:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: #C10404;
}

.review-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form__char-count {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #999;
}

.review-form__guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-form__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.review-form__button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.review-form__button--cancel {
    background-color: #F5F5F5;
    color: #666;
}

.review-form__button--cancel:hover {
    background-color: #E5E5E5;
}

.review-form__button--submit {
    background-color: #C10404;
    color: white;
}

.review-form__button--submit:hover {
    background-color: #A00303;
}

.review-form__login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.review-form__login-message {
    text-align: center;
    max-width: 300px;
}

.review-form__login-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #282828;
    margin: 16px 0 8px 0;
}

.review-form__login-message p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* ===== Торговые предложения (SKU) ===== */
.product-trade-offers {
    margin: 16px 0 24px;
}

.product-trade-offers .pto-card {
    border: 1px solid #EDEDED;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.product-trade-offers .pto-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.product-trade-offers .pto-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #282828;
}

.product-trade-offers .additional_options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    margin-bottom: 8px;
}

.product-trade-offers .additional_options-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-trade-offers .additional_options-text {
    font-size: 14px;
    color: #666;
}

.product-trade-offers .additional_options-list select {
    width: 100%;
    height: 40px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
}

.product-trade-offers .trade-offer-summary {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.product-trade-offers .trade-offer-price {
    font-size: 28px;
    font-weight: 700;
    color: #C10404;
}

.product-trade-offers .trade-offer-article {
    font-size: 14px;
    color: #888;
}

.review-form__login-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #C10404;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.review-form__login-link:hover {
    background-color: #A00303;
}

.modal__content-wrapper--w800 {
    position: absolute;
    width: 100%;
    max-width: 800px;
    z-index: 200;
}

/* Адаптивность */
@media (max-width: 768px) {
    .review-form__guest-fields {
        grid-template-columns: 1fr;
    }

    .review-form__actions {
        flex-direction: column;
    }

    .review-form__product-info {
        flex-direction: column;
        text-align: center;
    }

    .review-form__product-image {
        align-self: center;
    }

    .modal__body--review-form {
        height: calc(100vh - 50px);
        margin-bottom: 50px;
    }
}

.custom-checkbox__label {
    text-align: left;
}

/* /Модальное окно отзыва */

.custom-checkbox__input:required {
    width: 1px;
    height: 1px;
    left: 9px;
    top: calc(50% + 9px);
}

.relative {
    position: relative;
}

.review--no-flex {
    display: block;
}

.product-info__reviews-list {
    max-width: 100%;
}

.review__text--title {
    font-size: 20px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.review__text--in-product {
    padding: 20px;
}

/* Новые современные стили для отзывов */
.review-item {
    margin-bottom: 24px;
}

.review-item__card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-item__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.review-item__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C10404, #ff6b6b);
}

.review-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.review-item__author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.review-item__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C10404, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(193, 4, 4, 0.2);
}

.review-item__avatar-letter {
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.review-item__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.review-item__author-name {
    font-size: 16px;
    font-weight: 600;
    color: #282828;
    line-height: 1.3;
}

.review-item__date {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.review-item__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.review-item__stars {
    display: flex;
    gap: 2px;
}

.review-item__star {
    color: #e0e0e0;
    transition: color 0.2s ease;
    line-height: 1;
}

.review-item__star--active {
    color: #FFC807;
}

.review-item__star svg {
    display: block;
    width: 16px;
    height: 16px;
}

.review-item__rating-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-left: 4px;
}

.review-item__title {
    font-size: 18px;
    font-weight: 600;
    color: #282828;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-left: 4px;
}

.review-item__content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    padding-left: 4px;
    text-align: left;
}

.review-item__content p {
    margin: 0 0 12px 0;
}

.review-item__content p:last-child {
    margin-bottom: 0;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .review-item__card {
        padding: 20px;
        border-radius: 12px;
    }

    .review-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .review-item__rating {
        align-self: flex-end;
    }

    .review-item__avatar {
        width: 44px;
        height: 44px;
    }

    .review-item__avatar-letter {
        font-size: 16px;
    }

    .review-item__author-name {
        font-size: 15px;
    }

    .review-item__title {
        font-size: 16px;
    }

    .review-item__content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .review-item__card {
        padding: 16px;
    }

    .review-item__header {
        gap: 10px;
    }

    .review-item__author {
        gap: 10px;
    }
}

/* Анимация появления отзывов */
.review-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.review-item:nth-child(2) {
    animation-delay: 0.1s;
}

.review-item:nth-child(3) {
    animation-delay: 0.2s;
}

.review-item:nth-child(4) {
    animation-delay: 0.3s;
}

.review-item:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Совместимость со старыми классами */
.delimiter-m4 {
    display: none;
}

.product-info__reviews {
    margin-bottom: 20px;
}

/* ====== Страница: Условия оплаты и доставки (dostAndOplata) ====== */
.delivery_block .content .delivery-card {
	background: #fff;
	border: 1px solid #EDEDED;
	border-radius: 12px;
	padding: 20px;
}

.delivery_block .content .delivery-card + .delivery-card {
	margin-top: 8px;
}

.delivery_block .content .delivery-card h2 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #282828;
}

.delivery_block .content .delivery-card p {
	font-size: 17px;
	line-height: 150%;
	color: #282828;
}

.delivery_block .content .delivery-card ul {
	padding-left: 20px;
}

.delivery_block .content .delivery-card ul li {
	list-style: disc;
	font-size: 17px;
	line-height: 150%;
	color: #282828;
}

.delivery_block .content .delivery-card ul li::marker {
	color: #c10404;
}

.delivery_block .content .delivery-card--attention {
	background: #FFFBF5;
	border-color: #FCE4BD;
}

.delivery_block .content .grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.delivery_block .content .price-accent {
	margin-top: 6px;
	font-size: 18px;
	font-weight: 800;
	color: #c10404;
}

.delivery_block .content .note {
	color: #5c5c5c;
}

@media (max-width: 992px) {
	.delivery_block .content .grid-2 {
		grid-template-columns: 1fr;
	}
}
.none{
    display: none;
}
