/*
Theme Name: MM Flower Child
Theme URI: https://mmflowerbkk.com
Description: Premium Thai-Chinese flower boutique child theme for WooCommerce Storefront.
Author: MM Flower BKK
Author URI: https://mmflowerbkk.com
Template: storefront
Version: 3.0.0
Text Domain: flower-storefront
Domain Path: /languages
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   MM Flower BKK Child Theme
   Premium WooCommerce Storefront Design
   Thai / Chinese / Western Customers
   ========================================================= */

:root {
    --mm-white: #ffffff;
    --mm-cream: #fffaf6;
    --mm-blush: #ffe8ef;
    --mm-blush-2: #fff1f5;
    --mm-pink: #eaa8bc;
    --mm-rose: #a84f6f;
    --mm-rose-dark: #713348;
    --mm-peach: #ffd4bd;
    --mm-sage: #8fa47a;
    --mm-sage-dark: #61704f;
    --mm-gold: #c6a15b;
    --mm-ink: #242022;
    --mm-muted: #71676b;
    --mm-line: #f1d9df;
    --mm-shadow: 0 22px 60px rgba(168, 79, 111, 0.14);
    --mm-soft-shadow: 0 12px 34px rgba(36, 32, 34, 0.07);
    --mm-radius: 28px;
    --mm-radius-sm: 18px;
    --mm-container: 1220px;
}

/* ------------------------------
   Base
------------------------------ */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--mm-cream);
    color: var(--mm-ink);
    font-family: "Prompt", "Noto Sans SC", "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.col-full {
    max-width: var(--mm-container);
}

a {
    color: var(--mm-rose);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--mm-sage-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.product_title,
.woocommerce-loop-product__title {
    color: var(--mm-ink);
    font-family: "Prompt", "Noto Sans SC", "Kanit", sans-serif;
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

p {
    color: var(--mm-muted);
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(234, 168, 188, 0.55);
    outline-offset: 3px;
}

/* Hide common default homepage clutter */
.home .entry-header,
.home .entry-title {
    display: none;
}

.home.blog .site-main > article {
    display: none;
}

/* ------------------------------
   Promo Bar
------------------------------ */

.mm-promo-bar {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, var(--mm-rose-dark), var(--mm-rose), var(--mm-peach));
    color: var(--mm-white);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
    padding: 0.72rem 1rem;
}

.mm-promo-bar strong {
    color: var(--mm-white);
    font-weight: 750;
}

/* ------------------------------
   Header
------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 246, 0.94);
    border-bottom: 1px solid rgba(241, 217, 223, 0.95);
    box-shadow: 0 10px 28px rgba(168, 79, 111, 0.07);
    backdrop-filter: blur(16px);
}

.admin-bar .site-header {
    top: 32px;
}

.site-header .site-branding {
    margin-bottom: 0;
}

.site-title a {
    color: var(--mm-rose-dark);
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    font-weight: 750;
}

.site-description {
    color: var(--mm-muted);
    font-size: 0.88rem;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a,
.secondary-navigation ul.menu a {
    color: var(--mm-ink);
    font-weight: 550;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover,
.secondary-navigation ul.menu a:hover {
    color: var(--mm-rose);
}

.site-search .widget_product_search input[type="search"],
.site-search .widget_product_search input[type="text"] {
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    background: var(--mm-white);
    box-shadow: none;
}

.site-header-cart .cart-contents {
    color: var(--mm-rose-dark);
    font-weight: 650;
}

/* ------------------------------
   Language Switcher
------------------------------ */

.mmf-language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-left: auto;
    font-size: 0.9rem;
}

.mmf-language-switcher ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmf-language-switcher li {
    margin: 0;
}

.mmf-language-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    background: var(--mm-white);
    color: var(--mm-rose-dark);
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(168, 79, 111, 0.08);
}

.mmf-language-switcher a:hover {
    background: var(--mm-blush);
    color: var(--mm-ink);
}

/* ------------------------------
   Hero
------------------------------ */

.mm-hero {
    position: relative;
    overflow: hidden;
    margin: 2rem auto 1.35rem;
    border: 1px solid var(--mm-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 8%, rgba(255, 232, 239, 0.95), transparent 34%),
        radial-gradient(circle at 10% 85%, rgba(143, 164, 122, 0.22), transparent 28%),
        linear-gradient(135deg, #fff8f4 0%, #ffffff 48%, #fff1f5 100%);
    box-shadow: var(--mm-shadow);
}

.mm-hero::after {
    content: "✿";
    position: absolute;
    right: clamp(1rem, 7vw, 5rem);
    bottom: -1rem;
    color: rgba(168, 79, 111, 0.09);
    font-size: clamp(8rem, 20vw, 18rem);
    line-height: 1;
    pointer-events: none;
}

.mm-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 5.5rem);
}

.mm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(168, 79, 111, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--mm-rose-dark);
    font-size: 0.88rem;
    font-weight: 650;
}

.mm-hero__title {
    max-width: 760px;
    margin: 0 0 1rem;
    font-size: clamp(2.35rem, 5.5vw, 5.4rem);
}

.mm-hero__text {
    max-width: 650px;
    margin-bottom: 1.65rem;
    color: var(--mm-muted);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.mm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.6rem;
}

.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
}

.mm-btn--primary {
    background: var(--mm-rose);
    color: var(--mm-white);
    box-shadow: 0 14px 30px rgba(168, 79, 111, 0.25);
}

.mm-btn--primary:hover {
    background: var(--mm-rose-dark);
    color: var(--mm-white);
    transform: translateY(-1px);
}

.mm-btn--secondary {
    border: 1px solid var(--mm-line);
    background: var(--mm-white);
    color: var(--mm-rose-dark);
}

.mm-btn--secondary:hover {
    background: var(--mm-blush);
    color: var(--mm-ink);
}

.mm-hero__rating {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    color: var(--mm-muted);
    font-size: 0.95rem;
}

.mm-stars {
    color: var(--mm-gold);
    letter-spacing: 0.08em;
}

.mm-hero__visual {
    position: relative;
    min-height: 390px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(168, 79, 111, 0.18), rgba(255, 255, 255, 0.35)),
        url("assets/images/hero-flower.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: var(--mm-soft-shadow);
}

.mm-hero__visual::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
}

.mm-hero__badge {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    max-width: 250px;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--mm-ink);
    box-shadow: var(--mm-soft-shadow);
    backdrop-filter: blur(10px);
}

.mm-hero__badge strong {
    display: block;
    color: var(--mm-rose-dark);
}

/* ------------------------------
   Trust Badges
------------------------------ */

.mm-trust-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.85rem;
    margin: 1.35rem auto 3rem;
}

.mm-trust-item {
    min-height: 116px;
    padding: 1rem;
    border: 1px solid var(--mm-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 25px rgba(36, 32, 34, 0.045);
}

.mm-trust-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: var(--mm-blush);
    color: var(--mm-rose-dark);
    font-weight: 750;
}

.mm-trust-item strong {
    display: block;
    color: var(--mm-ink);
    font-size: 0.95rem;
}

.mm-trust-item span {
    color: var(--mm-muted);
    font-size: 0.84rem;
}

/* ------------------------------
   Section Common
------------------------------ */

.mm-section,
.mmf-premium-products {
    max-width: var(--mm-container);
    margin: 4rem auto;
    padding: 0 1rem;
}

.mm-section__head,
.mmf-section-head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1.45rem;
}

.mmf-section-head {
    display: block;
    max-width: 760px;
}

.mm-kicker,
.mmf-kicker {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: var(--mm-rose);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mm-section h2,
.mmf-section-head h2 {
    margin: 0 0 0.65rem;
    color: var(--mm-ink);
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    line-height: 1.2;
}

.mm-section__desc,
.mmf-section-head p {
    max-width: 760px;
    color: var(--mm-muted);
    font-size: 1.05rem;
}

/* ------------------------------
   Premium Product Grid Shortcode
------------------------------ */

.mmf-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.mmf-premium-card {
    overflow: hidden;
    border: 1px solid var(--mm-line);
    border-radius: 28px;
    background: var(--mm-white);
    box-shadow: 0 14px 38px rgba(36, 32, 34, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mmf-premium-card:hover {
    transform: translateY(-7px);
    border-color: rgba(168, 79, 111, 0.28);
    box-shadow: var(--mm-shadow);
}

.mmf-premium-card__media {
    display: block;
    padding: 0.85rem 0.85rem 0;
    background: linear-gradient(180deg, var(--mm-cream), var(--mm-white));
}

.mmf-premium-card__image,
.mmf-premium-card__media img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    border-radius: 22px;
}

.mmf-premium-card__body {
    padding: 1rem 1.1rem 1.25rem;
}

.mmf-premium-card__label {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--mm-sage-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.mmf-premium-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.mmf-premium-card h3 a {
    color: var(--mm-ink);
    text-decoration: none;
}

.mmf-premium-card h3 a:hover {
    color: var(--mm-rose);
}

.mmf-premium-card__price {
    margin-bottom: 0.9rem;
    color: var(--mm-rose-dark);
    font-size: 1.08rem;
    font-weight: 800;
}

.mmf-premium-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--mm-rose);
    color: var(--mm-white);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(168, 79, 111, 0.18);
}

.mmf-premium-card__button:hover {
    background: var(--mm-rose-dark);
    color: var(--mm-white);
}

/* ------------------------------
   WooCommerce Product Cards
------------------------------ */

.woocommerce ul.products,
.mm-products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0.9rem;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-white);
    box-shadow: 0 10px 26px rgba(36, 32, 34, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 79, 111, 0.25);
    box-shadow: var(--mm-shadow);
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    margin: 0 0 0.95rem;
    border-radius: 20px;
    background: var(--mm-cream);
}

.woocommerce-loop-product__title {
    min-height: 2.7em;
    margin-bottom: 0.35rem !important;
    color: var(--mm-ink);
    font-size: 1.05rem !important;
}

.mm-card-note {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--mm-sage-dark);
    font-size: 0.84rem;
    font-weight: 650;
}

.woocommerce ul.products li.product .price {
    color: var(--mm-rose-dark);
    font-size: 1.1rem;
    font-weight: 750;
}

.woocommerce span.onsale {
    min-width: auto;
    min-height: auto;
    padding: 0.35rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--mm-peach);
    color: var(--mm-ink);
    font-size: 0.78rem;
    font-weight: 800;
}

/* ------------------------------
   Buttons / Forms
------------------------------ */

button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.added_to_cart {
    min-height: 46px;
    border: none;
    border-radius: 999px;
    background: var(--mm-rose);
    color: var(--mm-white);
    font-weight: 750;
    box-shadow: 0 10px 22px rgba(168, 79, 111, 0.18);
    transition: 0.18s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.added_to_cart:hover {
    background: var(--mm-rose-dark);
    color: var(--mm-white);
    transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--mm-line);
    border-radius: 14px;
    background: var(--mm-white);
    box-shadow: none;
}

/* ------------------------------
   Occasion Cards
------------------------------ */

.mm-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mm-occasion-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 1.4rem;
    border: 1px solid var(--mm-line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 232, 239, 0.9), transparent 32%),
        var(--mm-white);
    box-shadow: var(--mm-soft-shadow);
    text-decoration: none;
}

.mm-occasion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow);
}

.mm-occasion-card h3 {
    margin-bottom: 0.5rem;
    color: var(--mm-rose-dark);
}

.mm-occasion-card span {
    color: var(--mm-rose);
    font-weight: 750;
}

/* ------------------------------
   Process / Reviews / FAQ
------------------------------ */

.mm-process,
.mm-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mm-process-card,
.mm-review {
    padding: 1.5rem;
    border: 1px solid var(--mm-line);
    border-radius: 26px;
    background: linear-gradient(180deg, var(--mm-white), #fff8f4);
    box-shadow: var(--mm-soft-shadow);
}

.mm-process-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--mm-rose-dark);
    color: var(--mm-white);
    font-weight: 800;
}

.mm-review .mm-stars {
    display: block;
    margin-bottom: 0.55rem;
}

.mm-review cite {
    display: block;
    margin-top: 1rem;
    color: var(--mm-rose-dark);
    font-style: normal;
    font-weight: 700;
}

.mm-faq {
    display: grid;
    gap: 0.75rem;
}

.mm-faq details {
    border: 1px solid var(--mm-line);
    border-radius: 18px;
    background: var(--mm-white);
    box-shadow: 0 8px 20px rgba(36, 32, 34, 0.04);
}

.mm-faq summary {
    cursor: pointer;
    padding: 1rem 1.2rem;
    color: var(--mm-ink);
    font-weight: 700;
}

.mm-faq p {
    padding: 0 1.2rem 1.1rem;
}

/* ------------------------------
   Single Product / Checkout
------------------------------ */

.single-product div.product .product_title {
    font-size: clamp(1.9rem, 3vw, 3.4rem);
}

.single-product div.product p.price,
.single-product div.product span.price {
    color: var(--mm-rose-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: var(--mm-radius);
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-checkout #payment {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: var(--mm-white);
    box-shadow: var(--mm-soft-shadow);
}

.mmf-payment-recommendation {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--mm-line);
    border-radius: 18px;
    background: var(--mm-cream);
    box-shadow: 0 10px 24px rgba(36, 32, 34, 0.05);
}

.mmf-payment-recommendation strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--mm-rose-dark);
    font-size: 1rem;
}

.mmf-payment-recommendation p {
    margin: 0;
    color: var(--mm-muted);
    font-size: 0.94rem;
}

.mmf-payment-badge {
    display: inline-flex;
    margin-left: 0.4rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: var(--mm-blush);
    color: var(--mm-rose-dark);
    font-size: 0.75rem;
    font-weight: 800;
    vertical-align: middle;
}

.mmf-pay-profile-thai .payment_method_promptpay,
.mmf-pay-profile-thai .payment_method_omise_promptpay,
.mmf-pay-profile-thai .payment_method_gbprimepay_promptpay,
.mmf-pay-profile-thai .payment_method_bacs,
.mmf-pay-profile-chinese .payment_method_alipay,
.mmf-pay-profile-chinese .payment_method_stripe_alipay,
.mmf-pay-profile-chinese .payment_method_antom_alipay_cn,
.mmf-pay-profile-chinese .payment_method_antom_alipay_hk,
.mmf-pay-profile-chinese .payment_method_wechatpay,
.mmf-pay-profile-western .payment_method_stripe,
.mmf-pay-profile-western .payment_method_woocommerce_payments {
    border: 1px solid rgba(168, 79, 111, 0.32);
    border-radius: 16px;
    background: #fff8fa;
}

/* ------------------------------
   Floating Chat FAB
------------------------------ */

.mmf-chat-fab {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 99999;
    font-family: "Prompt", "Noto Sans SC", sans-serif;
}

.mmf-chat-fab__main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 54px;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mm-rose), var(--mm-rose-dark));
    color: var(--mm-white);
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(113, 51, 72, 0.35);
    cursor: pointer;
}

.mmf-chat-fab__icon {
    font-size: 1.2rem;
}

.mmf-chat-fab__options {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: grid;
    gap: 0.6rem;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.mmf-chat-fab.is-open .mmf-chat-fab__options,
.mmf-chat-fab:hover .mmf-chat-fab__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mmf-chat-fab__option {
    display: grid;
    gap: 0.1rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--mm-line);
    border-radius: 18px;
    background: var(--mm-white);
    color: var(--mm-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(36, 32, 34, 0.11);
    cursor: pointer;
}

.mmf-chat-fab__option span {
    font-weight: 800;
}

.mmf-chat-fab__option small {
    color: var(--mm-muted);
}

.mmf-chat-fab__option--line span {
    color: #06c755;
}

.mmf-chat-fab__option--wechat span {
    color: #07c160;
}

.mmf-wechat-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: 230px;
    padding: 1rem;
    border: 1px solid var(--mm-line);
    border-radius: 22px;
    background: var(--mm-white);
    text-align: center;
    box-shadow: 0 18px 50px rgba(36, 32, 34, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.mmf-wechat-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mmf-wechat-panel strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--mm-ink);
}

.mmf-wechat-panel img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 0.7rem;
    border-radius: 14px;
    background: var(--mm-cream);
}

.mmf-wechat-panel button {
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--mm-rose-dark);
    color: var(--mm-white);
    font-size: 0.85rem;
}

/* ------------------------------
   Footer
------------------------------ */

.site-footer {
    border-top: 1px solid var(--mm-line);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 232, 239, 0.55), transparent 26%),
        linear-gradient(180deg, var(--mm-cream), var(--mm-white));
}

.mm-footer {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0 1.4rem;
}

.mm-footer h3 {
    margin-bottom: 0.85rem;
    color: var(--mm-rose-dark);
    font-size: 1.05rem;
}

.mm-footer ul {
    margin: 0;
    list-style: none;
}

.mm-footer li {
    margin-bottom: 0.35rem;
}

.mm-footer p,
.mm-footer a,
.mm-footer li {
    color: var(--mm-muted);
    font-size: 0.95rem;
}

.mm-footer a {
    text-decoration: none;
}

.mm-footer a:hover {
    color: var(--mm-rose);
}

.mm-footer-copy {
    padding-top: 1.25rem;
    border-top: 1px solid var(--mm-line);
    color: var(--mm-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ------------------------------
   Mobile
------------------------------ */

.storefront-handheld-footer-bar {
    box-shadow: 0 -10px 26px rgba(168, 79, 111, 0.12);
}

.storefront-handheld-footer-bar ul li > a {
    min-height: 58px;
    color: var(--mm-rose-dark);
}

@media (max-width: 1024px) {
    .mm-hero__grid {
        grid-template-columns: 1fr;
    }

    .mm-hero__visual {
        min-height: 330px;
    }

    .mm-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mm-card-grid,
    .mm-process,
    .mm-review-grid,
    .mm-footer,
    .mmf-premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mmf-language-switcher {
        justify-content: flex-start;
        margin: 0.75rem 0;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .mm-promo-bar {
        font-size: 0.82rem;
    }

    .mm-hero {
        margin-top: 1rem;
        border-radius: 22px;
    }

    .mm-hero__grid {
        padding: 1.35rem;
    }

    .mm-hero__actions {
        flex-direction: column;
    }

    .mm-btn {
        width: 100%;
    }

    .mm-trust-grid,
    .mm-card-grid,
    .mm-process,
    .mm-review-grid,
    .mm-footer,
    .mmf-premium-grid {
        grid-template-columns: 1fr;
    }

    .mm-section__head {
        display: block;
    }

    .woocommerce ul.products,
    .mm-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .woocommerce ul.products li.product {
        padding: 0.7rem;
        border-radius: 18px;
    }

    .woocommerce ul.products li.product img {
        border-radius: 15px;
    }

    .mmf-chat-fab {
        right: 14px;
        bottom: 74px;
    }

    .mmf-chat-fab__text {
        display: none;
    }

    .mmf-chat-fab__main {
        width: 56px;
        height: 56px;
        justify-content: center;
        padding: 0;
    }

    .mmf-chat-fab__options,
    .mmf-wechat-panel {
        right: 0;
        bottom: 66px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .woocommerce ul.products,
    .mm-products ul.products {
        grid-template-columns: 1fr;
    }

    .mm-hero__title {
        font-size: 2.15rem;
    }

    .mm-hero__visual {
        min-height: 260px;
    }
}
