/* ============================================
   Timiza Farm Machinery - REVAMPED UI v3.0
   Modern, Professional E-Commerce Design
   
   Color Palette (Distinct from Timiza Farm Machinery):
   - Deep Teal: Premium & Modern
   - Burnt Orange: Energy & Efficiency  
   - Slate Gray: Sophistication & Trust
   - Cream: Clean & Professional
   
   Based on leading e-commerce trends: Amazon, Crate & Barrel,
   and premium agricultural machinery sites (AGCO, Case IH).
   ============================================ */

:root {
    /* Primary Brand Colors - Modern Teal & Rust */
    --tfm-green: #0D6877;
    --tfm-green-dark: #054A53;
    --tfm-green-light: #E8F4F6;
    --tfm-orange: #D2691E;
    --tfm-orange-dark: #A84F1C;
    --tfm-orange-light: #FEF3EB;
    
    /* Neutral Palette */
    --tfm-navy: #1A1F2E;
    --tfm-white: #FFFFFF;
    --tfm-gray-light: #F9F8F6;
    --tfm-gray: #EBE9E4;
    --tfm-gray-medium: #D4D0C4;
    --tfm-gray-dark: #6B7280;
    --tfm-text: #1A1F2E;
    --tfm-text-light: #3F4651;
    --tfm-text-muted: #8B92A3;

    /* Typography - Premium & Modern */
    --tfm-font-heading: 'Poppins', 'Segoe UI', sans-serif;
    --tfm-font-body: 'Segoe UI', 'Helvetica Neue', sans-serif;

    /* Layout */
    --tfm-container-max: 1240px;
    --tfm-container-padding: 0 24px;
    --tfm-radius-sm: 6px;
    --tfm-radius-md: 10px;
    --tfm-radius-lg: 16px;
    --tfm-radius-full: 999px;

    /* Shadows - Sophisticated */
    --tfm-shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
    --tfm-shadow-md: 0 8px 24px rgba(26, 31, 46, 0.10);
    --tfm-shadow-lg: 0 16px 48px rgba(26, 31, 46, 0.14);
    --tfm-shadow-xl: 0 24px 64px rgba(26, 31, 46, 0.18);

    /* Animations */
    --tfm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tfm-transition-fast: all 0.15s ease-out;
}

/* ---------- Reset ---------- */
.tfm-body, .tfm-body *, .tfm-body *::before, .tfm-body *::after { box-sizing: border-box; }
.tfm-body { font-family: var(--tfm-font-body); color: var(--tfm-text); line-height: 1.65; background: var(--tfm-white); font-size: 16px; -webkit-font-smoothing: antialiased; }
.tfm-body.tfm-no-scroll { overflow: hidden; }
.tfm-body img { max-width: 100%; height: auto; display: block; }
.tfm-body a { text-decoration: none; color: inherit; transition: var(--tfm-transition); }
.tfm-body ul { list-style: none; margin: 0; padding: 0; }
.tfm-body h1, .tfm-body h2, .tfm-body h3, .tfm-body h4 { font-family: var(--tfm-font-heading); color: var(--tfm-navy); line-height: 1.25; margin: 0; }
.tfm-body p { margin: 0; }
.tfm-body button { font-family: inherit; cursor: pointer; }

.tfm-container { max-width: var(--tfm-container-max); margin: 0 auto; padding: var(--tfm-container-padding); }
.tfm-text-accent { color: var(--tfm-orange); }
.tfm-bg-light { background: var(--tfm-gray-light); }

/* ---------- Preloader ---------- */
#tfm-preloader { position: fixed; inset: 0; background: var(--tfm-green-dark); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
#tfm-preloader.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.tfm-loader { text-align: center; }
img.tfm-loader-logo { height: 64px; width: auto; display: block; margin: 0 auto; animation: tfm-pulse 1.1s ease-in-out infinite; }
@keyframes tfm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.75; transform: scale(0.95); } }
.tfm-loader-circle { width: 48px; height: 48px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--tfm-orange); border-radius: 50%; animation: tfm-spin 0.8s linear infinite; margin: 0 auto 16px; }
.tfm-loader-text { color: #fff; font-family: var(--tfm-font-heading); font-weight: 800; letter-spacing: 4px; }
@keyframes tfm-spin { to { transform: rotate(360deg); } }

/* ---------- WhatsApp float ---------- */
.tfm-whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--tfm-shadow-lg); z-index: 9998; animation: tfm-pulse 2.4s infinite; }
@keyframes tfm-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Buttons - Premium Design ---------- */
.tfm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--tfm-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
    transition: var(--tfm-transition);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.tfm-btn-primary {
    background: var(--tfm-green);
    color: var(--tfm-white);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-btn-primary:hover {
    background: var(--tfm-green-dark);
    box-shadow: var(--tfm-shadow-md);
    transform: translateY(-2px);
}

.tfm-btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-btn-accent {
    background: var(--tfm-orange);
    color: var(--tfm-white);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-btn-accent:hover {
    background: var(--tfm-orange-dark);
    box-shadow: var(--tfm-shadow-md);
    transform: translateY(-2px);
}

.tfm-btn-accent:active {
    transform: translateY(0);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-btn-outline {
    background: transparent;
    color: var(--tfm-green);
    border-color: var(--tfm-green);
}

.tfm-btn-outline:hover {
    background: var(--tfm-green-light);
    border-color: var(--tfm-green-dark);
    color: var(--tfm-green-dark);
}

.tfm-btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.tfm-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.tfm-btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.tfm-btn-block {
    width: 100%;
}

.tfm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Header - Modern Premium ---------- */
.tfm-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--tfm-white);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.tfm-topbar {
    background: var(--tfm-navy);
    color: var(--tfm-gray-medium);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.tfm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 16px;
}

.tfm-topbar-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tfm-topbar-right {
    display: flex;
    gap: 20px;
}

.tfm-topbar-right a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--tfm-gray-medium);
    transition: var(--tfm-transition-fast);
}

.tfm-topbar-right a:hover {
    color: var(--tfm-orange);
}

.tfm-navbar {
    background: var(--tfm-white);
    transition: var(--tfm-transition);
}

.tfm-header.tfm-scrolled .tfm-navbar {
    box-shadow: var(--tfm-shadow-md);
}

.tfm-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
}

.tfm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tfm-logo-badge {
    background: linear-gradient(135deg, var(--tfm-green) 0%, var(--tfm-green-dark) 100%);
    color: var(--tfm-white);
    font-family: var(--tfm-font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    padding: 9px 14px;
    border-radius: var(--tfm-radius-sm);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-logo-text {
    font-family: var(--tfm-font-heading);
    font-weight: 700;
    color: var(--tfm-navy);
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
img.tfm-logo-img { height: 54px; width: auto; display: block; }

.tfm-nav-menu { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; }
.tfm-nav-link { padding: 10px 16px; font-weight: 600; font-size: 0.95rem; color: var(--tfm-text); border-radius: var(--tfm-radius-full); }
.tfm-nav-link:hover, .tfm-nav-link.active { color: var(--tfm-green); background: var(--tfm-green-light); }
.tfm-nav-cta { flex-shrink: 0; }

.tfm-mobile-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; }
.tfm-mobile-toggle span { display: block; height: 2.5px; width: 100%; background: var(--tfm-navy); border-radius: 2px; transition: var(--tfm-transition); }
.tfm-mobile-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.tfm-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.tfm-mobile-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (full-bleed carousel with overlaid text panel) ---------- */
.tfm-hero { position: relative; color: #fff; overflow: hidden; min-height: 480px; display: flex; align-items: center; background: var(--tfm-navy); }
.tfm-hero-slides { position: absolute; inset: 0; z-index: 0; }
.tfm-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.tfm-hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.tfm-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.tfm-hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,18,16,0.88) 0%, rgba(20,18,16,0.72) 30%, rgba(20,18,16,0.4) 58%, rgba(20,18,16,0.25) 100%); }
/* Subtle per-slide tint so the overlay feels connected to each photo without ever compromising text contrast */
.tfm-hero-tint-1 .tfm-hero-slide-overlay { background: linear-gradient(100deg, rgba(8,28,18,0.9) 0%, rgba(10,32,20,0.74) 30%, rgba(12,36,22,0.42) 58%, rgba(12,36,22,0.22) 100%); }
.tfm-hero-tint-2 .tfm-hero-slide-overlay { background: linear-gradient(100deg, rgba(10,24,30,0.9) 0%, rgba(12,30,36,0.74) 30%, rgba(14,34,40,0.42) 58%, rgba(14,34,40,0.22) 100%); }
.tfm-hero-tint-3 .tfm-hero-slide-overlay { background: linear-gradient(100deg, rgba(28,20,8,0.88) 0%, rgba(34,24,10,0.72) 30%, rgba(38,28,12,0.4) 58%, rgba(38,28,12,0.22) 100%); }

.tfm-hero-container { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.tfm-hero-panel { max-width: 620px; background: rgba(20,18,16,0.45); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--tfm-radius-lg); padding: 32px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.tfm-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.14); padding: 8px 16px; border-radius: var(--tfm-radius-full); font-size: 0.8rem; font-weight: 600; margin-bottom: 18px; border: 1px solid rgba(255,255,255,0.15); }
.tfm-hero-title { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.22; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.tfm-hero-tagline { font-size: 1rem; color: #F5F2E8; margin-bottom: 26px; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.tfm-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.tfm-hero-perks { display: flex; flex-wrap: wrap; gap: 10px; }
.tfm-hero-perk { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); padding: 8px 14px; border-radius: var(--tfm-radius-full); font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); }
.tfm-hero-perk i { color: var(--tfm-orange); }

/* ---------- Hero carousel controls ---------- */
.tfm-hero-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(15,42,26,0.45); backdrop-filter: blur(2px); color: #fff; border: none; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--tfm-transition); }
.tfm-hero-carousel-arrow:hover { background: rgba(15,42,26,0.7); }
.tfm-hero-carousel-prev { left: 16px; }
.tfm-hero-carousel-next { right: 16px; }
.tfm-hero-carousel-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.tfm-hero-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; padding: 0; transition: var(--tfm-transition); }
.tfm-hero-carousel-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ---------- Section - Modern Layout ---------- */
.tfm-section {
    padding: 80px 0;
}

.tfm-section:nth-child(even) {
    background: var(--tfm-gray-light);
}

.tfm-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.tfm-section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--tfm-navy) 0%, var(--tfm-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tfm-section-header p {
    color: var(--tfm-text-light);
    font-size: 1.02rem;
    line-height: 1.65;
}

.tfm-section-cta {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.tfm-section-cta .tfm-btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* ---------- Category Grid - Modern Cards ---------- */
.tfm-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tfm-category-card {
    background: var(--tfm-white);
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-lg);
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--tfm-shadow-sm);
    transition: var(--tfm-transition);
    opacity: 0;
    transform: translateY(16px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tfm-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 104, 119, 0.05) 0%, rgba(210, 105, 30, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tfm-category-card.tfm-in-view {
    opacity: 1;
    transform: translateY(0);
}

.tfm-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tfm-shadow-lg);
    border-color: var(--tfm-green-light);
}

.tfm-category-card:hover::before {
    opacity: 1;
}

.tfm-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tfm-green-light) 0%, rgba(13, 104, 119, 0.08) 100%);
    color: var(--tfm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
    box-shadow: var(--tfm-shadow-sm);
    transition: var(--tfm-transition);
}

.tfm-category-card:hover .tfm-category-icon {
    transform: scale(1.12) rotate(8deg);
    background: linear-gradient(135deg, var(--tfm-orange-light) 0%, rgba(210, 105, 30, 0.1) 100%);
    color: var(--tfm-orange);
}

.tfm-category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--tfm-navy);
}

.tfm-category-card span {
    display: block;
    font-size: 0.8rem;
    color: var(--tfm-text-muted);
    font-weight: 500;
}

.tfm-category-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--tfm-green-dark);
    background: var(--tfm-green-light);
    padding: 4px 12px;
    border-radius: var(--tfm-radius-full);
}

.tfm-category-stock i {
    font-size: 0.7rem;
}

/* ---------- Product Grid & Cards - Modern Premium Design ---------- */
.tfm-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tfm-product-card {
    background: var(--tfm-white);
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-lg);
    overflow: hidden;
    box-shadow: var(--tfm-shadow-sm);
    transition: var(--tfm-transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    position: relative;
}

.tfm-product-card.tfm-in-view {
    opacity: 1;
    transform: translateY(0);
}

.tfm-product-card:hover {
    box-shadow: var(--tfm-shadow-lg);
    transform: translateY(-6px);
    border-color: var(--tfm-green-light);
}

.tfm-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--tfm-gray-light) 0%, #f0ede6 100%);
    overflow: hidden;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
}

.tfm-product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 104, 119, 0) 0%, rgba(13, 104, 119, 0.05) 100%);
    pointer-events: none;
}

.tfm-product-card:hover .tfm-product-image {
    transform: scale(1.05);
}

.tfm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tfm-transition);
}

.tfm-badge-lipa {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--tfm-orange) 0%, var(--tfm-orange-dark) 100%);
    color: var(--tfm-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 12px;
    border-radius: var(--tfm-radius-full);
    box-shadow: var(--tfm-shadow-md);
    z-index: 10;
}

.tfm-product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tfm-product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--tfm-green);
    font-weight: 700;
}

.tfm-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.7em;
    color: var(--tfm-text);
}

.tfm-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tfm-green);
    letter-spacing: -0.3px;
}

.tfm-product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 8px;
}

.tfm-product-actions .tfm-btn {
    padding: 11px 16px;
    font-size: 0.84rem;
    border-radius: var(--tfm-radius-md);
}

/* ---------- Features Grid - Modern Card Design ---------- */
.tfm-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tfm-feature-card {
    display: block;
    background: var(--tfm-white);
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-lg);
    padding: 28px 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: var(--tfm-transition);
    position: relative;
    overflow: hidden;
}

.tfm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tfm-green) 0%, var(--tfm-orange) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tfm-feature-card:hover::before {
    transform: scaleX(1);
}

.tfm-feature-card:hover {
    border-color: var(--tfm-green-light);
    box-shadow: var(--tfm-shadow-lg);
    transform: translateY(-4px);
}

.tfm-feature-card.tfm-in-view {
    opacity: 1;
    transform: translateY(0);
}

.tfm-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tfm-green-light) 0%, var(--tfm-orange-light) 100%);
    color: var(--tfm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-feature-card:hover .tfm-feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tfm-feature-card h4 {
    font-size: 1.02rem;
    margin-bottom: 10px;
    color: var(--tfm-navy);
    font-weight: 700;
}

.tfm-feature-card p {
    font-size: 0.87rem;
    color: var(--tfm-text-light);
    line-height: 1.6;
}

/* ---------- CTA Section - Premium Gradient ---------- */
.tfm-cta-section {
    background: linear-gradient(135deg, var(--tfm-green) 0%, var(--tfm-green-dark) 50%, var(--tfm-navy) 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tfm-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.tfm-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(210, 105, 30, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.tfm-cta-content {
    position: relative;
    z-index: 2;
}

.tfm-cta-content h2 {
    color: var(--tfm-white);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tfm-cta-content p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.6;
}

.tfm-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* ---------- Footer ---------- */
/* ---------- Footer - Modern Premium ---------- */
.tfm-footer {
    background: linear-gradient(135deg, var(--tfm-navy) 0%, #0f1419 100%);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

.tfm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(13, 104, 119, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(210, 105, 30, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.tfm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.tfm-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tfm-footer-logo .tfm-logo-text {
    color: var(--tfm-white);
    font-weight: 800;
}

img.tfm-footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
    background: var(--tfm-white);
    padding: 8px 12px;
    border-radius: var(--tfm-radius-sm);
    box-shadow: var(--tfm-shadow-md);
}

.tfm-footer-tagline {
    color: var(--tfm-orange);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tfm-footer-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.tfm-footer-social {
    display: flex;
    gap: 12px;
}

.tfm-footer-social-labeled {
    margin-top: 18px;
}

.tfm-footer-social-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.tfm-footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tfm-footer-social-links .tfm-contact-social-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--tfm-transition-fast);
}

.tfm-footer-social-links .tfm-contact-social-link:hover {
    color: var(--tfm-orange);
    transform: translateX(4px);
}

.tfm-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tfm-white);
    transition: var(--tfm-transition);
    font-size: 0.9rem;
}

.tfm-social-icon:hover {
    background: var(--tfm-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(210, 105, 30, 0.3);
}

.tfm-social-facebook { background: #1877F2; }
.tfm-social-facebook:hover { background: #165DCD; }
.tfm-social-tiktok { background: #000000; }
.tfm-social-tiktok:hover { background: #1a1a1a; }
.tfm-social-youtube { background: #FF0000; }
.tfm-social-youtube:hover { background: #E60000; }
.tfm-social-whatsapp { background: #25D366; }
.tfm-social-whatsapp:hover { background: #1fbb50; }

/* Uses "h4.tfm-footer-title" (element + class) for the same reason as
   h1.tfm-page-hero-title above: a bare single-class selector was losing the
   specificity tie to the global ".tfm-body h4" navy rule, turning these
   footer headings navy-on-navy and invisible. */
h4.tfm-footer-title {
    color: var(--tfm-white);
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tfm-footer-links li {
    margin-bottom: 12px;
}

.tfm-footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--tfm-transition-fast);
}

.tfm-footer-links a:hover {
    color: var(--tfm-orange);
    transform: translateX(4px);
    display: inline-block;
}

.tfm-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.tfm-footer-contact i {
    color: var(--tfm-orange);
    margin-top: 2px;
    font-size: 0.9rem;
}

.tfm-footer-contact li .fa-whatsapp { color: #25D366; }
.tfm-footer-contact li .fa-facebook-f { color: #1877F2; }
.tfm-footer-contact li .fa-tiktok { color: #000000; }
.tfm-footer-contact li .fa-youtube { color: #FF0000; }

.tfm-footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--tfm-transition-fast);
}

.tfm-footer-contact a:hover {
    color: var(--tfm-orange);
}

.tfm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.tfm-footer-bottom-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.tfm-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.tfm-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--tfm-transition-fast);
}

.tfm-footer-bottom-links a:hover {
    color: var(--tfm-orange);
}

/* ---------- Page Hero (Shop / Contact) - Modern ---------- */
.tfm-page-hero {
    background: linear-gradient(135deg, var(--tfm-green) 0%, var(--tfm-navy) 50%, rgba(26, 31, 46, 0.95) 100%);
    color: var(--tfm-white);
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
}

.tfm-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.tfm-page-hero .tfm-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Uses "h1.tfm-page-hero-title" (element + class) so this white color always
   beats the global ".tfm-body h1" navy heading rule, which otherwise wins the
   specificity tie against a single-class selector and rendered these titles
   navy-on-navy/green — invisible against the page-hero gradient background. */
h1.tfm-page-hero-title {
    color: var(--tfm-white);
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 800;
    margin: 16px 0 14px;
    width: 100%;
    letter-spacing: -0.5px;
}

.tfm-page-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 660px;
    margin: 0 auto;
    font-size: 1.02rem;
    width: 100%;
    line-height: 1.65;
}

.tfm-page-hero-breadcrumb {
    margin-top: 24px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tfm-page-hero-breadcrumb a {
    color: var(--tfm-white);
    font-weight: 600;
    transition: var(--tfm-transition-fast);
}

.tfm-page-hero-breadcrumb a:hover {
    color: var(--tfm-orange);
}

.tfm-page-hero-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ---------- Shop Filters - Modern Buttons ---------- */
.tfm-filter-btn {
    padding: 10px 18px;
    border-radius: var(--tfm-radius-full);
    border: 2px solid var(--tfm-gray-medium);
    background: var(--tfm-white);
    color: var(--tfm-text-light);
    font-weight: 600;
    font-size: 0.84rem;
    transition: var(--tfm-transition);
    cursor: pointer;
    letter-spacing: 0.2px;
}

.tfm-filter-btn:hover {
    border-color: var(--tfm-green);
    color: var(--tfm-green);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-filter-btn.active {
    background: linear-gradient(135deg, var(--tfm-green) 0%, var(--tfm-green-dark) 100%);
    border-color: var(--tfm-green);
    color: var(--tfm-white);
    box-shadow: var(--tfm-shadow-md);
}

.tfm-shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--tfm-text-muted);
}

/* ---------- Lipa Mdogo page ---------- */
.tfm-lipa-hero { background: linear-gradient(135deg, var(--tfm-navy) 0%, var(--tfm-green-dark) 55%, var(--tfm-green) 100%); color: #fff; padding: 56px 0 60px; text-align: center; }
.tfm-lipa-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.tfm-lipa-hero p { color: #EEE8D5; max-width: 560px; margin: 0 auto 22px; font-size: 0.95rem; }
.tfm-lipa-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tfm-lipa-badges span { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 9px 16px; border-radius: var(--tfm-radius-full); font-size: 0.8rem; font-weight: 600; }
.tfm-lipa-badges i { color: var(--tfm-orange); }

.tfm-lipa-section { padding-top: 0; margin-top: -32px; }
.tfm-lipa-narrow { max-width: 640px; }
.tfm-lipa-card { background: #fff; border-radius: var(--tfm-radius-lg); box-shadow: var(--tfm-shadow-md); padding: 22px; margin-bottom: 18px; }
.tfm-lipa-terms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tfm-lipa-terms-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--tfm-text-light); line-height: 1.5; }
.tfm-lipa-terms-list li i { color: var(--tfm-green); margin-top: 3px; flex-shrink: 0; }

.tfm-lipa-product-card { padding: 18px; }
.tfm-lipa-eyebrow { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--tfm-orange-dark); margin-bottom: 10px; }
.tfm-lipa-product-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tfm-lipa-product-row img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--tfm-radius-md); flex-shrink: 0; }
.tfm-lipa-product-row h3 { font-size: 1rem; margin-bottom: 6px; }
.tfm-lipa-cash-price { display: inline-block; background: var(--tfm-orange-light); color: var(--tfm-orange-dark); font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: var(--tfm-radius-full); }

.tfm-lipa-plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tfm-lipa-plan-item { background: var(--tfm-gray-light); border-radius: var(--tfm-radius-md); padding: 12px 14px; }
.tfm-lipa-plan-item span { display: block; font-size: 0.72rem; color: var(--tfm-text-muted); margin-bottom: 4px; }
.tfm-lipa-plan-item strong { display: block; font-size: 0.98rem; color: var(--tfm-text); font-weight: 800; }
.tfm-lipa-plan-highlight { background: var(--tfm-orange-light); grid-column: 1 / -1; }
.tfm-lipa-plan-highlight span { color: var(--tfm-orange-dark); }
.tfm-lipa-plan-highlight strong { color: var(--tfm-orange-dark); font-size: 1.15rem; }
.tfm-lipa-plan-note { font-size: 0.8rem; color: var(--tfm-text-muted); margin-top: 14px; text-align: center; }

.tfm-lipa-summary-card { background: linear-gradient(135deg, var(--tfm-green-dark), var(--tfm-green)); color: #fff; }
.tfm-lipa-summary-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.tfm-lipa-summary-top span { font-size: 0.8rem; color: #E3DCC6; }
.tfm-lipa-summary-top strong { font-size: 1.5rem; font-weight: 800; }
.tfm-lipa-summary-top strong small { font-size: 0.7rem; font-weight: 500; color: #E3DCC6; }
.tfm-lipa-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tfm-lipa-summary-item { background: rgba(255,255,255,0.1); border-radius: var(--tfm-radius-md); padding: 12px; }
.tfm-lipa-summary-item span { display: block; font-size: 0.7rem; color: #E3DCC6; margin-bottom: 4px; }
.tfm-lipa-summary-item strong { font-size: 0.95rem; font-weight: 700; }
.tfm-lipa-note { margin-top: 16px; font-size: 0.78rem; color: #EEE8D5; display: flex; align-items: center; gap: 8px; }

.tfm-lipa-form-header { text-align: left; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--tfm-green); }
.tfm-lipa-form-header h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tfm-lipa-form-header p { font-size: 0.84rem; color: var(--tfm-text-light); }
.tfm-lipa-form-note { text-align: center; font-size: 0.78rem; color: var(--tfm-text-muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Forms (shared: Lipa Mdogo + Contact) ---------- */
.tfm-form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tfm-form-group { margin-bottom: 16px; }
.tfm-form-group label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 7px; color: var(--tfm-text); }
.tfm-required { color: var(--tfm-orange); }
.tfm-form-group input, .tfm-form-group select, .tfm-form-group textarea {
    width: 100%; padding: 13px 14px; border: 1.5px solid var(--tfm-gray-medium); border-radius: var(--tfm-radius-sm);
    font-family: inherit; font-size: 16px; color: var(--tfm-text); background: #fff; transition: var(--tfm-transition); min-height: 48px;
}
.tfm-form-group input:focus, .tfm-form-group select:focus, .tfm-form-group textarea:focus { outline: none; border-color: var(--tfm-green); box-shadow: 0 0 0 3px rgba(184,150,12,0.15); }
.tfm-form-group textarea { resize: vertical; min-height: 90px; }
.tfm-form-hint { display: block; font-size: 0.76rem; font-weight: 400; color: var(--tfm-text-muted); margin-top: 6px; line-height: 1.4; }
.tfm-cash-choice { background: #F7FAF8; border: 1px solid var(--tfm-gray); border-radius: var(--tfm-radius-sm); margin: 0 0 16px; padding: 14px; }
.tfm-cash-choice legend { color: var(--tfm-navy); font-size: 0.84rem; font-weight: 800; padding: 0 5px; }
.tfm-cash-choice label { align-items: center; color: var(--tfm-text); cursor: pointer; display: flex; font-size: 0.82rem; font-weight: 600; gap: 9px; margin: 7px 0; }
.tfm-cash-choice input[type="radio"] { accent-color: var(--tfm-green); height: 18px; margin: 0; min-height: 0; width: 18px; }
.tfm-cash-choice input[type="radio"]:disabled + span { color: var(--tfm-text-muted); cursor: not-allowed; }
.tfm-cash-summary { color: var(--tfm-green-dark); font-size: 0.78rem; font-weight: 700; line-height: 1.45; margin: 9px 0 0; }
.tfm-input-error { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217,83,79,0.12) !important; }

/* ---------- Contact page ---------- */
.tfm-contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.tfm-contact-form-wrapper h2 { font-size: 1.4rem; margin-bottom: 8px; }
.tfm-contact-form-desc { color: var(--tfm-text-light); font-size: 0.9rem; margin-bottom: 24px; }
.tfm-contact-form-note { font-size: 0.78rem; color: var(--tfm-text-muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.tfm-form-status { margin-top: 12px; font-size: 0.88rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.tfm-status-success { color: var(--tfm-green); }
.tfm-status-error { color: #d9534f; }

.tfm-contact-info-card { background: #fff; border: 1px solid var(--tfm-gray); border-radius: var(--tfm-radius-lg); padding: 24px; box-shadow: var(--tfm-shadow-sm); margin-bottom: 20px; }
.tfm-contact-info-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.tfm-contact-info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.tfm-contact-info-item:last-child { margin-bottom: 0; }
.tfm-contact-info-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tfm-green-light); color: var(--tfm-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tfm-contact-info-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.tfm-contact-info-item p, .tfm-contact-info-item small { font-size: 0.85rem; color: var(--tfm-text-light); }
.tfm-contact-cta-card { background: linear-gradient(135deg, var(--tfm-green-dark), var(--tfm-green)); color: #fff; text-align: center; }
.tfm-contact-cta-card h3 { color: #fff; }
.tfm-contact-cta-card p { color: #EEE8D5; font-size: 0.86rem; margin-bottom: 16px; }
.tfm-contact-group { background: #0C2A25; border: 1px solid rgba(238, 243, 238, 0.16); border-radius: 12px; color: #F4F7F3; margin: 0 0 18px; padding: 14px; }
.tfm-contact-group .tfm-contact-group-title { color: #F4F7F3; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 2px; text-transform: uppercase; }
.tfm-contact-group .tfm-contact-group-desc { color: rgba(244, 247, 243, 0.7); font-size: 0.78rem; margin: 0 0 8px; }
.tfm-contact-number { align-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(238, 243, 238, 0.13); border-radius: 9px; display: flex; gap: 12px; justify-content: space-between; margin-top: 6px; min-height: 48px; padding: 8px 11px; }
.tfm-contact-number > span { color: rgba(244, 247, 243, 0.72); font-size: 0.74rem; }
.tfm-contact-number > a, .tfm-contact-number-actions > a { align-items: center; color: #F4F7F3; display: inline-flex; font-size: 0.88rem; font-weight: 800; gap: 7px; text-decoration: none; white-space: nowrap; }
.tfm-contact-number > strong { color: #F4F7F3; font-size: 0.84rem; font-weight: 700; text-align: right; }
.tfm-contact-number > a:hover, .tfm-contact-number-actions > a:hover { color: #fff; }
.tfm-contact-number-actions { align-items: center; display: inline-flex; gap: 8px; }
.tfm-contact-number .tfm-contact-whatsapp-link { color: #fff; }
.tfm-contact-whatsapp-link i { align-items: center; background: #1FA855; border-radius: 50%; display: inline-flex; height: 34px; justify-content: center; min-width: 34px; }
@media (max-width: 420px) {
    .tfm-contact-info-card { padding: 16px; }
    .tfm-contact-group { padding: 11px; }
    .tfm-contact-number { align-items: flex-start; flex-direction: column; gap: 5px; }
    .tfm-contact-number > strong { text-align: left; }
    .tfm-contact-number-actions { align-self: stretch; justify-content: space-between; }
}

/* ---------- Product image / quick view trigger ---------- */
.tfm-img-wrap { position: relative; display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #eef1ee 25%, #f7f9f7 37%, #eef1ee 63%); background-size: 400% 100%; animation: tfm-shimmer 1.4s ease infinite; }
.tfm-img-wrap.tfm-img-loaded { animation: none; background: none; }
.tfm-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.tfm-img-wrap.tfm-img-loaded img { opacity: 1; }
@keyframes tfm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.tfm-badge-gallery { position: absolute; top: 10px; right: 10px; background: rgba(15,42,26,0.65); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 9px; border-radius: var(--tfm-radius-full); display: flex; align-items: center; gap: 5px; }
.tfm-quick-view-hint { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(15,42,26,0.75), transparent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 24px 12px 10px; text-align: center; opacity: 0; transform: translateY(6px); transition: var(--tfm-transition); pointer-events: none; }
.tfm-product-card:hover .tfm-quick-view-hint { opacity: 1; transform: translateY(0); }
.tfm-product-name.tfm-quick-view-trigger { cursor: pointer; background: none; border: none; text-align: left; padding: 0; font-family: inherit; }
.tfm-product-name.tfm-quick-view-trigger:hover { color: var(--tfm-green); }

/* ---------- Trust stats strip ---------- */
.tfm-stats-strip { background: var(--tfm-navy); padding: 26px 0; }
.tfm-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
.tfm-stat strong { display: block; color: var(--tfm-orange); font-family: var(--tfm-font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.tfm-stat strong i { font-size: 1.3rem; }
.tfm-stat span { color: #E3DCC6; font-size: 0.76rem; font-weight: 600; }

/* ---------- Shop toolbar (search + filters, sticky) ---------- */
/* ---------- Shop result bar (compact, products stay dominant) ---------- */
.tfm-shop-resultbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--tfm-gray); }
.tfm-shop-result-count { font-size: 0.86rem; color: var(--tfm-text-light); }
.tfm-shop-result-count strong { color: var(--tfm-navy); font-weight: 800; }
.tfm-shop-filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--tfm-radius-full); border: 1.5px solid var(--tfm-gray-medium); background: #fff; color: var(--tfm-text); font-weight: 700; font-size: 0.84rem; position: relative; }
.tfm-shop-filter-toggle:hover, .tfm-shop-filter-toggle.active { border-color: var(--tfm-green); color: var(--tfm-green); }
.tfm-shop-filter-badge { background: var(--tfm-orange); color: var(--tfm-navy); font-size: 0.68rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-left: 2px; }

.tfm-shop-filters-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease; margin-bottom: 0; }
.tfm-shop-filters-panel.active { max-height: 600px; opacity: 1; margin-bottom: 24px; }
.tfm-shop-search { position: relative; margin-bottom: 14px; margin-top: 14px; }
.tfm-shop-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tfm-text-muted); }
.tfm-shop-search input { width: 100%; padding: 13px 16px 13px 42px; border: 1.5px solid var(--tfm-gray-medium); border-radius: var(--tfm-radius-full); font-size: 16px; font-family: inherit; min-height: 48px; }
.tfm-shop-search input:focus { outline: none; border-color: var(--tfm-green); box-shadow: 0 0 0 3px rgba(184,150,12,0.15); }
.tfm-shop-filters { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Homepage quick search (replicates the shop search bar) ---------- */
.tfm-home-search-section { padding: 0; margin-top: -32px; position: relative; z-index: 3; }
.tfm-home-search-card { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto; background: var(--tfm-white); border-radius: var(--tfm-radius-full); box-shadow: var(--tfm-shadow-lg); padding: 10px 10px 10px 4px; }
.tfm-home-search-card .tfm-shop-search { flex: 1; margin: 0; }
.tfm-home-search-card .tfm-shop-search input { border: none; min-height: 44px; }
.tfm-home-search-card .tfm-shop-search input:focus { box-shadow: none; }
.tfm-home-search-btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 640px) {
    .tfm-home-search-card { flex-direction: column; align-items: stretch; border-radius: var(--tfm-radius-lg); padding: 12px; }
    .tfm-home-search-btn { width: 100%; justify-content: center; }
}

/* ---------- Quick View modal ---------- */
.tfm-modal-overlay { position: fixed; inset: 0; background: rgba(15,42,26,0.6); backdrop-filter: blur(2px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.tfm-modal-overlay.active { opacity: 1; visibility: visible; }
.tfm-modal { background: #fff; border-radius: var(--tfm-radius-lg); max-width: 780px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; transform: translateY(16px); transition: transform 0.25s ease; }
.tfm-modal-overlay.active .tfm-modal { transform: translateY(0); }
.tfm-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,42,26,0.06); border: none; font-size: 1.4rem; line-height: 1; color: var(--tfm-text); z-index: 2; }
.tfm-modal-close:hover { background: var(--tfm-gray); }
.tfm-modal-body { display: flex; flex-direction: column; }
.tfm-modal-gallery { position: relative; background: var(--tfm-gray-light); }
.tfm-modal-gallery-stage { aspect-ratio: 4 / 3; }
.tfm-modal-gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.tfm-modal-gallery-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.tfm-modal-gallery-nav button { pointer-events: all; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; color: var(--tfm-navy); box-shadow: var(--tfm-shadow-sm); }
.tfm-modal-gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.tfm-modal-gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); border: none; padding: 0; }
.tfm-modal-gallery-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.tfm-modal-info { padding: 22px; }
.tfm-modal-info h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.tfm-qv-price-main { font-size: 1.4rem; font-weight: 800; color: var(--tfm-navy); margin-bottom: 10px; }
.tfm-qv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tfm-qv-chip { background: var(--tfm-green-light); color: var(--tfm-green-dark); font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: var(--tfm-radius-full); }
.tfm-qv-description { font-size: 0.86rem; color: var(--tfm-text-light); line-height: 1.7; margin-bottom: 18px; }

/* ---------- Mobile bottom nav ---------- */
.tfm-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 997; background: #fff; border-top: 1px solid var(--tfm-gray); box-shadow: 0 -4px 20px rgba(15,42,26,0.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.tfm-bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 0.66rem; font-weight: 700; color: var(--tfm-text-muted); }
.tfm-bottom-nav-item i { font-size: 1.15rem; }
.tfm-bottom-nav-item.active { color: var(--tfm-green); }
.tfm-bottom-nav-whatsapp { color: #25D366; }

/* ---------- CEO message section ---------- */
/* NOTE: uses ".tfm-section.tfm-ceo-section" (two classes) rather than a single
   class so this background always beats the generic ".tfm-section:nth-child(even)"
   zebra-striping rule below, regardless of the section's position on the page.
   Previously the single-class selector lost that specificity fight whenever this
   section landed on an even position, silently swapping the navy background for
   a near-white one and making the white quote text unreadable. */
.tfm-section.tfm-ceo-section { background: var(--tfm-navy) !important; }
.tfm-ceo-section { position: relative; overflow: hidden; }
.tfm-ceo-card { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.tfm-ceo-quote-mark { font-family: Georgia, 'Times New Roman', serif; font-size: 4.5rem; line-height: 1; color: var(--tfm-orange); font-weight: 700; margin-bottom: 8px; }
.tfm-ceo-quote { font-family: var(--tfm-font-heading); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.55; color: #F5F1E6; margin-bottom: 30px; }
.tfm-ceo-person { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.tfm-ceo-photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--tfm-orange); }
.tfm-ceo-person-info { display: flex; flex-direction: column; gap: 2px; }
.tfm-ceo-name { font-family: var(--tfm-font-heading); font-weight: 700; color: #fff; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.tfm-ceo-role { color: #E3DCC6; font-size: 0.85rem; }
.tfm-ceo-section .tfm-testimonial-stars { color: var(--tfm-orange); margin-top: 2px; }

/* ---------- Testimonial carousel ---------- */
.tfm-testimonial-carousel { position: relative; max-width: 640px; margin: 0 auto; }
.tfm-testimonial-track { position: relative; aspect-ratio: 4 / 5; border-radius: var(--tfm-radius-lg); overflow: hidden; box-shadow: var(--tfm-shadow-md); background: var(--tfm-gray-light); }
.tfm-testimonial-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease; }
.tfm-testimonial-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.tfm-testimonial-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfm-testimonial-prev { left: -14px; }
.tfm-testimonial-next { right: -14px; }
.tfm-testimonial-dots { position: absolute; bottom: 14px; }

/* ---------- Testimonial quote cards (mirrors WhatsApp review screenshots) ---------- */
.tfm-testimonial-carousel--cards { padding-bottom: 46px; }
.tfm-testimonial-carousel--cards .tfm-testimonial-dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; }
.tfm-testimonial-carousel--cards .tfm-hero-carousel-dot { background: var(--tfm-gray-medium); }
.tfm-testimonial-carousel--cards .tfm-hero-carousel-dot.active { background: var(--tfm-green); }
.tfm-testimonial-carousel--cards .tfm-testimonial-prev,
.tfm-testimonial-carousel--cards .tfm-testimonial-next { top: 40%; }
.tfm-testimonial-track--cards { aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; border-radius: 0; }
.tfm-testimonial-track--cards .tfm-testimonial-slide { position: absolute; inset: 0; z-index: 0; }
.tfm-testimonial-track--cards .tfm-testimonial-slide.active { position: relative; z-index: 1; }
.tfm-testimonial-quote-card {
    background: var(--tfm-white);
    border-radius: var(--tfm-radius-lg);
    box-shadow: var(--tfm-shadow-md);
    padding: 40px 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tfm-testimonial-quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--tfm-green);
    font-weight: 700;
    margin-bottom: 6px;
}
.tfm-testimonial-quote-text { font-size: 1.05rem; color: var(--tfm-text); line-height: 1.65; max-width: 480px; margin: 0 auto 24px; }
.tfm-testimonial-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tfm-testimonial-track--cards .tfm-testimonial-avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--tfm-green-light);
}
.tfm-testimonial-person-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tfm-testimonial-name { font-family: var(--tfm-font-heading); font-weight: 700; color: var(--tfm-navy); font-size: 0.98rem; display: inline-flex; align-items: center; gap: 6px; }
.tfm-testimonial-verified { color: var(--tfm-green); font-size: 0.85rem; }
.tfm-testimonial-role { color: var(--tfm-text-muted); font-size: 0.82rem; }
.tfm-testimonial-stars { color: var(--tfm-orange); font-size: 0.8rem; letter-spacing: 2px; margin-top: 2px; }

/* ---------- Recent deliveries carousel ---------- */
.tfm-recent-deliveries { margin-top: 36px; }
.tfm-recent-deliveries-label { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--tfm-text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.tfm-recent-deliveries-label i { color: var(--tfm-orange); }

.tfm-deliveries-carousel { position: relative; max-width: 920px; margin: 0 auto; }
.tfm-deliveries-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tfm-deliveries-track::-webkit-scrollbar { display: none; height: 0; }
.tfm-deliveries-slide { flex: 0 0 calc(33.333% - 10px); scroll-snap-align: start; scroll-snap-stop: always; }
.tfm-deliveries-slide img {
    width: 100%; aspect-ratio: 3 / 4; object-fit: contain; display: block;
    border-radius: var(--tfm-radius-md); box-shadow: var(--tfm-shadow-sm);
    background: var(--tfm-gray-light);
}
.tfm-deliveries-prev { left: -18px; }
.tfm-deliveries-next { right: -18px; }
.tfm-deliveries-carousel .tfm-hero-carousel-arrow { opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.tfm-deliveries-carousel:hover .tfm-hero-carousel-arrow,
.tfm-deliveries-carousel:focus-within .tfm-hero-carousel-arrow { opacity: 1; visibility: visible; }
.tfm-deliveries-dots { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 16px; }
.tfm-deliveries-dots .tfm-hero-carousel-dot { background: var(--tfm-gray-medium); }
.tfm-deliveries-dots .tfm-hero-carousel-dot.active { background: var(--tfm-green); }

@media (max-width: 991px) {
    .tfm-deliveries-slide { flex-basis: calc(50% - 7px); }
}

@media (max-width: 767px) {
    .tfm-deliveries-slide { flex-basis: 78%; }
    .tfm-deliveries-carousel .tfm-hero-carousel-arrow { display: none; }
    .tfm-deliveries-prev { left: 6px; }
    .tfm-deliveries-next { right: 6px; }
}

@media (max-width: 767px) {
    .tfm-video-carousel .tfm-hero-carousel-arrow { display: none; }
}

@media (max-width: 767px) {
    .tfm-testimonial-quote-card { padding: 32px 20px 24px; }
    .tfm-testimonial-quote-text { font-size: 0.96rem; }
}

/* ---------- Terms & Conditions ---------- */
.tfm-terms-wrapper { max-width: 420px; margin: 0 auto; }
.tfm-terms-image-trigger { position: relative; display: block; width: 100%; border: none; padding: 0; border-radius: var(--tfm-radius-lg); overflow: hidden; box-shadow: var(--tfm-shadow-md); cursor: pointer; }
.tfm-terms-image-trigger img { width: 100%; height: auto; display: block; }
.tfm-terms-zoom-hint { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(20,18,16,0.85), transparent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 20px 12px 10px; text-align: center; }
.tfm-lightbox-overlay { position: fixed; inset: 0; background: rgba(20,18,16,0.85); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.tfm-lightbox-overlay.active { opacity: 1; visibility: visible; }
.tfm-lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: var(--tfm-radius-md); box-shadow: var(--tfm-shadow-lg); }
.tfm-lightbox-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.6rem; line-height: 1; }

/* ---------- Order & Payment Terms (text card) ---------- */
.tfm-tc-card { max-width: 900px; margin: 0 auto; background: var(--tfm-white); border-radius: var(--tfm-radius-lg); box-shadow: var(--tfm-shadow-md); padding: 32px; }
.tfm-tc-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 2px solid var(--tfm-green-light); }
.tfm-tc-card-header i { color: var(--tfm-orange); font-size: 1.5rem; }
.tfm-tc-card-header h3 { font-size: 1.15rem; letter-spacing: 0.4px; }

.tfm-tc-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 28px; }
.tfm-tc-plan { position: relative; background: var(--tfm-green-light); border: 1px solid rgba(13,104,119,0.14); border-radius: var(--tfm-radius-md); padding: 22px 20px; }
.tfm-tc-plan-accent { background: var(--tfm-orange-light); border-color: rgba(210,105,30,0.18); }
.tfm-tc-plan-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--tfm-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; box-shadow: var(--tfm-shadow-sm); }
.tfm-tc-plan-accent .tfm-tc-plan-icon { background: var(--tfm-orange); }
.tfm-tc-plan-tag { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--tfm-green-dark); background: rgba(13,104,119,0.1); padding: 4px 10px; border-radius: var(--tfm-radius-full); margin-bottom: 10px; }
.tfm-tc-plan-accent .tfm-tc-plan-tag { color: var(--tfm-orange-dark); background: rgba(210,105,30,0.12); }
.tfm-tc-plan h4 { font-size: 1rem; margin-bottom: 12px; color: var(--tfm-navy); line-height: 1.4; }
.tfm-tc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tfm-tc-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--tfm-text-light); line-height: 1.5; }
.tfm-tc-list li i { color: var(--tfm-green); margin-top: 3px; flex-shrink: 0; font-size: 0.8rem; }
.tfm-tc-plan-accent .tfm-tc-list li i { color: var(--tfm-orange-dark); }
.tfm-tc-plan-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(13,104,119,0.2); font-size: 0.84rem; font-weight: 700; color: var(--tfm-green-dark); line-height: 1.5; }

.tfm-tc-section { margin-bottom: 24px; }
.tfm-tc-section:last-of-type { margin-bottom: 0; }
.tfm-tc-section h4 { display: flex; align-items: center; gap: 9px; font-size: 0.98rem; color: var(--tfm-navy); margin-bottom: 10px; }
.tfm-tc-section h4 i { color: var(--tfm-orange); }
.tfm-tc-section-sub { font-size: 0.88rem; color: var(--tfm-text-muted); margin: 0 0 14px; }
.tfm-tc-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tfm-tc-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--tfm-gray-light); border: 1px solid var(--tfm-gray); color: var(--tfm-text); font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: var(--tfm-radius-full); }
.tfm-tc-chip i { color: var(--tfm-green); }
.tfm-tc-notes-list { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; }

.tfm-tc-footer { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--tfm-green-light); text-align: center; }
.tfm-tc-footer strong { display: block; font-family: var(--tfm-font-heading); font-size: 1.05rem; color: var(--tfm-navy); letter-spacing: 0.3px; margin-bottom: 4px; }
.tfm-tc-footer span { display: block; font-size: 0.86rem; font-style: italic; color: var(--tfm-text-muted); }

@media (max-width: 767px) {
    .tfm-tc-card { padding: 24px 18px; }
    .tfm-tc-plans { grid-template-columns: 1fr; }
    .tfm-tc-notes-list { grid-template-columns: 1fr; }
}
.tfm-lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ---------- Showcase Video ---------- */
.tfm-video-carousel { position: relative; max-width: 380px; margin: 0 auto; }
.tfm-video-wrapper { position: relative; max-width: 380px; max-height: 640px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--tfm-radius-lg); overflow: hidden; box-shadow: var(--tfm-shadow-md); background: #000; }
.tfm-showcase-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* ---------- Video carousel (multiple showcase clips, fixed-height stage) ---------- */
.tfm-video-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease; z-index: 0; }
.tfm-video-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.tfm-video-carousel .tfm-hero-carousel-arrow { opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.tfm-video-carousel:hover .tfm-hero-carousel-arrow,
.tfm-video-carousel:focus-within .tfm-hero-carousel-arrow { opacity: 1; visibility: visible; }
.tfm-video-carousel-prev { left: 12px; }
.tfm-video-carousel-next { right: 12px; }
.tfm-video-carousel-dots { position: static; display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.tfm-video-carousel-dots .tfm-hero-carousel-dot { background: var(--tfm-gray-medium); }
.tfm-video-carousel-dots .tfm-hero-carousel-dot.active { background: var(--tfm-green); width: 22px; }

/* ============================================
   RESPONSIVE (additions)
   ============================================ */
@media (max-width: 767px) {
    .tfm-bottom-nav { display: flex; }
    .tfm-whatsapp-float { display: none; }
    .tfm-body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    .tfm-shop-resultbar { padding: 10px 0; }
    .tfm-modal-gallery-stage { aspect-ratio: 1 / 1; }

    /* Quick View becomes a bottom sheet on mobile - easier to reach with a thumb */
    .tfm-modal-overlay { align-items: flex-end; padding: 0; }
    .tfm-modal { max-width: none; width: 100%; max-height: 85vh; border-radius: var(--tfm-radius-lg) var(--tfm-radius-lg) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .tfm-modal-overlay.active .tfm-modal { transform: translateY(0); }
    .tfm-modal::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 4px; background: var(--tfm-gray-medium); z-index: 2; }
    .tfm-modal-close { top: 20px; }
    .tfm-modal-info { padding-top: 26px; }

    /* Larger, thumb-friendly tap targets throughout */
    .tfm-filter-btn, .tfm-shop-filter-toggle { min-height: 44px; }
    .tfm-plan-tab { min-height: 52px; }
}

@media (max-width: 420px) {
    .tfm-modal { max-height: 90vh; }
}

@media (min-width: 640px) {
    .tfm-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .tfm-modal-body { flex-direction: row; }
    .tfm-modal-gallery { width: 45%; flex-shrink: 0; }
    .tfm-modal-gallery-stage { aspect-ratio: auto; height: 100%; }
    .tfm-modal-info { width: 55%; }
}

@media (max-width: 991px) {
    .tfm-mobile-menu-backdrop {
        position: fixed; 
        inset: 0; 
        background: rgba(26, 31, 46, 0.6); 
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999; 
        opacity: 0; 
        visibility: hidden; 
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    
    .tfm-mobile-menu-backdrop.active { 
        opacity: 1; 
        visibility: visible; 
    }
    
    .tfm-nav-menu {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 78%; 
        max-width: 320px; 
        height: 100vh;
        background: linear-gradient(180deg, var(--tfm-navy) 0%, #0a0d14 100%);
        flex-direction: column; 
        align-items: stretch; 
        justify-content: flex-start;
        padding: 100px 20px 24px; 
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3); 
        border-left: 1px solid rgba(255,255,255,0.08);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 1000; 
        gap: 4px;
    }
    
    .tfm-nav-menu.active { 
        right: 0; 
    }
    
    .tfm-nav-link { 
        display: block; 
        padding: 14px 16px; 
        color: rgba(255, 255, 255, 0.7) !important; 
        border-radius: var(--tfm-radius-md); 
        position: relative; 
        z-index: 1; 
        font-weight: 600; 
        background: transparent;
        transition: var(--tfm-transition-fast);
    }
    
    .tfm-nav-link:hover { 
        color: var(--tfm-orange) !important; 
        background: rgba(210, 105, 30, 0.15);
    }
    
    .tfm-nav-link.active { 
        color: var(--tfm-white) !important; 
        background: linear-gradient(135deg, var(--tfm-green) 0%, var(--tfm-green-dark) 100%);
        font-weight: 700; 
        box-shadow: var(--tfm-shadow-md);
    }
    
    .tfm-mobile-toggle { 
        display: flex; 
    }
    
    .tfm-nav-cta { 
        display: none; 
    }
    
    .tfm-nav-item { 
        position: relative; 
        z-index: 1; 
    }
    
    .tfm-topbar-item span { 
        display: none; 
    }
    
    .tfm-footer-grid { 
        grid-template-columns: 1fr 1fr; 
    }
}

@media (max-width: 767px) {
    .tfm-container { padding: 0 16px; }
    .tfm-topbar-inner { justify-content: flex-end; }
    .tfm-topbar-item { display: none; }
    .tfm-hero { min-height: 420px; }
    .tfm-hero-container { padding-top: 36px; padding-bottom: 36px; text-align: center; }
    .tfm-hero-panel { max-width: none; padding: 22px; margin: 0 auto; }
    .tfm-hero-tagline { margin-left: auto; margin-right: auto; }
    .tfm-hero-actions, .tfm-hero-perks { justify-content: center; }
    .tfm-hero-actions .tfm-btn { flex: 1; }
    .tfm-hero-carousel-arrow { width: 32px; height: 32px; font-size: 0.75rem; }
    .tfm-testimonial-prev { left: 8px; }
    .tfm-testimonial-next { right: 8px; }
    .tfm-section { padding: 48px 0; }
    .tfm-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tfm-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tfm-product-name { font-size: 0.84rem; min-height: 2.3em; }
    .tfm-features-grid { grid-template-columns: 1fr; }
    .tfm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .tfm-lipa-summary-grid { grid-template-columns: 1fr; }
    .tfm-lipa-product-row { flex-direction: row; }
    .tfm-cta-buttons .tfm-btn { width: 100%; }
    .tfm-form-row { grid-template-columns: 1fr; }
}

@media (min-width: 640px) {
    .tfm-form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .tfm-hero { min-height: 600px; }
    .tfm-hero-container { padding-top: 90px; padding-bottom: 90px; }
    .tfm-category-grid { grid-template-columns: repeat(4, 1fr); }
    .tfm-product-grid { grid-template-columns: repeat(3, 1fr); }
    .tfm-features-grid { grid-template-columns: repeat(4, 1fr); }
    .tfm-contact-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 1024px) {
    .tfm-product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
    .tfm-category-grid { grid-template-columns: repeat(2, 1fr); }
    .tfm-product-grid { grid-template-columns: repeat(2, 1fr); }
    .tfm-product-actions .tfm-btn { font-size: 0.76rem; padding: 9px 10px; }
}

/* ============================================================
   DUAL SOCIAL LINK DROPDOWN
   ============================================================ */
.tfm-social-multi {
    position: relative;
    display: inline-flex;
}
.tfm-social-multi-trigger {
    border: none;
    cursor: pointer;
    padding: 0;
    background: transparent;
    line-height: 1;
}
.tfm-social-multi-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--tfm-navy, #1a2540);
    border-radius: var(--tfm-radius-sm, 6px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    min-width: 170px;
    z-index: 200;
    overflow: hidden;
    white-space: nowrap;
}
.tfm-social-multi-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
.tfm-social-multi-dropdown a:hover {
    background: rgba(255,255,255,0.12);
}
.tfm-social-multi.open .tfm-social-multi-dropdown {
    display: block;
}

/* ============================================================
   CEO / SALES MANAGER PHONE LINE
   ============================================================ */
.tfm-ceo-phone {
    display: block;
    font-size: 0.9rem;
    margin-top: 4px;
    color: var(--tfm-green, #2e7d32);
}
.tfm-ceo-phone a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.tfm-ceo-phone a:hover { text-decoration: underline; }

/* ============================================================
   TEAM CAROUSEL (CEO + Sales Manager combined)
   ============================================================ */
.tfm-team-carousel { position: relative; }
.tfm-team-carousel-track { position: relative; overflow: hidden; }
.tfm-team-carousel-slide { display: none; animation: tfmFadeIn 0.4s ease; }
.tfm-team-carousel-slide.active { display: block; }
@keyframes tfmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tfm-team-carousel-dots { margin-top: 24px; }

/* ============================================================
   FOOTER CONTACT LABEL (for CEO / Sales Manager lines)
   ============================================================ */
.tfm-footer-contact-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
}

/* ============================================================
   CONTACT PAGE: person name + secondary WA button
   ============================================================ */
.tfm-contact-person-name {
    font-weight: 600;
    margin-bottom: 2px;
}
.tfm-contact-wa-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.88rem;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}
.tfm-contact-wa-secondary:hover { text-decoration: underline; }
.tfm-contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.tfm-contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--tfm-green, #2e7d32);
    text-decoration: none;
    font-weight: 500;
}
.tfm-contact-social-link:hover { text-decoration: underline; }

/* Brand icon colours — applied wherever the icon appears as a standalone inline icon */
.fa-facebook-f  { color: #1877F2; }
.fa-tiktok      { color: #010101; filter: drop-shadow(1px 0 0 #EE1D52) drop-shadow(-1px 0 0 #69C9D0); }
.fa-youtube     { color: #FF0000; }
.fa-whatsapp    { color: #25D366; }

/* Exceptions: icons inside coloured pill buttons or round icon badges stay white */
.tfm-btn .fa-facebook-f,
.tfm-btn .fa-tiktok,
.tfm-btn .fa-youtube,
.tfm-btn .fa-whatsapp,
.tfm-social-icon .fa-facebook-f,
.tfm-social-icon .fa-tiktok,
.tfm-social-icon .fa-youtube,
.tfm-social-icon .fa-whatsapp,
.tfm-contact-info-icon .fa-whatsapp,
.tfm-social-multi-trigger .fa-facebook-f,
.tfm-social-multi-trigger .fa-tiktok,
.tfm-social-multi-trigger .fa-youtube,
.tfm-social-multi-trigger .fa-whatsapp { color: #fff; filter: none; }

/* ============================================
   PAYMENT & DELIVERY INFORMATION CARD
   Matches the Timiza Farm Machinery gold/navy theme.
   ============================================ */

.tfm-payment-info-card {
    border: 2px solid var(--tfm-orange);
    position: relative;
    overflow: hidden;
}

.tfm-payment-info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tfm-orange-dark), var(--tfm-orange), var(--tfm-green));
}

.tfm-payment-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tfm-gray);
}

.tfm-payment-info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tfm-orange), var(--tfm-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--tfm-navy);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(240, 185, 11, 0.35);
}

.tfm-payment-info-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--tfm-navy);
    margin: 0;
    line-height: 1.25;
}

.tfm-payment-info-artwork {
    margin: 0 0 18px;
    border-radius: var(--tfm-radius-md);
    overflow: hidden;
    background: var(--tfm-green-dark);
    box-shadow: var(--tfm-shadow-sm);
}

.tfm-payment-info-artwork img {
    width: 100%;
    height: auto;
    display: block;
}

.tfm-payment-info-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tfm-payment-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--tfm-radius-md);
    background: var(--tfm-gray-light);
    transition: var(--tfm-transition);
}

.tfm-payment-info-highlight {
    background: var(--tfm-orange-light);
    border-left: 3px solid var(--tfm-orange);
}

.tfm-payment-info-emoji {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.tfm-payment-info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tfm-payment-info-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tfm-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tfm-payment-info-highlight strong {
    color: var(--tfm-orange-dark);
}

.tfm-payment-info-item span {
    display: block;
    font-size: 0.92rem;
    color: var(--tfm-text-light);
    line-height: 1.45;
}

.tfm-payment-info-highlight span {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tfm-navy);
}

.tfm-payment-info-footer {
    margin: 0;
    padding: 12px 14px;
    background: var(--tfm-navy);
    border-radius: var(--tfm-radius-md);
    text-align: center;
    font-size: 0.88rem;
    color: #E3DCC6;
}

.tfm-payment-info-footer strong {
    color: var(--tfm-orange);
}

@media (max-width: 480px) {
    .tfm-payment-info-item {
        padding: 10px 12px;
    }
    .tfm-payment-info-title {
        font-size: 0.92rem;
    }
}

/* ============================================
   REQUIREMENTS CARDS (Shop Now / Lipa Mdogo)
   --------------------------------------------
   Both requirement forms share one themed shell: a brand-gradient header
   flush to the card top, a hairline teal-to-orange accent stripe, and a
   tinted body so the form reads as part of the site rather than a plain
   white box.
   ============================================ */
.tfm-req-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--tfm-gray);
    position: relative;
}
.tfm-req-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tfm-green) 0%, var(--tfm-green-dark) 45%, var(--tfm-orange) 100%);
    z-index: 2;
}

.tfm-req-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 22px 20px;
    color: #fff;
    position: relative;
}
.tfm-req-card--lipa .tfm-req-header { background: linear-gradient(135deg, var(--tfm-green-dark) 0%, var(--tfm-green) 100%); }
.tfm-req-card--shop .tfm-req-header { background: linear-gradient(135deg, var(--tfm-orange-dark) 0%, var(--tfm-orange) 100%); }

.tfm-req-header-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--tfm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.tfm-req-card--lipa .tfm-req-header-icon { background: var(--tfm-orange); }
.tfm-req-card--shop .tfm-req-header-icon { background: var(--tfm-green-dark); }

.tfm-req-header-text { min-width: 0; }
.tfm-req-header-eyebrow {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 5px;
}
.tfm-req-header h3 { color: #fff; font-size: 1.18rem; margin-bottom: 6px; }
.tfm-req-header p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); line-height: 1.5; }

.tfm-req-body {
    padding: 24px 22px 22px;
    background: linear-gradient(180deg, var(--tfm-gray-light) 0%, #fff 140px);
}
.tfm-req-body .tfm-form-group input,
.tfm-req-body .tfm-form-group select,
.tfm-req-body .tfm-form-group textarea { background: #fff; }
.tfm-req-body .tfm-form-group label { color: var(--tfm-navy); }

/* ============================================
   PAYMENT SCHEDULE - "Pay Now" / "Select a Later Date" + calendar
   Accent colour is set per-instance so the block matches the page it
   sits on (orange on Shop Now, teal on Lipa Mdogo).
   ============================================ */
.tfm-paysched {
    --tfm-ps-accent: var(--tfm-green);
    --tfm-ps-accent-dark: var(--tfm-green-dark);
    --tfm-ps-accent-soft: var(--tfm-green-light);
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-lg);
    background: #fff;
    padding: 18px;
    margin: 4px 0 20px;
    box-shadow: var(--tfm-shadow-sm);
}
.tfm-paysched--orange {
    --tfm-ps-accent: var(--tfm-orange);
    --tfm-ps-accent-dark: var(--tfm-orange-dark);
    --tfm-ps-accent-soft: var(--tfm-orange-light);
}

.tfm-paysched-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tfm-paysched-head-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tfm-ps-accent-soft);
    color: var(--tfm-ps-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.tfm-paysched-head-text > strong { display: block; font-size: 0.9rem; font-weight: 800; color: var(--tfm-navy); margin-bottom: 3px; }
/* Direct child only - a descendant selector here would also catch inline spans nested inside the heading. */
.tfm-paysched-head-text > span { display: block; font-size: 0.79rem; color: var(--tfm-text-muted); line-height: 1.45; }

.tfm-paysched-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tfm-paysched-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    padding: 14px 40px 14px 14px;
    border: 2px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-md);
    background: var(--tfm-gray-light);
    transition: var(--tfm-transition-fast);
}
.tfm-paysched-option:hover { border-color: var(--tfm-ps-accent); background: #fff; }
.tfm-paysched-option.is-active {
    border-color: var(--tfm-ps-accent);
    background: var(--tfm-ps-accent-soft);
    box-shadow: 0 4px 14px rgba(13, 104, 119, 0.12);
}
.tfm-paysched-option-icon { font-size: 0.95rem; color: var(--tfm-ps-accent-dark); margin-bottom: 2px; }
.tfm-paysched-option-title { font-size: 0.88rem; font-weight: 800; color: var(--tfm-navy); line-height: 1.3; }
.tfm-paysched-option-sub { font-size: 0.73rem; color: var(--tfm-text-muted); line-height: 1.35; }
.tfm-paysched-option-tick {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--tfm-gray-medium);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: transparent;
    transition: var(--tfm-transition-fast);
}
.tfm-paysched-option.is-active .tfm-paysched-option-tick {
    background: var(--tfm-ps-accent);
    border-color: var(--tfm-ps-accent);
    color: #fff;
}

.tfm-paysched-panel { margin-top: 16px; animation: tfm-paysched-drop 0.28s ease-out; }
.tfm-paysched-panel[hidden] { display: none; }
@keyframes tfm-paysched-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tfm-paysched-summary {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: var(--tfm-radius-md);
    background: var(--tfm-gray-light);
    font-size: 0.8rem;
    color: var(--tfm-text-muted);
    line-height: 1.45;
}
.tfm-paysched-summary i { margin-top: 2px; flex-shrink: 0; }
.tfm-paysched-summary.is-set {
    background: var(--tfm-ps-accent-soft);
    color: var(--tfm-ps-accent-dark);
    font-weight: 600;
}
.tfm-paysched-summary.is-set strong { color: var(--tfm-ps-accent-dark); font-weight: 800; }
.tfm-paysched-summary.is-error {
    background: #FDECEA;
    color: #B3261E;
    font-weight: 600;
}

/* ---------- Calendar ---------- */
.tfm-calendar {
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-md);
    overflow: hidden;
    background: #fff;
}
.tfm-calendar-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--tfm-ps-accent-dark) 0%, var(--tfm-ps-accent) 100%);
    color: #fff;
}
.tfm-calendar-title { font-family: var(--tfm-font-heading); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.2px; }
.tfm-calendar-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: var(--tfm-transition-fast);
}
.tfm-calendar-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.34); }
.tfm-calendar-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.tfm-calendar-dow,
.tfm-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.tfm-calendar-dow {
    padding: 9px 8px 5px;
    gap: 4px;
    background: var(--tfm-gray-light);
    border-bottom: 1px solid var(--tfm-gray);
}
.tfm-calendar-dow span {
    text-align: center;
    font-size: 0.63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tfm-text-muted);
}
.tfm-calendar-grid { gap: 4px; padding: 8px; }

.tfm-calendar-cell { aspect-ratio: 1 / 1; }
.tfm-calendar-blank { visibility: hidden; }
.tfm-calendar-day {
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--tfm-radius-sm);
    background: transparent;
    color: var(--tfm-text);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tfm-transition-fast);
}
.tfm-calendar-day:hover:not(:disabled) {
    background: var(--tfm-ps-accent-soft);
    border-color: var(--tfm-ps-accent);
    color: var(--tfm-ps-accent-dark);
}
.tfm-calendar-day:disabled { color: var(--tfm-gray-medium); cursor: not-allowed; }
.tfm-calendar-day.is-selected {
    background: var(--tfm-ps-accent);
    border-color: var(--tfm-ps-accent-dark);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--tfm-shadow-sm);
}

/* .tfm-btn sets white-space:nowrap site-wide, but the "Schedule Payment"
   labels are long enough to overflow a full-width button on a phone. Scoped
   to these submits only so every other button keeps its current behaviour. */
.tfm-btn[data-paysched-submit] {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .tfm-btn[data-paysched-submit] { padding-left: 18px; padding-right: 18px; }
    .tfm-paysched { padding: 15px; }
    .tfm-paysched-options { grid-template-columns: 1fr; }
    .tfm-req-header { padding: 20px 17px 17px; gap: 13px; }
    .tfm-req-header-icon { width: 40px; height: 40px; font-size: 1rem; }
    .tfm-req-header h3 { font-size: 1.05rem; }
    .tfm-req-body { padding: 20px 17px 18px; }
    .tfm-calendar-grid { gap: 3px; padding: 6px; }
    .tfm-calendar-day { font-size: 0.78rem; }
}

/* ============================================
   FACILITY GALLERY (homepage "Visit Our Facility")
   A single large photo per slide with a caption overlay, thumbnail strip
   below, and click-to-enlarge through the shared lightbox.
   ============================================ */
.tfm-facility-carousel {
    position: relative;
    border-radius: var(--tfm-radius-lg);
    overflow: hidden;
    box-shadow: var(--tfm-shadow-lg);
    background: var(--tfm-navy);
}
.tfm-facility-stage { position: relative; aspect-ratio: 3 / 2; }

.tfm-facility-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease;
    display: block;
    text-align: left;
}
.tfm-facility-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.tfm-facility-slide img { width: 100%; height: 100%; object-fit: cover; }

.tfm-facility-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Tight to the bottom so the caption stays legible without tinting the photo. */
    background: linear-gradient(to top, rgba(5, 74, 83, 0.92) 0%, rgba(5, 74, 83, 0.5) 15%, rgba(5, 74, 83, 0) 38%);
    pointer-events: none;
}

.tfm-facility-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 24px 22px;
    color: #fff;
}
.tfm-facility-caption strong {
    display: block;
    font-family: var(--tfm-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.tfm-facility-caption strong::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--tfm-orange);
}
.tfm-facility-caption span {
    display: block;
    margin-top: 8px;
    font-size: 0.87rem;
    color: #EDF6F7;
    max-width: 520px;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.tfm-facility-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--tfm-radius-full);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--tfm-transition);
}
.tfm-facility-carousel:hover .tfm-facility-zoom,
.tfm-facility-slide:focus-visible .tfm-facility-zoom { opacity: 1; }

.tfm-facility-prev { left: 16px; }
.tfm-facility-next { right: 16px; }
/* These arrows sit over bright daylight photos, so they need more weight than
   the hero's default translucent treatment. */
.tfm-facility-carousel .tfm-hero-carousel-arrow {
    z-index: 3;
    width: 46px;
    height: 46px;
    background: rgba(5, 74, 83, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.tfm-facility-carousel .tfm-hero-carousel-arrow:hover { background: var(--tfm-orange); border-color: var(--tfm-orange); }

/* ---------- Thumbnail strip ---------- */
.tfm-facility-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.tfm-facility-thumb {
    flex: 1 1 0;
    min-width: 84px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--tfm-radius-md);
    overflow: hidden;
    background: none;
    opacity: 0.55;
    transition: var(--tfm-transition);
}
.tfm-facility-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tfm-facility-thumb:hover { opacity: 0.85; }
.tfm-facility-thumb.active {
    opacity: 1;
    border-color: var(--tfm-orange);
    box-shadow: var(--tfm-shadow-sm);
}

/* ---------- Visit line ---------- */
.tfm-facility-visit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 16px 20px;
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-md);
    background: #fff;
}
.tfm-facility-visit > span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tfm-text);
}
.tfm-facility-visit i { color: var(--tfm-orange); }

@media (max-width: 640px) {
    .tfm-facility-stage { aspect-ratio: 4 / 3; }
    .tfm-facility-caption { padding: 20px 16px 16px; }
    .tfm-facility-caption strong { font-size: 1rem; }
    .tfm-facility-caption span { font-size: 0.82rem; }
    .tfm-facility-zoom { opacity: 1; top: 10px; right: 10px; font-size: 0.7rem; padding: 6px 11px; }
    .tfm-facility-thumb { min-width: 68px; }
    .tfm-facility-visit { justify-content: center; text-align: center; }
    .tfm-facility-visit > span { justify-content: center; }
}

/* ============================================
   FORM SUB-HEADING (e.g. the "Loan Guarantor" group)
   Splits a long requirements form into labelled groups without breaking it
   into separate cards.
   ============================================ */
.tfm-form-subhead {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 6px 0 16px;
    padding-top: 18px;
    border-top: 1px dashed var(--tfm-gray-medium);
}
.tfm-form-subhead-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tfm-green-light);
    color: var(--tfm-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}
.tfm-form-subhead-text > strong {
    display: block;
    font-family: var(--tfm-font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--tfm-navy);
    margin-bottom: 2px;
}
.tfm-form-subhead-text > span {
    display: block;
    font-size: 0.78rem;
    color: var(--tfm-text-muted);
    line-height: 1.45;
}

/* ============================================
   BUSINESS BRANCHES - Machinery vs Agro Products
   --------------------------------------------
   The two branches sit above the existing categories as a parent level.
   Teal carries machinery (the established line), rust carries Agro
   products, so the colour itself signals which side of the business a
   card or tab belongs to.
   ============================================ */

/* ---------- Homepage: branch chooser ---------- */
.tfm-branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.tfm-branch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    background: #fff;
    border: 1px solid var(--tfm-gray);
    border-radius: var(--tfm-radius-lg);
    box-shadow: var(--tfm-shadow-sm);
    overflow: hidden;
    transition: var(--tfm-transition);
}
.tfm-branch-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--tfm-green);
}
.tfm-branch-card--Agro-products::before { background: var(--tfm-orange); }
.tfm-branch-card:hover { transform: translateY(-4px); box-shadow: var(--tfm-shadow-lg); border-color: var(--tfm-green); }
.tfm-branch-card--Agro-products:hover { border-color: var(--tfm-orange); }

.tfm-branch-card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--tfm-radius-md);
    background: var(--tfm-green-light);
    color: var(--tfm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.tfm-branch-card--Agro-products .tfm-branch-card-icon { background: var(--tfm-orange-light); color: var(--tfm-orange); }

.tfm-branch-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--tfm-navy); }
.tfm-branch-card > p { font-size: 0.92rem; color: var(--tfm-text-light); line-height: 1.6; margin-bottom: 18px; flex-grow: 1; }

.tfm-branch-card-meta {
    display: flex;
    gap: 22px;
    padding: 14px 0;
    border-top: 1px solid var(--tfm-gray);
    margin-bottom: 14px;
}
.tfm-branch-card-meta span { font-size: 0.82rem; color: var(--tfm-text-muted); }
.tfm-branch-card-meta strong {
    display: block;
    font-family: var(--tfm-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tfm-navy);
}

.tfm-branch-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--tfm-green);
}
.tfm-branch-card--Agro-products .tfm-branch-card-cta { color: var(--tfm-orange); }
.tfm-branch-card:hover .tfm-branch-card-cta i { transform: translateX(4px); }
.tfm-branch-card-cta i { transition: transform 0.25s ease; }

/* ---------- Homepage: categories grouped per branch ---------- */
.tfm-branch-group { margin-bottom: 40px; }
.tfm-branch-group:last-child { margin-bottom: 0; }
.tfm-branch-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tfm-gray);
}
.tfm-branch-group-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tfm-green-light);
    color: var(--tfm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.tfm-branch-group-head h3 { font-size: 1.08rem; margin: 0; flex-grow: 1; }
.tfm-branch-group-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--tfm-green);
    white-space: nowrap;
}
.tfm-branch-group-link:hover { color: var(--tfm-orange); }

/* ---------- Shop: branch tabs (current scope highlighted) ---------- */
.tfm-branch-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tfm-branch-tabs::-webkit-scrollbar { display: none; }

.tfm-branch-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 0;
    min-width: max-content;
    justify-content: center;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid var(--tfm-gray-medium);
    border-radius: var(--tfm-radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tfm-text-light);
    white-space: nowrap;
    transition: var(--tfm-transition);
}
.tfm-branch-tab:hover { border-color: var(--tfm-green); color: var(--tfm-green); }
.tfm-branch-tab.active {
    background: var(--tfm-green);
    border-color: var(--tfm-green);
    color: #fff;
    box-shadow: var(--tfm-shadow-sm);
}
.tfm-branch-tab[data-branch="Agro-products"]:hover { border-color: var(--tfm-orange); color: var(--tfm-orange); }
.tfm-branch-tab[data-branch="Agro-products"].active { background: var(--tfm-orange); border-color: var(--tfm-orange); color: #fff; }

.tfm-branch-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: var(--tfm-radius-full);
    background: var(--tfm-gray-light);
    color: var(--tfm-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}
.tfm-branch-tab.active .tfm-branch-tab-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Product card: branch badge + POA price ---------- */
.tfm-badge-branch {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tfm-orange);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--tfm-radius-full);
}
.tfm-product-price-poa { font-size: 1rem; font-style: italic; color: var(--tfm-orange-dark); }

@media (max-width: 760px) {
    .tfm-branch-grid { grid-template-columns: 1fr; gap: 16px; }
    .tfm-branch-card { padding: 24px 20px 22px; }
    .tfm-branch-card h3 { font-size: 1.14rem; }
    .tfm-branch-tab { flex: 0 0 auto; padding: 11px 16px; font-size: 0.86rem; }
    .tfm-branch-tab-label { display: inline; }
    .tfm-branch-group-head h3 { font-size: 1rem; }
}

/* Wrapper for the branch chooser - white, so it separates the hero above
   from the tinted category section below. */
.tfm-branches-section { background: #fff; }

/* ============================================
   HOMEPAGE HERO + ABOUT (v3.5)
   --------------------------------------------
   Deliberately unlike the Agro Machinery site, which stacks a badge,
   title and tagline flush-left on a plain overlay. Here the copy sits
   in a raised dark editorial panel with a rule-and-serif eyebrow, and
   the two CTAs split straight into the two branches rather than into a
   single "Shop Now".
   ============================================ */

.tfm-hero-panel {
    max-width: 660px;
    padding: 38px 40px 34px;
    background: linear-gradient(135deg, rgba(5, 74, 83, 0.94) 0%, rgba(13, 104, 119, 0.86) 100%);
    border-radius: var(--tfm-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(3px);
}

/* Eyebrow: rules either side, so the brand line reads as a masthead */
.tfm-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--tfm-font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #F6D9A8;
    margin-bottom: 18px;
}
.tfm-hero-eyebrow i { color: var(--tfm-orange); font-size: 0.95rem; }
.tfm-hero-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(246, 217, 168, 0.6), transparent);
}

.tfm-hero-title {
    font-size: clamp(1.72rem, 4.4vw, 3.05rem);
    line-height: 1.12;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.tfm-hero-title .tfm-text-accent { color: #F6B26B; }

.tfm-hero-tagline {
    font-size: clamp(0.92rem, 1.6vw, 1.06rem);
    line-height: 1.6;
    color: #DCEEF1;
    margin-bottom: 26px;
    max-width: 48ch;
}

.tfm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.tfm-hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.tfm-hero-perk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #CFE6EA;
}
.tfm-hero-perk i { color: var(--tfm-orange); }
a.tfm-hero-perk:hover { color: #fff; }

/* Scroll cue - picks up the "scroll down to view more about us" line */
.tfm-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.tfm-hero-scroll i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.22);
    animation: tfm-scroll-bob 1.9s ease-in-out infinite;
}
.tfm-hero-scroll:hover { color: #fff; }
@keyframes tfm-scroll-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

@media (max-width: 860px) {
    .tfm-hero-panel { padding: 26px 22px 24px; max-width: none; }
    .tfm-hero-eyebrow { font-size: 0.64rem; letter-spacing: 1.6px; gap: 9px; margin-bottom: 13px; }
    .tfm-hero-tagline { margin-bottom: 20px; }
    .tfm-hero-actions { gap: 10px; margin-bottom: 18px; }
    .tfm-hero-actions .tfm-btn { flex: 1 1 100%; justify-content: center; }
    .tfm-hero-perks { gap: 8px 14px; padding-top: 15px; }
    .tfm-hero-perk { font-size: 0.76rem; }
    /* The cue would collide with the panel on short screens */
    .tfm-hero-scroll { display: none; }
}

/* ---------- About section ---------- */
.tfm-about-section {
    background:
        radial-gradient(circle at 88% 8%, rgba(210, 105, 30, 0.07), transparent 42%),
        radial-gradient(circle at 4% 92%, rgba(13, 104, 119, 0.08), transparent 45%),
        #fff;
}
.tfm-about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }

.tfm-about-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--tfm-font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tfm-orange);
    margin-bottom: 12px;
}
.tfm-about-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--tfm-orange);
    margin-right: 10px;
}
.tfm-about-lead h2 {
    font-size: clamp(1.4rem, 2.7vw, 2.05rem);
    line-height: 1.22;
    margin-bottom: 18px;
    color: var(--tfm-navy);
}
.tfm-about-lead p { font-size: 0.95rem; line-height: 1.75; color: var(--tfm-text-light); margin-bottom: 14px; }
.tfm-about-close {
    padding-left: 16px;
    border-left: 3px solid var(--tfm-orange);
    font-weight: 600;
    color: var(--tfm-text) !important;
}
.tfm-about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.tfm-about-services {
    background: linear-gradient(160deg, var(--tfm-green-dark) 0%, var(--tfm-green) 100%);
    border-radius: var(--tfm-radius-lg);
    padding: 30px 28px;
    box-shadow: var(--tfm-shadow-lg);
}
.tfm-about-services h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.tfm-about-services h3 i { color: #F6B26B; }

.tfm-about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tfm-about-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #E4F2F4;
}
.tfm-about-list li i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #F6B26B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

@media (max-width: 900px) {
    .tfm-about-grid { grid-template-columns: 1fr; gap: 28px; }
    .tfm-about-services { padding: 24px 20px; }
    .tfm-about-actions .tfm-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tfm-hero-scroll i { animation: none; }
}

/* Sticky header would otherwise cover the heading when the scroll cue jumps here */
#tfm-about { scroll-margin-top: 96px; }
