/* ===================================
   Comparison Tool Styles
   =================================== */
.comparison-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 998;
    /* Below scroll-to-top but above content */
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-bar.active {
    bottom: 0;
}

.comparison-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    justify-content: space-between;
}

.comparison-items {
    display: flex;
    gap: 15px;
}

.comparison-thumb {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.comparison-count {
    font-weight: 600;
    color: var(--navy-blue);
}

/* Comparison Modal */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.comparison-modal.active {
    display: flex;
}

.comparison-modal-content {
    background-color: var(--white);
    border-radius: 10px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.comparison-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.comparison-close:hover {
    color: var(--primary-red);
}

/* Comparison Table Styles */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid #eee;
    vertical-align: middle;
}

/* First Column (Labels) */
.comparison-table tr td:first-child,
.comparison-table tr th:first-child {
    width: 200px;
    background-color: #f9f9f9;
    font-weight: 600;
    color: var(--navy-blue);
    text-align: left;
}

/* Product Columns */
.comparison-table td {
    text-align: center;
    color: var(--dark-text);
}

/* Header Row (Product Info) */
.comparison-product-header {
    text-align: center;
    padding-bottom: 20px;
}

.comparison-product-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    display: inline-block;
}

.comparison-product-title {
    display: block;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-badge-small {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.comparison-remove-btn {
    color: var(--gray);
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    margin-top: 5px;
    transition: color 0.3s;
}

.comparison-remove-btn:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Actions Row */
.btn-view-details {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
}

.btn-view-details:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Zebra Striping for rows */
.comparison-table tr:nth-child(even) td:first-child {
    background-color: #f4f4f4;
}