/* =========================================================
   TK PRODUCTS v1.0
   ========================================================= */

.tk-products {
    position: relative;

    padding: 56px 0;

    background: #ffffff;
}

/* =========================================================
   WIDE CONTENT AREA
   Đồng bộ với TK Categories
   ========================================================= */

.tk-products > .tk-container {
    width: calc(100% - 80px);
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.tk-products__heading {
    position: relative;

    display: block;

    max-width: 760px;

    margin: 0 auto 28px;

    text-align: center;
}

.tk-products__heading-content {
    max-width: 760px;
    margin: 0 auto;
}

.tk-products__eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #9a1f20;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: .12em;
}

.tk-products__heading h2 {
    margin: 0;

    color: #153d34;

    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -.025em;
}

.tk-products__heading p {
    margin: 13px auto 0;

    color: #68746f;

    font-size: 16px;
    line-height: 1.6;
}

.tk-products__all-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    flex: 0 0 auto;

    color: #9a1f20;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none;
}

.tk-products__all-link span {
    font-size: 18px;

    transition: transform .2s ease;
}

.tk-products__all-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   CAROUSEL
   ========================================================= */

.tk-products__carousel {
    position: relative;

    overflow: hidden;
}

.tk-products__track {
    display: flex;

    gap: 18px;

    transition: transform .35s ease;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.tk-product-card {
    flex: 0 0 calc((100% - 54px) / 4);

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(21, 61, 52, .09);

    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(21, 61, 52, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.tk-product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(21, 61, 52, .10);
}


/* =========================================================
   IMAGE
   ========================================================= */

.tk-product-card__image {
    display: block;

    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #f0f2ef;
}

.tk-product-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.tk-product-card:hover .tk-product-card__image img {
    transform: scale(1.035);
}


/* =========================================================
   BODY
   ========================================================= */

.tk-product-card__body {
    display: flex;
    flex-direction: column;

    min-height: 150px;

    padding: 16px 18px 18px;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.tk-product-card__category {
    margin-bottom: 8px;

    color: #9a1f20;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .06em;
}


/* =========================================================
   TITLE
   ========================================================= */

.tk-product-card__title {
    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 750;
}

.tk-product-card__title a {
    color: #153d34;

    text-decoration: none;
}


/* =========================================================
   BOTTOM
   ========================================================= */

.tk-product-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid rgba(21, 61, 52, .08);
}

.tk-product-card__price {
    color: #153d34;

    font-size: 14px;
    font-weight: 750;
}

.tk-product-card__price .amount {
    color: #9a1f20;

    font-weight: 800;
}

.tk-product-card__link {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    color: #9a1f20;

    font-size: 12px;
    font-weight: 750;

    white-space: nowrap;

    text-decoration: none;
}

.tk-product-card__link span {
    font-size: 16px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.tk-products__nav {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(21, 61, 52, .12);
    border-radius: 50%;

    background: #ffffff;

    color: #153d34;

    font-size: 18px;

    box-shadow: 0 5px 18px rgba(21, 61, 52, .10);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .2s ease,
        color .2s ease;
}

.tk-products__nav:hover {
    background: #153d34;
    color: #ffffff;
}

.tk-products__nav--prev {
    left: 12px;
}

.tk-products__nav--next {
    right: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .tk-product-card {
        flex-basis: calc((100% - 36px) / 3);
    }

}


@media (max-width: 991px) {

    .tk-products {
        padding: 40px 0;
    }

    .tk-products__heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .tk-product-card {
        flex-basis: calc((100% - 18px) / 2);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .tk-products {
        padding: 32px 0;
    }

    .tk-products__heading h2 {
        font-size: 28px;
    }

    .tk-products__heading p {
        font-size: 14px;
    }

    .tk-product-card {
        flex-basis: 100%;
    }

    .tk-product-card__image {
        height: 200px;
    }

    .tk-products__nav {
        width: 38px;
        height: 38px;
    }

}