/* --- Global Stability & Mobile-First Reset --- */
html,
body {
    width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
}

:root {
    --fmh-primary: #703273;
    --fmh-dark: #1a1a1a;
    --fmh-border: #f0f0f0;
    --fmh-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --fmh-sidebar-w: 320px;
    --fmh-gap: 50px;
    --fmh-safe-bottom: env(safe-area-inset-bottom, 20px);
}

body.page-template-page-engine,
body.single-post,
body.woocommerce-page {
    background-color: #fff !important;
    word-break: break-all;
}

/* --- Header Global Fixes (Shadow Removal & Top Spacing) --- */
#masthead,
.site-header,
header.site-header,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
.ast-mobile-header-wrap {
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Space above the first row of the header */
#masthead,
.site-header,
header.site-header {
    padding-top: 45px !important;
    /* Pushed further down to clear WP admin bar */
}

@media screen and (max-width: 1024px) {

    #masthead,
    .site-header,
    header.site-header {
        padding-top: 7px !important;
    }
}

@media screen and (max-width: 768px) {

    #masthead,
    .site-header,
    header.site-header {
        padding-top: 5px !important;
    }
}

.fmh-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
}

/* --- Resstylesive Logo Scaling --- */
.fmh-logo img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* --- Mobile Specific Fixes (iPhone/Safari) --- */
@media screen and (max-width: 768px) {
    .fmh-container {
        padding: 0 20px !important;
    }

    .fmh-logo img {
        max-width: 180px !important;
        /* Smaller logo for mobile */
    }

    /* Fixed Bottom Menu Logic (Same style as mentioned "as premium") */
    .fmh-mobile-trigger {
        right: 20px !important;
        bottom: calc(var(--fmh-safe-bottom) + 10px) !important;
    }

    /* Post Grid/List Mobile Refinement */
    .fmh-posts-container {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .fmh-post-card {
        border-radius: 16px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    }

    .fmh-post-list-row {
        padding: 15px 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }

    .fmh-post-list-row:last-child {
        border: none !important;
    }

    .fmh-article-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .fmh-singular-entry {
        padding: 0 5px !important;
    }

    .fmh-content-prime {
        padding: 0 5px !important;
    }
}

/* --- Layout Grid (fmh_row / fmh_col Engine) --- */
.fmh-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
    margin-bottom: 30px !important;
}

.fmh-col {
    min-width: 0 !important;
}

.fmh-span-1-1 {
    width: 100% !important;
}

.fmh-span-1-2 {
    width: calc(50% - 15px) !important;
}

.fmh-span-1-3 {
    width: calc(33.333% - 20px) !important;
}

.fmh-span-2-3 {
    width: calc(66.666% - 10px) !important;
}

.fmh-span-1-4 {
    width: calc(25% - 22.5px) !important;
}

.fmh-span-3-4 {
    width: calc(75% - 7.5px) !important;
}

/* Mobile Stacking for Shortcode Grid */
@media screen and (max-width: 1024px) {

    .fmh-span-1-2,
    .fmh-span-1-3,
    .fmh-span-2-3,
    .fmh-span-1-4,
    .fmh-span-3-4 {
        width: 100% !important;
    }

    .fmh-row {
        gap: 20px !important;
    }
}

/* --- Layout Row Logic (Flex-Stacking Overdrive) --- */
.fmh-layout-row {
    display: flex !important;
    flex-wrap: wrap !important;
    /* Allow stacking for mobile/tablet */
    gap: var(--fmh-gap) !important;
    align-items: flex-start !important;
    width: 100% !important;
}

/* Maintain Horizontal Layout on PC (Elementor Desktop Pattern) */
@media screen and (min-width: 1025px) {
    .fmh-layout-row {
        flex-wrap: nowrap !important;
    }
}

.fmh-main-content-area {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

/* Force Full Width on Tablet & Mobile (Stacking) */
@media screen and (max-width: 1024px) {

    .fmh-main-content-area,
    .fmh-sidebar-area {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    /* Column Reversing (Like Elementor "Reverse on Mobile") */
    .fmh-layout-row.is-reverse-mobile {
        flex-direction: column-reverse !important;
    }
}

/* --- Blog Post Header (Title -> Meta) --- */
.fmh-article-header {
    margin-bottom: 50px !important;
}

.fmh-article-title {
    font-size: 2.3rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fmh-article-meta {
    display: flex !important;
    gap: 20px !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.fmh-meta-item {
    display: flex !important;
    align-items: center !important;
}

/* --- fmh_posts (Shortcode) Grid/List --- */
.fmh-posts-section {
    margin-bottom: 5rem !important;
}

.fmh-posts-container {
    display: grid !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Grid Column Logic (Elementor Pattern) */
.fmh-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.fmh-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.fmh-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Resstylesive Grid Sync */
@media screen and (max-width: 1024px) {

    .fmh-grid-3,
    .fmh-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {

    .fmh-grid-2,
    .fmh-grid-3,
    .fmh-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/* --- Dynamic Heading Decorators --- */
.heading-left-black {
    text-align: left;
    padding: 20px 0;
    position: relative;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.heading-left-black::before,
.heading-left-black::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #000000 20px, #000000 calc(100% - 20px), transparent 100%);
}

.heading-left-black::before {
    top: 0;
}

.heading-left-black::after {
    bottom: 0;
}

.heading-left-black .dot-top-left,
.heading-left-black .dot-top-right,
.heading-left-black .dot-bottom-left,
.heading-left-black .dot-bottom-right {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #000000;
    border-radius: 50%;
}

.heading-left-black .dot-top-left {
    top: -5px;
    left: 0;
}

.heading-left-black .dot-top-right {
    top: -5px;
    right: 0;
}

.heading-left-black .dot-bottom-left {
    bottom: -5px;
    left: 0;
}

.heading-left-black .dot-bottom-right {
    bottom: -5px;
    right: 0;
}

/* Grid Card */
.fmh-post-card {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #f2f2f2 !important;
    box-shadow: var(--fmh-shadow) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease !important;
}

.fmh-post-card:hover {
    transform: translateY(-7px) !important;
}

.fmh-card-media {
    position: relative !important;
    aspect-ratio: 600/315 !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
}

.fmh-card-badge-overlay {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    background: var(--fmh-red, #703273);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 0 0 0 4px !important; /* 右上角にフィット */
    z-index: 10;
}

.fmh-card-main {
    padding: 3px 6px 12px 6px !important; /* 上部パディングを3pxに */
}

.fmh-card-headline {
    font-size: 1.05rem !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    margin-top: 0 !important; /* タイトル上部のマージンを完全に消去 */
    margin-bottom: 4px !important;
    padding: 0 2px !important;
}

/* List Item */
.fmh-layout-list .fmh-posts-container,
.fmh-posts-container.fmh-list-view {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.fmh-post-list-row {
    padding: 2px 0 !important;
    border: none !important;
    background: transparent !important;
    margin-bottom: 1px !important;
}

.fmh-post-list-row:last-child {
    border: none !important;
    margin-bottom: 0 !important;
}

.fmh-list-title {
    font-weight: normal !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 1px !important;
    text-decoration: none !important;
    color: #444 !important;
    display: block !important;
    text-align: left !important;
}

.fmh-list-date {
    display: block !important;
    margin-bottom: 0 !important;
    color: #a0a0a0 !important;
    font-size: clamp(0.75rem, 3vw, 0.9rem) !important;
    font-weight: 400 !important;
    text-align: left !important;
}

/* Global Image Resstylesiveness & WP Alignment Classes */
img,
video,
canvas,
svg,
figure,
.wp-caption,
.wp-block-image {
    max-width: 100% !important;
    height: auto !important;
}

/* iframe should not have height:auto as it breaks aspect ratio rendering */
iframe {
    max-width: 100% !important;
}

img.aligncenter,
figure.aligncenter,
.wp-caption.aligncenter,
.wp-block-image.aligncenter,
.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

img.alignleft,
figure.alignleft,
.wp-caption.alignleft,
.wp-block-image.alignleft,
.alignleft {
    float: left !important;
    margin-right: 1.5em !important;
    margin-bottom: 1.5em !important;
}

img.alignright,
figure.alignright,
.wp-caption.alignright,
.wp-block-image.alignright,
.alignright {
    float: right !important;
    margin-left: 1.5em !important;
    margin-bottom: 1.5em !important;
}

img.alignnone,
figure.alignnone,
.wp-caption.alignnone,
.wp-block-image.alignnone,
.alignnone {
    margin-bottom: 1.5em !important;
}

@media screen and (max-width: 768px) {

    img,
    video,
    canvas,
    svg,
    figure,
    .wp-caption,
    .wp-block-image {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    iframe {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    img.alignleft,
    figure.alignleft,
    .wp-caption.alignleft,
    .wp-block-image.alignleft,
    .alignleft,
    img.alignright,
    figure.alignright,
    .wp-caption.alignright,
    .wp-block-image.alignright,
    .alignright {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}

.clear,
.clearfix {
    clear: both !important;
}

/* Pagination Fix */
.fmh-pagination-wrap .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.fmh-pagination-wrap .page-numbers {
    display: inline-block !important;
    padding: 8px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    min-width: 40px !important;
    text-align: center !important;
}

.fmh-pagination-wrap .page-numbers.current {
    background: #703273 !important;
    color: #fff !important;
    border-color: #703273 !important;
}

.fmh-pagination-wrap .page-numbers:hover {
    background: #f5f5f5 !important;
}

/* "More" link stability */
.fmh-section-footer {
    text-align: right !important;
    width: 100% !important;
    margin-top: 25px !important;
}

.fmh-more-link {
    display: inline-block !important;
    border: 2px solid #333 !important;
    color: #333 !important;
    padding: 10px 40px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    transition: all 0.2s !important;
}

.fmh-more-link:hover {
    background: #333 !important;
    color: #fff !important;
}

/* --- WooCommerce My Account (Stability Overdrive - Single Column Request) --- */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: column !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- WooCommerce My Account Navigation Transformation (Dropdown) --- */
.fmh-custom-dropdown-nav {
    display: block !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    float: none !important;
    flex: none !important;
}

.fmh-myaccount-select-nav {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    align-items: center;
}

.fmh-myaccount-select-nav .fmh-select {
    flex: 1;
    padding: 14px 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: #1e293b !important;
    background-color: #fff !important;
    cursor: pointer !important;
    appearance: none !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231e293b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px top 50% !important;
    background-size: 12px auto !important;
    margin: 0 !important;
}

.fmh-myaccount-select-nav .fmh-select-nav-button {
    background: var(--fmh-red, #703273) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 30px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    cursor: pointer !important;
    transition: 0.2s !important;
    min-height: 54px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fmh-myaccount-select-nav .fmh-select-nav-button:hover {
    background: #1a1a1a !important;
}

@media screen and (max-width: 768px) {
    .fmh-myaccount-select-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .fmh-myaccount-select-nav .fmh-select {
        width: 100% !important;
        box-sizing: border-box;
    }

    .fmh-myaccount-select-nav .fmh-select-nav-button {
        width: 100% !important;
        padding: 12px !important;
    }
}

/* Show content as full width */
.woocommerce-MyAccount-content {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 16px !important;
    padding: 50px !important;
    box-shadow: var(--fmh-shadow) !important;
    min-width: 100% !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-content {
        padding: 20px !important;
    }
}

/* --- Checkout Layout (Vertical Flow) --- */
.woocommerce-checkout .woocommerce form.checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    width: 100% !important;
    float: none !important;
}

/* Hide Astra/Theme default sidebar if it leaks */
#secondary,
.ast-separate-container #secondary {
    display: none !important;
}

/* Orders Table Refinement */
.shop_table_resstylesive {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #eee !important;
}

.shop_table_resstylesive th {
    background: #f8fafc !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 800 !important;
}

.shop_table_resstylesive td {
    padding: 15px !important;
    border-top: 1px solid #eee !important;
}

/* Premium Dashboard Cards */
.premium-card {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s !important;
}

.premium-card:hover {
    transform: translateY(-5px) !important;
}

/* Helper Classes (Elementor Resstylesive Sync) */
.hidden,
.wc-force-hide,
.fmh-hide {
    display: none !important;
}

@media screen and (max-width: 767px) {
    .fmh-hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .fmh-hide-tablet {
        display: none !important;
    }
}

@media screen and (min-width: 768px) {
    .fmh-show-mobile-only {
        display: none !important;
    }
}

/* Table to Card Transformation (Elementor Pattern) */
@media screen and (max-width: 768px) {

    .shop_table_resstylesive,
    .shop_table_resstylesive thead,
    .shop_table_resstylesive tbody,
    .shop_table_resstylesive th,
    .shop_table_resstylesive td,
    .shop_table_resstylesive tr {
        display: block !important;
    }

    .shop_table_resstylesive thead {
        display: none !important;
    }

    .shop_table_resstylesive tr {
        margin-bottom: 20px !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        padding: 15px !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .shop_table_resstylesive td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: none !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f9f9f9 !important;
        text-align: right !important;
        font-size: 0.95rem !important;
    }

    .shop_table_resstylesive td:last-child {
        border-bottom: none !important;
    }

    .shop_table_resstylesive td::before {
        content: attr(data-title);
        font-weight: 800;
        color: #888;
        text-align: left;
        margin-right: 15px;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
}

/* --- Premium Category Archive (Added in v1.9.28) --- */
body.fmh-pure-archive {
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}

/* TT5や他のテーマのサイドバー要素をこのページだけで非表示にする */
body.fmh-pure-archive #secondary,
body.fmh-pure-archive .sidebar,
body.fmh-pure-archive .ast-left-sidebar,
body.fmh-pure-archive .ast-right-sidebar,
body.fmh-pure-archive .widget-area {
    display: none !important;
}

body.fmh-pure-archive .fmh-archive-premium-wrapper {
    background-color: #fff;
    padding: 60px 0 100px;
    min-height: 80vh;
    width: 100% !important;
    max-width: none !important;
}

.fmh-archive-header {
    margin-bottom: 60px;
    border-bottom: 3px solid var(--fmh-dark);
    padding-bottom: 25px;
}

.fmh-archive-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fmh-archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.fmh-archive-title span {
    font-size: 16px;
    font-weight: 400;
    color: #999;
    font-family: 'Outfit', sans-serif;
}

.fmh-archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
}

/* Premium Grid */
.fmh-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 35px;
}

.fmh-premium-card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fmh-premium-card:hover {
    transform: translateY(-8px);
}

.fmh-premium-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 20px;
}

.fmh-premium-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fmh-premium-card:hover .fmh-premium-thumb img {
    transform: scale(1.1);
}

.fmh-premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    color: var(--fmh-primary);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fmh-premium-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fmh-premium-date {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #999;
}

.fmh-premium-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s;
}

.fmh-premium-card:hover .fmh-premium-title {
    color: var(--fmh-primary);
}

.fmh-premium-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Premium */
.fmh-premium-pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.fmh-premium-pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: all 0.3s;
}

.fmh-premium-pagination .current {
    background: var(--fmh-primary);
    color: #fff;
    border-color: var(--fmh-primary);
}

.fmh-premium-pagination a.page-numbers:hover {
    border-color: var(--fmh-primary);
    color: var(--fmh-primary);
}

/* Resstylesive */
@media (max-width: 1024px) {
    .fmh-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 25px;
    }
}

@media (max-width: 640px) {
    .fmh-premium-grid {
        grid-template-columns: 1fr;
    }

    .fmh-archive-title {
        font-size: 1.75rem;
    }
}

/* --- Premium Search Bar (Added in v1.9.29) --- */
.fmh-search-bar-wrap {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
    width: 100%;
}

.fmh-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.fmh-search-form:focus-within {
    border-color: var(--fmh-primary, #703273);
    box-shadow: 0 8px 25px rgba(174, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fmh-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.fmh-search-input::placeholder {
    color: #bbb;
}

.fmh-search-submit {
    background: var(--fmh-primary, #703273) !important;
    border: none !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 !important;
    margin-left: 10px !important;
}

.fmh-search-submit:hover {
    background: #8e0000 !important;
    transform: scale(1.05);
}

.fmh-search-submit svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .fmh-search-bar-wrap {
        padding: 0 15px;
        box-sizing: border-box;
    }
}

/* Table Content Alignment */
table td,
table th {
    vertical-align: middle;
}

/* --- Premium Book Shelf (Added in v1.9.30) --- */
.fmh-library-wrapper {
    margin: 40px 0 100px;
    width: 100%;
}

.fmh-shelf-header {
    text-align: center;
    margin-bottom: 50px;
}

.fmh-shelf-section-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fmh-shelf-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #eee;
}

.fmh-shelf-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.fmh-shelf-tabs-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: sticky;
    top: 10px;
    z-index: 100;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .fmh-shelf-tabs-wrap {
        justify-content: center;
    }
}

.fmh-shelf-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fmh-see-more {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-decoration: none !important;
    transition: 0.2s;
}

.fmh-see-more:hover {
    background: #f9f9f9;
    color: var(--fmh-primary, #703273);
    border-color: #ddd;
}

.fmh-library-wrapper .fmh-tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid #eee;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    color: #888;
    font-size: 14px;
    line-height: 1;
}

.fmh-library-wrapper .fmh-tab-btn.active {
    background: var(--fmh-primary, #703273);
    color: #fff !important;
    border-color: var(--fmh-primary, #703273);
    box-shadow: 0 10px 20px rgba(174, 0, 0, 0.2);
}

.fmh-no-books {
    text-align: center;
    padding: 50px;
    color: #999;
}

.fmh-book-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .fmh-book-shelf {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Horizontal Shelf Mode (Featured/PC override to 3 columns) */
.fmh-book-shelf.fmh-is-horizontal {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    overflow-x: visible !important;
    width: 100%;
    padding-bottom: 0 !important;
}

.fmh-book-shelf.fmh-is-horizontal .fmh-book-card {
    width: 100% !important;
    flex: none !important;
}

@media (max-width: 1024px) {
    .fmh-book-shelf.fmh-is-horizontal {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .fmh-book-shelf.fmh-is-horizontal {
        grid-template-columns: 1fr !important;
    }
}

/* Base style for standalone or non-shelf horizontal containers */
.fmh-is-horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--fmh-primary, #703273) #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

.fmh-is-horizontal::-webkit-scrollbar {
    height: 6px;
}

.fmh-is-horizontal::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.fmh-is-horizontal::-webkit-scrollbar-thumb {
    background: var(--fmh-primary, #703273);
    border-radius: 10px;
}

.fmh-is-horizontal .fmh-book-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.fmh-book-card {
    background-color: #f7f7f7;
    border-radius: 30px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.fmh-book-card:hover {
    transform: translateY(-5px);
}

.fmh-card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fmh-badge-new {
    background-color: #ff4d4d;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.fmh-badge-out-of-print {
    background-color: #666;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.fmh-out-of-print img {
    filter: grayscale(100%);
    opacity: 0.8;
}

.fmh-out-of-print-notice {
    background: #f5f5f5;
    border-left: 4px solid #666;
    padding: 15px;
    font-weight: 700;
    color: #444;
}

.fmh-single-badge-wrap {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.fmh-btn-arrow {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fmh-book-image-container {
    width: 100%;
    max-width: 170px;
    height: 240px;
    margin: 0 auto 25px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.fmh-book-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}


.fmh-book-card-info {
    width: 100%;
    text-align: left;
}

.fmh-book-image-link {
    display: block;
    width: 100%;
    text-decoration: none !important;
}

.fmh-book-title {
    text-align: left !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    overflow: visible;
}

.fmh-book-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.fmh-book-title a:hover {
    color: var(--fmh-primary, #703273) !important;
}

.fmh-book-price {
    font-size: 0.9rem;
    color: var(--fmh-primary, #703273);
    font-weight: 700;
    text-align: left;
}

.fmh-library-wrapper .fmh-buy-btn:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
}

.fmh-buy-btn.amazon {
    border-color: #ff9900;
    color: #ff9900;
}

.fmh-buy-btn.amazon:hover {
    background: #ff9900;
    color: #fff !important;
}

.fmh-buy-btn svg {
    flex-shrink: 0;
}

/* Category Filter Transition */
.fmh-book-item.is-hidden {
    display: none;
}

/* AJAX Loader Spinner */
.fmh-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--fmh-primary, #703273);
    border-radius: 50%;
    animation: fmh-spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes fmh-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fmZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button Icons */
.fmh-btn-icon {
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;
}

.fmh-btn-direct,
.fmh-btn-wrap a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.fmh-shelf-loading-parent {
    position: relative;
    min-height: 200px;
}

.fmh-shelf-loader {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
}

table td[style*="text-align: center"],
table th[style*="text-align: center"] {
    text-align: center !important;
}

table td[style*="text-align: right"],
table th[style*="text-align: right"] {
    text-align: right !important;
}

table td[style*="text-align: left"],
table th[style*="text-align: left"] {
    text-align: left !important;
}

/* Image alignment within tables */
table td img {
    max-width: 100%;
    height: auto;
}

table td[style*="text-align: center"] img {
    display: inline-block;
    vertical-align: middle;
}

/* --- FM Book Single Template (Added in v1.9.62) --- */
.fmh-book-single-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 40px 100px;
    background: #fff;
    font-family: var(--fmh-font, "Hiragino Sans", sans-serif);
}

.fmh-book-single-breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 40px;
}

.fmh-book-single-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.fmh-book-single-breadcrumbs a:hover {
    text-decoration: underline;
}

.fmh-book-single-main {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 100px;
}

.fmh-book-single-visual {
    flex: 1;
    background-color: #f7f7f7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    box-sizing: border-box;
}

.fmh-book-single-image {
    width: 100%;
    max-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    height: auto;
}

.fmh-book-single-info {
    flex: 1;
}

.fmh-book-single-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #1a1a1a;
}

.fmh-book-single-description {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #444;
    line-height: 1.8;
}

/* Purchase Buttons */
.fmh-book-single-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.fmh-btn-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: transform 0.2s, opacity 0.2s;
    line-height: 1;
}

.fmh-btn-purchase:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.fmh-btn-purchase.paper {
    background-color: #bb2205;
}

.fmh-btn-purchase.digital {
    background-color: #555555;
}

.fmh-btn-purchase.amazon-kindle {
    background-color: #ff9900;
}

.fmh-btn-purchase.amazon-paperback {
    background-color: #ffb366;
}

/* Related Section (Single Page Bottom) */
.fmh-book-related-section {
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.fmh-book-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.fmh-book-related-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.fmh-book-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Mobile Resstylesive */
@media screen and (max-width: 768px) {
    .fmh-book-single-container {
        padding: 20px 20px 80px;
    }

    .fmh-book-single-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fmh-book-single-info {
        display: contents;
        /* Ungroups Title, Description, Actions */
    }

    .fmh-book-single-title {
        order: 1;
        margin-bottom: 20px;
        text-align: left;
    }

    .fmh-book-single-visual {
        order: 2;
        padding: 40px 20px;
        width: 100%;
        margin-bottom: 20px;
    }

    .fmh-book-single-actions {
        order: 3;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .fmh-book-single-description {
        order: 4;
        margin-top: 0;
        line-height: 1.7;
    }

    .fmh-book-single-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Video Embed Resstylesive (Elementor Style) --- */
.wp-block-embed,
.fmh-lll-vimeo-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    background: #000;
    /* 読み込み前の黒背景 */
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {

    .wp-block-embed,
    .fmh-lll-vimeo-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }
}

.wp-block-embed iframe,
.fmh-lll-vimeo-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    border-radius: 8px;
    /* Optional: Matching design style */
}

/* Ensure figure/embed wrappers don't overflow */
.wp-block-embed .wp-block-embed__wrapper {
    margin: 0;
}
/* --- Consolidated Infrastructure Styles from FMH_Public --- */
html,
body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    font-family: var(--fmh-font) !important;
}

.wp-site-blocks,
.is-layout-constrained,
.wp-block-group,
.entry-content,
main#main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.fmh-wc-premium-engine {
    font-family: var(--fmh-font) !important;
    color: #333;
}

.fmh-product-breadcrumbs {
    font-size: 14px;
    color: #757575;
    margin-bottom: 20px;
}

.fmh-product-title-engine {
    font-size: 32px;
    font-weight: 900 !important;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.fmh-product-core-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.fmh-product-visual-left {
    flex: 1;
    min-width: 0;
}

.fmh-product-image-main-wrap {
    width: 100%;
    max-height: 400px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.fmh-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    display: block;
}

.fmh-product-info-right {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 10px;
}

.fmh-purchase-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.fmh-product-price-engine {
    font-size: 28px;
    font-weight: 900 !important;
}

.fmh-add-to-cart-engine .cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
    justify-content: center !important;
}

.fmh-add-to-cart-engine .single_add_to_cart_button {
    order: 1;
    flex: 1;
}

.fmh-add-to-cart-engine .quantity {
    order: 2;
    margin: 0 !important;
}

.fmh-add-to-cart-engine .quantity input.qty {
    width: 60px !important;
    height: 50px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    text-align: center;
}

.fmh-add-to-cart-engine button.button.alt {
    background-color: #703273 !important;
    color: #fff !important;
    padding: 15px 25px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    transition: 0.3s !important;
}

.fmh-product-stock-status,
.woocommerce-variation-availability,
.stock {
    display: none !important;
}

.fmh-product-short-description-full {
    margin: 40px 0;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.fmh-product-separator {
    border: none;
    border-top: 2px solid #000;
    margin: 40px 0;
}

.related.products {
    margin-top: 60px;
}

.related.products h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    margin-bottom: 30px !important;
    text-align: left !important;
    border: none !important;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important;
}

.related.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.related.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none !important;
}

.related.products li.product img {
    width: 100% !important;
    aspect-ratio: 600 / 315 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
}

.related.products li.product .woocommerce-loop-product__title {
    font-family: var(--fmh-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.4 !important;
}

.related.products li.product .price,
.related.products li.product .button,
.related.products li.product .onsale {
    display: none !important;
}

.fmh-article-title {
    font-size: 32px;
    font-weight: 900 !important;
    line-height: 1.3;
    margin-bottom: 20px !important;
    color: #1a1a1a;
}

.fmh-article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px !important;
}

.fmh-meta-item i {
    color: #703273;
    margin-right: 5px;
}

.fmh-entry-content h2,
.fmh-entry-content h3 {
    border: none;
    background: transparent;
    padding: 0;
}

.fmh-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.fmh-nav-link-item {
    flex: 1;
    max-width: 48%;
}

.fmh-nav-link-item.next {
    text-align: right;
}

.fmh-nav-link-item a {
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
    display: inline-block;
}

.fmh-nav-link-item a:hover {
    color: #703273 !important;
}

.fmh-nav-arrow {
    color: #703273;
    font-weight: 900;
    margin: 0 5px;
}

.fmh-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.fmh-related-card {
    text-decoration: none !important;
    display: block !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

.fmh-related-thumb-wrap {
    width: 100% !important;
    aspect-ratio: 600 / 315 !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    position: relative !important;
}

.fmh-related-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.fmh-related-card:hover .fmh-related-img {
    transform: scale(1.05);
}

.fmh-related-card-title {
    font-family: var(--fmh-font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #333 !important;
    text-align: left !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: color 0.3s !important;
}

.fmh-related-card:hover .fmh-related-card-title {
    color: #703273 !important;
}

.fmh-related-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    aspect-ratio: 600 / 315;
}

@media (max-width: 768px) {
    .fmh-product-core-layout {
        flex-direction: column;
        gap: 20px;
    }

    .fmh-product-image-main-wrap {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        height: 30vh;
        border: none;
        border-radius: 0;
    }

    .fmh-product-info-right {
        width: 100%;
    }

    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .related.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
    }

    .fmh-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .fmh-related-card-title {
        font-size: 15px !important;
    }

    .fmh-post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .fmh-nav-link-item {
        max-width: 100%;
    }

    .fmh-article-title {
        font-size: 24px;
    }
}
