.compare-section {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
 padding: 8px 2px;
    transition: all 0.3s ease;
    user-select: none;
}

.compare-section:hover {
    border-color: #FF6B00;
    background: #f5f5f5;
}

.compare-section:hover .compare-icon svg path {
    fill: #FF6B00;
}

.compare-section.active .compare-icon svg path {
    fill: #FF6B00;
}

.compare-section.active .compare-text::after {
    content: '✓';
    margin-left: 5px;
    color: #FF6B00;
    font-weight: bold;
}

.compare-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

.compare-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.compare-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.compare-icon svg path {
    transition: fill 0.3s ease;
}

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.3s ease;
    background: rgba(244, 245, 248, 0.9);
    border-top: 1px solid #E8E8E8;
    box-shadow: 0px -4px 13.9px rgba(32, 35, 39, 0.08);
}

.compare-bar.visible {
    bottom: 0;
}

.compare-bar-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 28px;
    color: #21242B;
}

.compare-bar-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--orange-500);
    padding: 10px;
    min-width: 88px;
    max-width: 88px;
    min-height: 88px;
    text-align: center;
    display: flex;
}

.compare-bar-item-empty {
    position: relative;
    background: #fff;
    padding: 10px;
    min-width: 88px;
    max-width: 88px;
    text-align: center;
    box-sizing: border-box;
    min-height: 88px;
    border: 1px dashed #21242B;
}

.compare-bar-item img {
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
}

.compare-bar-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: bold;
}

.compare-bar-remove:hover {
    background: #fff;
    transform: scale(1.1);
}

.compare-bar-button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    background: var(--orange-500);
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #FFFFFF;
}

.compare-bar-button:hover {
    background: #E55A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.compare-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.compare-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.compare-popup.active ~ .compare-popup-overlay {
    opacity: 1;
}

.compare-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 50px 30px;
    border-bottom: none;
}

.compare-popup-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
}

.compare-popup-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    padding: 0;
    margin-top: -10px;
}

.compare-popup-close:hover {
    color: #666;
}

.compare-popup-body {
    flex: 1;
    overflow: auto;
    padding: 0 50px 40px;
}

.compare-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.compare-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px 20px;
    text-align: center;
}

.compare-product-card img {
    width: 100%;
    max-width: 180px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.compare-product-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    min-height: 40px;
}

.compare-view-product {
    display: inline-block;
    padding: 12px 30px;
    background: var(--orange-500);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.compare-view-product:hover {
    background: #E55A00;
    color: #fff;
}

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.compare-table tbody tr:nth-child(even) {
    background: #fff;
}

.compare-param-label {
    padding: 15px;
    font-weight: 400;
    color: #666;
    font-size: 14px;
    text-align: left;
}


.compare-param-value {
    padding: 15px;
    font-size: 14px;
    color: #000;
    text-align: center;
}

.compare-param-value:empty::before {
    content: '—';
    color: #ccc;
}

.compare-product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    z-index: 10;
}



.compare-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}
.compare-product-title h3 {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #21242B;
}
.compare-notification.visible {
    opacity: 1;
    transform: translateX(0);
}

body.compare-popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .compare-bar-button {
  width: 144px;
  height: 48px;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
  margin-top: 20px;
}
    .compare-popup {
        width: 98%;
        max-height: 95vh;
    }
    
    .compare-popup-header {
        padding: 30px 20px 20px;
    }
    
    .compare-popup-body {
        padding: 0 20px 30px;
    }
    
    .compare-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}