.compare-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.compare-count span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.compare-header-buttons .action.print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.compare-header-buttons .action.print:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.compare-product-card {
    position: relative;
    height: calc(100% - 20px);
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-align: center;
    transition: box-shadow 0.3s;
    border-color: #ccc;
    box-shadow: 0 5px 15px -4px rgba(167, 167, 167, 0.5);
}
.compare-product-card:hover {
    border-color: #ccc;
    box-shadow: 0 5px 15px -4px rgba(167, 167, 167, 0.5);
}
html[lang="ar"] .compare-remove-btn {
       right: auto;
    left: 10px;
}
.compare-remove-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    line-height: 1;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
    z-index: 1;
}
.compare-remove-btn:hover {
    color: #333;
}
.compare-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 50px;
    padding: 5px;
    border-bottom: 1px solid #eee;
}
.compare-brand-logo img {
    max-height: 100%;
}
.product-item-details {
    border-top: 1px solid #eee;
    padding-top: 4px;
}
.compare-dr-rating {
    min-height: auto;
    padding: 0;
    padding-bottom: 2px;
}
/* Product Image */
.compare-product-image {
    padding: 10px 0 16px;
}
.compare-product-image img {
    max-height: 180px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}
.compare-product-name a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}
.compare-product-name a:hover {
    color: var(--theme-red);
}
.compare-product-price {
    margin: 5px 0;
    font-weight: 600;
    font-size: 18px;
    color: var(--theme-red);
}
.compare-unit-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.compare-unit-price {
    display: block;
}
.compare-product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-red);
}
.compare-contact-price p {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.compare-set-price .set4-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}
.compare-set-price .setfourprice {
    color: #111827;
    font-weight: 600;
}
.compare-set-price .currency-riyal {
    font-size: 12px;
    color: var(--theme-red);
}
/* Product Item Actions wrapper (price + qty + button) */
.compare-list-content .product-item-actions {
    text-align: center;
    min-height: 105px;
    align-content: center;
}
.compare-product-actions {
    margin-top: 6px;
}
/* Qty + Add to Cart */
.compare-addtocart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
html[lang="ar"] .compare-addtocart-wrap {
    flex-direction: row-reverse;
}
.compare-qty-wrap {
    width: 30%;
}
.compare-qty-select {
    background-color: var(--theme-red);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='15'><path fill='%23fff' d='M362.7 203.9l-159.1 144c-6.125 5.469-15.31 5.469-21.44 0L21.29 203.9C14.73 197.1 14.2 187.9 20.1 181.3C26.38 174.4 36.5 174.5 42.73 180.1L192 314.5l149.3-134.4c6.594-5.877 16.69-5.361 22.62 1.188C369.8 187.9 369.3 197.1 362.7 203.9z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 21px center;
    background-size: 12px auto;
    color: #fff;
    font-size: 16px;
    border-radius: 0 0 0 8px;
    font-weight: 600;
    border: none;
    height: 42px;
    padding: 0px 26px 0 26px;
}
.compare-qty-select:focus {
    border-color: var(--theme-red);
    outline: none;
}
.compare-product-actions .action.tocart {
    padding: 10px 16px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    width: 70%;
    flex: 1;
    margin-left: 0;
    border-radius: 0 0 8px 0;
    height: 42px;
    text-transform: uppercase;
}
/* Contact Us Button */
.compare-product-actions .outstoke-contact {
    text-align: center;
    padding: 5px 0;
}
.compare-product-actions .outstoke-contact .button-whatsup-green {
    background-color: #148229;
    color: #fff;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    height: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    width: auto;
}
.compare-product-actions .outstoke-contact .button-whatsup-green:hover {
    background-color: #0f6b21;
}
.compare-product-actions .outstoke-contact .button-whatsup-green span {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.compare-product-actions .outstoke-contact .button-whatsup-green span i {
    font-size: 16px;
    margin-right: 3px;
}
.compare-product-actions .stock {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}
.compare-product-actions .stock.available {
    background: #e8f5e9;
    color: #2e7d32;
}
.compare-product-actions .stock.unavailable {
    background: #fce4ec;
    color: #c62828;
}
.compare-attributes-section {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}
.compare-section-title {
    font-size: 18px;
    font-weight: 600;
    padding: 16px 24px;
    margin: 0;
    background: #000;
    color: #fff;
}
.compare-attributes-table {
    width: 100%;
}
.compare-attribute-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}
.compare-attribute-row:last-child {
    border-bottom: none;
}
.compare-attribute-row:nth-child(even) {
    background: #fafafa;
}
.compare-attribute-label {
    flex: 0 0 180px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    background: #f8f8f8;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
}
html[lang="ar"] .compare-attribute-label {
    border-right: none;
    border-right: 1px solid #ccc;
}
.compare-attribute-values {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.compare-attribute-value {
    padding: 10px 20px;
    font-size: 14px;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
}
html[lang="ar"]  .compare-attribute-value {
    border-right: none;
    border-right: 1px solid #ccc;
}
.compare-attribute-value:last-child {
    border-right: none;
}
html[lang="ar"]  .compare-attribute-value:last-child {
    border-left: none;
}
/* Empty State */
.compare-empty-message {
    text-align: center;
    padding: 60px 20px;
}
.compare-empty-message svg {
    margin-bottom: 20px;
}
.compare-empty-message p {
    font-size: 18px;
    color: #888;
    margin-bottom: 24px;
}
.compare-empty-message .action.primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--theme-red);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.compare-empty-message .action.primary:hover {
    background: var(--theme-red);
}
/* Hide default page title since we have our own header */
.catalog-product_compare-index .page-title-wrapper {
    margin-bottom: 0;
}
.compare-list-content {
    margin-left: 180px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
html[lang="ar"] .compare-list-content {
    margin-right: 180px;
    margin-left: auto;
}
.compare-list-content .compare-product-card {
    margin-right: 14%;
    max-width: 340px;
}
html[lang="ar"] .compare-list-content .compare-product-card {
    margin-left: 14%;
    margin-right: 0;
}
@media screen and (max-width: 1200px) {
    .compare-list-content .compare-product-card {
    margin-right: 6%;
}
html[lang="ar"]  .compare-list-content .compare-product-card {
    margin-left: auto;
    margin-right: 6%;
}
}
@media screen and (max-width: 991.98px) {
.compare-list-content {
    margin-left: 0;
}
.compare-list-content .compare-product-card {
    margin-right: 3%;
}
html[lang="ar"] .compare-list-content .compare-product-card {
    margin-left: 3%;
    margin-right: 0;
}
.compare-qty-select {
    padding: 0px 19px 0 17px;
}
}
/* Responsive */
@media screen and (max-width: 767px) {
.compare-list-content .compare-product-card {
    max-width: 100%;
    margin-right: 0;
}
html[lang="ar"] html[lang="ar"] .compare-list-content {
    margin-right: 0;
    margin-left: 0;
}
html[lang="ar"] .compare-list-content .compare-product-card {
    margin-left: 0%;
    margin-right: 0;
}

html[lang="ar"] .compare-list-content {
    margin-right: 0;
    margin-left: auto;
}

.compare-list-content .product-item-actions {
    min-height: auto;
}
.compare-product-actions .outstoke-contact .button-whatsup-green {
    margin-bottom: 10px;
}
    .compare-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .compare-product-image img {
        max-height: 120px;
    }
    .compare-product-name {
        font-size: 12px;
        min-height: auto;
    }
    .compare-product-price .price {
        font-size: 15px;
    }
.compare-attribute-label {
    flex: 0 0 120px;
    padding: 5px 5px;
    font-size: 12px;
}
.compare-attribute-value {
    padding: 5px 5px;
    font-size: 12px;
}
    .compare-header-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
     .compare-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .compare-attribute-values {
        grid-template-columns: repeat(3, 1fr);
    }
    .compare-attribute-label {
        flex: 0 0 100px;
    }
    .compare-section-title {
    font-size: 15px;
    padding: 10px 18px;
    text-align: center;
}
.compare-list-content {
    grid-template-columns: repeat(1, 1fr);
}
}
.catalog-product_compare-index .table-wrapper.comparison,
.catalog-product_compare-index .table.table-comparison {
    display: none;
}
.modal-popup.confirm .modal-inner-wrap {
    border-radius: 3px;
    margin: 10px;
}
.modal-popup.confirm .modal-content > div {
    font-size: 17px;
    margin: 0 14px;
}
.modal-popup.confirm .modal-content {
    padding: 10px;
}
.modal-popup.confirm  .action-close {
    font-size: 19px;
}
.modals-overlay {
    background-color: #000 !important;
    opacity: 0.8 !important;
}

/* PDP Compare Icon on Image Section */
.catalog-product-view .product-gallery {
    position: relative;
}
.catalog-product-view .product-gallery .pdp-compare-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}
html[lang="ar"] .catalog-product-view .product-gallery .pdp-compare-icon {
    left: auto;
    right: 8px;
}
.catalog-product-view .product-gallery .pdp-compare-icon .action.tocompare {
    height: 30px;
    width: 30px;
    display: block;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 100px;
    text-align: center;
    line-height: 28px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    margin-bottom: 5px;
}
.catalog-product-view .product-gallery .pdp-compare-icon .action.tocompare::after {
    font-family: "icomoon";
    content: "\e981";
}
.catalog-product-view .product-gallery .pdp-compare-icon .action.tocompare:hover {
    background-color: var(--theme-red);
    color: #fff;
}
.catalog-product-view .product-gallery .pdp-compare-icon .action.tocompare span {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}