/* =========================================================
   HLX PEPTIDE — COA LISTING
   Desktop + Tablet + Mobile
   3 cards per row at all sizes
========================================================= */


/* =========================================================
   COA COLOR VARIABLES
========================================================= */

:root {
    --hlx-coa-bg: #151F2B;
    --hlx-coa-card: #1B2938;
    --hlx-coa-card-hover: #202F40;
    --hlx-coa-image-bg: #111820;

    --hlx-coa-text: #EEF2F6;
    --hlx-coa-text-secondary: #B4BFCA;
    --hlx-coa-text-muted: #8F9CAA;

    --hlx-coa-border: #354657;
    --hlx-coa-border-soft: rgba(255, 255, 255, 0.12);

    --hlx-coa-accent: #1687A6;
    --hlx-coa-accent-hover: #24A9CC;
}


/* =========================================================
   COA PAGE
========================================================= */

.hlx-cl-main {
    background: var(--hlx-coa-bg) !important;
}


/* =========================================================
   PAGE INTRO
========================================================= */

.hlx-cl-intro {
    max-width: 900px;

    margin: 0 auto 35px auto !important;

    padding: 0 16px !important;

    color: var(--hlx-coa-text-secondary) !important;

    font-size: 17px !important;

    line-height: 1.6 !important;

    text-align: center !important;
}


/* =========================================================
   COA RESULTS WRAPPER
========================================================= */

.hlx-pl-results.coa {
    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    box-sizing: border-box !important;
}


/* =========================================================
   COA GRID
   3 CARDS PER ROW
========================================================= */

.frc-grid.hlx-cl-grid,
.hlx-cl-grid {
    display: grid !important;

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

    align-items: stretch !important;

    gap: 18px !important;

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    padding: 0 16px 35px 16px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   COA CARD
========================================================= */

.hlx-cl-card {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    min-width: 0 !important;

    max-width: 100% !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    background: var(--hlx-coa-card) !important;

    border: 1px solid var(--hlx-coa-border-soft) !important;

    border-radius: 22px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    box-shadow: none !important;

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


.hlx-cl-card:hover {
    transform: translateY(-2px) !important;

    background: var(--hlx-coa-card-hover) !important;

    border-color: rgba(36, 169, 204, 0.40) !important;
}


/* =========================================================
   COA IMAGE AREA
========================================================= */

.hlx-cl-card-image-wrap {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    margin: 0 !important;

    padding: 16px !important;

    background: var(--hlx-coa-image-bg) !important;

    border-radius:
        20px 20px 18px 18px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    text-decoration: none !important;
}


.hlx-cl-card-image {
    display: block !important;

    width: 100% !important;

    height: 100% !important;

    max-width: 100% !important;

    margin: 0 auto !important;

    padding: 0 !important;

    object-fit: contain !important;

    object-position: center !important;
}


/* =========================================================
   COA CARD BODY
========================================================= */

.hlx-cl-card-body {
    display: grid !important;

    grid-template-rows:
        minmax(90px, auto)
        58px !important;

    flex: 1 1 auto !important;

    width: 100% !important;

    min-width: 0 !important;

    padding: 12px 16px 16px 16px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   COA TITLE LINK
========================================================= */

.hlx-cl-card-title-link {
    display: block !important;

    width: 100% !important;

    min-width: 0 !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    color: inherit !important;

    text-decoration: none !important;

    overflow: hidden !important;
}


/* =========================================================
   COA TITLE AREA
========================================================= */

.hlx-cl-card-title {
    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    height: 100% !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 4px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}


/* Product name */

.hlx-cl-product-name {
    display: -webkit-box !important;

    width: 100% !important;

    max-width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    color: var(--hlx-coa-text) !important;

    font-size: 21px !important;

    line-height: 1.12 !important;

    font-weight: 600 !important;

    letter-spacing: 0 !important;

    text-align: center !important;

    white-space: normal !important;

    overflow: hidden !important;

    overflow-wrap: anywhere !important;

    -webkit-line-clamp: 3 !important;

    -webkit-box-orient: vertical !important;
}


/* Dose / strength */

.hlx-cl-product-dose {
    display: block !important;

    width: 100% !important;

    margin: 7px 0 0 0 !important;

    padding: 0 !important;

    color: var(--hlx-coa-text-secondary) !important;

    font-size: 14px !important;

    line-height: 1 !important;

    font-weight: 400 !important;

    text-align: center !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;
}


/* =========================================================
   COA ACTION SLOT
========================================================= */

.hlx-cl-card-action {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    height: 58px !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    overflow: hidden !important;
}


/* =========================================================
   VIEW COA BUTTON
========================================================= */

.hlx-cl-view-coa {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-width: 150px !important;

    height: 42px !important;

    min-height: 42px !important;

    max-height: 42px !important;

    margin: 0 auto !important;

    padding: 0 22px !important;

    box-sizing: border-box !important;

    background: transparent !important;

    color: var(--hlx-coa-text) !important;

    border: 1px solid var(--hlx-coa-accent) !important;

    border-radius: 999px !important;

    box-shadow: none !important;

    font-size: 12px !important;

    line-height: 1 !important;

    font-weight: 600 !important;

    letter-spacing: 0.02em !important;

    text-align: center !important;

    text-decoration: none !important;

    text-transform: uppercase !important;

    white-space: nowrap !important;

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


.hlx-cl-view-coa:hover {
    background: var(--hlx-coa-accent) !important;

    border-color: var(--hlx-coa-accent) !important;

    color: #FFFFFF !important;
}


/* =========================================================
   EMPTY RESULTS
========================================================= */

.hlx-cl-empty {
    width: 100% !important;

    padding: 50px 20px !important;

    color: var(--hlx-coa-text-secondary) !important;

    font-size: 17px !important;

    text-align: center !important;
}


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

.hlx-cl-pagination {
    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex-wrap: wrap !important;

    gap: 8px !important;

    width: 100% !important;

    margin: 24px auto 40px auto !important;
}


.hlx-cl-pagination .hlx-pl-page-btn {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 40px !important;

    height: 40px !important;

    min-width: 40px !important;

    min-height: 40px !important;

    margin: 0 !important;

    padding: 0 !important;

    background: var(--hlx-coa-card) !important;

    color: var(--hlx-coa-text) !important;

    border: 1px solid var(--hlx-coa-border) !important;

    border-radius: 50% !important;

    font-size: 14px !important;

    cursor: pointer !important;
}


.hlx-cl-pagination .hlx-pl-page-btn:hover,
.hlx-cl-pagination .hlx-pl-page-btn.is-active {
    background: var(--hlx-coa-accent) !important;

    border-color: var(--hlx-coa-accent) !important;

    color: #FFFFFF !important;
}


/* =========================================================
   TABLET
   STILL 3 CARDS PER ROW
========================================================= */

@media (max-width: 900px) {

    .frc-grid.hlx-cl-grid,
    .hlx-cl-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 12px !important;

        padding-left: 10px !important;

        padding-right: 10px !important;
    }


    .hlx-cl-card {
        border-radius: 18px !important;
    }


    .hlx-cl-card-image-wrap {
        padding: 12px !important;

        border-radius:
            17px 17px 15px 15px !important;
    }


    .hlx-cl-card-body {
        grid-template-rows:
            minmax(80px, auto)
            52px !important;

        padding:
            9px 10px 12px 10px !important;
    }


    .hlx-cl-product-name {
        font-size: 18px !important;
    }


    .hlx-cl-product-dose {
        font-size: 12px !important;
    }


    .hlx-cl-card-action {
        height: 52px !important;
    }


    .hlx-cl-view-coa {
        min-width: 126px !important;

        height: 38px !important;

        min-height: 38px !important;

        max-height: 38px !important;

        padding: 0 16px !important;

        font-size: 10px !important;
    }

}


/* =========================================================
   MOBILE
   3 CARDS PER ROW
========================================================= */

@media (max-width: 600px) {

    .hlx-cl-intro {
        margin-bottom: 20px !important;

        padding-left: 10px !important;

        padding-right: 10px !important;

        font-size: 13px !important;

        line-height: 1.45 !important;
    }


    /* Grid */

    .frc-grid.hlx-cl-grid,
    .hlx-cl-grid {
        display: grid !important;

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

        align-items: start !important;

        gap: 5px !important;

        width: 100% !important;

        margin: 0 !important;

        padding:
            0 5px 20px 5px !important;

        box-sizing: border-box !important;
    }


    /* Card */

    .hlx-cl-card {
        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;

        min-width: 0 !important;

        max-width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        border-radius: 15px !important;

        overflow: hidden !important;
    }


    /* Image */

    .hlx-cl-card-image-wrap {
        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        height: 150px !important;

        min-height: 150px !important;

        max-height: 150px !important;

        aspect-ratio: auto !important;

        padding: 6px !important;

        border-radius:
            14px 14px 12px 12px !important;
    }


    .hlx-cl-card-image {
        width: 100% !important;

        height: 100% !important;

        object-fit: contain !important;
    }


    /* Card body */

    .hlx-cl-card-body {
        display: grid !important;

        grid-template-rows:
            70px
            40px !important;

        width: 100% !important;

        height: auto !important;

        min-height: 0 !important;

        padding:
            4px 4px 7px 4px !important;

        box-sizing: border-box !important;
    }


    /* Title */

    .hlx-cl-card-title-link,
    .hlx-cl-card-title {
        height: 70px !important;

        min-height: 70px !important;

        max-height: 70px !important;
    }


    .hlx-cl-card-title {
        padding: 2px 1px !important;
    }


    .hlx-cl-product-name {
        display: -webkit-box !important;

        width: 100% !important;

        max-width: 100% !important;

        font-size: 13px !important;

        line-height: 1.08 !important;

        font-weight: 600 !important;

        text-align: center !important;

        white-space: normal !important;

        overflow: hidden !important;

        overflow-wrap: anywhere !important;

        -webkit-line-clamp: 3 !important;

        -webkit-box-orient: vertical !important;
    }


    /* Dose */

    .hlx-cl-product-dose {
        margin-top: 4px !important;

        font-size: 10px !important;

        line-height: 1 !important;
    }


    /* Action */

    .hlx-cl-card-action {
        height: 40px !important;

        min-height: 40px !important;

        max-height: 40px !important;
    }


    /* Button */

    .hlx-cl-view-coa {
        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 92px !important;

        min-width: 92px !important;

        max-width: 92px !important;

        height: 30px !important;

        min-height: 30px !important;

        max-height: 30px !important;

        margin: 0 auto !important;

        padding: 0 5px !important;

        border-radius: 999px !important;

        font-size: 8px !important;

        line-height: 1 !important;

        font-weight: 600 !important;

        white-space: nowrap !important;

        box-sizing: border-box !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   STILL 3 CARDS PER ROW
========================================================= */

@media (max-width: 390px) {

    .frc-grid.hlx-cl-grid,
    .hlx-cl-grid {
        gap: 3px !important;

        padding-left: 3px !important;

        padding-right: 3px !important;
    }


    .hlx-cl-card-image-wrap {
        height: 138px !important;

        min-height: 138px !important;

        max-height: 138px !important;

        padding: 4px !important;
    }


    .hlx-cl-card-body {
        grid-template-rows:
            66px
            38px !important;

        padding:
            3px 3px 6px 3px !important;
    }


    .hlx-cl-card-title-link,
    .hlx-cl-card-title {
        height: 66px !important;

        min-height: 66px !important;

        max-height: 66px !important;
    }


    .hlx-cl-product-name {
        font-size: 12px !important;
    }


    .hlx-cl-product-dose {
        font-size: 9px !important;
    }


    .hlx-cl-card-action {
        height: 38px !important;

        min-height: 38px !important;

        max-height: 38px !important;
    }


    .hlx-cl-view-coa {
        width: 84px !important;

        min-width: 84px !important;

        max-width: 84px !important;

        height: 28px !important;

        min-height: 28px !important;

        max-height: 28px !important;

        font-size: 7.5px !important;
    }

}

/* =========================================================
   COA PAGE — REDUCE SPACE BELOW HEADER
========================================================= */

.hlx-cl-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hlx-cl-main .hlx-pl-wrap {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

.hlx-cl-main .hlx-pl-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hlx-cl-main .hlx-cl-intro {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}


/* Mobile */
@media (max-width: 600px) {

    .hlx-cl-main .hlx-pl-wrap {
        padding-top: 12px !important;
    }

    .hlx-cl-main .hlx-cl-intro {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }
}