/**
 * Theme Product Comparison Styles
 * Стили для страницы сравнения товаров
 */

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

.mobile_function_panel .tool_item .tool_coomon_value{
	width:16px;
	height:16px;
	min-width: 16px;
	top:-1px;
	background-color: var(--second_color);
}

.mobile_function_panel .tool_item .tool_coomon_text{
	color: var(--second_color);
    display: block;
    width: 100%;
    font-size: 11px;
	margin:0px;
	opacity: 1;
}

.mobile_function_panel .tool_item .tool_coomon_wrap_content svg path{
	stroke: var(--second_color) !important;
}

.mobile_function_panel .tool_item .tool_coomon_wrap_content svg{
	height:24px;
	width:24px;
}

/* ----- Comparison Page Title ----- */
.theme-compare-page-title {
    margin-bottom: 30px;
}

.theme-compare-page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ----- Header with Controls ----- */
.theme-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0px 0;
}

/* Control Buttons */
.theme-compare-controls {
    display: flex;
    gap: 15px;
}

.theme-compare-clear,
.theme-compare-btn {
    padding: 0px 24px;
    font-size: var(--button_font_size);
    font-weight: var(--button_font_weight);
    background: #fff;
	height: var(--button_height);
	border-radius: var(--button_border_radius);
	text-transform: var(--button_text_transform);
	font-size: var(--button_font_size);
    cursor: pointer;
    transition: all 0.3s ease;
	display:flex;
	align-items:center;
	justify-content:center;
}

.theme-compare-btn{
    color: var(--main_color);
	border: 1px solid var(--main_color);
}

.theme-compare-btn:hover {
    border-color: #2C5F8D;
    color: #2C5F8D;
}

.theme-compare-btn.theme-compare-btn-primary,
.theme-compare-btn.active {
    background: var(--main_color);
    color: #fff;
    border-color: var(--main_color);
}

.theme-compare-btn.theme-compare-btn-primary:hover,
.theme-compare-btn.active:hover {
    background: var(--main_color);
    border-color: var(--main_color);
}

/* Clear button */
.theme-compare-clear {
    color: var(--second_color);
    border: 1px solid var(--second_color);
    text-decoration: none;
}

.theme-compare-clear:hover {
    background: #FF3B30;
    color: #fff;
}

.theme-compare-clear svg {
    width: 18px;
    height: 18px;
	margin-left:6px;
}

.theme-compare-clear svg path{
	transition: all 0.3s ease;
	stroke:var(--second_color) !important;	
}

.theme-compare-clear:hover svg path{
	stroke:#fff !important;
}

/* ----- 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;
    scrollbar-width: none;
    padding-bottom: 20px;
    gap: 0px;
	margin-left:-20px;
	margin-right:-20px;
}

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

/* ----- Product Column ----- */
.theme-compare-product-column {
    flex: 0 0 auto;
    min-width: 25%;
    max-width: 320px;
	padding-left:20px;
	padding-right:20px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* ----- Product Card ----- */
.theme-compare-product-card {
    padding: 24px;
	margin-top:24px;
    position: relative;
    background: #fff;
	border-radius:var(--middle_border_radius); 
	box-shadow: 0 4px 16px 0 rgba(29, 29, 29, 0.10);
}

/* Remove button */
.theme-compare-remove-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.theme-compare-remove-button svg path{
	stroke:var(--main_color) !important;
}

.theme-compare-remove-button svg {
    width: 25px;
    height: 25px;
    color: #999;
}

.theme-compare-remove-button:hover svg {
	opacity:0.7;
}

/* Product image */
.theme-compare-product-image {
    text-align: center;
    margin-bottom: 15px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-compare-product-image img {
    max-width: 100%;
    max-height: 128px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Product title */
.theme-compare-product-title {
    margin-bottom: 10px;
    min-height: 48px;
}

.theme-compare-product-title a {
    color: #333;
    font-size: 16px;
    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.3s;
}

.theme-compare-product-title a:hover {
    color: #2C5F8D;
}

/* Product price */
.theme-compare-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0px;
}

.theme-compare-product-price .price-request {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ----- Specs Section ----- */
.theme-compare-specs {
    flex: 1;
	margin-top:28px;
}

.theme-compare-spec {
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.theme-compare-spec:last-child {
    border-bottom: none;
}

.theme-compare-spec-label {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.theme-compare-spec-value {
    font-size: 15px;
    opacity:0.9;
    line-height: 1.4;
}

/* Hide same specs when filter is active */
.theme-compare-same.hidden {
    display: none !important;
}

/* ----- Product Actions ----- */
.theme-compare-product-actions {
    padding: 27px 0px 0;
    background: #fff;
}

.theme-compare-add-to-cart,
.theme-compare-view-details {
    width: 100%;
    padding: 0px 20px;
	font-size: var(--button_font_size);
    letter-spacing: 0.5px;
    border: none;
	height: var(--button_height);
    border-radius: var(--button_border_radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
	text-transform: var(--button_text_transform);
	font-weight: var(--button_font_weight);
	color: var(--button_color_text);
	align-items:center;
	justify-content:center;
	background-color: var(--visual_color_add_to_cart_btn) !important;
}

.theme-compare-add-to-cart {
    background: #FF3B30;
    color: #fff;
}

.theme-compare-view-details:hover,
.theme-compare-add-to-cart:hover {
    background: #e62e24;
	background-color: var(--visual_color_add_to_cart_btn_hover) !important;
}

.theme-compare-view-details {
    color: #fff;
}



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

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

.theme-compare-empty h3 {
    font-size: 24px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.theme-compare-back-to-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background-color: #2C5F8D;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.theme-compare-scroll-prev:hover,
.theme-compare-scroll-next:hover {
    background: #2C5F8D;
    border-color: #2C5F8D;
}

.theme-compare-scroll-prev:hover svg,
.theme-compare-scroll-next:hover svg {
    color: #fff;
}

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

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

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

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

.theme-compare-scroll-prev svg,
.theme-compare-scroll-next svg {
    width: 16px;
    height: 16px;
    color: #333;
}

/* Compare button in product cards */
.theme-compare-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-compare-button.active svg path {
    stroke: #2C5F8D;
    stroke-width: 2;
}

/* ----- Notifications ----- */
.theme-comparison-notifications-container {
    position: fixed;
    top: 100px;
    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 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    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-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

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

/* ----- Responsive Styles ----- */
@media (max-width: 1200px) {
    .theme-compare-product-column {
        min-width: 260px;
    }
}

@media (max-width: 991px) {
    .theme-compare-product-column {
        min-width: 240px;
    }
    
    .theme-compare-controls {
        gap: 10px;
        width: 100%;
    }
    
    .theme-compare-btn {
        width: 50%;
        text-align: center;
    }
	
	.theme-compare-clear{
		display:none;
	}
	
	.theme-compare-specs{
		margin-top:18px;
	}
	
	.theme-compare-header{
		margin-bottom:12px;
	}
	
	.theme-compare-btn span.hide-mobile{
		display:none;
	}
	
	.theme-compare-products{
		margin-left:-15px;
		margin-right:-15px;
	}
	
	.theme-compare-product-column{
		padding-left:15px;
		padding-right:15px;
	}
}

@media (max-width: 767px) {
    .theme-compare-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .theme-compare-clear {
        width: 100%;
        justify-content: center;
    }
    
    .theme-compare-product-column {
        min-width: 220px;
    }
    
    .theme-compare-page-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .theme-compare-product-column {
        min-width: 200px;
    }
    
    .theme-compare-product-image {
        height: 150px;
    }
	
	.theme-compare-clear,
    .theme-compare-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .theme-comparison-notifications-container {
        top: 60px;
        right: 10px;
        width: calc(100vw - 20px);
    }
}