/* ============================================================
   Mdamflower Design System (th.css)
   Pure custom CSS — NO Bootstrap dependency
   mf- prefix classes throughout
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --mf-primary: #1b4332;
    --mf-primary-dark: #132e23;
    --mf-accent: #d4a247;
    --mf-accent-hover: #c08f35;
    --mf-accent-light: #faf0dc;
    --mf-accent-gradient: linear-gradient(135deg, #d4a247 0%, #e6be6a 100%);
    --mf-gold: #d4a547;
    --mf-green: #06c755;
    --mf-text: #2d3b34;
    --mf-text-light: #5a6b61;
    --mf-text-muted: #8a9b90;
    --mf-bg: #fff;
    --mf-bg-warm: #faf8f3;
    --mf-bg-light: #f5f7f5;
    --mf-bg-accent: #faf6ed;
    --mf-border: #dce5df;
    --mf-shadow-sm: 0 1px 3px rgba(27,67,50,.04), 0 1px 2px rgba(27,67,50,.06);
    --mf-shadow-md: 0 4px 16px rgba(27,67,50,.07);
    --mf-shadow-lg: 0 12px 32px rgba(27,67,50,.1);
    --mf-shadow-accent: 0 8px 24px rgba(212,162,71,.25);
    --mf-radius: 12px;
    --mf-radius-lg: 18px;
    --mf-radius-pill: 50px;
    --mf-font: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mf-transition: all .3s cubic-bezier(.4,0,.2,1);
    --mf-max-width: 1200px;
}

/* --- Minimal Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--mf-font);
    color: var(--mf-text);
    background: var(--mf-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--mf-text); }
a:hover { color: var(--mf-accent); }
ul, ol { list-style-position: inside; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
hr { border: none; border-top: 1px solid var(--mf-border); margin: 1.5rem 0; }
table { width: 100% !important; }
button { font-family: inherit; }

/* --- Typography --- */
p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.25rem; }

/* --- Layout: Wrapper --- */
.mf-wrapper {
    width: 100%;
    max-width: var(--mf-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Navigation --- */
.mf-navbar {
    background: #fff;
    padding: .75rem 0;
    box-shadow: 0 1px 0 var(--mf-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.95);
}
.mf-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--mf-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.mf-navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--mf-text);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -.01em;
}
.mf-navbar-brand img {
    max-height: 40px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.mf-navbar-toggle {
    display: none;
    background: none;
    border: 2px solid var(--mf-border);
    border-radius: var(--mf-radius);
    padding: .5rem .65rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--mf-transition);
}
.mf-navbar-toggle:hover { border-color: var(--mf-accent); }
.mf-navbar-toggle svg { display: block; }

.mf-nav-list {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mf-nav-item { position: relative; }
.mf-nav-link {
    display: block;
    padding: .5rem .9rem;
    color: var(--mf-text-light);
    font-weight: 400;
    font-size: .9rem;
    border-radius: var(--mf-radius);
    transition: var(--mf-transition);
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}
.mf-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mf-accent);
    transition: var(--mf-transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.mf-nav-link:hover, .mf-nav-link:focus { color: var(--mf-accent); }
.mf-nav-link:hover::after { width: 60%; }

/* Dropdown */
.mf-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow-lg);
    padding: .5rem;
    z-index: 200;
    list-style: none;
}
.mf-nav-item:hover > .mf-dropdown-menu,
.mf-nav-item.open > .mf-dropdown-menu { display: block; }

.mf-dropdown-link {
    display: block;
    padding: .5rem 1rem;
    color: var(--mf-text-light);
    font-size: .88rem;
    transition: var(--mf-transition);
    border-radius: calc(var(--mf-radius) - 4px);
}
.mf-dropdown-link:hover {
    background: var(--mf-accent-light);
    color: var(--mf-accent);
}

/* Nav CTA */
.mf-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    background: #06c755;
    color: #fff !important;
    font-size: .85rem;
    font-weight: 500;
    border-radius: var(--mf-radius-pill);
    transition: var(--mf-transition);
    border: none;
}
.mf-nav-cta:hover {
    background: #05b34a;
    transform: translateY(-1px);
    color: #fff;
}

/* Mobile nav buttons */
.mf-nav-mobile-only { display: none; }

/* --- Contact Bar --- */
.mf-contact-bar {
    background: linear-gradient(135deg, var(--mf-primary) 0%, #2d6a4f 100%);
    padding: .5rem 0;
    color: #fff;
    font-size: .85rem;
    text-align: center;
    letter-spacing: .02em;
}
.mf-contact-bar a {
    color: #fff;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--mf-transition);
}
.mf-contact-bar a:hover { color: rgba(255,255,255,.85); }
.mf-contact-bar svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    vertical-align: middle;
    margin-right: .3rem;
}

/* --- Page Header --- */
.mf-page-header {
    background: #fff;
    border-bottom: 1px solid var(--mf-border);
    padding: 1.75rem 0;
}
.mf-page-header h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--mf-text);
    margin: 0;
    max-width: var(--mf-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Pill Category Navigation --- */
.mf-nav-pill {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .75rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.mf-nav-pill::-webkit-scrollbar { display: none; }
.mf-nav-pill a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .5rem 1.35rem;
    background: #fff;
    color: var(--mf-text-light);
    border-radius: var(--mf-radius-pill);
    font-size: .88rem;
    font-weight: 400;
    transition: var(--mf-transition);
    border: 1.5px solid var(--mf-border);
    box-shadow: var(--mf-shadow-sm);
}
.mf-nav-pill a:hover {
    background: var(--mf-accent-light);
    color: var(--mf-accent);
    border-color: var(--mf-accent);
    transform: translateY(-1px);
}
.mf-nav-pill a.active {
    background: var(--mf-accent);
    color: #fff;
    border-color: var(--mf-accent);
    font-weight: 500;
    box-shadow: var(--mf-shadow-accent);
}

/* --- Section Title --- */
.mf-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--mf-text);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--mf-accent);
    letter-spacing: -.01em;
}

/* --- CSS Grid Product Layouts --- */
.mf-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* Category grid on home (slightly larger cards) */
.mf-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Feature highlights grid */
.mf-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

/* --- Product Card --- */
.mf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow-sm);
    overflow: hidden;
    transition: var(--mf-transition);
    color: var(--mf-text);
    position: relative;
    border: 1px solid transparent;
}
.mf-card:hover {
    box-shadow: var(--mf-shadow-lg);
    transform: translateY(-4px);
    color: var(--mf-text);
    border-color: var(--mf-accent-light);
}
.mf-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mf-bg-light);
}
.mf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mf-card:hover .mf-card-img img {
    transform: scale(1.08);
}
.mf-card-body {
    padding: .85rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mf-card-title {
    font-size: .88rem;
    font-weight: 500;
    margin: 0 0 .5rem;
    color: var(--mf-text);
    line-height: 1.4;
}
.mf-card-price {
    font-size: .85rem;
    margin-top: auto;
}

/* --- Price Styles --- */
.mf-price-original {
    text-decoration: line-through;
    color: var(--mf-text-muted);
    font-size: .8rem;
}
.mf-price-current {
    font-weight: 700;
    color: #c0392b;
    font-size: 1.25rem;
}
.mf-price-start {
    color: #c0392b;
    font-weight: 700;
    font-size: 1.05rem;
}

/* --- Sale Badge --- */
.mf-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
    font-weight: 500;
    padding: .2rem .6rem;
    border-radius: var(--mf-radius-pill);
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 1;
}

/* --- Buttons --- */
.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.75rem;
    border-radius: var(--mf-radius-pill);
    font-size: .9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--mf-transition);
    text-align: center;
    letter-spacing: .01em;
}
.mf-btn-line {
    background: var(--mf-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(6,199,85,.25);
}
.mf-btn-line:hover { background: #05b34a; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(6,199,85,.3); }
.mf-btn-dark {
    background: var(--mf-primary);
    color: #fff;
}
.mf-btn-dark:hover { background: #334155; color: #fff; transform: translateY(-1px); }
.mf-btn-accent {
    background: var(--mf-accent-gradient);
    color: var(--mf-primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212,162,71,.3);
}
.mf-btn-accent:hover { box-shadow: var(--mf-shadow-accent); color: var(--mf-primary-dark); transform: translateY(-1px); }
.mf-btn-block { display: flex; width: 100%; }

/* --- Breadcrumb --- */
.mf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .85rem;
}
.mf-breadcrumb li { display: flex; align-items: center; }
.mf-breadcrumb li + li::before {
    content: '›';
    margin: 0 .5rem;
    color: var(--mf-text-muted);
    font-size: 1rem;
}
.mf-breadcrumb a { color: var(--mf-text-light); }
.mf-breadcrumb a:hover { color: var(--mf-accent); }
.mf-breadcrumb .active { color: var(--mf-text-muted); }

/* --- Advice / CTA Component --- */
.mf-advice {
    background: #fff;
    border-left: 4px solid var(--mf-accent);
    border-radius: var(--mf-radius);
    padding: 1.75rem;
    box-shadow: var(--mf-shadow-sm);
}
.mf-advice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mf-text);
    margin-bottom: .75rem;
}
.mf-advice ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.mf-advice ol li {
    font-size: .9rem;
    color: var(--mf-text-light);
    margin-bottom: .25rem;
}
.mf-advice-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* --- Info Box --- */
.mf-info-box {
    padding: 1.25rem;
    border-radius: var(--mf-radius);
    background: #fff;
    border-left: 4px solid var(--mf-accent);
    box-shadow: var(--mf-shadow-sm);
}
.mf-info-box .header {
    font-weight: 500;
    font-size: 1rem;
    color: var(--mf-text);
    margin-bottom: .75rem;
}

/* --- Product Detail Layout --- */
.mf-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}
.mf-detail-image {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--mf-radius-lg);
    border: 1px solid var(--mf-border);
}
.mf-detail-image img { border-radius: var(--mf-radius); max-width: 100%; }
.mf-detail-info { }

/* Service benefits box */
.mf-benefits {
    background: #f0faf0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}
.mf-benefits div { margin-bottom: .5rem; }
.mf-benefits div:last-child { margin-bottom: 0; }
.mf-check { color: #06C755; font-weight: 700; }

/* Order CTA box */
.mf-order-cta {
    background: var(--mf-bg-accent);
    border: 2px solid var(--mf-accent-light);
    border-radius: var(--mf-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.mf-order-cta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mf-accent);
    margin-bottom: .75rem;
}
.mf-order-cta-buttons {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Tabs (pure CSS) --- */
.mf-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mf-border);
    margin-bottom: 0;
}
.mf-tab {
    padding: .75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: .95rem;
    font-weight: 400;
    color: var(--mf-text-muted);
    cursor: pointer;
    transition: var(--mf-transition);
    font-family: inherit;
}
.mf-tab:hover { color: var(--mf-text); }
.mf-tab.active {
    color: var(--mf-accent);
    border-bottom-color: var(--mf-accent);
    font-weight: 600;
}
.mf-tab-content { padding: 1.25rem 0; }
.mf-tab-pane { display: none; }
.mf-tab-pane.active { display: block; }

/* --- Footer --- */
.mf-footer {
    background: linear-gradient(180deg, var(--mf-primary) 0%, var(--mf-primary-dark) 100%);
    margin-top: 3rem;
    color: rgba(255,255,255,.7);
}
.mf-footer h4 {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: .02em;
}
.mf-footer a {
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    line-height: 2;
    transition: var(--mf-transition);
}
.mf-footer a:hover { color: var(--mf-accent-light); }

.mf-footer-features {
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 2.5rem 0;
}
.mf-footer-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.mf-footer-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: .75rem;
}
.mf-footer-feature svg {
    width: 36px;
    height: 36px;
    fill: var(--mf-accent);
}
.mf-footer-feature-title {
    font-size: .92rem;
    font-weight: 500;
    color: #fff;
}
.mf-footer-feature-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
}

.mf-footer-main { padding: 2.5rem 0 1.5rem; }
.mf-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.mf-footer-col a { display: block; }
.mf-footer-col { text-align: center; }

.mf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem 0;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.mf-footer-bottom a {
    color: rgba(255,255,255,.4);
    font-size: .82rem;
    margin-left: 1rem;
}
.mf-footer-bottom a:hover { color: rgba(255,255,255,.7); }

.mf-footer-socials {
    margin-top: .75rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.mf-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    transition: var(--mf-transition);
}
.mf-footer-social svg {
    width: 100%;
    height: 100%;
    fill: rgba(255,255,255,.7);
}
.mf-footer-social:hover { background: var(--mf-accent); transform: translateY(-2px); }
.mf-footer-social:hover svg { fill: var(--mf-primary-dark); }

/* --- Carousel (owl-carousel wrapper) --- */
.mf-banner-wrap {
    border-radius: var(--mf-radius-lg);
    overflow: hidden;
    box-shadow: var(--mf-shadow-md);
}
.mf-banner-wrap img { width: 100%; display: block; }

/* --- Utilities --- */
.mf-text-center { text-align: center; }
.mf-text-start { text-align: left; }
.mf-mt-1 { margin-top: .5rem; }
.mf-mt-2 { margin-top: 1rem; }
.mf-mt-3 { margin-top: 1.5rem; }
.mf-mt-4 { margin-top: 2rem; }
.mf-mt-5 { margin-top: 3rem; }
.mf-mb-1 { margin-bottom: .5rem; }
.mf-mb-2 { margin-bottom: 1rem; }
.mf-mb-3 { margin-bottom: 1.5rem; }
.mf-mb-4 { margin-bottom: 2rem; }
.mf-my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.mf-my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mf-my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.mf-py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mf-py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.mf-hidden { display: none; }
.mf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .mf-navbar-toggle { display: block; }
    .mf-nav { display: none; }
    .mf-nav.open {
        display: block;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--mf-shadow-lg);
        padding: 1rem 1.25rem;
        z-index: 200;
        border-top: 1px solid var(--mf-border);
    }
    .mf-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .mf-nav-link { padding: .6rem .5rem; }
    .mf-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    .mf-nav-item:hover > .mf-dropdown-menu { display: none; }
    .mf-nav-item.open > .mf-dropdown-menu { display: block; }
    .mf-nav-desktop-only { display: none !important; }
    .mf-nav-mobile-only { display: block; }
    .mf-features { grid-template-columns: repeat(2, 1fr); }
    .mf-footer-features-grid { grid-template-columns: repeat(2, 1fr); }
    .mf-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .mf-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .mf-products { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .mf-categories { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .mf-contact-bar { font-size: .8rem; }
    .mf-contact-bar a { margin: 0 .5rem; }
}

@media (max-width: 480px) {
    .mf-features { grid-template-columns: 1fr; }
    .mf-footer-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .mf-products { grid-template-columns: repeat(3, 1fr); }
    .mf-categories { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .mf-products { grid-template-columns: repeat(5, 1fr); }
    .mf-categories { grid-template-columns: repeat(5, 1fr); }
}

/* iOS zoom prevention */
@media only screen and (max-width: 767px) {
    @media screen and (-webkit-min-device-pixel-ratio:0) {
        select, textarea, input { font-size: 16px !important; }
    }
}

/* --- Flex Grid Layout --- */
.mf-row {
    display: flex;
    flex-wrap: wrap;
    margin: -.5rem;
}
.mf-row > * { padding: .5rem; box-sizing: border-box; }
.mf-col { flex: 1 0 0%; }
.mf-col-12 { flex: 0 0 100%; max-width: 100%; }
.mf-col-6 { flex: 0 0 50%; max-width: 50%; }
.mf-col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.mf-col-3 { flex: 0 0 25%; max-width: 25%; }
@media (min-width: 768px) {
    .mf-col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .mf-col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .mf-col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; }
    .mf-col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .mf-col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}

/* --- Display Utilities --- */
.mf-d-none { display: none !important; }
.mf-d-block { display: block !important; }
.mf-d-flex { display: flex !important; }
.mf-d-inline-flex { display: inline-flex !important; }
.mf-flex-wrap { flex-wrap: wrap; }
.mf-flex-column { flex-direction: column; }
.mf-justify-center { justify-content: center; }
.mf-justify-between { justify-content: space-between; }
.mf-align-center { align-items: center; }
.mf-align-start { align-items: flex-start; }
.mf-gap-1 { gap: .5rem; }
.mf-gap-2 { gap: 1rem; }
.mf-gap-3 { gap: 1.5rem; }

@media (max-width: 991px) {
    .mf-d-lg-none { display: none !important; }
    .mf-d-lg-block { }
}
@media (min-width: 992px) {
    .mf-d-lg-none { }
    .mf-d-lg-block { display: block !important; }
    .mf-d-lg-flex { display: flex !important; }
}
@media (max-width: 767px) {
    .mf-d-md-none { display: none !important; }
}
@media (min-width: 768px) {
    .mf-d-md-block { display: block !important; }
    .mf-d-md-flex { display: flex !important; }
    .mf-text-md-start { text-align: left; }
}

/* --- Text Utilities --- */
.mf-text-muted { color: var(--mf-text-muted); }
.mf-text-light { color: var(--mf-text-light); }
.mf-text-danger { color: #dc3545; }
.mf-text-white { color: #fff; }
.mf-text-accent { color: var(--mf-accent); }
.mf-fw-bold { font-weight: 700; }
.mf-fw-medium { font-weight: 500; }
.mf-fw-light { font-weight: 300; }
.mf-fs-sm { font-size: .85rem; }
.mf-fs-lg { font-size: 1.25rem; }
.mf-fs-xl { font-size: 2rem; }

/* --- Padding Utilities --- */
.mf-px-0 { padding-left: 0; padding-right: 0; }
.mf-px-2 { padding-left: 1rem; padding-right: 1rem; }
.mf-px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mf-p-3 { padding: 1.5rem; }
.mf-p-4 { padding: 2rem; }

/* --- Width --- */
.mf-w-100 { width: 100%; }

/* --- Image --- */
.mf-img-fluid { max-width: 100%; height: auto; display: block; }

/* --- Tables --- */
.mf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.mf-table th, .mf-table td {
    padding: .65rem .75rem;
    text-align: left;
    border-bottom: 1px solid var(--mf-border);
}
.mf-table thead th {
    background: var(--mf-primary);
    font-weight: 500;
    color: var(--mf-accent-light);
    font-size: .85rem;
    letter-spacing: .02em;
}
.mf-table-bordered th, .mf-table-bordered td {
    border: 1px solid var(--mf-border);
}
.mf-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Alerts --- */
.mf-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--mf-radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    border: 1px solid transparent;
}
.mf-alert-info {
    background: #eff8ff;
    color: #1e4e7a;
    border-color: #bddcf4;
    border-left: 4px solid #3b82f6;
}
.mf-alert-warning {
    background: #fffbeb;
    color: #78590a;
    border-color: #fde68a;
    border-left: 4px solid #f59e0b;
}

/* --- List Group --- */
.mf-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: var(--mf-radius);
    overflow: hidden;
}
.mf-list-group-item {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--mf-border);
    font-size: .9rem;
}
.mf-list-group-item:last-child { border-bottom: none; }

/* --- Generic Card --- */
.mf-card-generic {
    background: #fff;
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--mf-border);
    transition: var(--mf-transition);
}
.mf-card-generic:hover { box-shadow: var(--mf-shadow-md); transform: translateY(-2px); }
.mf-card-generic-body { padding: 1.25rem; }
.mf-card-generic-img img { width: 100%; display: block; object-fit: cover; }

/* --- Owl Carousel Banner --- */
.mf-banner-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 .5rem;
}
.mf-banner-carousel .owl-nav button {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.4) !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 1.5rem !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mf-transition);
}
.mf-banner-carousel .owl-nav button:hover { background: rgba(0,0,0,.7) !important; }
.mf-banner-carousel .owl-dots {
    text-align: center;
    padding: .75rem 0;
}
.mf-banner-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    transition: var(--mf-transition);
}
.mf-banner-carousel .owl-dot.active span { background: var(--mf-primary); }

/* --- Portfolio Grid --- */
.mf-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* --- Link list (for footer, cities, temples) --- */
.mf-link-list { list-style: none; padding: 0; margin: 0; }
.mf-link-list a {
    display: block;
    padding: .3rem 0;
    color: var(--mf-text-light);
    font-size: .9rem;
    transition: var(--mf-transition);
}
.mf-link-list a:hover { color: var(--mf-accent); }

/* --- Content page wrapper --- */
.mf-content {
    line-height: 1.8;
    font-size: .95rem;
}
.mf-content h2 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .75rem; }
.mf-content h3 { font-size: 1.05rem; font-weight: 500; margin: 1.25rem 0 .5rem; }
.mf-content ul, .mf-content ol { padding-left: 1.5rem; }
.mf-content li { margin-bottom: .3rem; }

/* --- Screen reader only --- */
.mf-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Border / rounded --- */
.mf-border { border: 1px solid var(--mf-border); }
.mf-rounded { border-radius: var(--mf-radius); }

/* --- Error / Not Found pages --- */
.mf-error-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--mf-border);
    line-height: 1;
}
.mf-lead {
    font-size: 1.1rem;
    color: var(--mf-text-light);
}

/* --- Blazor error UI --- */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: .5rem;
    background: #ffecec;
    color: #900;
    text-align: center;
    font-size: .85rem;
}
#blazor-error-ui .reload { color: #900; font-weight: 600; margin-left: .5rem; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 1rem; }
