.hwcp {
    --hwcp-accent: #f57c00;
    --hwcp-text: #252525;
    --hwcp-muted: #8b8b8b;
    font-family: inherit;
    color: var(--hwcp-text)
}

.hwcp-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;

    @media screen and (max-width: 1023px) {
        padding: 0 48px;
    }

    @media screen and (max-width: 767px) {
        padding: 0 24px;
    }
}

.hwcp-toolbar {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 28px;
}

.hwcp-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.hwcp-categories button {
    border: 0;
    background: #f4f4f4;
    border-radius: 24px;
    padding: 11px 18px;
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    cursor: pointer;
    color: #555555;
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

.hwcp-categories button.is-active {
    background: #ef7d00;
    color: #fff
}

.hwcp-tools {
    display: flex;
    gap: 10px
}

.hwcp-sort-count-container {
    @media screen and (max-width: 767px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.hwcp-sort,
.hwcp-search {
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid #DDD !important;
    background: #FFF !important;
    color: #444 !important;
    font-family: Overpass !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 19.5px !important;
}

.hwcp-sort {
    color: #444 !important;
    font-family: Overpass !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 19.5px !important;
    /* Modern browsers (Chrome, Safari, Firefox, Edge) */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-height: auto !important;
    padding: 0 !important;
    padding-left: 12px !important;
    padding-right: 32px !important;
}

.hwcp-search {
    min-width: 190px
}

.hwcp-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    line-height: 19.5px;
    font-family: "Overpass";
    margin: 18px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.hwcp-results {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 0 80px;

    @media screen and (max-width: 1023px) {
        padding: 0 48px;
    }

    @media screen and (max-width: 767px) {
        padding: 0 24px;
    }
}

.hwcp-grid {
    display: grid;
    grid-template-columns: repeat(var(--hwcp-columns), minmax(0, 1fr));
    gap: 18px
}

.hwcp-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #E2E2E2;
    background: #FFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.hwcp-card:hover,
.hwcp-card.selected {
    border: 1.5px solid rgb(239, 125, 0);
    box-shadow: rgba(239, 125, 0, 0.19) 0px 0px 0px 2px, rgba(0, 0, 0, 0.1) 0px 12px 32px;
    transform: translateY(-3px);
}

.hwcp-card-image {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.hwcp-card-image img {
    transition: all .5s cubic-bezier(.4, 0, .2, 1);
}

.hwcp-card:hover .hwcp-card-image img,
.hwcp-card.selected .hwcp-card-image img {
    transform: scale(1.06);
}

.hwcp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.hwcp-card-cat {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(239, 125, 0, 0.09);
    padding: 4px 8px;
    border-radius: 16777200px;
    color: #EF7D00;
    font-family: Overpass;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hwcp-card-body {
    padding: 0 16px 18px
}

.hwcp-card h3 {
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 8px
}

.hwcp-sku {
    font-size: 11px;
    color: var(--hwcp-accent);
    letter-spacing: 1px;
    margin-bottom: 10px
}

.hwcp-meta {
    font-size: 11px;
    color: #888;
    min-height: 32px
}

.hwcp-meta .hwcp-model-number {
    color: #EF7D00;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 9.75px;
}

.hwcp-meta .hwcp-product-specs {
    color: #888;
    font-family: Overpass;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 9.75px;
}

.hwcp-meta .hwcp-short-description {
    color: #555;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 21.13px;
    margin-bottom: 24px;
}

.hwcp-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hwcp-compare {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #777;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwcp-compare input {
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #CCC !important;
    border-radius: 5px;
    vertical-align: middle;
    margin: 0 6px 0 0;
    border-radius: 6px !important;
    min-height: auto ! IMPORTANT;
    padding: 0 !important;
}

.hwcp-compare .check-icon {
    position: absolute;
    top: 2px;
    left: 5px;
}

.hwcp-compare input:checked {
    background: #EF7D00 !important;
    box-shadow: none !important;
    border-color: #EF7D00 !important;
}

.hwcp-details {
    display: inline-flex;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 10px;
    background: #EF7D00;
    color: #FFF;
    text-align: center;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 16.5px;
    /* 150% */
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hwcp-details:hover {
    color: #FFF !important;
}

.hwcp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px
}

.hwcp-pagination button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid #EEE;
    background: #FFF;
    color: #1A1A1A;
    text-align: center;
    font-family: Overpass;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: normal;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.hwcp-pagination button.is-active,
.hwcp-pagination button:hover {
    border-radius: 10px;
    border: 1px solid #EF7D00;
    background: #EF7D00;
    color: #FFF;
    text-align: center;
    font-family: Overpass;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
}

.hwcp-compare-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999
}

.hwcp-compare-modal.is-open {
    display: block !important;
}

.hwcp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65)
}

.hwcp-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1400px, 94vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
}

.hwcp-modal-head {
    padding: 21px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #E5E5E5;
    background: #F7F7F7;
}

.hwcp-modal-head h2 {
    margin: 0;
    color: #333;
    font-family: Overpass;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
    display: flex;
    align-items: center;
    gap: 7.26px;
}

.hwcp-modal-count {
    color: #888;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.5px;
    /* 150% */
}

.hwcp-clear {
    margin-left: auto;
    border: 0;
    background: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    text-align: center;
    font-family: Overpass;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.hwcp-clear:hover {
    color: #888;
    background: #FFF;
}

.hwcp-close {
    border: 0;
    padding: 0;
    background: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwcp-close:hover {
    background: #FFF;
}

.hwcp-related {
    padding: 16px 20px;
    border-bottom: 1px solid #EEE;
    background: #FAFAFA;
}

.hwcp-related h3 {
    color: #333;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 19.5px;
    margin-bottom: 4px;
}

.hwcp-related p {
    color: #888;
    font-family: Overpass;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.hwcp-related-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 12px;
}

.hwcp-related-item {
    flex: 0 0 132px;
    border: 1px solid #E5E5E5;
    background: #FFF;
    border-radius: 0;
    text-align: left;
    padding: 8px;
    cursor: pointer
}

.hwcp-related-item:hover {
    background: #FFF !important;
}

.hwcp-related-item img {
    width: 114px;
    object-fit: contain
}

.hwcp-related-item strong {
    display: block;
    margin-top: 6px;
    margin-bottom: 6px;
    color: #222;
    font-family: Overpass;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hwcp-related-item span {
    color: #555;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 16.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hwcp-related-item span input {
    min-height: auto !important;
}

.hwcp-comparison {
    min-width: 700px
}

.hwcp-compare-columns {
    display: flex;
}

.hwcp-compare-columns>div:first-of-type {
    flex: 0 0 180px;
    border-right: 1px solid #EEE;
    background: #FFF;
}

.hwcp-compare-columns div {
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    display: flex;
}

.hwcp-product-col {
    padding: 16px;
    text-align: center;
}

.hwcp-product-col:first-child {
    /* margin-left: 180px */
}

.hwcp-product-top {
    display: flex;
}

.hwcp-product-top img {
    display: block !important;
    width: 140px;
    min-width: 140px;
    height: 105px;
    object-fit: contain;
}

.hwcp-product-top .hwcp-remove {
    display: block;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
    align-self: flex-end;
    color: #999;
    text-align: center;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 16.5px;
    text-transform: capitalize;
    margin: 0;
    letter-spacing: 0;
}

.hwcp-remove {
    display: block;
    margin: 3px auto 15px;
    border: 0;
    background: none;
    color: #999;
    cursor: pointer
}

.hwcp-product-col h4 {
    font-size: 15px;
    margin: 0 0 7px
}


.hwcp-spec-heading {
    background: #333;
    color: #fff;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px
}

.hwcp-spec-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.hwcp-spec-row>div {
    flex: 1;
    padding: 12px 16px;
    color: #555;
    text-align: center;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 21.13px;
}

.hwcp-spec-row>div:not(:first-child) {
    /* Data cells only — the label cell (first child) is excluded so it
       always keeps its own background regardless of this setting. */
    background: var(--hwcp-spec-row-bg, transparent);
}

.hwcp-spec-row>div:first-child {
    flex: 0 0 180px;
    color: #888;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 16.5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid #EEE;
}

.hwcp-empty {
    text-align: center;
    padding: 60px;
    color: #888
}

.hwcp.is-loading {
    opacity: .65;
    pointer-events: none
}


.hwcp-product-details-row div {
    padding: 12px 16px;
}

.hwcp-product-details-group>div:first-child>div:not(:first-child) {
    color: #222;
    text-align: center;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 19.5px;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.hwcp-product-details-group>div:not(:first-child)>div:not(:first-child) {
    color: #555;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.5px;
}

.scroll-overflow-box {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}


@media(max-width:1000px) {
    .hwcp-toolbar {
        align-items: flex-start;
        flex-direction: column
    }

    .hwcp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hwcp-modal {
        width: 96vw
    }

    .hwcp-compare-columns {
        grid-template-columns: 120px repeat(3, 180px)
    }

    .hwcp-spec-row {
        grid-template-columns: 120px repeat(3, 180px)
    }
}

@media(max-width:600px) {
    .hwcp-grid {
        grid-template-columns: 1fr
    }

    .hwcp-card-image {
        height: 260px
    }

    .hwcp-modal-head {
        padding: 0 15px
    }

    .hwcp-related {
        padding: 18px 15px
    }

    .hwcp-comparison {
        overflow-x: auto
    }

    .hwcp-compare-columns {
        padding-left: 15px
    }

    .hwcp-modal-head h2 {
        font-size: 17px
    }
}

/* Compare Bar */
.hwcp-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    z-index: 999998;
    padding: 16px 0;
}

.hwcp-compare-bar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hwcp-compare-bar-title {
    color: #333;
    font-family: Overpass;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    white-space: nowrap;
}

.hwcp-compare-bar-count {
    color: #888;
    font-family: Overpass;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.5px;
}

.hwcp-compare-bar-products {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
}

.hwcp-compare-bar-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    background: #FAFAFA;
    min-width: 180px;
    flex-shrink: 0;
}

.hwcp-compare-bar-product img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hwcp-compare-bar-product-name {
    flex: 1;
    color: #333;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hwcp-compare-bar-product-remove {
    border: 0;
    background: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwcp-compare-bar-product-remove:hover {
    color: #666;
}

.hwcp-compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hwcp-bar-clear {
    border: 0;
    background: none;
    color: #888;
    cursor: pointer;
    padding: 0;
    font-family: Overpass;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}

.hwcp-bar-clear:hover {
    color: #555;
}

.hwcp-bar-compare {
    border: 0;
    padding: 10px 24px;
    border-radius: 10px;
    background: #EF7D00;
    color: #FFF;
    cursor: pointer;
    font-family: Overpass;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 16.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hwcp-bar-compare:hover {
    background: #d66d00;
}

@media screen and (max-width: 1023px) {
    .hwcp-compare-bar-container {
        padding: 0 48px;
    }
}

@media screen and (max-width: 767px) {
    .hwcp-compare-bar-container {
        padding: 0 24px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hwcp-compare-bar-products {
        width: 100%;
        order: 1;
    }

    .hwcp-compare-bar-title {
        order: 2;
        font-size: 14px;
    }

    .hwcp-compare-bar-actions {
        order: 3;
        margin-left: auto;
    }
}

/* Single Product Compare Widget Styles */
.hwcp-single-compare {
    --hwcp-accent: #f57c00;
    --hwcp-spec-row-bg: #FAF3E8;
    font-family: inherit;
}

.hwcp-single-compare .hwcp-compare {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #777;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding: 0;
}

/* Alignment options */
.hwcp-single-compare--left {
    text-align: left;
}

.hwcp-single-compare--center {
    text-align: center;
}

.hwcp-single-compare--right {
    text-align: right;
}

/* Ensure modal and bar positioning works for single product widget */
.hwcp-single-compare .hwcp-compare-modal,
.hwcp-single-compare .hwcp-compare-bar {
    position: fixed;
}

/* Responsive styles for single product widget */
@media screen and (max-width: 767px) {
    .hwcp-single-compare .hwcp-compare {
        font-size: 9px;
        padding: 6px 12px;
    }
}