/*
Theme Name: Avantex Education
Theme URI: https://wpfrank.com/wordpress-themes/avantex/
Template: avantex
Author: WP Frank
Author URI: https://wpfrank.com/
Description: Avantex is made to be the fastest. with the latest mechanisms running in advanced website designs, with high-quality code optimized for performance. the theme perfectly suited for Business, Blog, Business Promotion, Market, Sports, Electrician, Industries, Newspaper, Freelancer, Lawyer, Architect, Appointment, Cooming Soon, Posts Website, Education, Gaming Hub, School, SEO, Medical, Construction, Wedding, Music, Food, Cafe, Hotel, Fashion, Online Shop, Interior Design, Building Design, Decoration, Construction, Corporate, Agency, Pet Care, Beauty &amp; Spa Salons, Photography, Gym Fitness, Travel Agency, and approx all category frontend can be easily developed with the supported environment, You will have lots of options to consider. This theme supports the best Elementor page builder to create, edit and updates page designs as per the requirement. As well as it has some exotic features like customization and clean code, advanced typography, sticky menu, logo upload, header image, Latest Bootstrap framework, built with SEO in mind, and theme info area besides being Mobile-ready, also translation ready (WPML, Polylang) and it's built to be beautiful on all screen sizes with multiple homepage sections like slider, service, info, callout, testimonial.Theme Avantex is fully responsive and compatible with popular WordPress plugins like Page Builder, Beaver Builder, Brizy, Visual Composer, Divi, SiteOrigin, Gutenberg, Block-Enabled, WooCommerce, WPML, Yoast SEO, Jetpack, Contact Form 7, Mailchimp for WordPress, bbPress, Demo Importer, WPForms and more. Whether you’re running an online shopping store or setting up your website, Basically Avantex fulfills approx all your website needs, guiding you through the digital landscape and ensuring you never go astray.
Tags: one-column,two-columns,four-columns,right-sidebar,flexible-header,custom-background,custom-header,custom-menu,editor-style,featured-images,footer-widgets,post-formats,theme-options,threaded-comments,rtl-language-support,translation-ready,full-width-template,custom-logo,blog,e-commerce,portfolio
Version: 0.0.8
Updated: 2024-04-01
Tested up to: 6.8
Requires PHP: 5.4
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: avantex-education
*/

.service .post {
    border-radius: 23px 23px 23px 23px !important;
border-width: 10px 10px 10px 10px !important;
border-color: #FADE60 !important;
border-style: solid !important;
}

.portfolio .portfolio-thumbnail figcaption {
padding: 8px 15px 7px !important;
max-width: 337px !important;
bottom: -48px !important;
}

.site-content .blog .post .entry-header .entry-title a {
    color: var(--thm-light);
}

.blog-grid .entry-content a {
    color: var(--thm-light);
}
/*font*/
body .caption-content h2.title, h2.section-title, h1.section-title, .callout-inner-txt, b {

font-family: 'Refault';
}

/*font*/

/* SUB MENU */
.primary-menu ul.sub-menu,
.primary-menu ul.children {
    background-color: var(--thm-black) !important;
    padding: 0px;
    /* border-radius: 0.5rem; */
    /* overflow: hidden; */
    /* width: 100%; */
    /* display: flex; */
    /* flex-direction: column; */
}

.footer-custom-china {
    background: #000;
    color: #fff;
    padding: 78px 0 56px;
    position: relative;
}

.footer-custom-china a {
    color: #fff;
}

.footer-custom-china__inner {
    max-width: 1240px;
}

.footer-custom-china__grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.15fr;
    align-items: start;
}

.footer-custom-china__title,
.footer-custom-china__heading {
    color: #fff;
    font-family: 'Refault', 'Jost', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 28px;
}

.footer-custom-china__title {
    font-size: 30px;
}

.footer-custom-china__heading {
    font-size: 24px;
}

.footer-custom-china__text,
.footer-custom-china__contact li,
.footer-custom-china__links a {
    color: rgba(255, 255, 255, 0.96);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

.footer-custom-china__text {
    margin: 0;
    max-width: 360px;
}

.footer-custom-china__links,
.footer-custom-china__contact,
.footer-custom-china__social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-custom-china__links li {
    margin-bottom: 7px;
}

.footer-custom-china__links a {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-custom-china__links a:hover,
.footer-custom-china__links a:focus {
    color: #7ee06b;
    transform: translateX(3px);
}

.footer-custom-china__contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-custom-china__contact a {
    text-decoration: none;
}

.footer-custom-china__icon {
    color: #ff2020;
    flex: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 2px;
}

.footer-custom-china__social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.footer-custom-china__social a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 28px;
    height: 52px;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    width: 52px;
}

.footer-custom-china__social a:hover,
.footer-custom-china__social a:focus {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.footer-custom-china__social .is-facebook {
    background: #3052a3;
}

.footer-custom-china__social .is-youtube {
    background: #de1111;
}

.footer-custom-china__social .is-linkedin {
    background: #4864ed;
}

.footer-custom-china__social .is-whatsapp {
    background: #7ecb66;
}

.footer-custom-china__social .is-tiktok {
    background: #111;
}

.footer-custom-china__social .is-instagram {
    background: #8f2cb1;
}

@media (max-width: 1199px) {
    .footer-custom-china__grid {
        gap: 36px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-custom-china__text {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .footer-custom-china {
        padding: 56px 0 42px;
    }

    .footer-custom-china__grid {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .footer-custom-china__title {
        font-size: 26px;
    }

    .footer-custom-china__heading {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .footer-custom-china__text,
    .footer-custom-china__contact li,
    .footer-custom-china__links a {
        font-size: 16px;
    }
}

.home-products-section {
    background: #f3f5f8;
    padding: 78px 0 54px;
}

.home-products-section .section-header {
    margin-bottom: 36px;
}

.home-products-section .section-subtitle {
    color: #6b7280;
}

.home-products-section .section-title {
    color: #111827;
}

.home-product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product-card:hover,
.home-product-card:focus-within {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

.home-product-card__image {
    background: #f8fafc;
    display: block;
    padding: 16px;
}

.home-product-card__image img {
    display: block;
    height: 220px;
    margin: 0 auto;
    object-fit: contain;
    width: 100%;
}

.home-product-card__body {
    padding: 18px 18px 20px;
}

.home-product-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.home-product-card__title a {
    color: #0f172a;
    text-decoration: none;
}

.home-product-card__price {
    color: #059669;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
}

.home-product-card__price del {
    color: #94a3b8;
    font-weight: 500;
}

/* 价格 + 购物车按钮的横向行 */
.home-product-card__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* 加入购物车 / 选择规格 按钮 */
.home-product-card__add-to-cart {
    align-items: center;
    background: var(--thm-base, #47cf73);
    border: none;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.home-product-card__add-to-cart:hover,
.home-product-card__add-to-cart:focus {
    background: #38b558;
    color: #fff;
    transform: translateY(-1px);
}

/* 变体商品改为深色 */
.home-product-card__add-to-cart--select {
    background: #475569;
}

.home-product-card__add-to-cart--select:hover,
.home-product-card__add-to-cart--select:focus {
    background: #334155;
}

/* 加载中状态（WooCommerce AJAX） */
.home-product-card__add-to-cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.home-product-card__btn {
    background: #111827;
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 18px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.home-product-card__btn:hover,
.home-product-card__btn:focus {
    background: #059669;
    color: #fff;
}

@media (max-width: 991px) {
    .home-products-section {
        padding: 64px 0 44px;
    }

    .home-product-card__image img {
        height: 190px;
    }
}

@media (max-width: 767px) {
    .home-products-section {
        padding: 56px 0 36px;
    }

    .home-product-card__image img {
        height: 170px;
    }

    .home-product-card__title {
        font-size: 16px;
    }
}

/* ── 导航栏购物车图标 ─────────────────────────────────────────────────────────── */

/* 与 search-toggle 保持外观一致 */
.cart-toggle {
    color: inherit;
    text-decoration: none;
}

.cart-toggle:hover .svg-icon,
.cart-toggle:hover .toggle-text {
    color: var(--thm-primary, #47cf73);
}

/* SVG 尺寸与 search toggle 一致（参考主题 .search-toggle svg） */
.cart-toggle .svg-icon {
    display: block;
    height: 1.5rem;
    max-width: 2.3rem;
    width: 1.3rem;
}

/* 图标容器：position:relative 使徽章绝对定位相对它计算 */
.cart-icon-box {
    display: block;
    overflow: visible !important;
    position: relative;
    width: 1.3rem;
    height: 1.5rem;
}

/* 数量徽章 */
.cart-toggle .toggle-text {
    text-align: center;
}

.moarval-cart-count {
    align-items: center;
    background: var(--thm-primary, #47cf73) !important;
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex;
    font-size: 10px !important;
    font-weight: 700 !important;
    height: 16px;
    justify-content: center;
    line-height: 16px !important;
    min-width: 16px;
    padding: 0 3px;
    pointer-events: none;
    position: absolute;
    right: -8px;
    top: -6px;
    text-align: center;
    text-indent: 0;
    white-space: nowrap;
    z-index: 1;
}

/* 购物车为空时隐藏徽章 */
.moarval-cart-count.is-hidden {
    display: none !important;
}

/* 移动端隐藏（与搜索按钮断点一致） */
@media (max-width: 999px) {
    .cart-toggle-wrapper {
        display: none;
    }
}
