/* ============================================================
   EasyStore — Product Compare
   ============================================================ */

:root {
    --easystore-compare-primary: var(--easystore-primary, #2563eb);
    --easystore-compare-primary-hover: #1d4ed8;
    --easystore-compare-highlight-bg: #d1fae5;
    --easystore-compare-border: #e5e7eb;
    --easystore-compare-bg-gray: #f9fafb;
    --easystore-compare-text-main: #111827;
    --easystore-compare-text-muted: #6b7280;
}

/* ---- Compare button ---- */
.easystore-btn-add-to-compare {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s, border-color 0.15s;
}

.easystore-btn-add-to-compare.active {
    color: var(--easystore-compare-primary);
    border-color: var(--easystore-compare-primary);
}

/* ---- Sticky compare bar ---- */
.easystore-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--easystore-compare-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
}

.easystore-compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.easystore-compare-bar__count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.easystore-compare-bar__count .easystore-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.easystore-compare-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   Compare Page Layout
   ============================================================ */
.easystore-compare {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--easystore-compare-text-main);
    font-family: inherit;
}

/* ---- 1. Header Bar ---- */
.easystore-compare-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.easystore-compare-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--easystore-compare-text-main);
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.easystore-compare-subtitle {
    font-size: 0.9375rem;
    color: var(--easystore-compare-text-muted);
    margin: 0;
}

/* Mode Toggle Pills */
.easystore-compare-mode-toggle {
    display: inline-flex;
    background: #f3f4f6;
    border: 1px solid var(--easystore-compare-border);
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
}

.easystore-compare-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.easystore-compare-toggle-btn:hover {
    color: var(--easystore-compare-text-main);
}

.easystore-compare-toggle-btn.is-active {
    background: var(--easystore-compare-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

/* ---- 2. Grid Header (Meta + 4 Slots) ---- */
.easystore-compare-grid-header {
    display: grid;
    grid-template-columns: 200px repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

/* Meta Column */
.easystore-compare-meta-col {
    position: relative;
    padding-top: 0.25rem;
}

.easystore-compare-meta-limit {
    font-size: 0.8125rem;
    color: var(--easystore-compare-text-muted);
    margin-bottom: 0.35rem;
}

.easystore-compare-meta-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--easystore-compare-text-main);
    margin: 0 0 1rem 0;
}

.easystore-compare-meta-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.easystore-compare-clear-btn {
    border: 1px solid var(--easystore-compare-border);
    background: #ffffff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.easystore-compare-clear-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.easystore-compare-icon-btn {
    border: 1px solid var(--easystore-compare-border);
    background: #ffffff;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.easystore-compare-icon-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--easystore-compare-text-main);
}

.easystore-compare-toast {
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

/* Slot Columns */
.easystore-compare-slot-col {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
}

/* Slot Search Input Box */
.easystore-compare-slot-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--easystore-compare-border, #e5e7eb);
    border-radius: var(--easystore-border-radius, 6px);
    padding: 0 0.75rem;
    height: 42px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.easystore-compare-slot-search:focus-within,
.easystore-compare-slot-search.is-active {
    border-color: var(--easystore-compare-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.easystore-compare-slot-search.active-product {
    background: #ffffff;
    border-color: var(--easystore-compare-border, #e5e7eb);
}

.easystore-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.easystore-search-icon .easystore-svg,
.easystore-search-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.easystore-slot-product-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--easystore-compare-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.easystore-slot-remove-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.easystore-slot-remove-btn:hover {
    color: #111827;
}

.easystore-slot-remove-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.easystore-slot-search-input,
.easystore-compare-slot-search input.easystore-slot-search-input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    line-height: normal !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    width: 100% !important;
    color: var(--easystore-compare-text-main, #111827) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.easystore-slot-search-input:focus,
.easystore-compare-slot-search input.easystore-slot-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.easystore-slot-search-input::placeholder,
.easystore-compare-slot-search input.easystore-slot-search-input::placeholder {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
}

/* Search Dropdown */
.easystore-compare-slot-search-wrapper {
    position: relative;
}

.easystore-compare-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--easystore-compare-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.easystore-search-loading {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--easystore-compare-text-muted);
    text-align: center;
}

.easystore-search-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.easystore-search-item:hover {
    background-color: #f3f4f6;
}

.easystore-search-item-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f9fafb;
}

.easystore-search-item-info {
    flex: 1;
    min-width: 0;
}

.easystore-search-item-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--easystore-compare-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.easystore-search-item-price {
    font-size: 0.75rem;
    color: var(--easystore-compare-text-muted);
}

.easystore-search-item-add {
    font-size: 1rem;
    font-weight: 600;
    color: var(--easystore-compare-primary);
    padding: 0 0.25rem;
}

/* Product Card */
.easystore-compare-product-card {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.easystore-compare-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: var(--easystore-border-radius, 8px);
    aspect-ratio: 4 / 5;
    min-height: 180px;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem;
    box-sizing: border-box;
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.easystore-compare-card-image:hover {
    background-color: #f1f3f5;
}

.easystore-compare-card-image img,
.easystore-compare-card-image video {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.easystore-compare-card-image:hover img,
.easystore-compare-card-image:hover video {
    transform: scale(1.04);
}

.easystore-card-no-img {
    width: 100%;
    height: 100%;
    background: transparent;
}

.easystore-compare-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--easystore-compare-text-main);
    margin: 0 0 0.35rem 0;
    line-height: 1.35;
}

.easystore-compare-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.easystore-compare-card-title a:hover {
    color: var(--easystore-compare-primary);
}

.easystore-compare-card-price {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.easystore-price-sale {
    font-weight: 700;
    color: var(--easystore-compare-text-main);
}

.easystore-price-regular.is-strikethrough {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.8125rem;
}

/* Empty Slot Card */
.easystore-compare-empty-card {
    background: #f8f9fa;
    border: none;
    border-radius: var(--easystore-border-radius, 8px);
    aspect-ratio: 4 / 5;
    min-height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.easystore-compare-empty-card:hover {
    background: #f1f3f5;
}

.easystore-empty-card-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.45;
    max-width: 140px;
    margin: 0 auto;
    transition: color 0.2s ease;
}

.easystore-compare-empty-card:hover .easystore-empty-card-text {
    color: #374151;
}

/* ---- 3. Comparison Table ---- */
.easystore-compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--easystore-compare-border);
    background: #ffffff;
}

.easystore-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.easystore-compare-table th,
.easystore-compare-table td {
    padding: 0.875rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #f3f4f6;
}

/* Group Accordion Header */
.easystore-compare-group-header th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid var(--easystore-compare-border);
    border-bottom: 1px solid var(--easystore-compare-border);
}

.easystore-compare-group-header:hover th {
    background: #f3f4f6;
}

.easystore-group-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.easystore-group-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4b5563;
}

.easystore-group-chevron {
    color: #6b7280;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.easystore-group-chevron.is-open {
    transform: rotate(180deg);
}

/* Row Labels & Values */
.easystore-compare-table__label {
    width: 200px;
    min-width: 160px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #ffffff;
    vertical-align: middle;
}

.easystore-compare-table__value {
    font-size: 0.875rem;
    color: var(--easystore-compare-text-main);
    background: #ffffff;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.easystore-compare-table__value--summary {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #374151;
}

.easystore-summary-content {
    max-height: 120px;
    overflow-y: auto;
}

/* Difference Highlight (Mint/Teal Tint) */
.easystore-compare-row.is-different .easystore-compare-table__value {
    background-color: var(--easystore-compare-highlight-bg) !important;
}

/* Stock Badges */
.easystore-stock-badge {
    font-size: 0.8125rem;
    font-weight: 600;
}

.easystore-stock-badge.in-stock {
    color: #059669;
}

.easystore-stock-badge.out-of-stock {
    color: #dc2626;
}

/* Rating Stars */
.easystore-compare-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
}

.easystore-rating-star {
    color: #f59e0b;
    font-size: 0.9375rem;
}

.easystore-rating-score {
    font-weight: 600;
    color: var(--easystore-compare-text-main);
}

.easystore-rating-reviews {
    color: var(--easystore-compare-text-muted);
}

.easystore-compare-empty-value {
    color: #9ca3af;
}

/* Bottom Action Row */
.easystore-compare-action-row td {
    padding: 1.25rem 1rem;
    border-bottom: none;
}

.easystore-compare-action-row .easystore-product-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.easystore-compare-action-row .easystore-addtocart-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.easystore-compare-action-row .easystore-addtocart-actions > * {
    flex: 1;
}

.easystore-compare-action-row .easystore-btn-add-to-cart,
.easystore-compare-action-row .easystore-btn-buy-now,
.easystore-compare-action-row .easystore-btn-catalog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--easystore-border-radius, 8px);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.easystore-compare-action-row .easystore-btn-add-to-cart.btn-primary {
    background: var(--easystore-compare-primary);
    border: 1px solid var(--easystore-compare-primary);
    color: #ffffff;
}

.easystore-compare-action-row .easystore-btn-add-to-cart.btn-primary:hover {
    background: var(--easystore-compare-primary-hover);
    border-color: var(--easystore-compare-primary-hover);
    color: #ffffff;
}

.easystore-compare-action-row .easystore-btn-buy-now {
    border-radius: var(--easystore-border-radius, 8px);
}

/* ---- Empty State ---- */
.easystore-compare-empty {
    text-align: center;
    padding: 5rem 1rem;
}

.easystore-compare-empty__icon {
    display: inline-block;
    width: 3.5rem;
    height: 3.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.easystore-compare-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--easystore-compare-text-main);
    margin: 0 0 0.5rem 0;
}

.easystore-compare-empty__text {
    font-size: 1rem;
    color: var(--easystore-compare-text-muted);
    margin: 0 0 1.5rem 0;
}

.easystore-btn-browse {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--easystore-compare-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Hide print-only elements on screen */
.easystore-compare-print-header,
.easystore-compare-table-head {
    display: none;
}

/* Alpine Cloak */
[x-cloak] {
    display: none !important;
}

/* ---- Responsive & Media Queries ---- */
@media (max-width: 992px) {
    .easystore-compare-grid-header {
        grid-template-columns: 160px repeat(4, 1fr);
        gap: 0.875rem;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .easystore-compare-header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .easystore-compare-mode-toggle {
        width: 100%;
        display: flex;
    }

    .easystore-compare-toggle-btn {
        flex: 1;
        text-align: center;
    }
}

/* ---- Print Styles (Only Show Clean Compare Table) ---- */
@media print {
    @page {
        size: landscape;
        margin: 0.8cm 1cm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 9.5pt !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide template chrome, navigation, headers, breadcrumbs, footers, social links */
    header,
    footer,
    nav,
    aside,
    #sp-top-bar,
    .sp-top-bar,
    .sp-top-bar-in,
    #sp-header,
    .sp-header,
    #sp-title,
    .sp-title,
    .sp-page-title,
    #sp-breadcrumbs,
    .sp-breadcrumbs,
    .breadcrumb,
    .breadcrumbs,
    #sp-bottom,
    .sp-bottom,
    #sp-footer,
    .sp-footer,
    #sp-copyright,
    .sp-copyright,
    .social-icons,
    .sp-contact-info,
    .sp-contact,
    .sp-module,
    .mod-breadcrumbs,
    .sp-megamenu-parent,
    .easystore-compare-header-bar,
    .easystore-compare-grid-header,
    .easystore-compare-meta-col,
    .easystore-compare-slot-col,
    .easystore-compare-action-row,
    .easystore-compare-bar,
    .easystore-compare-toast,
    .easystore-group-chevron,
    .easystore-btn-buynow,
    .easystore-addtocart-actions,
    .easystore-cart-icon-wrapper {
        display: none !important;
    }

    .easystore-compare {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Print-only Header */
    .easystore-compare-print-header {
        display: block !important;
        margin-bottom: 0.85rem !important;
        padding-bottom: 0.4rem !important;
        border-bottom: 2px solid #111827 !important;
    }

    .easystore-compare-print-title {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #111827 !important;
        margin: 0 0 0.15rem 0 !important;
    }

    .easystore-compare-print-subtitle {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
        margin: 0 !important;
    }

    /* Table Wrapper & Table */
    .easystore-compare-table-wrapper {
        display: block !important;
        width: 100% !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        overflow: visible !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .easystore-compare-table {
        table-layout: fixed !important;
        min-width: 100% !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    /* Show Print Table Head */
    .easystore-compare-table-head {
        display: table-header-group !important;
    }

    .easystore-compare-table__product-head {
        text-align: center !important;
        vertical-align: bottom !important;
        padding: 0.5rem 0.4rem !important;
        background-color: #ffffff !important;
        border-bottom: 2px solid #d1d5db !important;
        border-left: 1px solid #e5e7eb !important;
    }

    .easystore-compare-print-product {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .easystore-print-product-img {
        width: 75px !important;
        height: 75px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        border-radius: 6px !important;
        padding: 4px !important;
        margin-bottom: 0.35rem !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .easystore-print-product-img img,
    .easystore-print-product-img video {
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        border: none !important;
    }

    .easystore-print-product-title {
        font-size: 0.825rem !important;
        font-weight: 700 !important;
        color: #111827 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
        word-break: break-word !important;
    }

    .easystore-print-product-price {
        font-size: 0.775rem !important;
        font-weight: 600 !important;
        color: #111827 !important;
    }

    /* Ensure all accordion rows print regardless of UI click state */
    .easystore-compare-row {
        display: table-row !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .easystore-compare-table th,
    .easystore-compare-table td {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.775rem !important;
        line-height: 1.3 !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-left: 1px solid #f3f4f6 !important;
        vertical-align: middle !important;
    }

    .easystore-compare-table__label {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        font-weight: 600 !important;
        color: #374151 !important;
        background-color: #f9fafb !important;
        border-left: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .easystore-compare-table__head-label {
        vertical-align: middle !important;
        text-align: left !important;
        border-bottom: 2px solid #d1d5db !important;
    }

    .easystore-print-head-title {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: #4b5563 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .easystore-compare-group-header th {
        background-color: #f3f4f6 !important;
        color: #111827 !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        padding: 0.35rem 0.5rem !important;
        border-top: 2px solid #d1d5db !important;
        border-bottom: 1px solid #d1d5db !important;
        border-left: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Rating row on one line */
    .easystore-compare-rating {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        gap: 0.25rem !important;
        font-size: 0.75rem !important;
    }

    .easystore-stock-badge {
        font-weight: 600 !important;
        font-size: 0.75rem !important;
    }

    .easystore-stock-badge.in-stock {
        color: #059669 !important;
    }

    .easystore-stock-badge.out-of-stock {
        color: #dc2626 !important;
    }

    /* Preserve Difference Highlights in Print */
    .easystore-compare-row.is-different .easystore-compare-table__value {
        background-color: #d1fae5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
