.product-card__favorite {
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 19px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Состояние по умолчанию - серая обводка без заливки */
 .product-card__favorite::before {
    content: "";
    width: 22px;
    height: 19px;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="19" viewBox="0 0 22 19" fill="none"><path d="M6.50658 1.2372C9.4889 1.2381 10.9807 4.54568 10.9807 4.54568C11.4841 3.35019 12.8261 1.41438 15.6777 1.30059C15.7411 1.2979 15.8036 1.29701 15.8656 1.29701C18.602 1.29701 20.4128 3.72203 19.9272 6.52226C19.5656 8.60837 17.6678 10.3067 16.3001 11.7645C14.6301 13.5456 12.8776 15.2473 11.0366 16.8433C9.51596 15.3407 8.00302 13.944 6.5222 12.4007C5.1318 10.9514 2.93752 9.11371 2.22406 7.16357C1.2345 4.45675 3.59268 1.39042 6.28372 1.24347C6.35874 1.24011 6.4331 1.2372 6.50658 1.2372ZM6.50658 0.326416H6.5057C6.4166 0.326416 6.32706 0.329104 6.23554 0.33448C4.59566 0.423184 2.96876 1.42402 1.98866 2.9452C1.07192 4.3685 0.851922 6.02229 1.38564 7.4812C2.02408 9.2275 3.58916 10.7664 4.96966 12.124C5.29812 12.4468 5.60832 12.7512 5.88266 13.0377C6.84626 14.0419 7.83758 14.9993 8.79634 15.9244C9.33358 16.443 9.8728 16.9636 10.4136 17.4971L10.9972 18.0735L11.6161 17.537C13.4155 15.9775 15.2093 14.2471 16.9473 12.3933C17.1286 12.2004 17.3196 12.0029 17.5147 11.8001C18.8211 10.4481 20.4469 8.76382 20.8081 6.68062C21.0968 5.01362 20.6942 3.36789 19.7024 2.16344C18.7575 1.01768 17.395 0.386 15.8652 0.386C15.7912 0.386 15.7171 0.387792 15.6419 0.39048C13.2326 0.486576 11.7771 1.72574 10.96 2.80744C10.1258 1.70245 8.65488 0.327312 6.50658 0.326416Z" fill="%238B8B8B" stroke="%238B8B8B" stroke-width="0.5"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

/* Состояние при наведении - красная обводка */
 .product-card__favorite:hover::before {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="19" viewBox="0 0 22 19" fill="none"><path d="M6.50658 1.2372C9.4889 1.2381 10.9807 4.54568 10.9807 4.54568C11.4841 3.35019 12.8261 1.41438 15.6777 1.30059C15.7411 1.2979 15.8036 1.29701 15.8656 1.29701C18.602 1.29701 20.4128 3.72203 19.9272 6.52226C19.5656 8.60837 17.6678 10.3067 16.3001 11.7645C14.6301 13.5456 12.8776 15.2473 11.0366 16.8433C9.51596 15.3407 8.00302 13.944 6.5222 12.4007C5.1318 10.9514 2.93752 9.11371 2.22406 7.16357C1.2345 4.45675 3.59268 1.39042 6.28372 1.24347C6.35874 1.24011 6.4331 1.2372 6.50658 1.2372ZM6.50658 0.326416H6.5057C6.4166 0.326416 6.32706 0.329104 6.23554 0.33448C4.59566 0.423184 2.96876 1.42402 1.98866 2.9452C1.07192 4.3685 0.851922 6.02229 1.38564 7.4812C2.02408 9.2275 3.58916 10.7664 4.96966 12.124C5.29812 12.4468 5.60832 12.7512 5.88266 13.0377C6.84626 14.0419 7.83758 14.9993 8.79634 15.9244C9.33358 16.443 9.8728 16.9636 10.4136 17.4971L10.9972 18.0735L11.6161 17.537C13.4155 15.9775 15.2093 14.2471 16.9473 12.3933C17.1286 12.2004 17.3196 12.0029 17.5147 11.8001C18.8211 10.4481 20.4469 8.76382 20.8081 6.68062C21.0968 5.01362 20.6942 3.36789 19.7024 2.16344C18.7575 1.01768 17.395 0.386 15.8652 0.386C15.7912 0.386 15.7171 0.387792 15.6419 0.39048C13.2326 0.486576 11.7771 1.72574 10.96 2.80744C10.1258 1.70245 8.65488 0.327312 6.50658 0.326416Z" fill="none" stroke="%23E30613" stroke-width="1"/></svg>');
}

/* Активное состояние - красная заливка */
.product-card__favorite--active::before {
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="19" viewBox="0 0 22 19" fill="none"><path d="M6.50853 0.326462C6.41944 0.326462 6.32902 0.32915 6.23749 0.334526C4.59762 0.42323 2.97071 1.42406 1.99061 2.94525C1.07387 4.36854 0.853875 6.02233 1.38759 7.48125C2.02603 9.22755 3.59111 10.7664 4.97161 12.1241C5.30008 12.4469 5.61028 12.7513 5.88461 13.0378C6.84822 14.042 7.83954 14.9994 8.7983 15.9245C9.33554 16.443 9.87475 16.9636 10.4155 17.4972L10.9992 18.0735L11.618 17.5371C13.4174 15.9776 15.2113 14.2472 16.9493 12.3933C17.1306 12.2005 17.3215 12.0029 17.5167 11.8002C18.823 10.4481 20.4488 8.76387 20.8101 6.68067C21.0987 5.01366 20.6961 3.36793 19.7044 2.16349C18.7595 1.01773 17.397 0.386046 15.8671 0.386046C15.7932 0.386046 15.7191 0.387838 15.6438 0.390526C13.2346 0.486622 11.7791 1.72579 10.962 2.80749C10.1278 1.70249 8.65684 0.327358 6.50853 0.326462Z" fill="%23E30613" stroke="%23E30613" stroke-width="0.5"/></svg>') !important;
}

/* Кнопка сравнения */
.product-card__compare {
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 19px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG иконка для сравнения (обычное состояние) */
.product-card__compare::before {
    content: "";
    width: 17px;
    height: 15px;
    display: block;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="15" viewBox="0 0 17 15" fill="none"><line x1="15.6504" y1="14.25" x2="15.6504" y2="8.55" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/><line x1="12.0498" y1="14.25" x2="12.0498" y2="0.75" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/><line x1="8.4502" y1="14.25" x2="8.4502" y2="6.15" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/><line x1="4.84961" y1="14.25" x2="4.84961" y2="3.75" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/><line x1="1.25" y1="14.25" x2="1.25" y2="7.95" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

/* Состояние при наведении - красные линии */
.product-card__compare:hover::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="15" viewBox="0 0 17 15" fill="none"><line x1="15.6484" y1="14.25" x2="15.6484" y2="8.55" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="12.0508" y1="14.25" x2="12.0508" y2="0.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="8.44922" y1="14.25" x2="8.44922" y2="6.15" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="4.85156" y1="14.25" x2="4.85156" y2="3.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="1.25" y1="14.25" x2="1.25" y2="7.95" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/></svg>');
}
.product-card__compare--active::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="15" viewBox="0 0 17 15" fill="none"><line x1="15.6484" y1="14.25" x2="15.6484" y2="8.55" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="12.0508" y1="14.25" x2="12.0508" y2="0.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="8.44922" y1="14.25" x2="8.44922" y2="6.15" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="4.85156" y1="14.25" x2="4.85156" y2="3.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="1.25" y1="14.25" x2="1.25" y2="7.95" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/></svg>');
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Контейнер для избранных товаров */
.favorites-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.favorites-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация появления карточек товаров */
#favorites-container .product-categories {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

#favorites-container .product-categories.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация карточек с задержкой */
#favorites-container #favorites-container .product-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s ease;
}

#favorites-container #favorites-container .product-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Задержки для поочередного появления карточек */
#favorites-container .product-card:nth-child(1) { transition-delay: 0.1s; }
#favorites-container .product-card:nth-child(2) { transition-delay: 0.2s; }
#favorites-container .product-card:nth-child(3) { transition-delay: 0.3s; }
#favorites-container .product-card:nth-child(4) { transition-delay: 0.4s; }
#favorites-container .product-card:nth-child(5) { transition-delay: 0.5s; }
#favorites-container .product-card:nth-child(6) { transition-delay: 0.6s; }
#favorites-container .product-card:nth-child(7) { transition-delay: 0.7s; }
#favorites-container .product-card:nth-child(8) { transition-delay: 0.8s; }
#favorites-container .product-card:nth-child(9) { transition-delay: 0.9s; }
#favorites-container .product-card:nth-child(10) { transition-delay: 1.0s; }

/* Анимация заголовка избранного */
.favorites-header {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.favorites-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация пустого блока */
.favorites-empty {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.favorites-empty.fade-in {
    opacity: 1;
    transform: scale(1);
}

.favorites-actions {
    display: flex;
    gap: 10px;
}

.refresh-favorites-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.refresh-favorites-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.clear-favorites-btn {
    background: #E30613;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.clear-favorites-btn:hover {
    background: #c00511;
}

.favorites-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #E30613;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 300px;
    word-wrap: break-word;
}

/* Состояние показа уведомления */
.favorites-notification.show {
    transform: translateX(0);
}

#favorites-container .product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#favorites-container .product-card--removing {
    opacity: 0;
    transform: translateY(20px);
}

/* Анимация удаления карточки товара (общая для избранного и сравнения) */
#favorites-container .product-card--removing,
#compare-container .product-card--removing {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E30613;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.favorites-loading {
    text-align: center;
    padding: 60px 20px;
}

.favorites-loading p {
    color: #666;
    margin-top: 10px;
}

/* Счетчик избранных товаров в шапке */
.favorites-count {
    background: #E30613;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: 0px;
    padding: 0 4px;
    line-height: 1;
}


.favourites, .compare, .cart {
    position: relative;
}

.compare {
    --item-col-count: 4;
    --width: calc(100% / var(--item-col-count) - 0px * (var(--item-col-count) - 1) / var(--item-col-count));
}

/* Анимация изменения счетчика */
#favorites-count.updating {
    animation: pulse 0.3s ease-in-out;
}
#compare-count.updating {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Блок пустого избранного */
.favorites-empty {
    text-align: center;
    padding: 80px 20px;
    /* background: #f8f9fa; */
    border-radius: 12px;
    margin: 40px 0;
    /* border: 1px solid #e9ecef; */
}

.favorites-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.favorites-empty p {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 32px 0;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.favorites-empty .btn {
    display: inline-block;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favorites-empty .btn:hover {
    background: #7A5A42; /* Более темный оттенок коричневого для наведения */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 110, 80, 0.3);
    text-decoration: none;
    color: white;
}

.favorites-empty .btn:active {
    background: #6B4D37; /* Еще более темный для нажатия */
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(144, 110, 80, 0.3);
}

/* Перенести в основой файл стилей*/
.compare-row-options-layout {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.compare-options {
    flex: 0 0 180px;
    max-width: 180px;
    min-width: 140px;
    margin-right: 30px;
    flex-direction: column;
    gap: 16px;
    display: flex;
}
.compare-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0;
}
.compare-option input[type="radio"] {
    position: absolute;
    opacity: 0;

}

.compare-option.active .radio-custom::after,
.compare-option input[type="radio"]:checked + .radio-custom::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: #8B6A42;
    border-radius: 50%;
}
.compare-products {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.compare-title {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 20px;
    color: #333;
}
.compare-categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.compare-tabs {
    display: flex;
    gap: 10px;
}
.compare-tab {
    background: #8B6A42;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
}
.compare-tab:not(.active) {
    background: #f1f1f1;
    color: #333;
}
.compare-clear {
    align-items: center;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}
.compare-clear-category {
    align-items: center;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}
.compare-clear-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: var(--icon-trash);   
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}
.compare-clear-category-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: var(--icon-trash);   
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}
.compare-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.compare-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}
.compare-option input {
    position: absolute;
    opacity: 0;
}
.radio-custom {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #8B6A42;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}
.compare-option.active .radio-custom::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: #8B6A42;
    border-radius: 50%;
}
.compare-products {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.compare-product-card {
    position: relative;
    width: 220px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.compare-product-article {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    color: #999;
}
.compare-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}
.compare-action-btn {
    background: none;
    border: none;
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
}
.compare-favorite {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="19" viewBox="0 0 22 19" fill="none"><path d="M6.50658 1.2372C9.4889 1.2381 10.9807 4.54568 10.9807 4.54568C11.4841 3.35019 12.8261 1.41438 15.6777 1.30059C15.7411 1.2979 15.8036 1.29701 15.8656 1.29701C18.602 1.29701 20.4128 3.72203 19.9272 6.52226C19.5656 8.60837 17.6678 10.3067 16.3001 11.7645C14.6301 13.5456 12.8776 15.2473 11.0366 16.8433C9.51596 15.3407 8.00302 13.944 6.5222 12.4007C5.1318 10.9514 2.93752 9.11371 2.22406 7.16357C1.2345 4.45675 3.59268 1.39042 6.28372 1.24347C6.35874 1.24011 6.4331 1.2372 6.50658 1.2372ZM6.50658 0.326416H6.5057C6.4166 0.326416 6.32706 0.329104 6.23554 0.33448C4.59566 0.423184 2.96876 1.42402 1.98866 2.9452C1.07192 4.3685 0.851922 6.02229 1.38564 7.4812C2.02408 9.2275 3.58916 10.7664 4.96966 12.124C5.29812 12.4468 5.60832 12.7512 5.88266 13.0377C6.84626 14.0419 7.83758 14.9993 8.79634 15.9244C9.33358 16.443 9.8728 16.9636 10.4136 17.4971L10.9972 18.0735L11.6161 17.537C13.4155 15.9775 15.2093 14.2471 16.9473 12.3933C17.1286 12.2004 17.3196 12.0029 17.5147 11.8001C18.8211 10.4481 20.4469 8.76382 20.8081 6.68062C21.0968 5.01362 20.6942 3.36789 19.7024 2.16344C18.7575 1.01768 17.395 0.386 15.8652 0.386C15.7912 0.386 15.7171 0.387792 15.6419 0.39048C13.2326 0.486576 11.7771 1.72574 10.96 2.80744C10.1258 1.70245 8.65488 0.327312 6.50658 0.326416Z" fill="none" stroke="%238B8B8B" stroke-width="0.5"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.compare-stats {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="15" viewBox="0 0 17 15" fill="none"><line x1="15.6504" y1="14.25" x2="15.6504" y2="8.55" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="12.0498" y1="14.25" x2="12.0498" y2="0.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="8.4502" y1="14.25" x2="8.4502" y2="6.15" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="4.84961" y1="14.25" x2="4.84961" y2="3.75" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/><line x1="1.25" y1="14.25" x2="1.25" y2="7.95" stroke="%23E30613" stroke-width="1.5" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.compare-product-image {
    height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.compare-product-image img {
    max-height: 100%;
    max-width: 80px;
    object-fit: contain;
}
.compare-product-rating {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 8px;
}
.rating-star {
    color: #FFD700;
    font-size: 16px;
}
.rating-value {
    color: #666;
    font-size: 14px;
}
.compare-product-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 8px;
    color: #333;
    min-height: 40px;
}
.compare-product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}
.compare-product-category {
    font-size: 12px;
    color: #666;
}
.compare-product-category:not(:last-child)::after {
    content: "•";
    margin-left: 4px;
}
.compare-product-price-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.compare-product-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}
.compare-product-discount {
    background: #E30613;
    color: white;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 12px;
}
.compare-product-price {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}
.compare-add-to-cart {
    background: #8B6A42;
    color: white;
    border: none;
    width: 100%;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.compare-add-to-cart:hover {
    background: #7A5A42;
}
.compare-grid-cell--value.available {
    color: var(--main-color);
    font-weight: 500;

}

.compare-grid-cell {

}

.compare-grid-cell--value.not-available {
    color: var(--color-dark);
    font-weight: 500;
}
.compare-characteristics {
    margin-top: 30px;
}
.compare-section {
    margin-bottom: 30px;
}
.compare-section-title {
    font-size: 18px;
    font-weight: normal;
    color: #333;
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.compare-section-hint {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-property {
    padding: 10px;
    width: 200px;
    text-align: left;
    font-weight: normal;
    color: #333;
    font-size: 14px;
}
.compare-value {
    padding: 10px 20px;
    text-align: center;
    width: 220px;
    font-size: 14px;
    color: #333;
}
.compare-row.hidden {
    display: none;
}
.compare-main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    width: 100%;
    overflow: hidden;
    max-width: none;
}
.compare-grid-cell {
    padding: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    /* width: 228px; */
    /* justify-content: center; */
}
.compare-grid-cell:last-child {
    border-right: none;
}
.compare-grid-cell--header {
    background: #f8f9fa;
    font-weight: 500;
    text-align: left;
    justify-content: flex-start;
    padding: 15px;
    font-size: 14px;
    color: #495057;
}
.compare-grid-cell--options {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 15px;
    background: #fff;
    border-bottom: none;
}
.compare-grid-cell--product {
    --item-col-count: 4;
    padding: 15px 10px;
    min-height: 400px;
    align-items: stretch;
    flex-direction: column;

    flex-shrink: 0;

    width: var(--width);
}
.compare-grid-cell--product .product-card {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}
.compare-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.compare-characteristic-section {
    grid-column: 1 / -1;
    padding: 15px;
    font-weight: 500;
    font-size: 20px;
    color: var(--color-dark);
    border-bottom: 1px solid #E4E4E4;
}
.compare-grid-cell--property {
    font-weight: 500;
    padding: 12px 15px;
    text-align: left;
    justify-content: flex-start;
    font-size: 15px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
}
.compare-property-name {
    flex: 1;
}
.compare-add-important {
    position: relative;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid #E2E2E2;
    border-radius: 3px;
    background: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.compare-add-important:hover {
    border-color: var(--main-color);
}
.compare-add-important.active {
    border-color: var(--main-color);
    background: var(--main-color);
}
.compare-add-important.active::after {
    content: "✓";
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}
.compare-products-scroll-container {
    position: relative;
    overflow: hidden;
    grid-column: 2 / -1;
}
.compare-products-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    --item-col-count: 1;
}
.compare-products-scroll::-webkit-scrollbar {
    display: none;
}
.compare-characteristics-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-column: 2 / -1;
}
.compare-characteristics-scroll::-webkit-scrollbar {
    display: none;
}
.compare-grid-cell--value {
    flex-shrink: 0;
    color: var(--color-dark);
    font-weight: 500;
    width: var(--width);
}
.compare-scroll-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.compare-scroll-arrows:hover {
    background: white;
    color: var(--main-color);
}
.compare-scroll-arrows.prev {
    left: 10px;
}
.compare-scroll-arrows.next {
    right: 10px;
}
.compare-scroll-arrows.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.compare-options.mobile .compare-option.active .radio-custom::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: #8B6A42;
    border-radius: 50%;
}
.compare-options.mobile {
    display: none;
}

@media (max-width: 1280px) {
    .compare {
        --item-col-count: 3;
    }
}

@media (max-width: 1200px) {
    .compare-main-grid {
        overflow-x: auto;
        min-width: 800px;
        grid-template-columns: 200px 1fr;
    }
    .compare-grid-cell--product,
    .compare-grid-cell--value {

    }
}
@media (max-width: 900px) {
    .compare-characteristics-scroll .compare-grid-cell {
        align-items: flex-start;
    }
    .compare-characteristics-scroll {
        grid-column: 1 / -1;
    }
    .compare-products-scroll-container {
        grid-column: 1 / -1;
    }
    .compare-main-grid {
     
    }
    .compare-grid-cell {
        border-right: none;
        padding: 10px;
    }
    .compare-grid-cell--options {
        display: none;
        grid-row: auto;
        border-bottom: 1px solid #e9ecef;
    }
    .compare-options.desktop, .compare-clear-category.desktop {
        display: none;
    }
    .compare-options.mobile {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }
    
    .compare-products-scroll,
    .compare-characteristics-scroll {
        width: 100%;
    }

    .compare-main-grid {
           min-width: 100%;
    }

    .compare-add-important {
        margin-bottom: 12px;
    }
}

@media (max-width: 700px) {
    .compare {
        --item-col-count: 2;
    }
}

@media (max-width: 460px) {
    .compare {
        --item-col-count: 1;
    }
    .compare-grid-cell {
        font-size: 14px;
    }
    .compare-main-grid {
        grid-template-columns: 165px 1fr;
    }
}
/* Перенести в основой файл стилей*/