/* =========================================================
   THULTHUL — FOOD LIBRARY
========================================================= */

.tt-food-page {
    background: #070708;
    color: #f5f5f7;
}


.tt-food-page .tt-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.tt-food-hero {
    padding: 90px 0 80px;

    border-bottom: 1px solid rgba(255,255,255,.07);

    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(79,70,255,.14),
            transparent 35%
        ),
        #070708;
}


.tt-food-hero-content {
    max-width: 820px;
}


.tt-food-hero h1 {
    margin: 18px 0 22px;

    color: #ffffff;

    font-size: clamp(45px, 6vw, 76px);

    line-height: .98;

    letter-spacing: -3px;
}


.tt-food-hero h1 span {
    color: #8178ff;
}


.tt-food-hero p {
    max-width: 650px;

    margin: 0;

    color: #898991;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   LIBRARY
========================================================= */

.tt-food-library {
    padding: 45px 0 100px;
}


/* =========================================================
   FILTERS
========================================================= */

.tt-food-filters {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        auto;

    align-items: end;

    gap: 10px;

    padding: 16px;

    background: #111113;

    border: 1px solid rgba(255,255,255,.08);
}


.tt-food-search span,
.tt-food-filter span {
    display: block;

    margin-bottom: 7px;

    color: #676770;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


.tt-food-search input,
.tt-food-filter select {
    width: 100%;

    height: 46px;

    box-sizing: border-box;

    padding: 0 13px;

    color: #eeeeef;

    background: #070708;

    border: 1px solid rgba(255,255,255,.09);

    outline: none;

    font-family: inherit;

    font-size: 12px;
}


.tt-food-search input:focus,
.tt-food-filter select:focus {
    border-color: #5148ff;
}


.tt-food-search input::placeholder {
    color: #55555d;
}


.tt-food-filters .tt-btn {
    height: 46px;

    white-space: nowrap;
}


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

.tt-food-results-bar {
    display: flex;

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

    padding: 16px 2px 20px;
}


.tt-food-results-bar > span {
    color: #686871;

    font-size: 11px;
}


.tt-food-results-bar a {
    color: #9188ff;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


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

.tt-food-grid {
    display: grid;

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

    gap: 14px;
}


/* =========================================================
   FOOD CARD
========================================================= */

.tt-food-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    color: inherit;

    text-decoration: none;

    background: #111113;

    border: 1px solid rgba(255,255,255,.08);

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


.tt-food-card:hover {
    transform: translateY(-3px);

    background: #151518;

    border-color: rgba(91,75,255,.5);
}


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

.tt-food-card-image {
    position: relative;

    height: 205px;

    overflow: hidden;

    background: #18181b;
}


.tt-food-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .35s ease;
}


.tt-food-card:hover .tt-food-card-image img {
    transform: scale(1.04);
}


.tt-food-image-placeholder {
    display: flex;

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

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at center,
            rgba(79,70,255,.15),
            transparent 55%
        );
}


.tt-food-image-placeholder span {
    color: #777781;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.tt-food-featured {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 8px;

    color: #ffffff;

    background: #5148ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   BODY
========================================================= */

.tt-food-card-body {
    padding: 18px 18px 12px;
}


.tt-food-card-top {
    display: flex;

    gap: 8px;

    margin-bottom: 9px;
}


.tt-food-card-top span {
    color: #777781;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .9px;

    text-transform: uppercase;
}


.tt-food-card-top span + span {
    padding-left: 8px;

    border-left: 1px solid #34343a;
}


.tt-food-card h3 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;

    letter-spacing: -.4px;
}


.tt-food-card-body p {
    margin: 8px 0 0;

    color: #777781;

    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   NUTRITION
========================================================= */

.tt-food-card-nutrition {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-top: auto;

    padding: 14px 18px;

    border-top: 1px solid rgba(255,255,255,.06);
}


.tt-food-card-nutrition > div {
    min-width: 0;

    border-right: 1px solid rgba(255,255,255,.06);
}


.tt-food-card-nutrition > div:last-child {
    border-right: 0;
}


.tt-food-card-nutrition strong {
    display: block;

    color: #eeeeef;

    font-size: 12px;
}


.tt-food-card-nutrition span {
    display: block;

    margin-top: 3px;

    color: #5f5f67;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .7px;
}


/* =========================================================
   ARROW
========================================================= */

.tt-food-card-arrow {
    position: absolute;

    top: 12px;
    right: 13px;

    width: 28px;
    height: 28px;

    display: flex;

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

    color: #ffffff;

    background: rgba(7,7,8,.75);

    border: 1px solid rgba(255,255,255,.1);

    font-size: 13px;
}


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

.tt-food-empty {
    grid-column: 1 / -1;

    padding: 80px 30px;

    text-align: center;

    background: #111113;

    border: 1px dashed rgba(255,255,255,.1);
}


.tt-food-empty > div {
    margin-bottom: 10px;

    color: #8178ff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.tt-food-empty h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 22px;
}


.tt-food-empty p {
    margin: 0;

    color: #6e6e77;

    font-size: 12px;
}


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

.tt-food-pagination {
    display: flex;

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

    gap: 15px;

    margin-top: 35px;
}


.tt-food-pagination a {
    display: flex;

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

    width: 38px;
    height: 38px;

    color: #ffffff;

    background: #151518;

    border: 1px solid rgba(255,255,255,.08);

    text-decoration: none;
}


.tt-food-pagination span {
    color: #777781;

    font-size: 11px;
}


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

@media (max-width: 950px) {

    .tt-food-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .tt-food-search {
        grid-column: 1 / -1;
    }


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

}


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

@media (max-width: 650px) {

    .tt-food-page .tt-container {
        width: min(100% - 28px, 600px);
    }


    .tt-food-hero {
        padding: 65px 0;
    }


    .tt-food-hero h1 {
        font-size: 45px;

        letter-spacing: -2px;
    }


    .tt-food-filters {
        grid-template-columns: 1fr;

        padding: 12px;
    }


    .tt-food-search {
        grid-column: auto;
    }


    .tt-food-grid {
        grid-template-columns: 1fr;
    }


    .tt-food-card-image {
        height: 220px;
    }

}


@media (max-width: 420px) {

    .tt-food-card-image {
        height: 190px;
    }


    .tt-food-card-nutrition {
        padding: 12px;
    }

}