:root {
    --home-brown: #4f301f;
    --home-orange: #b86f36;
    --home-cream: #f8eee6;
    --home-card: #fffaf6;
}

.home-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 34%, rgba(222, 168, 119, 0.08), transparent 22%),
        #fcf7f4;
}

.home-page .header-box {
    width: min(1200px, calc(100% - 40px));
}

.home-page .header-container {
    border-bottom: 1px solid #f0e8e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-page .lang-switch {
    height: 36px;
    margin-left: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.mobile-nav-toggle {
    display: none;
}

@media (min-width: 721px) {
    .home-page .header-box {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    }

    .home-page .header-box > a {
        grid-column: 1;
        justify-self: start;
    }

    .home-page .header-nav-links {
        grid-column: 2;
        justify-self: center;
        align-items: center;
    }
}

.home-page .banner-container {
    min-width: 0;
    padding-top: 84px;
    background: #f4e8de;
}

.home-page .banner-image {
    display: block;
    width: 100%;
    aspect-ratio: 1872 / 840;
    object-fit: cover;
}

.home-page .banner-container .left-box {
    top: auto;
    bottom: 12%;
    left: max(5%, calc((100% - 1200px) / 2));
    transform: none;
}

.home-page .banner-container .order-button {
    display: inline-flex;
    min-width: 150px;
    min-height: 46px;
    margin: 0;
    padding: 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #855337, #60351f);
    box-shadow: 0 12px 28px rgba(75, 43, 25, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .banner-container .order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(75, 43, 25, 0.28);
}

.category-products,
.best-sellers {
    width: min(1200px, calc(100% - 40px));
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
}

.teas-type-list {
    display: flex;
    margin-top: 20px;
    padding: 0;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    overflow: hidden;
    list-style: none;
}

.teas-type-list li {
    display: flex;
    width: 142px;
    height: auto;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    border: 1px solid #f0e4da;
    border-radius: 12px;
    background: var(--home-card);
    box-shadow: 0 8px 24px rgba(91, 59, 42, 0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teas-type-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(91, 59, 42, 0.1);
}

.teas-type-list li img {
    display: block;
    width: 100%;
    height: auto;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 34px;
    margin-bottom: 48px;
    padding: 0;
    gap: 18px;
}

.category-products li {
    width: 100%;
    gap: 0;
    border: 1px solid #f0e4da;
}

.category-products li img {
    width: 100%;
    aspect-ratio: 1 / 1.45;
    object-fit: contain;
    background: linear-gradient(180deg, #faf1ea, #f8ece3);
}

.category-products li div,
.best-sellers .teas-type-list div {
    width: 100%;
    padding: 13px 11px 10px;
    background: var(--home-card);
}

.category-products li span {
    display: block;
    width: 100%;
    min-height: 38px;
    color: #49352b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.best-sellers {
    margin-bottom: 0;
    padding-bottom: 72px;
}

.best-sellers h2 {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    color: var(--home-brown);
    font-size: 24px;
}

.best-sellers .view-all-link {
    color: #82462f;
    font-size: 14px;
    text-decoration: none;
}

.best-sellers .teas-type-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 0;
    padding: 10px 0;
    gap: 26px;
}

.best-sellers .teas-type-list li {
    width: 100%;
    gap: 0;
}

.best-sellers .teas-type-list li > img {
    aspect-ratio: 1 / 1.48;
    object-fit: contain;
    background: linear-gradient(180deg, #faf2eb, #f8ede4);
}

.best-sellers .teas-type-list span {
    display: block;
    min-height: 40px;
    color: #35302e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.best-sellers .teas-type-list strong {
    display: flex;
    height: 30px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    color: #5c3826;
    font-size: 19px;
}

@media (max-width: 1024px) {
    .category-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .best-sellers .teas-type-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .home-page .footer-box {
        width: calc(100% - 40px);
        margin: auto;
    }
}

@media (max-width: 720px) {
    :root {
        --site-header-height: 66px;
    }

    .home-page {
        padding-top: 0;
    }

    .home-page .banner-container {
        padding-top: 66px;
    }

    .home-page .header-box {
        position: relative;
        width: calc(100% - 28px);
    }

    .home-page .header-box > a .logo {
        height: 58px !important;
    }

    .mobile-nav-toggle {
        display: flex;
        position: relative;
        z-index: 3;
        width: 42px;
        height: 42px;
        padding: 10px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border-radius: 50%;
        background: #f8eee7;
        cursor: pointer;
    }

    .mobile-nav-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #68432f;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-nav-toggle.is-open span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.is-open span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .home-page .header-nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        width: min(280px, calc(100vw - 28px));
        padding: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        border: 1px solid #eee1d7;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(76, 48, 32, 0.16);
    }

    .home-page .header-nav-links.is-open {
        display: flex;
    }

    .home-page .header-nav-links a {
        padding: 11px 12px;
        border-radius: 9px;
        font-size: 15px;
    }

    .home-page .header-nav-links a:hover,
    .home-page .header-nav-links-active {
        background: #fbf1e9;
    }

    .home-page .header-nav-links-active::before {
        display: none;
    }

    .home-page .lang-switch {
        width: 100%;
        height: 42px;
        margin: 6px 0 0;
        padding: 0 10px;
        border: 1px solid #eadbd0;
        border-radius: 9px;
        color: #563827;
        background: #fff;
    }

    .home-page .banner-image {
        height: clamp(260px, 72vw, 430px);
        aspect-ratio: auto;
        object-position: 58% center;
    }

    .home-page .banner-container .left-box {
        display: none;
    }

    .category-products,
    .best-sellers {
        width: calc(100% - 28px);
    }

    .category-products {
        display: flex;
        margin-top: 24px;
        margin-bottom: 38px;
        padding: 2px 0 12px;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

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

    .category-products li {
        flex: 0 0 33vw;
        max-width: 190px;
        scroll-snap-align: start;
    }

    .category-products li img {
        aspect-ratio: 1 / 1.25;
    }

    .best-sellers {
        padding-bottom: 48px;
    }

    .best-sellers h2 {
        font-size: 21px;
    }

    .best-sellers .teas-type-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .best-sellers .teas-type-list li > img {
        aspect-ratio: 1 / 1.2;
    }

    .best-sellers .teas-type-list span {
        min-height: 34px;
        font-size: 12px;
    }

    .best-sellers .teas-type-list strong {
        height: 26px;
        font-size: 14px;
    }

    .best-sellers .teas-type-list div {
        padding: 9px 7px 7px;
    }

    .best-sellers .icons.add {
        margin-right: -28px;
        transform: scale(0.3);
    }

    .home-page .footer-container {
        position: relative;
        padding: 32px 18px 0;
        border-top: 1px solid #eee0d5;
        background:
            radial-gradient(circle at 50% 0, rgba(226, 178, 136, 0.12), transparent 42%),
            #fffdfb;
        box-shadow: 0 -8px 30px rgba(91, 59, 42, 0.05);
    }

    .home-page .footer-box {
        width: 100%;
        align-items: center;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .home-page .footer-logo {
        height: 78px !important;
    }

    .home-page .social-links {
        display: grid;
        grid-template-columns: repeat(6, 36px);
        width: auto;
        margin: 2px 0 4px;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .home-page .social-link,
    .home-page .social-link2.telegram,
    .home-page .social-link2.viber {
        width: 36px;
        height: 36px;
        margin: 0;
        border-radius: 50%;
        transform: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .home-page .social-link {
        background-size: 691.2px 460.8px;
    }

    .home-page .social-link.instagram {
        background-position: -225px -171px;
    }

    .home-page .social-link.facebook {
        background-position: -490.5px -171px;
    }

    .home-page .social-link.tiktok {
        background-position: -292.5px -171px;
    }

    .home-page .social-link.whatsapp {
        background-position: -360px -171px;
    }

    .home-page .social-link2.telegram,
    .home-page .social-link2.viber {
        background-color: transparent;
    }

    .home-page .social-link:hover,
    .home-page .social-link2:hover {
        box-shadow: 0 6px 14px rgba(91, 59, 42, 0.12);
        transform: translateY(-2px);
    }

    .home-page .contant-txt {
        width: min(360px, 100%);
        padding: 18px 16px;
        border: 1px solid #f0e3d9;
        border-radius: 16px;
        background: #fff8f2;
        color: #6d4b39;
        line-height: 1.75;
    }

    .home-page .contant-txt .title {
        margin-bottom: 9px;
        color: #4f301f;
        font-size: 17px;
    }

    .home-page .contant-txt a {
        color: #7c4b32;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    .home-page .footer-txt {
        width: min(360px, 100%);
        margin: 22px auto 0;
        padding: 18px 0 22px;
        border-top: 1px solid #eee2d9;
        color: #957b6c;
        font-size: 12px;
        line-height: 1.6;
    }
}

@media (max-width: 380px) {
    .category-products li {
        flex-basis: 52vw;
    }

    .best-sellers .teas-type-list {
        gap: 8px;
    }

    .best-sellers .teas-type-list div {
        padding: 8px 6px 6px;
    }
}
