.product_page_custom_image_wrap .product-comparison-single{
	position: absolute;
	right: 10px;
	width: 56px;
	height: 56px;
	top: 64px;
}

/* ----- Comparison Container ----- */
.theme-compare-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px;
    font-family: inherit;
    color: #333;
}

/* ----- Header ----- */
.theme-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 0 24px;
    border-bottom: 1px solid #f0f0f0; 
}

/* Toggle Switch */
.theme-compare-toggle {
    display: flex;
    align-items: center;
}

.theme-compare-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin-right: 10px;
}

.theme-compare-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-compare-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
    border-radius: 20px;
}

.theme-compare-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.theme-compare-switch input:checked + .theme-compare-slider {
    background-color: #4CAF50;
}

.theme-compare-switch input:checked + .theme-compare-slider:before {
    transform: translateX(16px);
}

.theme-compare-toggle-label {
    font-size: 14px;
    color: #333;
}

.theme-compare-clear {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.theme-compare-clear:hover {
    color: #333;
    text-decoration: none;
}

/* ----- Products Wrapper ----- */
.theme-compare-products-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.theme-compare-products {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding-bottom: 5px;
}

.theme-compare-products::-webkit-scrollbar {
    display: none;
}

/* ----- Product Column ----- */
.theme-compare-product-column {
    flex: 0 0 auto;
    min-width: 240px;
    max-width: 280px;
    padding: 0 10px;
    border-right: 1px solid #f0f0f0;
}

.theme-compare-product-column:last-child {
    border-right: none;
}

/* ----- Product Card ----- */
.theme-compare-product-card {
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.theme-compare-product-image {
    position: relative;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.theme-compare-product-image img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    display: inline-block;
}

.theme-compare-cart-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fff;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ccc;
    border-radius: 4px;
    transition: color 0.2s;
    z-index: 1;
}

.theme-compare-cart-button svg {
    width: 18px;
    height: 18px;
}

.theme-compare-cart-button:hover {
    color: #333;
}

.theme-compare-product-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    display: flex;
    align-items: center;
    min-height: 24px;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
}

.theme-compare-product-title {
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.theme-compare-product-title a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    max-height: 2.8em;
}

.theme-compare-product-title a:hover {
    color: #000;
    text-decoration: underline;
}

/* Product Meta */
.theme-compare-product-meta {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 40px;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
}

.theme-compare-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4CAF50;
}

.theme-compare-stock svg {
    width: 12px;
    height: 12px;
}

.theme-compare-stock.out-of-stock {
    color: #f44336;
}

.theme-compare-sku {
    font-size: 12px;
    color: #999;
}

/* View Details Button */
.theme-compare-product-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
}

.order_button.theme-compare-view-details{
    font-size: 13px;
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ----- Specs Section ----- */
.theme-compare-specs {
    display: flex;
    flex-direction: column;
}

.theme-compare-spec {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: height 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.theme-compare-spec-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
    flex-shrink: 0;
}

.theme-compare-spec-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
    word-break: break-word;
}

/* ----- Hide/Show Specs ----- */
.theme-compare-same {
    transition: opacity 0.3s, height 0.3s, visibility 0.3s;
}

.theme-compare-same.hidden {
    visibility: hidden;
    opacity: 0;
    height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* ----- Empty Comparison ----- */
.theme-compare-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 40px auto;
}

.theme-compare-empty-icon {
    margin-bottom: 20px;
    color: #ddd;
}

.theme-compare-empty h3 {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}

.theme-compare-back-to-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.theme-compare-back-to-shop:hover {
    background-color: #3d8b40;
    text-decoration: none;
    color: white;
}

/* ----- Simple Scroll Navigation Styles ----- */
.theme-compare-scroll-prev,
.theme-compare-scroll-next {
    position: absolute;
    z-index: 10;
    top: 100px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.theme-compare-scroll-prev:hover,
.theme-compare-scroll-next:hover {
    background: #f5f5f5;
}

.theme-compare-scroll-prev {
    left: -18px;
}

.theme-compare-scroll-next {
    right: -18px;
}

.theme-compare-scroll-prev.disabled,
.theme-compare-scroll-next.disabled {
    opacity: 0.5;
    cursor: default;
}

.theme-compare-scroll-prev.disabled:hover,
.theme-compare-scroll-next.disabled:hover {
    background: #fff;
}

.theme-compare-scroll-prev svg,
.theme-compare-scroll-next svg {
    width: 14px;
    height: 14px;
}

/* Compare Button in Product Card */
.product-comparison-single .theme-compare-button-wrapper {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-left: 10px;
}

/* Theme Compare Button */
.theme-compare-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-compare-button.active svg path {
    stroke: #4CAF50;
}



/* Responsive styles */
@media (max-width: 1200px) {
    .theme-compare-product-column {
        min-width: 220px;
    }
    
    .theme-compare-scroll-prev,
    .theme-compare-scroll-next {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 991px) {
    .theme-compare-product-column {
        min-width: 200px;
    }
    
    .theme-compare-scroll-prev {
        left: -15px;
    }
    
    .theme-compare-scroll-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .theme-compare-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .theme-compare-product-column {
        min-width: 180px;
    }
    
    .theme-compare-spec {
        padding: 10px;
    }
    
    .theme-compare-spec-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .theme-compare-spec-value {
        font-size: 13px;
    }
    
    .theme-compare-scroll-prev,
    .theme-compare-scroll-next {
        top: 80px;
        width: 30px;
        height: 30px;
    }
    
    .theme-compare-scroll-prev {
        left: -12px;
    }
    
    .theme-compare-scroll-next {
        right: -12px;
    }
}

@media (max-width: 480px) {
    .theme-compare-product-column {
        min-width: 170px;
    }
    
    .theme-compare-product-card {
        padding: 10px;
    }
    
    .theme-compare-spec {
        padding: 8px;
    }
    
    .theme-compare-scroll-prev,
    .theme-compare-scroll-next {
        top: 70px;
        width: 28px;
        height: 28px;
    }
    
    .theme-compare-scroll-prev svg,
    .theme-compare-scroll-next svg {
        width: 12px;
        height: 12px;
    }
}

/* Notifications */
.theme-comparison-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* Контейнер уведомления */
.theme-comparison-notification {
    position: relative;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.theme-comparison-notification-show {
    opacity: 1;
    transform: translateX(0);
}

/* Содержимое уведомления */
.theme-comparison-notification-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

/* Изображение товара */
.theme-comparison-notification-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-comparison-notification-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Текст уведомления */
.theme-comparison-notification-message {
    flex-grow: 1;
}

.theme-comparison-notification-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.theme-comparison-notification-product-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
}

/* Убираем излишние элементы */
.theme-comparison-notification-icon,
.theme-comparison-notification-action {
    display: none;
}

/* Кнопка закрытия */
.theme-comparison-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.theme-comparison-notification-close:hover {
    color: #333;
}

.theme-comparison-notification-close svg {
    width: 14px;
    height: 14px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .theme-comparison-notifications-container {
        top: 10px;
        right: 10px;
        width: 280px;
    }
    
    .theme-comparison-notification-content {
        padding: 12px;
    }
    
    .theme-comparison-notification-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .theme-comparison-notification-text {
        font-size: 14px;
    }
    
    .theme-comparison-notification-product-name {
        font-size: 12px;
    }
}