.compareBox {
    padding: 70px 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compareBox .compareTop {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%;
}

.compareTop p {
    text-align: center;
}

.compareMain {
    display: flex;
    gap: 120px;
    justify-content: center;
    width: 100%;
    margin-top: 48px;
}

.compareMain .column {
    width: 25%;
    min-height: 350px;
    box-sizing: border-box;
}

.compareMain .column.addProduct {
    background-color: var(--gray);
}

.compareMain .column.addProduct .btnAddProduct {
    padding: 150px 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.btnAddProduct i.icon {
    background-color: var(--black);
    width: 24px;
    height: 24px;
    -webkit-mask-size: 24px;
}

.compareMain .column.empty span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 10px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.compareMain .column.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.column.product i.icon.close {
    align-self: flex-start;
    background-color: var(--black);
    width: 23px;
    height: 23px;
    -webkit-mask-size: 23px;
    cursor: pointer;
}

.column.product img {
    margin-bottom: 24px;
    width: 100%;
}

.column.product .productContent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.productContent h3 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.productContent span {
    margin-bottom: 4px;
    font-size: 14px;
}

.productContent .productPrice {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: bold;
}

.productContent a {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.productContent a i.icon {
    background-color: var(--black);
}

.productContent a:hover i.icon {
    background-color: var(--red);
}

.compareFooter {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 60px;
}

.compareFooter .compareColumn {
    display: flex;
    justify-content: center;
    gap: 120px
}

.compareFooter h2 {
    color: var(--red);
    width: 100%;
    margin-bottom: 32px;
    margin-top: 16px;
}

.compareFooter .column {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px
}

.compareFooter .column .compareItem {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.compareItem .title {
    font-size: 14px;
    opacity: .6;
}

.compareItem .value {
    font-size: 16px;
}

#addProductModal .modal-default-content {
    max-width: 90%;
    height: 85vh;
}

#removeProductModal .modal-header {
    border-bottom: unset;
}

#removeProductModal .modalTitle {
    font-weight: normal;
    font-size: 16px;
}

#removeProductModal .submit-section {
    gap: 24px;
}

#removeProductModal .btn.modal-close {
    border-color: #0100006B;
}

#removeProductModal #btnRemoveFromCompare {
    background-color: var(--red);
    border-color: transparent;
    color: var(--white);
    align-items: center;
}

.searchHeader {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.searchHeader input {
    background-color: var(--gray);
    border: 1px solid #1A1A1A42;
    font-size: 16px;
    padding: 10px 16px;
    color: var(--black);
    width: 100%;
}

.searchHeader .removeSearchInput {
    position: absolute;
    left: 5%;
}

.searchHeader .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.resultCount {
    font-size: 16px;
    color: var(--red);
    margin: 4px 16px;
    display: flex;
    align-items: center;
}

.resultCount #resultCount {
    font-weight: bold;
    margin-left: 5px;
}

.searchResult {
    width: 100%;
    min-height: 50vh;
    background-color: var(--gray);
    padding: 32px 40px;
    box-sizing: border-box;
}

.searchResult .noResult {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.noResult h4 {
    font-size: 16px;
    margin: 0;
}

.noResult span {
    font-size: 14px;
}

.searchResult .productResult {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.productResult .productItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(25% - 20px/4*3);
}

.productItem .imgBox {
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 80px 53px;
    box-sizing: border-box;
}

.productItem .imgBox img {
    width: 100%;
}

.productItem .productContent {
    padding: 24px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.productContent h5 {
    font-size: 16px;
    margin: 0 0 10px;
    text-align: center;
}

.productContent span {
    margin-bottom: 4px;
    font-size: 14px;
    text-align: center;
}

.submit-section #btnAddToCompare {
    background-color: var(--red);
    border-color: transparent;
    color: var(--white);
    align-items: center;
}

.submit-section #btnAddToCompare i.icon {
    background-color: var(--white);
    width: 32px;
    height: 32px;
    -webkit-mask-size: 32px;
}

#addProductModal .submit-section {
    position: sticky;
    bottom: 0;
}

.compareFooter .column a.moreDetails {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-top: 52px;
    font-size: 16px;
}



/* Mobile Styles */
@media screen and (max-width: 767px) {
    .compareBox {
        padding: 32px 24px;
    }

    .compareBox .compareTop {
        max-width: unset;
    }

    .compareTop h1 {
        font-size: 18px;
    }

    .compareTop p {
        font-size: 14px;
    }

    .compareMain {
        gap: 20px;
        margin-top: 0;
        align-items: flex-start;
    }

    .compareMain .column {
        width: calc(50% - 10px);
        min-height: 100px;
    }

    .compareMain .column.addProduct .btnAddProduct {
        padding: 80px 20px;
        gap: 4px;
        font-size: 12px;
    }

    .btnAddProduct i.icon {
        width: 19px;
        height: 19px;
        -webkit-mask-size: 19px;
    }

    .column.product i.icon.close {
        width: 12px;
        height: 12px;
        -webkit-mask-size: 12px;
    }

    .productContent h3 {
        font-size: 14px;
    }

    .productContent span {
        font-size: 12px;
        text-align: center;
    }

    .productContent .productPrice {
        font-size: 12px;
    }

    .productContent a {
        font-size: 12px;
    }

    .compareFooter {
        margin-top: 52px;
    }

    .compareFooter h2 {
        font-size: 16px;
    }

    .compareFooter .compareColumn {
        gap: 20px;
        justify-content: space-between;
    }

    .compareFooter .column {
        width: calc(50% - 10px);
    }

    .compareItem .title {
        font-size: 12px;
    }

    .compareItem .value {
        font-size: 14px;
        text-align: center;
    }

    .compareFooter .column a.moreDetails {
        font-size: 14px;
    }

    .modal-header h3 {
        font-size: 14px;
    }

    .modal-close i.icon {
        width: 19px;
        height: 19px;
        -webkit-mask-size: 19px;
    }

    .searchHeader input {
        font-size: 14px;
    }

    .searchHeader .removeSearchInput {
        display: none;
    }

    .resultCount {
        font-size: 12px;
    }

    .modal-default-content {
        padding: 24px;
    }

    .searchResult {
        padding: 0;
        background-color: var(--transparent);
    }

    .productResult .productItem {
        width: calc(50% - 10px);
    }

    .productItem .imgBox {
        padding: 42px 38px;
        background-color: var(--gray);
    }

    .productContent h5 {
        font-size: 14px;
        text-align: center;
    }

    .productContent span {
        font-size: 12px;
        text-align: center;
    }

    .productContent a {
        font-size: 12px;
        text-align: center;
    }

    .productItem .productContent {
        padding: 24px 12px;
    }

    .submit-section #btnAddToCompare {
        font-size: 14px;
        gap: 10px;
    }

    .submit-section #btnAddToCompare i.icon {
        width: 20px;
        height: 20px;
        -webkit-mask-size: 20px;
    }

    #addProductModal .modal-default-content {
        max-width: 100%;
        height: 100vh;
    }

    #removeProductModal .modalTitle {
        font-size: 14px;
    }

    #removeProductModal .submit-section btn {
        font-size: 12px;
    }

    .compareMain .column.empty span {
        font-size: 14px;
        text-align: center;
    }

    .noResult h4 {
        font-size: 14px;
    }

    .noResult span {
        font-size: 12px;
    }
}