:root {
    --pl-primary:       #c0392b;
    --pl-primary-dark:  #a93226;
    --pl-secondary:     #2980b9;
    --pl-secondary-dark:#2471a3;
    --pl-text:          #333;
    --pl-text-light:    #666;
    --pl-border:        #e0e0e0;
    --pl-bg:            #fff;
    --pl-bg-light:      #f8f8f8;
    --pl-shadow:        0 -2px 10px rgba(0, 0, 0, 0.1);
    --pl-bar-height:    100px;
    --pl-radius:        6px;
    --pl-transition:    all 0.2s ease-in-out;
}



.pl-compare-page *,
.pl-compare-bar *,
.pl-compare-popup *,
.pl-compare-toggle * {
    box-sizing: border-box;
}

.pl-compare-bar a,
.pl-compare-bar a:hover,
.pl-compare-bar a:focus,
.pl-compare-toggle a,
.pl-compare-toggle a:hover,
.pl-compare-page a,
.pl-compare-popup a {
    text-decoration: none !important;
    outline: none;
}



.pl-compare-btn-wrap {
    margin-top: 6px;
    text-align: center;
}
.pl-compare-bar .container{
	display: flex;
    flex-wrap: wrap;
	background: var(--pl-bg);
    border-top: 1px solid var(--pl-border);
    box-shadow: var(--pl-shadow);
	border-radius:8px;
	position:relative;
	}
	
.pl-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--pl-primary);
    cursor: pointer;
    transition: var(--pl-transition);
    line-height: 1.4;
	text-transform:inherit;
}

.pl-compare-btn:hover {
    border-color: var(--pl-primary);
    color: var(--pl-primary);
}

.pl-compare-btn .pl-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
    transition: var(--pl-transition);
}

.pl-compare-btn__added {
    display: none;
}

.pl-compare-btn.added {
    color: #27ae60;
    border-color: #27ae60;
    pointer-events: none;
}
.pl-compare-btn__cta {
    display: flex;
    align-items: center;
	color:val(--pl-primary);
	text-transform:inherit;
}
.pl-compare-btn.added .pl-compare-btn__cta {
    display: none;
}

.pl-compare-btn.added .pl-compare-btn__added {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pl-compare-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}


.pl-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--pl-primary);
    border-radius: 50%;
    animation: pl-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes pl-spin {
    to { transform: rotate(360deg); }
}



.pl-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
     
    display: none;               
    align-items: center;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pl-compare-bar.active {
    display: flex;
    transform: translateY(0);
}


.pl-compare-bar__dong {
    position: absolute;
    right: 0;
    top: -36px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--pl-bg);
    border: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 13px;
    color: var(--pl-text);
    line-height: 1;
}

.pl-compare-bar__dong svg {
    width: 11px;
    height: 11px;
}


.pl-compare-bar__list {
    display: inline-flex;
    width: calc(100% - 200px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.pl-compare-bar__item {
    position: relative;
    width: 33.333%;
    border-right: 1px solid var(--pl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 8px;
}


.pl-compare-bar__item.empty .pl-compare-bar__add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 12px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: var(--pl-transition);
}

.pl-compare-bar__item.empty .pl-compare-bar__add-btn:hover {
    color: var(--pl-primary);
}

.pl-compare-bar__item.empty .pl-compare-bar__add-btn svg {
    width: 36px;
    height: 36px;
    fill: #ddd;
    border: 1px dashed #ddd;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 4px;
    transition: var(--pl-transition);
}

.pl-compare-bar__item.empty .pl-compare-bar__add-btn:hover svg {
    fill: var(--pl-primary);
    border-color: var(--pl-primary);
}

.pl-compare-bar__item.empty .pl-compare-bar__add-btn p {
    margin: 0;
    text-align: center;
}


.pl-compare-bar__item.filled .pl-compare-bar__item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--pl-text);
    width: 100%;
}

.pl-compare-bar__item.filled .pl-compare-bar__item-link:hover {
    color: var(--pl-primary);
}

.pl-bar-img-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-bar-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.pl-compare-bar__item.filled h3 {
    font-size: 12px;
    font-weight: normal;
    color: #444;
    text-align: center;
    margin: 4px 0 0;
    padding: 0;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    width: 100%;
}


.pl-btn-xoa {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--pl-transition);
}

.pl-btn-xoa svg {
    width: 10px;
    height: 10px;
    fill: #bbb;
    display: block;
}

.pl-btn-xoa:hover {
    background: #fee;
}

.pl-btn-xoa:hover svg {
    fill: var(--pl-primary);
}


.pl-compare-bar__actions {
    width: 200px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pl-compare-bar__btn-compare {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    background: var(--pl-secondary);
    color: #fff !important;
    border-radius: var(--pl-radius);
    font-size: 14px;
    line-height: 1.3;
    transition: var(--pl-transition);
}

.pl-compare-bar__btn-compare:hover {
    background: var(--pl-secondary-dark);
}

.pl-compare-bar__btn-compare.prevent,
.pl-compare-bar__btn-compare.disabled {
    background: #bdbdbd;
    pointer-events: none;
    cursor: not-allowed;
}

.pl-compare-bar__btn-xoa-tat-ca {
    font-size: 12px;
    color: var(--pl-text-light);
    cursor: pointer;
    transition: var(--pl-transition);
}

.pl-compare-bar__btn-xoa-tat-ca:hover {
    color: var(--pl-primary);
}



.pl-compare-toggle {
    position: fixed;
    bottom: 20px;
    left: 15px;
    z-index: 9989;
}

.pl-compare-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--pl-bg);
    border-radius: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    color: var(--pl-primary) !important;
    font-size: 14px;
    line-height: 1;
    transition: var(--pl-transition);
}

.pl-compare-toggle a:hover {
    background: var(--pl-primary);
    color: #fff !important;
}

.pl-compare-toggle a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.pl-compare-toggle a strong {
    font-weight: normal;
}



.pl-compare-popup {
    display: none;
}

.pl-compare-popup.show {
    display: block;
}

.pl-compare-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9991;
}

.pl-compare-popup__inner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9992;
    background: var(--pl-bg);
    border-radius: 10px;
    padding: 20px;
    width: calc(100% - 30px);
    max-width: 600px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.pl-compare-popup__close {
    position: absolute;
    top: -38px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--pl-bg);
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pl-text);
    white-space: nowrap;
}

.pl-compare-popup__close svg {
    width: 13px;
    height: 13px;
}

.pl-compare-popup__inner h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--pl-text);
}


.pl-search-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pl-border);
    border-radius: var(--pl-radius);
    overflow: hidden;
    background: var(--pl-bg);
    transition: var(--pl-transition);
}

.pl-search-input-wrap:focus-within {
    border-color: var(--pl-primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.pl-search-icon {
    width: 17px;
    height: 17px;
    fill: #aaa;
    flex-shrink: 0;
    margin: 0 10px 0 12px;
}

#pl-ss-search {
    flex: 1;
    border: none;
    padding: 12px 10px 12px 0;
    font-size: 14px;
    background: transparent;
    outline: none;
    box-shadow: none;
    line-height: 1.4;
}


.pl-search-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    max-height: 280px;
    overflow-y: auto;
}

.pl-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pl-border);
    cursor: pointer;
    transition: background 0.15s;
}

.pl-result-item:last-child {
    border-bottom: none;
}

.pl-result-item:hover {
    background: var(--pl-bg-light);
}

.pl-result-item__img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pl-result-item__img .pl-search-img,
.pl-result-item__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.pl-result-item__info {
    flex: 1;
    min-width: 0;
}

.pl-result-item__info h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--pl-text);
}

.pl-result-item__info h4 strong {
    background: #fff4a3;
    font-weight: 600;
}

.pl-result-item__gia {
    font-size: 13px;
    color: var(--pl-primary);
    font-weight: 500;
}

.pl-result-item__them {
    flex-shrink: 0;
    padding: 5px 12px;
    background: var(--pl-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--pl-transition);
}

.pl-result-item__them:hover {
    background: var(--pl-primary-dark);
}

.pl-result-not-found,
.pl-search-results .loading {
    padding: 16px;
    text-align: center;
    color: var(--pl-text-light);
    font-size: 14px;
    list-style: none;
}



.pl-compare-alert {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: calc(100vw - 40px);
    text-align: center;
}

.pl-compare-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}



.pl-compare-page {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 15px;
    font-family: inherit;
}


.pl-compare-page__subtitle {
    font-size: 15px;
    color: var(--pl-text);
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.5;
}

.pl-compare-page__subtitle strong {
    color: var(--pl-text);
    font-weight: 600;
}


.pl-compare-page__empty {
    text-align: center;
    padding: 60px 20px;
}

.pl-empty-icon {
    margin-bottom: 20px;
}

.pl-empty-icon svg {
    width: 64px;
    height: 64px;
    fill: #ccc;
}

.pl-compare-page__empty h2 {
    font-size: 22px;
    color: var(--pl-text);
    margin-bottom: 10px;
}

.pl-compare-page__empty p {
    color: var(--pl-text-light);
    margin-bottom: 20px;
}



.pl-cp-cards {
    display: flex;
    gap: 5px;
    margin-bottom: 28px;  
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease;
}
.pl-cp-card:first-child{ border:none;}

.pl-cp-cards.box-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
    border-radius: 0 0 10px 10px;
    border-top: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}


.pl-cp-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 20px;
    border: 1px solid var(--pl-border);
    position: relative;
    text-align: center;
    gap: 10px;
}

.pl-cp-card:last-child {
    border-right: none;
}


.pl-cp-card__img-link {
    display: block;
    width: 100%;
}

.pl-cp-card__img {
    width: 100%;
    max-width: 200px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


.pl-cp-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--pl-text) !important;
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
}

.pl-cp-card__name:hover {
    color: var(--pl-primary) !important;
}


.pl-cp-card__price {
    font-size: 14px;
    color: var(--pl-text-light);
    text-align: center;
}

.pl-cp-card__price .woocommerce-Price-amount {
    color: var(--pl-primary);
    font-weight: 700;
    font-size: 16px;
}

.pl-cp-card__price ins {
    text-decoration: none;
}


.pl-cp-card__buy {
    display: block;
    width: 100%;
    padding: 11px 12px;
    background: var(--pl-primary);
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
    margin-top: auto;
}

.pl-cp-card__buy:hover {
    background: var(--pl-primary-dark);
    color: #fff !important;
}


.pl-btn-xoa-sp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pl-transition);
    padding: 0;
    line-height: 1;
}

.pl-btn-xoa-sp:hover {
    background: var(--pl-primary);
    color: #fff;
    border-color: var(--pl-primary);
}



.pl-cp-section {
    margin-bottom: 20px;
}

.pl-cp-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pl-text);
    margin: 0 0 12px;
    padding: 0;
    line-height: 1.4;
}

.pl-cp-table-wrap {
    border: 1px solid var(--pl-border);
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pl-cp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 400px;
    table-layout: fixed;
}

.pl-cp-col-label {
    width: 25%;
}
.pl-cp-table-wrap td:first-child, .pl-cp-table-wrap th:first-child {
    padding-left: 10px;
}
.pl-detail-popup__table-wrap td:first-child, .pl-detail-popup__table-wrap th:first-child {
    padding-left: 10px;
}
.pl-cp-col-value {
    width: auto;
}

.pl-cp-row {
    border-bottom: 1px solid var(--pl-border);
}

.pl-cp-row:last-child {
    border-bottom: none;
}

.pl-cp-row:nth-child(even) {
    background: #fafafa;
}

.pl-cp-cell {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--pl-text);
    vertical-align: top;
    line-height: 1.5;
}

.pl-cp-cell--label {
    font-weight: 700;
    color: var(--pl-text);
    border-right: 1px solid var(--pl-border);
    white-space: normal;
    word-break: break-word;
}

.pl-cp-cell--value {
    border-right: 1px solid var(--pl-border);
    color: var(--pl-text);
    word-break: break-word;
}

.pl-cp-cell--value:last-child {
    border-right: none;
}


.pl-cell-diff {
    font-weight: 600;
}



.pl-cp-popup-trigger-wrap {
    text-align: center;
    margin: 24px 0 10px;
}

.pl-btn-detail-popup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 28px;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pl-text);
    cursor: pointer;
    transition: var(--pl-transition);
	text-transform:inherit;
}

.pl-btn-detail-popup:hover {
    border-color: var(--pl-primary);
    color: var(--pl-primary);
}

.pl-btn-detail-popup .pl-icon-chevron-down {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s;
}



.pl-detail-popup {
    display: none;
}

.pl-detail-popup.show {
    display: block;
}

.pl-detail-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9993;
}

.pl-detail-popup__box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9994;
    background: #fff;
    width: calc(100% - 30px);
    max-width: 900px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    animation: pl-popup-in 0.22s ease;
}

@keyframes pl-popup-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 18px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.pl-detail-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pl-primary);
    padding: 0 20px;
    height: 54px;
    flex-shrink: 0;
}

.pl-detail-popup__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.pl-detail-popup__close {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.pl-detail-popup__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.pl-detail-popup__close svg {
    width: 13px;
    height: 13px;
    fill: #fff;
}


.pl-detail-popup__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.pl-detail-popup__table-wrap {
    overflow-x: auto;
}


.pl-detail-popup__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}


.pl-detail-popup__table thead tr {
    border-bottom: 2px solid var(--pl-border);
}

.pl-dp-cell {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--pl-text);
    vertical-align: top;
    line-height: 1.5;
}

.pl-dp-cell--label {
    width: 200px;
    min-width: 160px;
    font-weight: 700;
    border-right: 1px solid var(--pl-border);
    background: #fff;
    word-break: break-word;
}

.pl-dp-cell--product {
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-text);
    border-right: 1px solid var(--pl-border);
    text-align: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.pl-dp-cell--product:last-child {
    border-right: none;
}

.pl-dp-cell--value {
    border-right: 1px solid var(--pl-border);
    color: var(--pl-text);
    word-break: break-word;
}

.pl-dp-cell--value:last-child {
    border-right: none;
}


.pl-dp-row:nth-child(even) .pl-dp-cell {
    background: #f9f9f9;
}

.pl-dp-row:nth-child(even) .pl-dp-cell--label {
    background: #f9f9f9;
}

.pl-dp-row {
    border-bottom: 1px solid var(--pl-border);
}

.pl-dp-row:last-child {
    border-bottom: none;
}


.pl-dp-row--section .pl-dp-cell {
    background: #f1f1f1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--pl-text-light);
    padding: 8px 16px;
}


.pl-btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pl-primary);
    color: #fff !important;
    border-radius: var(--pl-radius);
    font-size: 14px;
    text-align: center;
    transition: var(--pl-transition);
    border: none;
    cursor: pointer;
}

.pl-btn-primary:hover {
    background: var(--pl-primary-dark);
    color: #fff !important;
}



@media screen and (max-width: 768px) {
    .pl-cp-cards.box-sticky{position:relative;}
    .pl-compare-bar__list {
        width: 100%;
        border-bottom: 1px solid var(--pl-border);
    }

    .pl-compare-bar__actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .pl-compare-bar__btn-compare {
        flex: 1;
        max-width: 48%;
    }

    .pl-compare-bar__btn-xoa-tat-ca {
        display: none;
    }

    .pl-compare-toggle {
        bottom: 15px;
        left: 10px;
    }

    .pl-compare-alert {
        white-space: normal;
        text-align: center;
        max-width: 90vw;
    }

    
   .pl-cp-cards {
        flex-wrap: unset;
        overflow: auto;
    }

    .pl-cp-card {
        flex: 1 1 calc(50% - 1px);
        min-width: 140px;
    }

    .pl-cp-card__img {
        height: 130px;
    }

    
    .pl-detail-popup__box {
        max-height: 92vh;
    }

    .pl-dp-cell--label {
        min-width: 120px;
        width: 130px;
    }
}

@media screen and (max-width: 480px) {
    .pl-cp-card {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--pl-border);
    }

    .pl-cp-card:last-child {
        border-bottom: none;
    }

    .pl-cp-cell {
        padding: 10px 10px;
        font-size: 13px;
    }

    .pl-cp-col-label {
        width: 120px;
    }

    .pl-detail-popup__title {
        font-size: 15px;
    }
}



.pl-compare-page__empty {
    text-align: center;
    padding: 60px 20px;
}

.pl-empty-icon {
    margin-bottom: 20px;
}

.pl-empty-icon svg {
    width: 64px;
    height: 64px;
    fill: #ccc;
}

.pl-compare-page__empty h2 {
    font-size: 22px;
    color: var(--pl-text);
    margin-bottom: 10px;
}

.pl-compare-page__empty p {
    color: var(--pl-text-light);
    margin-bottom: 20px;
}


.pl-compare-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pl-compare-page__heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--pl-text);
}

.pl-compare-page__back {
    color: var(--pl-text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.pl-compare-page__back:hover {
    color: var(--pl-primary);
}


.pl-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
}


.pl-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pl-bg);
    min-width: 500px;
}


.pl-compare-header {
    background: var(--pl-bg);
}

.pl-compare-header.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.pl-compare-row {
    border-bottom: 1px solid var(--pl-border);
}

.pl-compare-row:last-child {
    border-bottom: none;
}

.pl-compare-cell {
    padding: 14px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--pl-text);
}

.pl-compare-cell--label {
    width: 160px;
    min-width: 140px;
    font-weight: 600;
    color: var(--pl-text-light);
    background: var(--pl-bg-light);
    border-right: 1px solid var(--pl-border);
    font-size: 13px;
}

.pl-compare-cell--product {
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--pl-border);
    min-width: 180px;
}

.pl-compare-cell--product:last-child {
    border-right: none;
}

.pl-compare-cell--value {
    text-align: center;
    border-right: 1px solid var(--pl-border);
    color: var(--pl-text);
}

.pl-compare-cell--value:last-child {
    border-right: none;
}


.pl-compare-row--field:nth-child(odd) .pl-compare-cell--value {
    background: var(--pl-bg);
}

.pl-compare-row--field:nth-child(even) .pl-compare-cell--value {
    background: #fafafa;
}


.pl-compare-row--section-title .pl-compare-section-title {
    background: var(--pl-bg-light);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pl-text-light);
    border-bottom: 2px solid var(--pl-border);
}


.pl-compare-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pl-compare-product-card__img-link {
    display: block;
}

.pl-compare-product-img {
    max-width: 130px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.pl-compare-product-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-text);
    text-align: center;
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.pl-compare-product-card__name:hover {
    color: var(--pl-primary);
}

.pl-compare-product-card__gia {
    font-size: 16px;
    font-weight: 700;
    color: var(--pl-primary);
}


.pl-btn-xoa-sp {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: #f5f5f5;
    border: 1px solid var(--pl-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pl-transition);
    padding: 0;
}

.pl-btn-xoa-sp:hover {
    background: var(--pl-primary);
    color: #fff;
    border-color: var(--pl-primary);
}


.pl-compare-row--toggle .pl-compare-cell--toggle {
    text-align: center;
    padding: 14px;
    background: var(--pl-bg-light);
}

.pl-btn-xem-them {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--pl-secondary);
    color: var(--pl-secondary);
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--pl-transition);
}

.pl-btn-xem-them:hover {
    background: var(--pl-secondary);
    color: #fff;
}

.pl-icon-chevron {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s;
}

.pl-icon-chevron--up {
    transform: rotate(180deg);
}


.pl-compare-row--actions .pl-compare-cell--value {
    padding: 16px 12px;
}


.pl-btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pl-primary);
    color: #fff !important;
    border-radius: var(--pl-radius);
    font-size: 14px;
    text-align: center;
    transition: var(--pl-transition);
    border: none;
    cursor: pointer;
}

.pl-btn-primary:hover {
    background: var(--pl-primary-dark);
    color: #fff !important;
}

.pl-btn-xem-chi-tiet {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid var(--pl-primary);
    color: var(--pl-primary) !important;
    border-radius: var(--pl-radius);
    font-size: 13px;
    transition: var(--pl-transition);
}

.pl-btn-xem-chi-tiet:hover {
    background: var(--pl-primary);
    color: #fff !important;
}

.pl-btn-xem-sp {
    width: 100%;
    max-width: 160px;
}


.pl-compare-page__sp-count {
    font-size: 12px;
    color: var(--pl-text-light);
}



@media screen and (max-width: 768px) {
.pl-compare-page {
    max-width: 100%;
    margin: 0px auto;
    padding: 0px;
    font-family: inherit;
}
    .pl-cp-card:first-child{display:none;}
    .pl-compare-bar__list {
        width: 100%;
        border-bottom: 1px solid var(--pl-border);
    }
	.pl-cp-cards {
        flex-wrap: unset;
        overflow: auto;
    }
	.pl-detail-popup__table-wrap {
    overflow: auto;
    height: 100vh;
	}
    thead .pl-dp-cell.pl-dp-cell--label:first-child{display:none;}
    .pl-compare-bar__actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .pl-compare-bar__btn-compare {
        flex: 1;
        max-width: 48%;
    }

    .pl-compare-bar__btn-xoa-tat-ca {
        display: none;
    }

    
    .pl-compare-page__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pl-compare-page__heading {
        font-size: 18px;
    }

    
    .pl-compare-toggle {
        bottom: 15px;
        left: 10px;
    }

    .pl-compare-alert {
        white-space: normal;
        text-align: center;
        max-width: 90vw;
    }
}

@media screen and (max-width: 480px) {
    .pl-compare-product-img {
        max-width: 90px;
    }

    .pl-compare-cell--label {
        width: 110px;
        min-width: 100px;
        font-size: 12px;
    }

    .pl-compare-cell {
        padding: 10px 8px;
        font-size: 13px;
    }
}
