/*!
 * PC Product Compare - Main Stylesheet
 * Version: 1.0.2
 * Compiled: 2024
 * TEST: If you see this comment, the CSS is loading!
 */

/* Variables */
:root {
    --pc-primary: #2fb5d2;
    --pc-secondary: #2c3e50;
    --pc-success: #28a745;
    --pc-success-bg: #e6f9ed;
    --pc-border: #eaeaea;
    --pc-bg-light: #f8f9fa;
    --pc-white: #ffffff;
    --pc-text-muted: #6c757d;
}

/* Add to Compare Button - Icon Only Style (Wishlist-like: Outline/Filled) */
/* Container styling to align with wishlist */
.product-additional-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pc-product-compare-button-wrapper {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.pc-compare-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

/* Outline style (default state) - like favorite_border */
.pc-compare-btn:not(.is-added):not(:hover) .pc-compare-icon {
    font-size: 28px;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Hover state - filled style (like favorite on hover) */
.pc-compare-btn:hover {
    border-color: none;
    transform: translateY(-2px);
}

.pc-compare-btn:hover .pc-compare-icon {
    color: #2fb5d2;
}

/* Change icon to filled on hover (if not already added) */
.pc-compare-btn:not(.is-added):hover .pc-compare-icon.bookmark_border {
    font-family: 'Material Icons';
}

/* Ensure filled icon shows properly */
.pc-compare-btn .pc-compare-icon.bookmark {
    color: #2fb5d2;
}

/* Added state - filled style (like favorite) */
.pc-compare-btn.is-added {
    border-color: #2fb5d2;
    background-color: rgba(47, 181, 210, 0.1);
}

.pc-compare-btn.is-added .pc-compare-icon {
    color: #2fb5d2;
}

.pc-compare-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.pc-compare-btn.is-loading .pc-compare-icon {
    animation: pc-spin 1s linear infinite;
}

.pc-compare-btn:active {
    transform: scale(0.95);
}

.pc-compare-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.2);
}

@keyframes pc-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Comparison Container */
.pc-comparison-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 2rem 0;
}

/* Table Wrapper with Horizontal Scroll */
.pc-comparison-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

/* Custom Scrollbar Styling */
.pc-comparison-table-wrapper::-webkit-scrollbar {
    height: 12px;
}

.pc-comparison-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.pc-comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: #2fb5d2;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.pc-comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2599b3;
}

/* Firefox scrollbar */
.pc-comparison-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #2fb5d2 #f1f1f1;
}

.pc-comparison-table {
    width: 100%;
    min-width: 800px;
    /* Minimum width to ensure horizontal scroll when needed */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.pc-comparison-table th,
.pc-comparison-table td {
    padding: 1.25rem;
    vertical-align: top;
    border-bottom: 1px solid #eaeaea;
}

.pc-comparison-table__th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pc-comparison-table__th--empty {
    background: linear-gradient(135deg, #2fb5d2 0%, #2599b3 100%);
    color: #ffffff;
    min-width: 200px;
    width: 200px;
    position: sticky;
    left: 0;
    z-index: 20;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.pc-comparison-table__th--product {
    background: #ffffff;
    text-align: center;
    min-width: 250px;
    width: 250px;
    border-left: 2px solid #eaeaea;
}

.pc-comparison-table__td--label {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 200px;
    width: 200px;
    border-right: 2px solid #d5d5d5;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.pc-comparison-table__td--value {
    text-align: center;
    border-left: 1px solid #eaeaea;
}

.pc-comparison-table__td--description {
    text-align: left;
    max-width: 300px;
}

.pc-comparison-table__row {
    transition: background-color 0.2s;
}

.pc-comparison-table__row:hover {
    background-color: rgba(47, 181, 210, 0.02);
}

.pc-comparison-table__row--description {
    background-color: rgba(47, 181, 210, 0.03);
}

/* AI Generated Features */
.pc-comparison-table__row.is-ai-generated {
    background-color: rgba(156, 39, 176, 0.03);
    border-left: 3px solid #9c27b0;
}

.pc-comparison-table__row.is-ai-generated:hover {
    background-color: rgba(156, 39, 176, 0.05);
}

.pc-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.pc-ai-badge .material-icons {
    font-size: 14px;
    line-height: 1;
}

.pc-ai-badge-text {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* AI Features Generator Button */
.pc-ai-features-generator {
    margin: 2rem 0;
}

.pc-ai-features-generator .js-pc-generate-ai-features {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.pc-ai-features-generator .js-pc-generate-ai-features:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(156, 39, 176, 0.4);
}

.pc-ai-features-generator .js-pc-generate-ai-features:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pc-ai-features-generator .js-pc-generate-ai-features .material-icons {
    font-size: 20px;
    animation: none;
}

.pc-ai-features-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9c27b0;
    font-weight: 600;
}

.pc-ai-features-loading .material-icons {
    animation: pc-spin 1s linear infinite;
}

/* Product Card */
.pc-product-card {
    position: relative;
    padding: 0.5rem;
}

.pc-product-card__remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 15;
}

.pc-product-card__remove .material-icons {
    font-size: 18px;
}

.pc-product-card__remove:hover {
    background: rgba(220, 53, 69, 0.9);
    opacity: 1;
}

.pc-product-card:hover .pc-product-card__remove {
    opacity: 1;
}

.pc-product-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pc-product-card__image-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pc-product-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pc-product-card__info {
    text-align: center;
    margin-bottom: 1rem;
}

.pc-product-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2fb5d2;
}

.pc-product-card__actions {
    margin-top: 1rem;
}

/* Description Preview */
.pc-description-preview .pc-description-text {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.9rem;
}

.pc-description-preview .pc-description-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #2fb5d2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-in-out;
}

.pc-description-preview .pc-description-toggle .material-icons {
    font-size: 18px;
}

.pc-description-preview .pc-description-toggle:hover {
    color: #1d8ba5;
    text-decoration: underline;
}

/* Description Modal */
.pc-description-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    /* Very high z-index to ensure it's on top */
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    /* Disable pointer events when hidden */
}

.pc-description-modal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    /* Enable pointer events when visible */
    display: flex !important;
}

.pc-description-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.pc-description-modal__content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pc-description-modal.is-visible .pc-description-modal__content {
    transform: scale(1);
}

.pc-description-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #eaeaea;
    background: linear-gradient(135deg, #2fb5d2 0%, #2599b3 100%);
}

.pc-description-modal__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.pc-description-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.pc-description-modal__close .material-icons {
    font-size: 24px;
}

.pc-description-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pc-description-modal__body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1rem;
}

.pc-description-modal__body p {
    margin-bottom: 1rem;
}

.pc-description-modal__body ul,
.pc-description-modal__body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.pc-description-modal__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Comparison Overlay */
.pc-compare-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.pc-compare-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.pc-compare-overlay__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.pc-compare-overlay__container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    max-height: 95vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    right: calc(50% - 650px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
}

@media (max-width: 1400px) {
    .pc-compare-overlay__container {
        right: 0;
        max-width: 90vw;
    }
}

.pc-compare-overlay.is-visible .pc-compare-overlay__container {
    transform: translateX(0);
}

.pc-compare-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pc-compare-overlay__close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.pc-compare-overlay__close .material-icons {
    font-size: 24px;
    color: #2c3e50;
}

.pc-compare-overlay__content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    padding-top: 4rem;
}

.pc-compare-overlay__content .pc-compare-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.pc-compare-overlay__content .pc-compare-loading .material-icons {
    animation: pc-spin 1s linear infinite;
}

body.pc-compare-overlay-open,
body.pc-description-modal-open,
body.pc-versus-gallery-open {
    overflow: hidden;
}

/* Responsive */
/* -----------------------------------------------------------------------------
 * Versus.com Style Header
 * ----------------------------------------------------------------------------- */
.pc-versus-header {
    margin-bottom: 3rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.pc-versus-images-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #f8f9fa;
    padding: 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.pc-versus-images-container::-webkit-scrollbar {
    height: 8px;
}

.pc-versus-images-container::-webkit-scrollbar-track {
    background: #eaeaea;
    border-radius: 4px;
}

.pc-versus-images-container::-webkit-scrollbar-thumb {
    background: #2fb5d2;
    border-radius: 4px;
}

.pc-versus-images-container::-webkit-scrollbar-thumb:hover {
    background: #2599b3;
}

.pc-versus-images {
    display: flex;
    position: relative;
    min-width: 100%;
    min-height: 500px;
    gap: 0;
}

.pc-versus-product-container {
    flex: 0 0 auto;
    width: 350px;
    min-width: 350px;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    position: relative;
    box-sizing: border-box;
}

/* When 2 products, each takes 50% */
.pc-versus-images.pc-versus-count-2 .pc-versus-product-container {
    width: 50%;
    min-width: 50%;
}

/* When 3 products, each takes 33.33% */
.pc-versus-images.pc-versus-count-3 .pc-versus-product-container {
    width: 33.3333%;
    min-width: 33.3333%;
}

/* When 4+ products, use fixed width and enable scroll */
.pc-versus-images.pc-versus-count-4 .pc-versus-product-container,
.pc-versus-images.pc-versus-count-5 .pc-versus-product-container,
.pc-versus-images.pc-versus-count-more .pc-versus-product-container {
    width: 350px;
    min-width: 350px;
}

.pc-versus-name-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    z-index: 10;
}

.pc-versus-score {
    margin-bottom: 0.5rem;
}

.pc-versus-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fb5d2 0%, #2599b3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(47, 181, 210, 0.3);
}

.pc-versus-score-value {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
}

.pc-versus-score-label {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.9;
    text-transform: lowercase;
}

.pc-versus-name-wrapper {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
}

.pc-versus-product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    min-height: 2.8em;
    text-align: center;
}

.pc-versus-price-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 25;
    pointer-events: none;
}

.pc-versus-price-tag {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    pointer-events: all;
}

.pc-versus-price-tag:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 1);
}

.pc-versus-price-link {
    display: inline-block;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    white-space: nowrap;
}

.pc-versus-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pc-versus-modern-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border-radius: 12px;
}

.pc-versus-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pc-versus-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.pc-versus-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.pc-versus-modern-image:hover .pc-versus-hover-overlay {
    opacity: 1;
}

.pc-versus-close-btn,
.pc-versus-expand-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.pc-versus-close-btn:hover {
    background: #dc3545;
    color: #ffffff;
    transform: scale(1.1);
}

.pc-versus-expand-btn:hover {
    background: #2fb5d2;
    color: #ffffff;
    transform: scale(1.1);
}

.pc-versus-close-btn .material-icons,
.pc-versus-expand-btn .material-icons {
    font-size: 24px;
}

.pc-versus-carousel-container {
    width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
}

.pc-versus-carousel {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.pc-versus-carousel-item {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pc-versus-carousel-item:hover {
    border-color: #2fb5d2;
    transform: scale(1.05);
}

.pc-versus-carousel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-versus-separator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    pointer-events: none;
}

/* Position separators between products using pseudo-elements */
.pc-versus-product-container:not(:first-child)::before {
    content: "vs";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    pointer-events: none;
}

.pc-versus-comparison-title {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #eaeaea;
}

.pc-versus-feature-count {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    text-transform: none;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.pc-versus-title-products {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pc-versus-title-products span {
    display: inline-block;
    font-weight: 600;
    color: #2c3e50;
}

.pc-versus-title-products span:not(:last-child)::after {
    content: " vs ";
    color: #2fb5d2;
    font-weight: 500;
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

/* Image Gallery Modal */
.pc-versus-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.pc-versus-gallery-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.pc-versus-gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.pc-versus-gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
}

.pc-versus-gallery-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.pc-versus-gallery-main {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.pc-versus-gallery-main img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.pc-versus-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 20vh;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.pc-versus-gallery-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pc-versus-gallery-thumb:hover,
.pc-versus-gallery-thumb.active {
    border-color: #2fb5d2;
    transform: scale(1.05);
}

.pc-versus-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {

    .pc-comparison-table__th--empty,
    .pc-comparison-table__td--label {
        position: static;
        min-width: auto;
    }

    .pc-product-card__image-container {
        height: 150px;
    }

    .pc-description-modal__content {
        width: 95%;
        max-height: 90vh;
    }

    .pc-description-modal__body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pc-compare-overlay__container {
        max-width: 100vw;
        max-height: 100vh;
    }

    .pc-compare-overlay__content {
        padding: 1rem;
        padding-top: 3rem;
    }
}

/* -----------------------------------------------------------------------------
 * Comparison List (Fixed Bottom Right - Versus Style)
 * ----------------------------------------------------------------------------- */
.pc-comparison-list {
    position: fixed;
    bottom: 1em;
    right: calc(50% - 650px);
    transform: translateX(-1em);
    z-index: 100;
    box-sizing: border-box;
    min-width: 280px;
    max-width: 320px;
}

.pc-comparison-list__header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    border-radius: 24px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.pc-comparison-list__header:hover {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.pc-comparison-list__header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pc-comparison-list__vs {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.pc-comparison-list__separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.pc-comparison-list__count-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.pc-comparison-list__count-number {
    font-weight: 700;
    font-size: 1rem;
}

.pc-comparison-list__count-label {
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.95;
}

.pc-comparison-list__chevron {
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.pc-comparison-list.is-open .pc-comparison-list__chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.pc-comparison-list__dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: 100%;
    min-width: 320px;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pc-comparison-list.is-open .pc-comparison-list__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-comparison-list__dropdown-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-comparison-list__dropdown-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pc-comparison-list__vs-small {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

.pc-comparison-list__dropdown-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.3);
}

.pc-comparison-list__dropdown-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.pc-comparison-list__dropdown-chevron {
    color: #ffffff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.pc-comparison-list.is-open .pc-comparison-list__dropdown-chevron {
    transform: rotate(180deg);
}

/* Products List */
.pc-comparison-list__products {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
}

.pc-comparison-list__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.pc-comparison-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.pc-comparison-list__item:hover {
    background-color: #f8f9fa;
}

.pc-comparison-list__item-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
}

.pc-comparison-list__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pc-comparison-list__item-img:not([src]),
.pc-comparison-list__item-img[src=""] {
    opacity: 0.3;
    background: #eaeaea;
}

.pc-comparison-list__item-img:not([src])::after,
.pc-comparison-list__item-img[src=""]::after {
    content: "📦";
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pc-comparison-list__item-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

.pc-comparison-list__item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pc-comparison-list__item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.pc-comparison-list__item-remove .material-icons {
    font-size: 18px;
}

/* Actions */
.pc-comparison-list__actions {
    padding: 0.75rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pc-comparison-list__btn-compare {
    flex: 1;
    background: linear-gradient(135deg, #2fb5d2 0%, #2599b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pc-comparison-list__btn-compare:hover:not(.disabled) {
    background: linear-gradient(135deg, #2599b3 0%, #1d8ba5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 181, 210, 0.3);
}

.pc-comparison-list__btn-compare.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pc-comparison-list__btn-add {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #2fb5d2 0%, #2599b3 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pc-comparison-list__btn-add:hover {
    background: linear-gradient(135deg, #2599b3 0%, #1d8ba5 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(47, 181, 210, 0.3);
}

.pc-comparison-list__btn-add .material-icons {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 1400px) {
    .pc-comparison-list {
        right: 1em;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .pc-comparison-list {
        right: 1em;
        bottom: 1em;
        transform: translateX(0);
        min-width: 260px;
        max-width: 300px;
    }

    .pc-comparison-list__dropdown {
        min-width: 300px;
        max-width: 340px;
    }
}