.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background-color: #eaeaea;
    padding: 5px;
    border-top: 1px solid #ccc;
    text-align: center;
    height: auto;
    visibility: visible;
    display: block;
    box-sizing: border-box;
}

.comparison-bar .u-container {
    width: 100%;
    max-width: 1192px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.comparison-bar .u-container .u-grid {
    text-align: left !important;
    margin-left: -.85714rem;
    text-rendering: optimizespeed;
    padding: 0;
    list-style: none;
}

.comparison-bar .clear-comparison-items {
    padding-left: .85714rem;
    text-align: left;
    display: inline-block;
    margin: 0;
    vertical-align: top;
}

.comparison-bar .comparison-items {
    position: relative;
    padding: 0 24px;
    text-align: center;
}

.comparison-bar .comparison-item {
    text-align: center;
    background-color: #fff;
    border: none;
    margin-right: 5px;
    margin-left: 5px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

.comparison-bar .comparison-item:hover {
    background-color: #8d1b3d;
    color: #fff;
    z-index: 10000000000;
}

.comparison-bar .clear-comparison-button {
    float: right;
}

.comparison-bar .compare-button {
    float: left;
}

.comparison-bar .clear-comparison-button, .comparison-bar .compare-button {
    touch-action: manipulation;
    cursor: pointer;
    color: #8d1b3d !important;
    font-weight: 700;
    margin-top: 6px;
    text-transform: capitalize;
    border: 0;
    background-color: #ccc;
    border-radius: 5px;
}

.comparison-bar .compare-button.disabled {
    color: #a7a6a6 !important;
}

.parallax-section:before {
    min-height: 100px !important;
}

#banner-two {
    background-image: url(../images/bg/2.jpg);
    padding: 0 !important;
    margin-bottom: 25px !important;
}

.category-av {
    padding: 0 0 10px;
}

.av-section {
    margin: 20px 0;
}

.comparison-page .leftArrow, .comparison-page .rightArrow, .comparison-page .button-delete {
    touch-action: manipulation;
    cursor: pointer;
    color: #8d1b3d !important;
    font-weight: 700;
    padding: 7px;
    text-transform: capitalize;
    border: 0;
    background-color: #ccc;
    border-radius: 5px;
}

.comparison-page .leftArrow {
    margin-right: 10px;
}

.comparison-link {
    color: #fff;
    text-decoration: underline;
}

.comparison-v2-section {
    padding: 20px 0;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.comparison-v2-container {
    max-width: 100%;
    padding: 0;
}

/* Header */
.comparison-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comparison-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.comparison-title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-title-text {
    color: #333;
}

.comparison-title-text strong {
    font-weight: 600;
}

.btn-clear-comparison {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-clear-comparison:hover {
    background-color: #d32f2f;
}

.btn-clear-comparison i {
    margin-right: 5px;
}

/* Table Wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1400px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Mobile Navigation Arrows */
.mobile-nav-arrows {
    display: none;
}

.mobile-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background-color: #fff;
    border-color: #1976d2;
    color: #1976d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.mobile-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-nav-left {
    left: 10px;
}

.mobile-nav-right {
    right: 10px;
}

.comparison-table-container {
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    cursor: grab;
    max-height: calc(100vh - 200px);
}

/* Hide scrollbar on mobile but keep functionality */
@media (max-width: 768px) {
    .comparison-table-container {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table-container::-webkit-scrollbar {
        display: none;
    }
    
    .comparison-table-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.comparison-table-container:active {
    cursor: grabbing;
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Header Row */
.comparison-header-row {
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 15;
}

.comparison-header-row th {
    padding: 0;
    vertical-align: top;
    border-bottom: 2px solid #e0e0e0;
    background-color: #fff;
}



/* Product Column */
.comparison-product-col {
    padding: 15px;
    vertical-align: top;
    background-color: #fff;
    border-right: 10px solid transparent;
    position: relative;
    width: 250px;
    min-width: 200px;
    max-width: 350px;
}

/* Product columns in header - sticky to top */
.comparison-header-row .comparison-product-col {
    position: sticky;
    top: 0;
    z-index: 16;
    background-color: transparent;
}

/* Product Card */
.product-card {
    position: relative;
    text-align: center;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.btn-favorite,
.btn-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    background-color: #fff;
    color: #e91e63;
}

.btn-remove:hover {
    background-color: #f44336;
    color: #fff;
}

.product-image {
    margin-bottom: 15px;
    padding: 0;
}

.product-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.product-image a {
    display: block;
}

.product-title {
    margin-bottom: 10px;
    min-height: 48px;
}

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

.product-title a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.product-price {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

.product-price strong {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.rating-stars {
    color: #ffc107;
}

.rating-stars .fa-star {
    font-size: 12px;
}

.rating-count {
    font-weight: 500;
}

/* Value Column */
.comparison-value-col {
    padding: 15px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
    width: 250px;
    min-width: 200px;
    max-width: 350px;
}

.comparison-property-name {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.comparison-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.comparison-value strong {
    font-weight: 600;
    color: #333;
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.options-list li {
    padding: 4px 0;
    font-size: 13px;
    color: #666;
}

.options-list li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 5px;
}

.no-data {
    color: #999;
    font-style: italic;
}

/* Comparison Rows */
.comparison-row {
    border-bottom: 1px solid #f0f0f0;
}

/* Alternating row backgrounds */
.comparison-row:nth-child(even) {
    background-color: #e8e8e8;
}

.comparison-row:nth-child(odd) {
    background-color: #fff;
}

.comparison-row:nth-child(even) .comparison-value-col {
    background-color: #e8e8e8;
}

.comparison-row:nth-child(odd) .comparison-value-col {
    background-color: #fff;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-v2-section {
        padding: 10px 0;
    }

    .comparison-header {
        padding: 15px 0;
    }

    .comparison-header-content {
        padding: 0 15px;
    }

    .comparison-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-clear-comparison {
        font-size: 12px;
        padding: 6px 12px;
    }

    .comparison-table-wrapper {
        margin: 10px;
        border-radius: 0;
        position: relative;
        overflow: hidden;
        width: calc(100% - 20px);
    }

    /* Show mobile navigation arrows on mobile */
    .mobile-nav-arrows {
        display: block;
    }

    .comparison-table-container {
        overflow-x: scroll !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .comparison-table-container::-webkit-scrollbar {
        display: none;
    }

    .comparison-table-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .comparison-table {
        width: auto;
        min-width: 100%;
        table-layout: fixed;
    }

    .comparison-product-col {
        width: 50vw !important;
        min-width: 50vw !important;
        max-width: 50vw !important;
        padding: 15px 10px;
        box-sizing: border-box;
    }

    .comparison-value-col {
        width: 50vw !important;
        min-width: 50vw !important;
        max-width: 50vw !important;
        padding: 12px 10px;
        box-sizing: border-box;
    }

    .product-image {
        margin-bottom: 10px;
        padding: 5px;
    }

    .product-image img {
        max-width: 150px;
    }

    .product-title a {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-price strong {
        font-size: 16px;
    }

    .product-rating {
        font-size: 11px;
    }

    .comparison-value {
        font-size: 13px;
    }

    .btn-favorite,
    .btn-remove {
        width: 28px;
        height: 28px;
    }

    .btn-favorite i,
    .btn-remove i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .comparison-title {
        font-size: 18px;
    }

    .comparison-product-col {
        min-width: 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 12px 8px;
        flex: 0 0 50%;
    }

    .comparison-value-col {
        min-width: 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 10px 8px;
        flex: 0 0 50%;
    }

    .product-image img {
        max-width: 120px;
    }

    .product-title a {
        font-size: 11px;
    }

    .product-price {
        font-size: 13px;
    }

    .product-price strong {
        font-size: 15px;
    }
}

/* Scrollbar Styling */
.comparison-table-container::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.comparison-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth scrolling */
.comparison-table-container {
    scroll-behavior: smooth;
}

/* Loading state */
.comparison-table-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

