/* ==========================================================
   EPOS INTEGRATIONS - MODERN DIRECTORY
========================================================== */

.epos_integrations-index-index.page-layout-3columns .column.main {
    width: 100%;
}


/* ==========================================================
   MAIN WRAPPER
========================================================== */

.epos-integrations-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 55px 30px 70px;
}


/* ==========================================================
   HEADER
========================================================== */

.epos-integrations-header {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 1050px;
}


.integrations-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: 4px;
    text-transform: uppercase;

    color: #2b6ed7;
}


.epos-integrations-header h1 {
    margin: 0 0 20px;

    font-size: clamp(42px, 5vw, 50px);
    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;

    color: #0b1a33;
}


.epos-integrations-header p {
    max-width: 950px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.7;

    color: #50627a;
}


.epos-integrations-header p strong {
    color: #172b46;
}


/* ==========================================================
   FILTER BAR
========================================================== */

.integration-filter-bar {

    width: 100%;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 15px 18px;

    margin-bottom: 18px;

    background: #ffffff;

    border: 1px solid #e4eaf2;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(18, 43, 74, 0.06);

    position: relative;
    z-index: 5;
}


/* FILTER LABEL */

.filter-label {

    display: flex;
    align-items: center;

    gap: 9px;

    flex: 0 0 auto;

    font-size: 14px;
    font-weight: 700;

    color: #182c47;

    white-space: nowrap;
}


.filter-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: #f1f6ff;

    color: #2b6ed7;

    font-size: 14px;
}


/* ==========================================================
   CATEGORY PILLS
========================================================== */

.category-pills {

    display: flex;
    align-items: center;

    gap: 5px;

    flex: 1;

    overflow-x: auto;

    scrollbar-width: none;

    padding: 2px 0;
}


.category-pills::-webkit-scrollbar {
    display: none;
}


.category-pill {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;

    padding: 0 12px;

    border: 1px solid #dbe3ed;

    border-radius: 50px;

    background: #ffffff;

    color: #231f20;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.category-pill:hover {

    border-color: #b9cce7;

    color: #1f5fc4;

    background: #f6f9ff;

    transform: translateY(-1px);
}


.category-pill.active {

    background: #1674ed;

    border-color: #1674ed;

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(22, 116, 237, 0.22);
}


/* ==========================================================
   SEARCH
========================================================== */

.integration-search {

    position: relative;

    flex: 0 0 245px;
}


.integration-search i {

    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #8b9aae;

    font-size: 14px;

    pointer-events: none;
}


.integration-search .search-input {

    width: 100%;

    height: 42px;

    padding: 0 16px 0 43px;

    border: 1px solid #dbe3ed;

    border-radius: 50px;

    background: #ffffff;

    color: #172b46;

    font-size: 14px;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.integration-search .search-input::placeholder {
    color: #9aa8b9;
}


.integration-search .search-input:focus {

    outline: none;

    border-color: #2b6ed7;

    box-shadow:
        0 0 0 4px rgba(43, 110, 215, 0.09);
}


/* ==========================================================
   SUBCATEGORY
========================================================== */

.subcategory-wrapper {

    margin-bottom: 24px;

    padding: 12px 18px;

    background: #f8faff;

    border: 1px solid #e5ebf5;

    border-radius: 14px;
}


.subcategory-inner {

    display: flex;
    align-items: center;

    gap: 15px;
}


.subcategory-label {

    font-size: 13px;
    font-weight: 700;

    color: #60718a;

    white-space: nowrap;
}


.subcategory-pills {

    display: flex;

    gap: 8px;

    overflow-x: auto;

    scrollbar-width: none;
}


.subcategory-pills::-webkit-scrollbar {
    display: none;
}


.subcategory-pill {

    border: 0;

    background: transparent;

    color: #231f20;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: 13px;

    cursor: pointer;

    white-space: nowrap;
}


.subcategory-pill:hover {

    background: #eaf2ff;

    color: #2466c5;
}


.subcategory-pill.active {

    background: #e1edff;

    color: #1764cc;

    font-weight: 600;
}


/* ==========================================================
   PRODUCT GRID
========================================================== */

.product-grid-wrapper {
    width: 100%;
}


.product-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 40px;
}


/* ==========================================================
   PRODUCT CARD
========================================================== */

.product-card {

    display: flex;

    flex-direction: column;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e5ebf2;

    border-radius: 18px;

    padding: 14px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(20, 46, 80, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.product-card:hover {

    transform: translateY(-5px);

    border-color: #d2ddeb;

    box-shadow:
        0 15px 35px rgba(20, 46, 80, 0.10);
}


/* ==========================================================
   PRODUCT IMAGE
========================================================== */

.product-card .product-image {

    width: 100%;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;
  border-radius: 13px;

    overflow: hidden;

    margin-bottom: 18px;
}


.product-card .product-image a {

    width: 100%;
    height: 100%;

    display: flex;

}


.product-card .product-image img {

    display: block;

    max-width: 65%;

    max-height: 125px;

    width: auto;
    height: auto;

    object-fit: contain;

    transition: transform 0.3s ease;
}


.product-card:hover .product-image img {

    transform: scale(1.04);
}


/* ==========================================================
   CONTENT
========================================================== */

.product-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 0 8px 8px;
}


/* ==========================================================
   CATEGORY TAG
========================================================== */

.product-card .category-tag {

    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    width: fit-content;

    margin-bottom: 10px;

    padding: 5px 11px;

    border-radius: 30px;

    background: #e9f3ff;

    color: #2370d0;

    font-size: 10px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/* ==========================================================
   TITLE
========================================================== */

.product-card .product-title {

    margin: 0 0 9px;

    font-size: 20px;

    line-height: 1.25;

    font-weight: 700;

    letter-spacing: -0.3px;

    color: #0b1a33;
}


.product-card .product-title a {

    color: #0b1a33;

    text-decoration: none;

    transition: color 0.2s ease;
}


.product-card .product-title a:hover {

    color: #176bd8;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.product-card .product-description {

    margin: 0 0 20px;

    color: #0c254a;

    font-size: 16px;

    line-height: 1.65;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;
}


/* ==========================================================
   LEARN MORE
========================================================== */

.product-card .read-more {

    display: flex;

    align-items: center;

    justify-content: left;

    width: 100%;

    min-height: 42px;

    margin-top: auto;

    padding: 0 16px;

    border-radius: 50px;

    background: none;

    color: #3485fd;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500; text-transform:uppercase;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.product-card .read-more .arrow {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #ffffff;

    font-size: 10px;

    transition: transform 0.2s ease;
}


.product-card .read-more:hover {

    background: none;

    color: #000;

    transform: translateY(-1px);
}


.product-card .read-more:hover .arrow {

    transform: translateX(3px);

    color: #1674ed;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.empty-state {

    grid-column: 1 / -1;

    text-align: center;

    padding: 80px 20px;

    background: #ffffff;

    border: 1px dashed #d6e0eb;

    border-radius: 18px;
}


.empty-state .empty-icon {

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #f2f6fb;

    color: #8292a7;

    font-size: 20px;
}


.empty-state h3 {

    margin: 0 0 5px;

    color: #172b46;

    font-size: 18px;
}


.empty-state p {

    margin: 0;

    color: #718197;

    font-size: 14px;
}


/* ==========================================================
   LOADING
========================================================== */

.loading-state {

    grid-column: 1 / -1;

    min-height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #66778c;

    font-size: 14px;
}


/* ==========================================================
   PAGINATION
========================================================== */

.pagination {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid #e5eaf1;
}


.pagination-info {

    color: #66778c;

    font-size: 13px;
}


.pagination-info strong {

    color: #182c47;
}


.pagination-pages {

    display: flex;

    align-items: center;

    gap: 6px;
}


.pagination-pages .page-btn {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dbe3ed;

    border-radius: 50%;

    background: #ffffff;

    color: #40536b;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.pagination-pages .page-btn:hover:not(:disabled) {

    border-color: #b8cce5;

    background: #f2f7ff;

    color: #176bd8;
}


.pagination-pages .page-btn.active {

    background: #1674ed;

    border-color: #1674ed;

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(22, 116, 237, 0.20);
}


.pagination-pages .page-btn:disabled {

    opacity: 0.35;

    cursor: not-allowed;
}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (max-width: 1250px) {

    .product-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

    .category-pills {

        max-width: 600px;

    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .integration-filter-bar {

        flex-wrap: wrap;

    }


    .filter-label {

        flex: 0 0 auto;

    }


    .category-pills {

        order: 3;

        flex-basis: 100%;

        max-width: none;

    }


    .integration-search {

        margin-left: auto;

        flex: 0 0 250px;

    }


    .product-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .epos-integrations-wrapper {

        padding:
            35px 15px 50px;

    }


    .epos-integrations-header {

        margin-bottom: 30px;

    }


    .integrations-eyebrow {

        font-size: 10px;

        letter-spacing: 2.5px;

    }


    .epos-integrations-header h1 {

        font-size: 38px;

        letter-spacing: -1.2px;

    }


    .epos-integrations-header p {

        font-size: 15px;

        line-height: 1.65;

    }


    .integration-filter-bar {

        padding: 14px;

        border-radius: 15px;

        gap: 12px;

    }


    .filter-label {

        width: 100%;

    }


    .category-pills {

        width: 100%;

        flex-basis: 100%;

    }


    .category-pill {

        min-height: 38px;

        padding: 0 15px;

        font-size: 13px;

    }


    .integration-search {

        width: 100%;

        flex: 1 1 100%;

    }


    .subcategory-inner {

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;

    }


    .product-grid {

        grid-template-columns:
            1fr;

        gap: 15px;

    }


    .product-card {

        padding: 12px;

    }


    .product-card .product-image {

        height: 160px;

    }


    .product-card .product-title {

        font-size: 19px;

    }


    .pagination {

        flex-direction: column;

        align-items: center;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 400px) {

    .epos-integrations-header h1 {

        font-size: 34px;

    }


    .product-card .product-image {

        height: 145px;

    }

}