/* ============================================================
   Fussa Kigio — 站点优化样式
   ============================================================ */

/* --- 全站背景纹理 --- */
body {
    background-color: #f5f5f0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.015) 2px,
            rgba(0, 0, 0, 0.015) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(200, 0, 0, 0.02) 20px,
            rgba(200, 0, 0, 0.02) 22px
        ),
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%
        );
    background-attachment: fixed;
}

/* 内容区域半透明白底 */
.site-content,
.ast-container,
.content-area {
    background-color: rgba(255, 255, 255, 0.92);
}

/* 封面区域保持不透明 */
.wp-block-cover,
.wp-block-group.has-background {
    background-color: inherit !important;
}

/* --- 全局排版优化 --- */
.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.entry-content p {
    line-height: 1.75;
    color: #334155;
}

/* --- Header 间距补偿（Logo固定定位会覆盖顶部区域） --- */
.ast-primary-header-bar {
    padding-top: 8px;
}

/* --- 按钮全局优化 --- */
.wp-block-button__link {
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* --- WooCommerce 产品卡片 --- */
.woocommerce ul.products li.product,
.wc-block-grid__product {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a2e;
}

.woocommerce ul.products li.product .price {
    color: #cc0000 !important;
    font-weight: 700;
    font-size: 16px;
}

/* --- 产品详情页 --- */
.single-product .product_title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #cc0000;
}

/* --- 页脚法律链接 --- */
.fk-footer-legal {
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.fk-footer-legal a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.fk-footer-legal a:hover {
    color: #cc0000;
    text-decoration: underline;
}
.fk-footer-sep {
    color: #ccc;
    margin: 0 8px;
}

/* --- 页脚版权 --- */
.fk-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 4px 0 12px;
}

/* --- 页脚语言切换器 --- */
.fk-lang-switcher {
    text-align: center;
    padding: 6px 0 16px;
    font-size: 13px;
}
.fk-lang-item {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 4px;
    border-radius: 3px;
    color: #888;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.fk-lang-item:hover {
    border-color: #ccc;
    color: #333;
}
.fk-lang-active {
    background: #cc0000;
    color: #fff !important;
    border-color: #cc0000;
    font-weight: 600;
}

/* --- 首页模块 --- */
.fk-hero .wp-block-search__input {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
}

.fk-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.fk-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #cc0000;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* About Us 表格样式 */
.fk-about-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.fk-about-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
.fk-about-table td:first-child {
    font-weight: 600;
    color: #475569;
    width: 160px;
}
.fk-about-table td:last-child {
    color: #1e293b;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .fk-footer-legal {
        font-size: 12px;
        line-height: 2;
    }
    .fk-footer-sep {
        margin: 0 4px;
    }
    .fk-lang-switcher {
        font-size: 12px;
    }
    .fk-section-title {
        font-size: 22px;
    }
    .single-product .product_title {
        font-size: 22px;
    }
    .fk-about-table td:first-child {
        width: 100px;
    }
}

/* ========== CHECKOUT PAYMENT GROUPING ========== */
.payment-group-header {
    font-size: 15px;
    font-weight: 700;
    color: #003087;
    padding: 10px 0 4px;
    border-bottom: 2px solid #003087;
    margin: 16px 0 8px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    width: 100%;
}
.payment-group-header.stripe-header {
    color: #635bff;
    border-bottom-color: #635bff;
}
.payment-group-header .group-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.paypal-icon { background: #003087; }
.stripe-icon { background: #635bff; }
li.wc_payment_method.payment_method_ppcp-applepay,
li.wc_payment_method.payment_method_ppcp-googlepay {
    padding-left: 18px !important;
    border-left: 3px solid #e0e0e0 !important;
    margin-left: 6px !important;
    background: #f9f9f9 !important;
    border-radius: 0 4px 4px 0 !important;
}
li.wc_payment_method.payment_method_ppcp-gateway {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-bottom: 4px !important;
    background: #fcfcff !important;
}
li.wc_payment_method.payment_method_stripe {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-top: 4px !important;
    background: #fcfcff !important;
}
.payment-group-divider {
    height: 0;
    margin: 14px 0 !important;
    border-top: 1px solid #ddd;
    position: relative;
    list-style: none !important;
    width: 100%;
}
.payment-group-divider::after {
    content: "or";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

/* ========== HEADER V2: B2B NAVIGATION POLISH ========== */
body.ast-desktop #masthead,
body.ast-desktop .site-header {
    background: #ffffff !important;
}

body.ast-desktop .ast-primary-header-bar,
body.ast-desktop .ast-primary-header-bar.fk-header-dark {
    min-height: 72px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.ast-desktop .site-primary-header-wrap.ast-container {
    max-width: 1240px;
    min-height: 72px;
    padding-left: 24px;
    padding-right: 24px;
    background: transparent !important;
}

body.ast-desktop .site-branding,
body.ast-desktop .ast-site-identity {
    padding: 0 !important;
}

body.ast-desktop .site-title a {
    color: #15182d !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

body.ast-theme-transparent-header #masthead .site-title a,
body.ast-theme-transparent-header .ast-primary-header-bar .site-title a,
body.ast-theme-transparent-header .site-header .site-title a,
#masthead .site-title a,
#masthead .site-title a:visited {
    color: #15182d !important;
}

body.ast-desktop .main-header-menu > .menu-item > .menu-link {
    min-height: 72px;
    padding: 0 14px !important;
    color: #273044 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

body.ast-desktop .main-header-menu > .menu-item:hover > .menu-link,
body.ast-desktop .main-header-menu > .current-menu-item > .menu-link,
body.ast-desktop .main-header-menu > .current-menu-ancestor > .menu-link {
    color: #c40000 !important;
}

body.ast-desktop .main-header-menu .sub-menu {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden;
}

body.ast-desktop .main-header-menu .sub-menu .menu-link {
    color: #273044 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #ffffff !important;
}

body.ast-desktop .main-header-menu .sub-menu .menu-link:hover {
    color: #c40000 !important;
    background: #f8fafc !important;
}

body.ast-desktop .fk-header-lang,
body.ast-desktop .fk-hlang-switcher,
body.ast-desktop .fk-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.ast-desktop .fk-hlang-item {
    min-width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 9px !important;
    border-radius: 8px !important;
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}

body.ast-desktop .fk-hlang-item:hover {
    color: #c40000 !important;
    background: #fff5f5 !important;
}

body.ast-desktop .fk-hlang-active {
    color: #ffffff !important;
    background: #c40000 !important;
    border-color: #c40000 !important;
}

body.ast-desktop .fk-header-account-btn {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

body.ast-desktop .fk-header-account-btn:hover {
    background: #c40000 !important;
    color: #ffffff !important;
}

body.ast-desktop .ast-site-header-cart .ast-cart-menu-wrap,
body.ast-desktop .ast-site-header-cart a {
    color: #111827 !important;
}

@media (max-width: 1024px) {
    #masthead,
    #ast-mobile-header,
    .site-header,
    .ast-mobile-header-wrap,
    .ast-primary-header-bar,
    .ast-primary-header-bar.fk-header-dark {
        min-height: 64px !important;
        padding: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
    }

    .site-primary-header-wrap.ast-container {
        min-height: 64px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-title a {
        color: #15182d !important;
        font-size: 20px !important;
        font-weight: 800 !important;
    }

    .ast-theme-transparent-header #masthead .site-title a,
    .ast-theme-transparent-header .site-header .site-title a,
    #masthead .site-title a,
    #masthead .site-title a:visited {
        color: #15182d !important;
    }

    .ast-mobile-menu-trigger-minimal .mobile-menu-toggle-icon,
    .ast-button-wrap .menu-toggle {
        color: #15182d !important;
    }
}

/* ========== HOME HERO: REMOVE DUPLICATED ASTRA PAGE TITLE ========== */
body.home.page-id-226 .entry-header.ast-no-thumbnail,
body.home.page-id-226 article#post-226 > .entry-header,
body.home article.ast-article-single > .entry-header,
body.home .site-main article > .entry-header,
body.home .ast-single-entry-banner,
body.home.ast-normal-title-enabled article > .entry-header {
    display: none !important;
}

body.home.page-id-226 .entry-content,
body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home.page-id-226 #primary,
body.home #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ========== HOME HERO: LANGUAGE TYPE TUNING ========== */
html[lang^="zh"] body.home.page-id-226 .wp-block-cover__inner-container,
html[lang^="ja"] body.home.page-id-226 .wp-block-cover__inner-container {
    max-width: 1120px !important;
}

html[lang^="zh"] body.home.page-id-226 .wp-block-cover__inner-container h1 {
    font-size: clamp(2.25rem, 3.35vw, 3rem) !important;
    line-height: 1.22 !important;
}

html[lang^="ja"] body.home.page-id-226 .wp-block-cover__inner-container h1 {
    font-size: clamp(2.15rem, 3.25vw, 3rem) !important;
    line-height: 1.24 !important;
}

/* ========== ASTRA HEADER STABILIZER: FULL-WIDTH WHITE HEADER ========== */
html body #page #masthead,
html body .site-header,
html body .ast-primary-header-bar,
html body .main-header-bar,
html body.ast-theme-transparent-header #masthead,
html body.ast-theme-transparent-header .site-header,
html body.ast-theme-transparent-header .ast-primary-header-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html body .ast-builder-grid-row-container,
html body .site-header .ast-container,
html body .site-primary-header-wrap.ast-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
}

html body .main-header-menu .menu-link,
html body .ast-builder-menu .main-navigation > ul > li > a,
html body .site-title a,
html body #masthead .site-title a,
html body.ast-theme-transparent-header #masthead .site-title a,
html body.ast-theme-transparent-header #masthead .main-header-menu .menu-link {
    color: #111827 !important;
}

html body .main-header-menu .menu-item:hover > .menu-link,
html body .main-header-menu .current-menu-item > .menu-link,
html body .main-header-menu .current-menu-ancestor > .menu-link {
    color: #c40000 !important;
}

html body .ast-header-html,
html body .ast-builder-layout-element,
html body .site-header-primary-section-right {
    display: flex !important;
    align-items: center !important;
}

html body .fk-header-controls {
    margin-left: 24px !important;
}

/* ========== BLOCKSY LAYOUT COMPATIBILITY ========== */
html body.wp-theme-blocksy #header,
html body.wp-theme-blocksy .ct-header,
html body.wp-theme-blocksy .ct-header [data-row],
html body.wp-theme-blocksy .ct-header [data-row*="middle"],
html body.wp-theme-blocksy .ct-header [data-sticky],
html body.wp-theme-blocksy .ct-header [data-sticky*="yes"] {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html body.wp-theme-blocksy [data-header*="type-1"],
html body.wp-theme-blocksy [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --header-height: 76px !important;
    --height: 76px !important;
}

html body.wp-theme-blocksy #header .ct-container,
html body.wp-theme-blocksy .ct-header .ct-container,
html body.wp-theme-blocksy .ct-header [data-row] > .ct-container {
    width: 100% !important;
    max-width: 1200px !important;
    min-height: 76px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

html body.wp-theme-blocksy #header [data-column],
html body.wp-theme-blocksy .ct-header [data-column],
html body.wp-theme-blocksy #header [data-items],
html body.wp-theme-blocksy .ct-header [data-items] {
    display: flex !important;
    align-items: center !important;
}

html body.wp-theme-blocksy #header [data-column="end"],
html body.wp-theme-blocksy .ct-header [data-column="end"] {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
}

html body.wp-theme-blocksy #header [data-column="end"] [data-items="primary"],
html body.wp-theme-blocksy .ct-header [data-column="end"] [data-items="primary"] {
    gap: 18px !important;
    justify-content: flex-end !important;
}

html body.wp-theme-blocksy #header [data-id="search"],
html body.wp-theme-blocksy .ct-header [data-id="search"] {
    display: none !important;
}

html body.wp-theme-blocksy #header .site-title,
html body.wp-theme-blocksy #header .site-title a,
html body.wp-theme-blocksy .ct-header .site-title,
html body.wp-theme-blocksy .ct-header .site-title a,
html body.wp-theme-blocksy .ct-header .menu > li > a,
html body.wp-theme-blocksy .ct-header nav a,
html body.wp-theme-blocksy .ct-header [data-id="menu"] > ul > li > a {
    color: #111827 !important;
}

html body.wp-theme-blocksy #header .site-title a,
html body.wp-theme-blocksy .ct-header .site-title a {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

html body.wp-theme-blocksy .ct-header .menu > li.current-menu-item > a,
html body.wp-theme-blocksy .ct-header .menu > li:hover > a,
html body.wp-theme-blocksy .ct-header nav a:hover {
    color: #c40000 !important;
}

html body.wp-theme-blocksy #header .fk-header-controls,
html body.wp-theme-blocksy .ct-header .fk-header-controls {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
}

html body.wp-theme-blocksy #offcanvas,
html body.wp-theme-blocksy #offcanvas.ct-header,
html body.wp-theme-blocksy #offcanvas .ct-panel-inner {
    background: #121519 !important;
    color: #f8fafc !important;
}

html body.wp-theme-blocksy #offcanvas nav a,
html body.wp-theme-blocksy #offcanvas .ct-menu-link,
html body.wp-theme-blocksy #offcanvas .mobile-menu .ct-menu-link,
html body.wp-theme-blocksy #offcanvas .ct-sub-menu-parent,
html body.wp-theme-blocksy #offcanvas .ct-toggle-dropdown-mobile,
html body.wp-theme-blocksy #offcanvas .ct-toggle-close {
    color: #ffffff !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

html body.wp-theme-blocksy #offcanvas .ct-icon,
html body.wp-theme-blocksy #offcanvas .ct-icon path,
html body.wp-theme-blocksy #offcanvas .ct-icon rect {
    color: currentColor !important;
    fill: currentColor !important;
}

html body.wp-theme-blocksy #offcanvas .sub-menu .ct-menu-link {
    color: rgba(255, 255, 255, 0.82) !important;
}

html body.wp-theme-blocksy #offcanvas .current-menu-item > .ct-menu-link,
html body.wp-theme-blocksy #offcanvas .current-menu-item > a,
html body.wp-theme-blocksy #offcanvas a:hover {
    color: #ff6b6b !important;
}

body.wp-theme-blocksy.home .hero-section,
body.wp-theme-blocksy.home .entry-header,
body.wp-theme-blocksy.home .page-title,
body.wp-theme-blocksy.home [class*="page-title"] {
    display: none !important;
}

body.wp-theme-blocksy.home main.site-main,
body.wp-theme-blocksy.home .site-main [data-vertical-spacing],
body.wp-theme-blocksy.home .site-main article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.wp-theme-blocksy.home .wp-block-cover.alignfull {
    min-height: 520px !important;
    height: 520px !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    background: #111827 !important;
}

body.wp-theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__image-background {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.wp-theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__background {
    background: rgba(15, 23, 42, 0.46) !important;
    opacity: 1 !important;
}

body.wp-theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2 !important;
}

body.wp-theme-blocksy.woocommerce-shop .hero-section[data-type="type-2"] {
    --container-padding: 38px 0 !important;
}

body.wp-theme-blocksy.woocommerce-shop .ct-container[data-vertical-spacing] {
    padding-top: 38px !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] {
    align-items: stretch !important;
    gap: 30px !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] .product {
    padding: 0 0 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure {
    display: block !important;
    width: 100% !important;
    min-height: 215px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure a,
body.wp-theme-blocksy.woocommerce-shop [data-products] .ct-media-container {
    display: block !important;
    width: 100% !important;
    height: 215px !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure img,
body.wp-theme-blocksy.woocommerce-shop .woocommerce ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: 215px !important;
    max-width: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
}

body.wp-theme-blocksy.woocommerce-shop [data-products] .product .woocommerce-loop-product__title,
body.wp-theme-blocksy.woocommerce-shop [data-products] .product .price,
body.wp-theme-blocksy.woocommerce-shop [data-products] .product .entry-meta,
body.wp-theme-blocksy.woocommerce-shop [data-products] .product .ct-woo-card-actions {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (max-width: 999.98px) {
    html body.wp-theme-blocksy [data-header*="type-1"],
    html body.wp-theme-blocksy [data-header*="type-1"] .ct-header [data-row*="middle"] {
        --header-height: 68px !important;
        --height: 68px !important;
    }

    html body.wp-theme-blocksy #header .ct-container,
    html body.wp-theme-blocksy .ct-header .ct-container {
        min-height: 68px !important;
        gap: 10px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html body.wp-theme-blocksy #header .fk-header-controls,
    html body.wp-theme-blocksy .ct-header .fk-header-controls {
        margin-left: 0 !important;
    }

    body.wp-theme-blocksy.home .wp-block-cover.alignfull {
        min-height: 580px !important;
        height: 580px !important;
    }
}

@media (max-width: 689.98px) {
    html body.wp-theme-blocksy #header .site-title a,
    html body.wp-theme-blocksy .ct-header .site-title a {
        font-size: 20px !important;
    }

    html body.wp-theme-blocksy #header [data-column="end"] [data-items="primary"],
    html body.wp-theme-blocksy .ct-header [data-column="end"] [data-items="primary"] {
        gap: 8px !important;
    }

    html body.wp-theme-blocksy #header .fk-header-select,
    html body.wp-theme-blocksy .ct-header .fk-header-select {
        min-height: 32px !important;
        padding: 0 7px !important;
    }

    html body.wp-theme-blocksy #header .fk-header-select strong,
    html body.wp-theme-blocksy .ct-header .fk-header-select strong {
        min-width: 24px !important;
        height: 22px !important;
        font-size: 11px !important;
    }

    body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure,
    body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure a,
    body.wp-theme-blocksy.woocommerce-shop [data-products] .ct-media-container,
    body.wp-theme-blocksy.woocommerce-shop [data-products] .product figure img,
    body.wp-theme-blocksy.woocommerce-shop .woocommerce ul.products li.product img {
        height: 235px !important;
        min-height: 235px !important;
    }
}

/* WordPress 6.7 containers expose theme-blocksy without wp-theme-blocksy. */
html body.theme-blocksy #header,
html body.theme-blocksy .ct-header,
html body.theme-blocksy .ct-header [data-row],
html body.theme-blocksy .ct-header [data-row*="middle"],
html body.theme-blocksy .ct-header [data-sticky],
html body.theme-blocksy .ct-header [data-sticky*="yes"] {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html body.theme-blocksy [data-header*="type-1"],
html body.theme-blocksy [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --header-height: 76px !important;
    --height: 76px !important;
}

html body.theme-blocksy #header .ct-container,
html body.theme-blocksy .ct-header .ct-container,
html body.theme-blocksy .ct-header [data-row] > .ct-container {
    width: 100% !important;
    max-width: 1200px !important;
    min-height: 76px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

html body.theme-blocksy #header [data-column],
html body.theme-blocksy .ct-header [data-column],
html body.theme-blocksy #header [data-items],
html body.theme-blocksy .ct-header [data-items] {
    display: flex !important;
    align-items: center !important;
}

html body.theme-blocksy #header [data-column="end"],
html body.theme-blocksy .ct-header [data-column="end"] {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
}

html body.theme-blocksy #header [data-column="end"] [data-items="primary"],
html body.theme-blocksy .ct-header [data-column="end"] [data-items="primary"] {
    gap: 18px !important;
    justify-content: flex-end !important;
}

html body.theme-blocksy #header [data-id="search"],
html body.theme-blocksy .ct-header [data-id="search"] {
    display: none !important;
}

html body.theme-blocksy #header .site-title,
html body.theme-blocksy #header .site-title a,
html body.theme-blocksy .ct-header .site-title,
html body.theme-blocksy .ct-header .site-title a,
html body.theme-blocksy .ct-header .menu > li > a,
html body.theme-blocksy .ct-header nav a,
html body.theme-blocksy .ct-header [data-id="menu"] > ul > li > a {
    color: #111827 !important;
}

html body.theme-blocksy #header .site-title a,
html body.theme-blocksy .ct-header .site-title a {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

html body.theme-blocksy .ct-header .menu > li.current-menu-item > a,
html body.theme-blocksy .ct-header .menu > li:hover > a,
html body.theme-blocksy .ct-header nav a:hover {
    color: #c40000 !important;
}

html body.theme-blocksy #header .fk-header-controls,
html body.theme-blocksy .ct-header .fk-header-controls {
    flex: 0 0 auto !important;
    margin-left: 8px !important;
}

html body.theme-blocksy #offcanvas,
html body.theme-blocksy #offcanvas.ct-header,
html body.theme-blocksy #offcanvas .ct-panel-inner {
    background: #121519 !important;
    color: #f8fafc !important;
}

html body.theme-blocksy #offcanvas nav a,
html body.theme-blocksy #offcanvas .ct-menu-link,
html body.theme-blocksy #offcanvas .mobile-menu .ct-menu-link,
html body.theme-blocksy #offcanvas .ct-sub-menu-parent,
html body.theme-blocksy #offcanvas .ct-toggle-dropdown-mobile,
html body.theme-blocksy #offcanvas .ct-toggle-close {
    color: #ffffff !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

html body.theme-blocksy #offcanvas .ct-icon,
html body.theme-blocksy #offcanvas .ct-icon path,
html body.theme-blocksy #offcanvas .ct-icon rect {
    color: currentColor !important;
    fill: currentColor !important;
}

html body.theme-blocksy #offcanvas .sub-menu .ct-menu-link {
    color: rgba(255, 255, 255, 0.82) !important;
}

html body.theme-blocksy #offcanvas .current-menu-item > .ct-menu-link,
html body.theme-blocksy #offcanvas .current-menu-item > a,
html body.theme-blocksy #offcanvas a:hover {
    color: #ff6b6b !important;
}

body.theme-blocksy.home .hero-section,
body.theme-blocksy.home .entry-header,
body.theme-blocksy.home .page-title,
body.theme-blocksy.home [class*="page-title"] {
    display: none !important;
}

body.theme-blocksy.home main.site-main,
body.theme-blocksy.home .site-main [data-vertical-spacing],
body.theme-blocksy.home .site-main article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.theme-blocksy.home .wp-block-cover.alignfull {
    min-height: 520px !important;
    height: 520px !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    background: #111827 !important;
}

body.theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__image-background {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__background {
    background: rgba(15, 23, 42, 0.46) !important;
    opacity: 1 !important;
}

body.theme-blocksy.home .wp-block-cover.alignfull .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2 !important;
}

body.theme-blocksy.woocommerce-shop .hero-section[data-type="type-2"] {
    --container-padding: 38px 0 !important;
}

body.theme-blocksy.woocommerce-shop .ct-container[data-vertical-spacing] {
    padding-top: 38px !important;
}

body.theme-blocksy.woocommerce-shop [data-products] {
    align-items: stretch !important;
    gap: 30px !important;
}

body.theme-blocksy.woocommerce-shop [data-products] .product {
    padding: 0 0 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.theme-blocksy.woocommerce-shop [data-products] .product figure {
    display: block !important;
    width: 100% !important;
    min-height: 215px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

body.theme-blocksy.woocommerce-shop [data-products] .product figure a,
body.theme-blocksy.woocommerce-shop [data-products] .ct-media-container {
    display: block !important;
    width: 100% !important;
    height: 215px !important;
}

body.theme-blocksy.woocommerce-shop [data-products] .product figure img,
body.theme-blocksy.woocommerce-shop .woocommerce ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: 215px !important;
    max-width: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
}

body.theme-blocksy.woocommerce-shop [data-products] .product .woocommerce-loop-product__title,
body.theme-blocksy.woocommerce-shop [data-products] .product .price,
body.theme-blocksy.woocommerce-shop [data-products] .product .entry-meta,
body.theme-blocksy.woocommerce-shop [data-products] .product .ct-woo-card-actions {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Keep Blocksy desktop/mobile header rows from showing at the same time. */
@media (min-width: 1000px) {
    html body.theme-blocksy #header [data-device="mobile"],
    html body.theme-blocksy .ct-header [data-device="mobile"],
    html body.wp-theme-blocksy #header [data-device="mobile"],
    html body.wp-theme-blocksy .ct-header [data-device="mobile"] {
        display: none !important;
    }
}

@media (max-width: 999.98px) {
    html body.theme-blocksy #header [data-device="desktop"],
    html body.theme-blocksy .ct-header [data-device="desktop"],
    html body.wp-theme-blocksy #header [data-device="desktop"],
    html body.wp-theme-blocksy .ct-header [data-device="desktop"] {
        display: none !important;
    }
}

@media (max-width: 999.98px) {
    html body.theme-blocksy [data-header*="type-1"],
    html body.theme-blocksy [data-header*="type-1"] .ct-header [data-row*="middle"] {
        --header-height: 68px !important;
        --height: 68px !important;
    }

    html body.theme-blocksy #header .ct-container,
    html body.theme-blocksy .ct-header .ct-container {
        min-height: 68px !important;
        gap: 10px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html body.theme-blocksy #header .fk-header-controls,
    html body.theme-blocksy .ct-header .fk-header-controls {
        margin-left: 0 !important;
    }

    body.theme-blocksy.home .wp-block-cover.alignfull {
        min-height: 580px !important;
        height: 580px !important;
    }
}

@media (max-width: 689.98px) {
    html body.theme-blocksy #header .site-title a,
    html body.theme-blocksy .ct-header .site-title a {
        font-size: 20px !important;
    }

    html body.theme-blocksy #header [data-column="end"] [data-items="primary"],
    html body.theme-blocksy .ct-header [data-column="end"] [data-items="primary"] {
        gap: 8px !important;
    }

    html body.theme-blocksy #header .fk-header-select,
    html body.theme-blocksy .ct-header .fk-header-select {
        min-height: 32px !important;
        padding: 0 7px !important;
    }

    html body.theme-blocksy #header .fk-header-select strong,
    html body.theme-blocksy .ct-header .fk-header-select strong {
        min-width: 24px !important;
        height: 22px !important;
        font-size: 11px !important;
    }

    body.theme-blocksy.woocommerce-shop [data-products] .product figure,
    body.theme-blocksy.woocommerce-shop [data-products] .product figure a,
    body.theme-blocksy.woocommerce-shop [data-products] .ct-media-container,
    body.theme-blocksy.woocommerce-shop [data-products] .product figure img,
    body.theme-blocksy.woocommerce-shop .woocommerce ul.products li.product img {
        height: 235px !important;
        min-height: 235px !important;
    }
}
