/* Scroll to top button */
#goToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    border: none;
    outline: none;
    background-color: #444;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
}

#goToTop:hover {
    background-color: #222;
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie consent popup */
#cookieConsent {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: inherit;
    text-align: left;
    animation: slideInUp 0.8s ease-out forwards;
}

#cookieConsent p {
    margin: 0 0 16px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

#cookieConsent button {
    background-color: #222;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

#cookieConsent button:hover {
    background-color: #000;
}

@media (max-width: 575px) {
    #cookieConsent {
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: auto;
    }
    #goToTop {
        bottom: 20px;
        right: 20px;
    }
}

/* Feedback Form Styles */
.feedback-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 80px 0;
    margin-top: 60px;
    background-color: #1a1a1a;
    color: #fff;
    border-top: none;
}

.feedback-container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.feedback-section__title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
}

.feedback-form {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.feedback-form__row {
    display: flex;
    margin-bottom: 25px;
    justify-content: space-between;
}

.feedback-form__group {
    width: 100%;
    position: relative;
}

.feedback-form__row .feedback-form__group + .feedback-form__group {
    margin-left: 30px;
}

.feedback-form__input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    background: transparent;
    color: #fff;
    font-family: inherit;
}

.feedback-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.feedback-form__input:focus {
    border-bottom-color: #fff;
}

.feedback-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-form__label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bottom Row Layout */
.feedback-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.feedback-captcha-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
}

.feedback-captcha-box input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #fff;
}

.feedback-consent {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    max-width: 300px;
}

.feedback-submit-btn {
    padding: 15px 40px;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: not-allowed;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.5;
    transition: all 0.3s;
    min-width: 180px;
}

.feedback-submit-btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.feedback-submit-btn:not(:disabled):hover {
    background-color: #ddd;
}

@media (max-width: 768px) {
    .feedback-form__row {
        flex-direction: column;
    }
    .feedback-form__row .feedback-form__group + .feedback-form__group {
        margin-left: 0;
        margin-top: 25px;
    }
    .feedback-section {
        padding: 50px 0;
    }
    .feedback-section__title {
        font-size: 26px;
    }
    .feedback-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }
    .feedback-captcha-box {
        justify-content: center;
    }
    .feedback-consent {
        text-align: center;
        max-width: 100%;
    }
    .feedback-submit-btn {
        width: 100%;
    }
}

/* Cart: select validation error */
.chosen-container.select-error .chosen-single {
    border: 1px solid #c0392b !important;
}

/* Cart: qty field for offer-type product */
.product-info__info_offer-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info__info_offer-qty .product-info__info_label {
    white-space: nowrap;
}

/* доп стили хедера */
/* Название бренда в мобильном хедере */
.header__subtitle--brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Название в десктопной шапке */
.header__brand {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-style: normal;
}
.header__subtitle-line2 {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #888;
    text-transform: none;
}

/* Блок с двумя телефонами и часами работы */
.header__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 18px;
    line-height: 1.25;
}
.header__phone--landline {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.header__phone--landline:hover {
    text-decoration: underline;
}
.header__phone--wa {
    font-size: 14px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    margin-top: 2px;
}
.header__phone--wa img {
    vertical-align: middle;
    margin-right: 3px;
}
.header__phone--wa:hover {
    text-decoration: underline;
}
.header__workhours {
    font-size: 12px;
    font-weight: 300;
    color: #888;
    margin-top: 4px;
    letter-spacing: 0.02em;
}
.header__workhours--mobile {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    margin-left: 40px;
}

/* Мобильные телефоны — вертикально с отступом под названием */
.topmenu__group .header__phone--landline,
.topmenu__group .header__phone--wa {
    margin-left: 40px;
    font-size: 13px;
}
.topmenu__group .header__phone--wa {
    margin-top: 3px;
}

.header__phone-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.header__phone-icon img {
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 991px) {
    .topmenu__left {
        position: relative;
        flex: 1;
    }
    .header__logo--mobile {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important;
    }
    .header__phone-icon {
        display: inline-flex;
    }
    .delivery-banner {
        display: none !important;
    }
}

@media screen and (max-width: 374px) {
    .header__subtitle--brand {
        font-size: 12px;
    }
}
@media screen and (max-width:767px) {
    .personal-account__bottom_item:last-child {
        display: block;
    }
    .personal-account__bottom_item .search-form-trigger.personal-account__bottom_link.srch-btn {
        display: none;
    }
}

/* доп стили футера */
.footer {
    margin-bottom: 0;
}
.active_menu_footer {
    font-weight: bold;
}
.socials__list i {
    font-size: 22px;
}

.footer__bottom {
    border-top: 1px solid #e5e5e5;
    padding: 18px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5rem;
}
.footer__bottom-copy {
    font-size: 12px;
    font-weight: 300;
    color: #aaa;
}
.footer__bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__bottom-links a {
    font-size: 12px;
    font-weight: 300;
    color: #aaa;
    text-decoration: none;
}
.footer__bottom-links a:hover {
    color: #000;
    text-decoration: underline;
}

@media screen and (max-width: 991px) {
    .footer__group.footer-nav:nth-child(1) {
        order: 6;
        flex-basis: calc(50% - 3.25%);
        max-width: calc(50% - 3.25%);
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .footer__group.footer-nav:nth-child(1) {
        order: 6;
        flex-basis: calc(50% - 3.25%);
        max-width: calc(50% - 3.25%);
    }
}

@media screen and (max-width: 575px) {
    .footer__bottom {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .footer__group.footer-nav:nth-child(1) {
        order: 6;
        flex-basis: 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

.footer-nav__phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 18px;
    font-weight: 100;
    color: #000;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 6px;
}
.footer-nav__phone:hover {
    text-decoration: underline;
    color: #000;
}
.footer-nav__phone img,
.footer-nav__phone svg {
    flex-shrink: 0;
}
.footer-nav__meta {
    font-size: 13px;
    font-weight: 300;
    color: #999;
    margin-bottom: 4px;
    line-height: 1.3;
}
.footer-nav__address-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #bbb;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 3px;
}
.footer-nav__address {
    font-size: 14px;
    font-weight: 200;
    color: #000;
    line-height: 1.45;
    margin-bottom: 4px;
}

/* стили страницы контактов */
.help-block {
    color: #f55a4a;
    font-size: 11px;
    font-weight: 300;
}
.contacts__info-hours {
    font-size: 13px;
    font-weight: 300;
    color: #999;
    margin-top: 4px;
}

/* Product badges */
.new-catalog__item .stock-badges,
.popular-goods__slider_item .stock-badges {
    left: -5px;
    top: -10px;
    position: absolute;
    display: flex;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
}
.new-catalog__item:hover .stock-badges,
.popular-goods__slider_item:hover .stock-badges {
    z-index: 4;
}

/* Advantages Section (магазин мужских костюмов) */
.advantages-section {
    padding: 60px 0 70px;
    background: #fff;
}

.advantages-section__header {
    text-align: center;
    margin-bottom: 50px;
}

.advantages-section__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.advantages-section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #c0392b;
    margin: 14px auto 0;
}

.advantages-section__grid {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.advantages-section__item {
    flex: 1;
    max-width: 340px;
    padding: 0 40px;
    border-right: 1px solid #e8e8e8;
}

.advantages-section__item:first-child {
    padding-left: 0;
}

.advantages-section__item:last-child {
    border-right: none;
    padding-right: 0;
}

.advantages-section__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    color: #1a1a1a;
    transition: color 0.25s ease;
}

.advantages-section__icon svg {
    width: 100%;
    height: 100%;
}

.advantages-section__item:hover .advantages-section__icon {
    color: #c0392b;
}

.advantages-section__item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
}

.advantages-section__item-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 18px;
}

.advantages-section__item-link {
    font-size: 14px;
    color: #c0392b;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.advantages-section__item-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .advantages-section__grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 20px;
    }

    .advantages-section__item {
        max-width: 480px;
        width: 100%;
        padding: 0 0 40px;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .advantages-section__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .advantages-section {
        padding: 40px 0 50px;
    }

    .advantages-section__title {
        font-size: 17px;
    }

    .advantages-section__icon {
        width: 60px;
        height: 60px;
    }
}

/* ========================================= */

.new-catalog__item .stock,
.popular-goods__slider_item .stock {
    width: 35px;
    height: 35px;
    background-color: #e4273b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 8px;
    color: #fff;
    text-transform: uppercase;
    line-height: 2;
    position: static;
}

/* Recommended Products Section (Рекомендуем) */
.recommended-section {
    padding: 60px 0 70px;
    background: #fff;
}

.recommended-section__header {
    text-align: center;
    margin-bottom: 44px;
}

.recommended-section__grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.recommended-section__item {
    flex: 1;
    max-width: 260px;
    text-align: center;
}

.recommended-section__img-wrap {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f9f9f9;
}

.recommended-section__img {
    width: 100%;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.recommended-section__item:hover .recommended-section__img {
    transform: scale(1.04);
}

.recommended-section__name {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.recommended-section__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recommended-section__name a:hover {
    color: #c0392b;
}

.recommended-section__price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 900px) {
    .recommended-section__grid {
        gap: 20px;
        padding: 0 16px;
    }

    .recommended-section__img {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .recommended-section__grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .recommended-section__item {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 380px) {
    .recommended-section__item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================= */
.breadcrumbs__link.products-qty {
    margin-top: 1rem;
}

/* =====================================================
   COMPARE HEADER ICON
   ===================================================== */
.compare-header-item--hidden {
    display: none !important;
}

.compare__icon-new {
    width: 22px;
    height: 22px;
}

/* =====================================================
   PRODUCT PAGE — ACTION BUTTONS ROW
   ===================================================== */
.product-info__actions-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-info__secondary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.product-action-btn:hover {
    border-color: #222;
    color: #222;
}

.product-action-btn.active {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff8f8;
}

.product-action-btn svg {
    flex-shrink: 0;
}

/* Кнопка сравнения в верхней зоне слайдера */
.product-info__sliders_compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    padding: 0;
    margin: 0 4px;
    vertical-align: middle;
}

.product-info__sliders_compare:hover {
    border-color: #222;
    color: #222;
}

.product-info__sliders_compare.compare-active {
    color: #c0392b;
    border-color: #c0392b;
    background: #fff8f8;
}

/* =====================================================
   PRODUCT SPECS (Характеристики)
   ===================================================== */
.product-specs-block {
    margin: 40px 0 0;
    padding: 0;
}

.product-specs-block__title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
    letter-spacing: 0.02em;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-specs-table__row:nth-child(odd) {
    background: #f9f9f9;
}

.product-specs-table__row:hover {
    background: #f2f2f2;
}

.product-specs-table__name,
.product-specs-table__value {
    padding: 10px 16px;
    border-bottom: 1px solid #ebebeb;
    vertical-align: middle;
    line-height: 1.5;
}

.product-specs-table__name {
    width: 45%;
    font-weight: 600;
    color: #444;
}

.product-specs-table__value {
    color: #222;
}

@media (max-width: 575px) {
    .product-specs-table__name,
    .product-specs-table__value {
        display: block;
        width: 100%;
        padding: 6px 10px;
    }
    .product-specs-table__name {
        padding-bottom: 2px;
        border-bottom: none;
    }
    .product-specs-table__value {
        padding-top: 0;
    }
}

/* =====================================================
   PAYMENT METHODS BLOCK
   ===================================================== */
.payment-methods-list {
    padding: 10px 0;
}

.payment-methods-list__item {
    padding: 10px 0;
    border-bottom: 1px dashed #ebebeb;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.payment-methods-list__item:last-child {
    border-bottom: none;
}

.payment-methods-list__name {
    font-weight: 600;
}

/* Иконка-заглушка для раздела оплаты */
.more-info-product__collapse_icon-fallback {
    width: 24px;
    height: 24px;
    color: #555;
}

/* =====================================================
   PRODUCT REVIEWS
   ===================================================== */
.product-reviews-block {
    margin: 50px 0 40px;
    padding: 0;
}

.product-reviews-block__header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1a1a1a;
}

.product-reviews-block__title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.product-reviews-block__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.product-reviews-block__avg {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-reviews-block__avg-val {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-reviews-block__empty {
    color: #888;
    font-size: 14px;
    margin: 0 0 30px;
}

/* Stars display */
.stars-display {
    display: inline-flex;
    gap: 2px;
}

.stars-display .star {
    font-size: 16px;
    line-height: 1;
}

.stars-display--lg .star {
    font-size: 22px;
}

.star--filled {
    color: #f5a623;
}

.star--empty {
    color: #ddd;
}

/* Review list */
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.product-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.product-review-item:first-child {
    border-top: 1px solid #ebebeb;
}

.product-review-item__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-review-item__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-review-item__date {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}

.product-review-item__text {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* Review form */
.product-review-form-wrap {
    background: #f9f9f9;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 30px;
    margin-top: 10px;
}

.product-review-form-wrap__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.product-review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-review-form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.product-review-form__label .required {
    color: #c0392b;
}

.product-review-form__input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.product-review-form__input:focus {
    border-color: #222;
}

.product-review-form__textarea {
    resize: vertical;
    min-height: 100px;
}

/* Stars picker */
.stars-picker {
    display: inline-flex;
    gap: 4px;
}

.star-pick {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
}

.star-pick:hover,
.star-pick.active {
    color: #f5a623;
}

.star-pick:hover {
    transform: scale(1.15);
}

.product-review-form__footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-review-form__note {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

.product-review-form__result {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.product-review-form__result--success {
    background: #edfaf1;
    border: 1px solid #2ecc71;
    color: #1a7a45;
}

.product-review-form__result--error {
    background: #fdf1f0;
    border: 1px solid #e74c3c;
    color: #922b21;
}

@media (max-width: 575px) {
    .product-review-form-wrap {
        padding: 20px 16px;
    }
    .product-review-form__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .product-review-item__date {
        margin-left: 0;
        flex-basis: 100%;
    }
    .product-reviews-block__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =====================================================
   COMPARISON PAGE
   ===================================================== */
.compare-page {
    padding-bottom: 60px;
}

.compare-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0 30px;
}

.compare-page__title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.compare-clear-btn {
    background: none;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.compare-clear-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}

/* Empty state */
.compare-page__empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}

.compare-page__empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.25;
    color: #222;
}

.compare-page__empty-text {
    font-size: 16px;
    margin-bottom: 30px;
    color: #888;
}

/* Compare table */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ebebeb;
    font-size: 14px;
    line-height: 1.5;
}

.compare-table__label-cell {
    background: #fafafa;
    font-weight: 600;
    color: #444;
    width: 200px;
    min-width: 160px;
    white-space: nowrap;
}

.compare-table__product-cell {
    background: #fff;
    text-align: center;
    min-width: 200px;
    font-weight: normal;
}

/* Строки с различиями */
.compare-table__row--diff .compare-table__label-cell {
    background: #fff8f0;
}

.compare-table__row--diff .compare-table__value-cell {
    background: #fffdf8;
}

.compare-table__diff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}

.compare-table__no-options {
    text-align: center;
    color: #aaa;
    padding: 30px;
}

/* Product card inside compare table */
.compare-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-top: 10px;
}

.compare-product-card__remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 16px;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.compare-product-card__remove:hover {
    color: #c0392b;
}

.compare-product-card__img-link {
    display: block;
}

.compare-product-card__img {
    width: 120px;
    height: 150px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.compare-product-card__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s;
}

.compare-product-card__name:hover {
    color: #c0392b;
}

/* Compare counter in header (если будет добавлен) */
.compare-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #c0392b;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

@media (max-width: 767px) {
    .compare-page__title {
        font-size: 22px;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }
    .compare-product-card__img {
        width: 80px;
        height: 100px;
    }
    .compare-table__label-cell {
        width: 130px;
        min-width: 120px;
    }
}

@media (max-width: 575px) {
    .compare-page__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-info__secondary-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-action-btn {
        justify-content: center;
    }
}

/* =====================================================
   Similar products grid
   ===================================================== */
.similar-products-block {
    padding: 48px 0 56px;
    background: #fff;
}

.similar-products-block__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.similar-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.similar-products-item {
    flex: 0 0 calc(25% - 18px);
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.similar-products-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    border-color: #ccc;
}

.similar-products-item__img-wrap {
    display: block;
    overflow: hidden;
    background: #f9f9f9;
}

.similar-products-item__img {
    width: 100%;
    aspect-ratio: 29 / 46;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.similar-products-item:hover .similar-products-item__img {
    transform: scale(1.04);
}

.similar-products-item__info {
    padding: 10px 12px 14px;
    text-align: center;
}

.similar-products-item__name {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.similar-products-item__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.similar-products-item__name a:hover {
    color: #c0392b;
}

.similar-products-item__price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.similar-products-item__price-old {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}

.similar-products-item__price-new {
    font-size: 15px;
    font-weight: 600;
    color: #c0392b;
}

.topmenu {
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .similar-products-grid {
        gap: 16px;
        padding: 0 16px;
    }

    .similar-products-item {
        flex: 0 0 calc(25% - 12px);
    }
}

@media (max-width: 640px) {
    .similar-products-block__title {
        font-size: 18px;
    }

    .similar-products-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 380px) {
    .similar-products-item {
        flex: 0 0 100%;
    }
}

/* =====================================================
   Product series block (same color)
   ===================================================== */
.product-series-block {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.product-series-block__title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.product-series-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-series-item {
    display: block;
    width: 70px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.product-series-item:hover {
    border-color: #ccc;
}

.product-series-item--active {
    border-color: #1a1a1a;
}

.product-series-item__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
}

.product-series-item__label {
    font-size: 11px;
    text-align: center;
    padding: 4px 2px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
}

@media (max-width: 640px) {
    .product-series-item {
        width: 56px;
    }
    .product-series-item__label {
        font-size: 10px;
    }
}

/* теги */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}
.category-tags__item {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.category-tags__item:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===== CATALOG SIDEBAR — боковое меню категорий ===== */

/* --- Страница каталога /catalog --- */
.products--catalog {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.products--catalog .products__main {
    flex: 1 1 0;
    min-width: 0;
}

/* --- Фикс переполнения фильтров каталога при наличии сайдбара --- */

/* временно скрываем фильтр «Воротник» — удалить строку ниже чтобы вернуть */
.catalog-filter__filters_group.vorot { display: none; }

.catalog-with-sidebar .catalog-filter__filters-wrap {
    overflow: hidden;
}


.catalog-with-sidebar .catalog-filter__filters_group {
    flex-wrap: wrap;
    max-width: 100%;
    align-items: flex-start;
}

/* Заголовок фильтра — прижат к верху, на уровне первой строки значений */
.catalog-with-sidebar .catalog-filter__filters_group_title_block {
    padding-top: 2px;
}

.catalog-with-sidebar .catalog-filter__filters_list {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}

/* Элементы фильтра — компактные «тэги» */
.catalog-with-sidebar .catalog-filter__filters__item {
    margin-right: 0;
    padding: 4px 10px 4px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.catalog-with-sidebar .catalog-filter__filters__item:hover {
    border-color: #999;
    background: #f2f2f2;
}

/* Чекбокс внутри «тэга» — чуть крупнее и заметнее */
.catalog-with-sidebar .catalog-filter__filters__item .catalog-filter__checkbox:before {
    border-color: #bbb;
    border-radius: 2px;
}

/* Убираем старый width для цвета, чтобы не ломало перенос */
.catalog-with-sidebar .catalog-filter__filters_group.color .catalog-filter__filters_list {
    width: auto;
}

/* --- Страница категории /catalog/{slug} --- */
.catalog-with-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.catalog-with-sidebar__main {
    flex: 1 1 0;
    min-width: 0;
}

/* --- Общие стили сайдбара --- */
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
    border: 1px solid #e2e2e2;
    background: #fff;
    font-family: Museo, 'MuseoSans', Arial, sans-serif;
}

.catalog-sidebar__header {
    background: #222;
    color: #fff;
    padding: 13px 16px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.catalog-sidebar__list,
.catalog-sidebar__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-sidebar__list {
    padding: 6px 0 8px;
}

/* Родительская категория */
.catalog-sidebar__item--parent {
    padding: 0;
}

.catalog-sidebar__item--parent > .catalog-sidebar__link {
    display: block;
    padding: 6px 16px 5px;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.catalog-sidebar__item--parent > .catalog-sidebar__link:hover {
    color: #000;
    text-decoration: underline;
}

/* Дочерние категории */
.catalog-sidebar__item--child .catalog-sidebar__link {
    display: block;
    padding: 4px 16px 4px 30px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.18s ease;
}

.catalog-sidebar__item--child .catalog-sidebar__link:hover {
    color: #111;
    text-decoration: underline;
}

/* Активная (текущая) категория */
.catalog-sidebar__link--active {
    font-weight: 700;
    color: #111 !important;
}

/* Разделитель между родительскими группами */
.catalog-sidebar__item--parent + .catalog-sidebar__item--parent {
    border-top: 1px solid #f0f0f0;
}

.catalog-sidebar {
    margin-top: 18px;
}

.catalog-with-sidebar .catalog-sidebar {
    margin-top: 48px;
}

/* Мобильные: сайдбар скрыт, контент на всю ширину */
@media (max-width: 767px) {
    .products--catalog,
    .catalog-with-sidebar {
        display: block;
    }
    .catalog-sidebar {
        display: none;
    }
}

/* Планшет: сужаем сайдбар */
@media (max-width: 1100px) and (min-width: 768px) {
    .catalog-sidebar {
        width: 220px;
    }
    .products--catalog,
    .catalog-with-sidebar {
        gap: 18px;
    }
}

/* =====================================================
   SIZE INQUIRY — Кнопка и попап «Уточнить наличие размера»
   ===================================================== */

.product-info__actions-buttons {
    display: flex;
    gap: 1rem;
}

.product-info__actions-buttons button {
    border-radius: 30px;
}

/* Кнопка на странице товара */
.btn_size_inquiry {
    background-color: #6b2d3e;
    color: #fff;
    border: none;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .3s, color .3s;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn_size_inquiry:hover {
    color: #fff;
    opacity: .9;
}

/* Оверлей попапа */
.size-inquiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Попап */
.size-inquiry-popup {
    background: #fff;
    border-radius: 8px;
    padding: 40px 48px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Крестик закрытия */
.size-inquiry-popup__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.size-inquiry-popup__close:hover {
    color: #333;
}

/* Заголовок попапа */
.size-inquiry-popup__header {
    text-align: center;
    margin-bottom: 30px;
}

.size-inquiry-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.size-inquiry-popup__subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Поля формы */
.size-inquiry-popup__field {
    margin-bottom: 20px;
}

.size-inquiry-popup__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.size-inquiry-popup__input:focus {
    border-color: #6b2d3e;
}

.size-inquiry-popup__input::placeholder {
    color: #aaa;
}

/* Селект магазина */
.size-inquiry-popup__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.size-inquiry-popup__select option[value=""] {
    color: #aaa;
}

/* Капча */
.size-inquiry-popup__captcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Согласие на обработку данных */
.size-inquiry-popup__consent {
    margin-bottom: 24px;
}

.size-inquiry-popup__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.size-inquiry-popup__consent-check {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #6b2d3e;
}

.size-inquiry-popup__consent-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.size-inquiry-popup__consent-text a {
    color: #333;
    text-decoration: underline;
}

.size-inquiry-popup__consent-text a:hover {
    color: #6b2d3e;
}

/* Кнопка отправки */
.size-inquiry-popup__submit {
    width: 100%;
    padding: 16px 24px;
    background-color: #6b2d3e;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.size-inquiry-popup__submit:hover {
    background-color: #55202f;
    box-shadow: 0 4px 16px rgba(107, 45, 62, 0.3);
}

.size-inquiry-popup__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ошибка */
.size-inquiry-popup__error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

/* Успех */
.size-inquiry-popup__success {
    text-align: center;
    font-size: 16px;
    color: #2c7a47;
    padding: 40px 20px;
    line-height: 1.6;
}

.header__logo {
    margin-left: 170px;
}

/* Адаптив */
@media (max-width: 575px) {
    .product-info__actions-buttons {
        flex-direction: column;
    }
    .product-info__actions-buttons .btn.btn_theme_black.btn_size_m.add_one_to_cart {
        margin-top: 0;
    }
    .size-inquiry-popup {
        padding: 28px 20px;
        border-radius: 6px;
    }

    .size-inquiry-popup__title {
        font-size: 18px;
    }

    .size-inquiry-popup__input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .size-inquiry-popup__submit {
        font-size: 14px;
        padding: 14px 20px;
    }

    .btn_size_inquiry {
        padding: 12px 20px;
        font-size: 13px;
    }
}
