/* ===== DEFAULT (Desktop ≥ 1025px) ===== */
/* Custom modal styling for better spacing and height */
.custom-finder-popup {
    max-width: 650px;
    width: 650px;
    min-height: 420px;
    overflow: visible;
}

div#navBar.collapse:not(.show) {
    display: block !important;
}

/* Adjust select field spacing */
.finder-dropdown-group label {
    font-weight: 500;
    margin-bottom: 6px;
}

.finder-dropdown-group .bootstrap-select {
    width: 100% !important;
}

.floating-finder-btn {
    position: fixed;
    bottom: 70px;
    right: 12px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e70c17 0%, #ea1b2573 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.floating-finder-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: none;
}

.floating-finder-btn i {
    color: white;
    font-size: 24px;
}

.finder-dropdown-group {
    margin-bottom: 20px;
    text-align: left;
}

.finder-dropdown-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.finder-dropdown-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.finder-dropdown-group select:focus {
    outline: none;
    border-color: #009ddf;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.finder-dropdown-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
    color: #000000b0 !important;
}

.btn-light:not(label.btn),
.btn-light:not(label.btn):not([href]):not(:disabled):not(.disabled),
.btn-light:not([href]),
.btn-light:not([href]):not([href]):not(:disabled):not(.disabled) {
    background-color: #edf2fa85 !important;
    border-color: #939393 !important;
}

@media (max-width: 768px) {
    .floating-finder-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .floating-finder-btn i {
        font-size: 24px;
    }
}


.terms-content p,
.terms-content li {
    line-height: 1.8;
}

.terms-content ol {
    list-style: none;
    padding-left: 0;
}

.terms-content ol>li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.terms-content ol>li:before {
    content: "➤";
    color: #ea1b25;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 0;
}

.nested-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.nested-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.nested-list li:before {
    content: "→";
    color: #ea1b25;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: -2px;
}

#orderTable td a:hover {
    color: #ea1b25 !important;
    text-decoration: underline;
}

/* Force override for mega menu theme conflicts */
#basicsAccordion .hs-has-sub-menu {
    position: relative !important;
    border-bottom: 1px solid #ebebeb;
}

.alert-primary {
    color: #fff !important;
}

.alert-primary .alert-link {
    color: #fff !important;
}

.btn-primary-dark-w {
    color: #fff !important;
}

#basicsAccordion .hs-sub-menu.u-header__sub-menu {
    display: none !important;
    position: absolute !important;
    margin-left: 5px !important;
    width: 180px !important;
    overflow-y: auto !important;
    border: 1px solid #ddd !important;
    border-top: 4px solid #ea1b25 !important;
    border-radius: 8px !important;
    z-index: 9999 !important;
    padding: 8px 0 !important;
}

/* Force submenu display on hover */
#basicsAccordion .hs-has-sub-menu:hover>.hs-sub-menu.u-header__sub-menu {
    display: block !important;
}

/* Submenu link styles */
#basicsAccordion .hs-sub-menu.u-header__sub-menu a {
    padding: 6px 16px !important;
    display: block !important;
}

.min-height-625 {
    min-height: 33rem;
}

.fw-600 {
    font-weight: 600 !important;
}

.section-title {
    position: relative;
    font-weight: 600;
    font-size: 20px;
}

.btn:not([href]):not([type]):not(:disabled):not(.disabled) {
    cursor: pointer;
}

.brand-links li a:hover {
    color: #ea1b25 !important;
    text-decoration: none;
}

.bg-info {
    background-color: #009ee0 !important;
}

.mb-25 {
    margin-bottom: 10rem;
}

.u-header .vertical-menu,
.u-header+main .vertical-menu {
    border: 1px solid #80808040;
}

.u-header__navbar-brand,
.u-header__navbar-brand>img {
    width: 4.375rem;
    height: 80px;
}

.u-header__nav-link.font-weight-bold::after {
    font-family: "Font Awesome 5 Free";
    content: "\f105";
    /* Unicode for fa-chevron-right */
    font-weight: 900;
    float: right;
    color: #555;
    font-size: 0.8rem;
}

.font-weight-600 {
    font-weight: 600 !important;
}

@media (min-width: 992px) {
    .col-lg-3 {
        display: flex;
    }
}

.container-custom {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px;
}

.left-image {
    flex: 1;
}

.right-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-white-90 {
    color: #fff;
}

select {
    padding: 10px !important;
    border-radius: 5px !important;
    border: 2px solid #ea1b25 !important;
    font-size: 16px !important;
    outline: none !important;
    width: 100% !important;
}

select:focus {
    border-color: #ea1b25;
    box-shadow: 0 0 5px rgba(234, 27, 37, 0.5);
}

/* New layout styles */
.main-content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.sidebar-section {
    flex: 0 0 270px;
    max-width: 270px;
}

.content-section {
    flex: 1;
}

@media (max-width: 1199px) {
    .main-content-wrapper {
        flex-direction: column;
    }

    .sidebar-section {
        flex: 1;
        max-width: 100%;
    }
}

.custom {
    width: 600px;
    border-radius: 7px;
}

.series-list {
    background-color: #fff;
    padding: 40px 0;
}

.series-card {
    margin-bottom: 30px;
}

.series-card h3 {
    color: #ea1b25;
    border-bottom: 2px solid #ea1b25;
    padding-bottom: 10px;
}

.sub-series {
    font-style: italic;
    color: #6c757d;
}

@media (max-width: 768px) {
    .model-table {
        font-size: 12px;
    }
}

.content-section {
    flex: 1;
}

select {
    padding: 10px !important;
    border-radius: 5px !important;
    border: 2px solid #ea1b25 !important;
    font-size: 16px !important;
    outline: none !important;
    width: 100% !important;
}

select:focus {
    border-color: #ea1b25;
    box-shadow: 0 0 5px rgba(234, 27, 37, 0.5);
}

.series-list {
    padding: 40px 10px;
    background: #f8f9fa;
}

.series-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.series-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ea1b25;
    font-style: italic;
    margin-bottom: 15px;
}

.model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-list a {
    background: #f1f1f1;
    color: #333;
    padding: 5px 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 12px;
}

.model-list a:hover {
    background: #ea1b25;
    color: #fff !important;
}

.bg-temp {
    background: #ea1b25 !important;
}

.width-122 {
    width: 7.625rem !important;
}

.sub-series {
    font-weight: 600;
    margin-top: 20px;
    color: #007bff;
}

.float-inline-end {
    float: inline-end !important;
}

/* Custom Search Results Dropdown */
.search-wrapper {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 420px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    border-top: 2px solid #dc143c;
}

.search-results-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Item in Search Results */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

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

.search-result-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 16px;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 8px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.search-result-details {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    color: #0066cc;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    display: block;
    line-height: 1.4;
}

.search-result-name:hover {
    color: #0052a3;
    text-decoration: underline;
}

.search-result-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-result-price {
    color: #ea1b25;
    font-size: 18px;
    font-weight: 700;
}

.search-result-original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.search-result-discount {
    background: #ea1b25;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* View All Button */
.search-view-all {
    background: linear-gradient(135deg, #ea1b25 0%, #ff5a6b 100%);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-view-all:hover {
    background: linear-gradient(135deg, #ff5a6b 0%, #ea1b25 100%);
}

/* Custom Scrollbar */
.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* No Results / Loading */
.search-no-results,
.search-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.search-loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Input Focus State */
.form-control:focus {
    border-color: #ea1b25 !important;
    box-shadow: 0 0 0 0.2rem rgba(228, 126, 122, 0.25) !important;
}

.height-40 {
    height: 40px !important;
}

.border-width-2 {
    border-width: 2px !important;
}

.rounded-left-pill {
    border-radius: 50rem 0 0 50rem !important;
}

.rounded-right-pill {
    border-radius: 0 50rem 50rem 0 !important;
}

/* Product Category Badge */
.search-result-category {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 4px;
}

.form-hidden {
    display: none !important;
}

/* ===== TABLETS (768px – 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .search-dnone {
        display: none !important;
    }

    .series-card {
        padding: 10px !important;
    }

    .custom-header {
        font-size: 24px !important;
    }

    .col-6-mobile {
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .br-primary-down-lg {
        border-bottom: 3px solid #ea1b25 !important;
    }

    .header-icons-wrapper {
        flex-wrap: nowrap;
    }
}

/* ===== PHONES (below 768px) ===== */
@media (max-width: 767px) {
    .search-dnone {
        display: none !important;
    }

    .series-card {
        padding: 10px !important;
    }

    .col-12-mobile {
        max-width: 100% !important;
        flex: 0 0 100%;
    }

    .col-6-mobile {
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .custom-finder-popup {
        padding: 15px !important;
        width: auto !important;
    }

    div:where(.swal2-container) div:where(.swal2-html-container) {
        padding: 0.5em 0.5em 0.3em !important;
    }

    .max-width-150 {
        max-width: 5.375rem !important;
    }

    .custom-header {
        font-size: 22px !important;
    }

    .br-primary-down-lg {
        border-bottom: 3px solid #ea1b25 !important;
    }

    .u-header-collapse__nav-link,
    .u-header-collapse__submenu-nav-link,
    .u-header-collapse__submenu-list-link {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    /* Stack header icons on mobile */
    /* .header-icons-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    } */

    /* First row: search icons */
    /* .header-icons-wrapper .search-item {
        order: 1;
        flex: 1 1 45%;
        text-align: center;
    } */

    /* Second row: cart + account */
    /* .header-icons-wrapper li:not(.search-item) {
        order: 2;
        margin-top: 10px;
        flex: 1 1 45%;
        text-align: center;
    } */
    .border-bottom-rd {
        border-bottom: 3px solid #ea1b25 !important;
        background-color: #ea1b25 !important;
    }

    /* Add text labels under search icons */
    .header-icons-wrapper .search-item a::after {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #000;
        margin-top: 2px;
    }
}

.brand-card {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ea1b25 0%, #ff4d4d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
a.btn.btn-outline-primary.btn-sm.transition-3d-hover {
    font-size: 12px;
    padding: 5px;
}
div#termsError {
    font-weight: 600;
}
.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(234, 27, 37, 0.2);
}

.brand-card img {
    margin-bottom: 20px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
}

.brand-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.brand-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-links li:last-child {
    margin-bottom: 0;
}

.brand-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.brand-links li a:hover {
    color: #ea1b25;
}

.brand-links li a::before {
    content: "➤";
    margin-right: 12px;
    color: #ea1b25;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.brand-links li a:hover::before {
    transform: translateX(3px);
}

.font-size-25 {
    font-size: 1.56275rem !important;
}

/* ===== EXTRA SMALL DEVICES (max-width: 575px) ===== */
@media (max-width: 575px) {
    #printer-cartridges {
        padding: 20px 0;
    }

    ul.brand-links {
        padding-left: 30px;
    }

    #printer-cartridges .brand-card {
        padding: 15px 15px;
        margin-bottom: 20px;
    }

    .mobile-d-none {
        display: none;
    }

    #printer-cartridges .brand-card img {
        max-height: 60px;
        margin-bottom: 15px;
    }

    #printer-cartridges .brand-links a {
        font-size: 14px;
        max-width: 100%;
    }

    .brand-links li a::before {
        font-size: 12px;
        margin-right: 8px;
        width: 16px;
    }
}

/* ===== SMALL DEVICES (576px – 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    #printer-cartridges .brand-card {
        padding: 15px 15px;
    }

    .mobile-d-none {
        display: none;
    }

    ul.brand-links {
        padding-left: 30px;
    }

    #printer-cartridges .brand-card img {
        max-height: 65px;
    }

    #printer-cartridges .brand-links a {
        font-size: 15px;
    }
}

/* ===== MEDIUM DEVICES (768px – 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    #printer-cartridges .brand-card {
        padding: 15px 15px;
    }

    ul.brand-links {
        padding-left: 30px;
    }

    .mobile-d-none {
        display: none;
    }

    #printer-cartridges .brand-card img {
        max-height: 70px;
    }
}

/* ===== LARGE DEVICES (1024px – 1199px) ===== */
@media (min-width: 1024px) and (max-width: 1199px) {
    #printer-cartridges .brand-card {
        padding: 15px 15px;
    }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
    #printer-cartridges .brand-card {
        padding: 15px 15px;
    }
}