/* =========================================================
   THULTHUL — FOOD DETAIL
========================================================= */

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

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


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

.tt-food-detail-hero {
    padding: 30px 0 38px;

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

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


/* =========================================================
   BACK LINK
========================================================= */

.tt-food-back {
    display: inline-block;

    margin-bottom: 22px;

    color: #777781;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition: color .2s ease;
}

.tt-food-back:hover {
    color: #ffffff;
}


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

.tt-food-hero-grid {
    display: grid;

    grid-template-columns:
        280px
        minmax(0, 1fr);

    align-items: center;

    gap: 45px;
}


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

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

    width: 100%;
    height: 160px;

    overflow: hidden;

    background: #151518;

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

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

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}

.tt-food-detail-image:hover img {
    transform: scale(1.03);
}


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

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

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

    width: 100%;
    height: 100%;

    color: #777781;

    background:
        radial-gradient(
            circle,
            rgba(79, 70, 255, .17),
            transparent 55%
        );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.tt-food-detail-featured {
    position: absolute;

    top: 10px;
    left: 10px;

    padding: 6px 8px;

    color: #ffffff;

    background: #5148ff;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1px;
}


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

.tt-food-detail-info {
    min-width: 0;
}


/* =========================================================
   TAGS
========================================================= */

.tt-food-detail-tags {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 10px;
}

.tt-food-detail-tags span {
    color: #8c84ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.tt-food-detail-tags span + span {
    padding-left: 9px;

    border-left: 1px solid #38383e;
}


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

.tt-food-detail-info h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1;

    letter-spacing: -1.8px;
}


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

.tt-food-detail-description {
    max-width: 620px;

    margin: 14px 0 20px;

    color: #8a8a93;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   SERVING
========================================================= */

.tt-food-serving {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding-top: 13px;

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

.tt-food-serving span {
    color: #64646c;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.1px;
}

.tt-food-serving strong {
    color: #eeeeef;

    font-size: 12px;
}


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

.tt-food-nutrition-section {
    padding: 65px 0 85px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.tt-food-section-heading {
    margin-bottom: 24px;
}

.tt-food-section-heading > span {
    display: block;

    margin-bottom: 7px;

    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.tt-food-section-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 32px;

    line-height: 1.05;

    letter-spacing: -1.3px;
}

.tt-food-section-heading p {
    margin: 8px 0 0;

    color: #707079;

    font-size: 11px;
}


/* =========================================================
   MACROS
========================================================= */

.tt-food-macro-grid {
    display: grid;

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

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

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

    min-height: 135px;

    padding: 22px;

    background: #111113;

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

.tt-food-macro-card:last-child {
    border-right: 0;
}

.tt-food-macro-card > span {
    display: block;

    color: #6d6d75;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;
}

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

    margin-top: 17px;

    color: #ffffff;

    font-size: 34px;

    line-height: 1;

    letter-spacing: -1.3px;
}

.tt-food-macro-card small {
    display: block;

    margin-top: 5px;

    color: #777781;

    font-size: 8px;

    font-weight: 800;
}


/* =========================================================
   CALORIES HIGHLIGHT
========================================================= */

.tt-food-macro-card.calories {
    background:
        linear-gradient(
            135deg,
            rgba(79, 70, 255, .18),
            #111113 65%
        );
}

.tt-food-macro-card.calories > span {
    color: #9189ff;
}


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

.tt-food-secondary-grid {
    display: grid;

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

    gap: 8px;

    margin-top: 8px;
}

.tt-food-secondary-card {
    padding: 18px 20px;

    background: #111113;

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

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

    margin-bottom: 7px;

    color: #65656d;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.1px;
}

.tt-food-secondary-card strong {
    color: #dddddf;

    font-size: 16px;
}


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

.tt-food-description-block {
    max-width: 820px;

    margin-top: 60px;

    padding-top: 30px;

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

.tt-food-description-block > span {
    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.tt-food-description-block h2 {
    margin: 9px 0 12px;

    color: #ffffff;

    font-size: 23px;
}

.tt-food-description-block p {
    margin: 0;

    color: #808089;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   RELATED FOODS
========================================================= */

.tt-related-foods {
    padding: 65px 0 90px;

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

.tt-related-food-grid {
    display: grid;

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

    gap: 12px;
}


/* =========================================================
   RELATED CARD
========================================================= */

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

    display: flex;

    min-width: 0;

    color: inherit;

    background: #111113;

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

    text-decoration: none;

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

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

    background: #151518;

    border-color: rgba(79, 70, 255, .5);
}


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

.tt-related-food-image {
    width: 120px;
    min-width: 120px;

    min-height: 140px;

    background: #18181b;

    overflow: hidden;
}

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

    display: block;

    object-fit: cover;
}

.tt-related-food-image span {
    display: flex;

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

    width: 100%;
    height: 100%;

    color: #66666e;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


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

.tt-related-food-body {
    min-width: 0;

    padding: 18px 16px;
}

.tt-related-food-body > span {
    color: #8178ff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}

.tt-related-food-body h3 {
    margin: 6px 0 17px;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.2;
}

.tt-related-food-body div {
    display: flex;

    align-items: baseline;

    gap: 4px;

    flex-wrap: wrap;
}

.tt-related-food-body div strong {
    color: #dddddf;

    font-size: 10px;
}

.tt-related-food-body div small {
    margin-right: 7px;

    color: #5e5e66;

    font-size: 7px;

    font-weight: 800;
}


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

.tt-related-arrow {
    position: absolute;

    top: 10px;
    right: 10px;

    color: #8178ff;

    font-size: 13px;
}


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

@media (max-width: 900px) {

    .tt-food-hero-grid {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        gap: 30px;
    }

    .tt-food-detail-image {
        height: 140px;
    }

    .tt-food-detail-info h1 {
        font-size: 42px;
    }

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

    .tt-food-macro-card:nth-child(2) {
        border-right: 0;
    }

    .tt-food-macro-card:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

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

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


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

@media (max-width: 650px) {

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

    .tt-food-detail-hero {
        padding: 25px 0 35px;
    }

    .tt-food-back {
        margin-bottom: 18px;
    }

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

        gap: 22px;
    }

    .tt-food-detail-image {
        height: 180px;
    }

    .tt-food-detail-info h1 {
        font-size: 40px;

        letter-spacing: -1.5px;
    }

    .tt-food-detail-description {
        margin: 12px 0 18px;

        font-size: 13px;
    }

    .tt-food-nutrition-section {
        padding: 50px 0 65px;
    }

    .tt-food-section-heading h2 {
        font-size: 29px;
    }

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

    .tt-food-macro-card {
        min-height: auto;

        padding: 20px;

        border-right: 0;

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

    .tt-food-macro-card:last-child {
        border-bottom: 0;
    }

    .tt-food-macro-card strong {
        margin-top: 13px;

        font-size: 30px;
    }

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

    .tt-food-secondary-card {
        padding: 16px;
    }

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


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

@media (max-width: 420px) {

    .tt-food-detail .tt-container {
        width: calc(100% - 24px);
    }

    .tt-food-detail-image {
        height: 155px;
    }

    .tt-food-detail-info h1 {
        font-size: 34px;
    }

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

    .tt-related-food-image {
        width: 105px;
        min-width: 105px;
    }
}