/*
Theme Name: Tractor Directory Pro
Theme URI: https://tractor.autos/
Author: Alam Sons
Description: Mobile-first tractor directory with normalized brand logo stages, interactive brand hub, specs, pricing, pros & cons.
Version: 5.1.0
Text Domain: tractor-dir
*/

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #15803d;
    --brand-dark: #14532d;
    --brand-soft: #f0fdf4;
    --accent: #d97706;
    --accent-soft: #fffbeb;
    --red: #dc2626;
    --radius: 14px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 16px;
    padding-bottom: 68px;
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* Sticky Header */
.topbar {
    background: var(--brand-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2kzm;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.logo:hover { color: #fff; }
.logo-badge {
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.82rem;
    padding: 4px 9px;
    border-radius: 8px;
    font-weight: 900;
}
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    gap: 6px;
}
.nav-drawer {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px 16px;
    background: #0f3d21;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.96rem;
}
.nav-drawer a:hover { background: rgba(255,255,255,0.12); color: #fff; }

@media (min-width: 860px) {
    .topbar-inner { height: 68px; }
    .menu-toggle { display: none; }
    .nav-drawer {
        display: flex !important;
        flex-direction: row;
        background: transparent;
        border-top: none;
        padding: 0;
        gap: 6px;
    }
    .nav-drawer a { padding: 8px 14px; font-size: 0.94rem; }
}

/* Mobile Bottom Dock */
.mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 99;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
@media (min-width: 860px) { .mobile-dock { display: none; } }
.mobile-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-2);
    gap: 2px;
}
.mobile-dock a:hover { color: var(--brand); background: var(--brand-soft); }
.mobile-dock span.ico { font-size: 1.05rem; line-height: 1; }

/* Hero & Filter Panel */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 30px;
}
@media (min-width: 768px) { .hero { padding: 40px 0 36px; } }
.eyebrow {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid #bbf7d0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.hero p {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 720px;
    margin-bottom: 18px;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-md);
}
.search-row { display: flex; gap: 8px; }
.search-row input {
    flex: 1;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 0.96rem;
    background: var(--bg);
}
.search-row input:focus, .filter-selects select:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}
.btn-filter-toggle {
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brand-dark);
    cursor: pointer;
    white-space: nowrap;
}
@media (min-width: 900px) { .btn-filter-toggle { display: none; } }

.filter-selects {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}
.filter-selects.open { display: grid; }
@media (min-width: 600px) { .filter-selects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
    .filter-selects {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
    }
}
.filter-selects select, .btn-reset {
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fff;
    color: var(--ink);
}
.btn-reset {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
}
.btn-reset:hover { background: #e2e8f0; }

/* Sections */
.sec { padding: 28px 0; }
@media (min-width: 768px) { .sec { padding: 38px 0; } }
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sec-head h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; }
.sec-head-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid #bbf7d0;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
}
.sec-head-link:hover { background: var(--brand); color: #fff; }

/* Homepage Brand Grid */
.brand-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .brand-grid-home { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 960px) {
    .brand-grid-home { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.brand-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    position: relative;
}
.brand-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.brand-tile-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f5f9;
    color: var(--ink-2);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
}
.brand-tile:hover .brand-tile-count {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.logo-stage {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin-bottom: 10px;
}
.logo-stage img {
    max-height: 44px;
    max-width: 128px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-tile-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 3px;
}
.brand-tile-sub {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

/* Dedicated Brands Page */
.brand-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
@media (min-width: 768px) {
    .brand-filter-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.region-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.region-tabs::-webkit-scrollbar { display: none; }
.region-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}
.region-tab.active, .region-tab:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.brand-search-input {
    min-height: 44px;
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    min-width: 260px;
    font-size: 0.92rem;
}
.brand-search-input:focus { outline: none; border-color: var(--brand); }

.brands-directory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 580px) { .brands-directory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .brands-directory-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.brand-showcase-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color: 0.16s ease;
}
.brand-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.brand-showcase-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.brand-showcase-stage {
    width: 100%;
    height: 76px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 14px;
}
.brand-showcase-stage img {
    max-height: 52px;
    max-width: 165px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-showcase-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
}
.brand-showcase-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}
.brand-showcase-models {
    padding: 14px 0;
}
.brand-showcase-models small {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}
.model-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.model-tag {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}
.model-tag:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}
.brand-showcase-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid #bbf7d0;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 4px;
}
.brand-showcase-card:hover .brand-showcase-btn {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Brand Archive Header Logo */
.brand-hero-flex { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand-hero-logo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 140px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-hero-logo img { max-height: 54px; max-width: 165px; object-fit: contain; }

/* Tractor Cards Grid */
.tractor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px) { .tractor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tractor-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.t-card {
    background: var(--surfce);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.t-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #94a3b8; }
.t-media {
    height: 168px;
    background: linear-gradient(135deg, #eef2f0 0%, #dce4e0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}
.t-media img { width: 100%; height: 100%; object-fit: cover; }
.t-fallback { text-align: center; padding: 14px; color: var(--muted); }
.t-fallback strong { display: block; font-size: 1.15rem; color: var(--ink); }
.badge-hp {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}
.badge-market {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
}
.t-content { padding: 16px; }
.t-brand-link {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand);
}
.t-title { font-size: 1.15rem; font-weight: 800; margin: 3px 0 10px; }
.t-title a { color: var(--ink); }
.t-title a:hover { color: var(--brand); }
.mini-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.83rem;
}
.mini-specs span { display: block; font-size: 0.72rem; color: var(--muted); }
.mini-specs strong { color: var(--ink); font-weight: 700; }
.t-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: #fcfcfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.t-price { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.t-cta { font-size: 0.88rem; font-weight: 800; color: var(--brand); }

/* Single Tractor Page */
.crumbs { padding: 14px 0 6px; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.single-top {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 8px;
    box-shadow: var(--shadow-xs);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 840px) { .single-top { grid-template-columns: 1fr 1.25fr; padding: 26px; gap: 28px; } }
.single-photo { border-radius: 12px; overflow: hidden; background: #eef2f0; border: 1px solid var(--line); min-height: 230px; display: flex; align-items: center; justify-content: center; }
.kpi-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
@media (min-width: 520px) { .kpi-strip { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi small { display: block; font-size: 0.72rem; color: var(--muted); }
.kpi strong { font-size: 0.96rem; color: var(--ink); }
.farmer-note { margin-top: 14px; padding: 12px 14px; background: var(--accent-soft); border: 1px solid #fde68a; border-radius: 10px; font-size: 0.9rem; color: #78350f; }

.pc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .pc-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pc-pros { border-top: 4px solid var(--brand); }
.pc-cons { border-top: 4px solid var(--red); }
.pc-card h2, .pc-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.pc-pros h2, .pc-pros h3 { color: var(--brand-dark); }
.pc-cons h2, .pc-cons h3 { color: var(--red); }
.pc-card ul { list-style: none; }
.pc-card li { padding: 8px 0 8px 24px; border-bottom: 1px dashed var(--line); font-size: 0.94rem; position: relative; }
.pc-card li:last-child { border-bottom: none; }
.pc-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.pc-cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.box-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; box-shadow: var(--shadow-xs); }
.box-card h2, .box-card h3 { padding: 14px 18px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.spec-table td:first-child { width: 40%; font-weight: 600; color: var(--muted); background: #fcfcfd; }
.spec-table tr:last-child td { border-bottom: none; }

.prev-next-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pn-link { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: block; }
.pn-link:hover { border-color: var(--brand); }
.pn-link small { display: block; font-size: 0.75rem; color: var(--muted); }
.pn-link strong { font-size: 0.92rem; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0 22px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 22px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { font-size: 0.96rem; margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; font-size: 0.88rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); }
.copy { border-top: 1px solid var(--line); padding-top: 16px; text-align: center; font-size: 0.82rem; color: var(--muted); }


/* =========================================================
   PRO BRANDS CAROUSEL (v6.0.0)
   ========================================================= */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.car-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong, #cbd5e1);
    background: var(--surface, #ffffff);
    color: var(--ink, #0f172a);
    font-size: 1.2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.15s ease;
}
.car-btn:hover {
    background: var(--brand, #15803d);
    color: #ffffff;
    border-color: var(--brand, #15803d);
}
.brand-carousel-wrap {
    position: relative;
    overflow: hidden;
}
.brand-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.brand-carousel-track::-webkit-scrollbar {
    display: none;
}
.brand-slide {
    flex: 0 0 175px;
    width: 175px;
    scroll-snap-align: start;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 14px;
    padding: 16px 12px 14px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (min-width: 768px) {
    .brand-slide {
        flex: 0 0 205px;
        width: 205px;
    }
}
.brand-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: var(--brand, #15803d);
}
.brand-slide-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
}
.brand-slide:hover .brand-slide-badge {
    background: #ecfdf5;
    color: #14532d;
}
.brand-slide-logo {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    margin-bottom: 10px;
}
.brand-slide-logo img {
    max-height: 44px;
    max-width: 135px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-slide-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink, #0f172a);
    line-height: 1.25;
    margin-bottom: 3px;
}
.brand-slide-country {
    font-size: 0.74rem;
    color: var(--muted, #64748b);
    font-weight: 500;
}


/* =========================================================
   PRO 4-COLUMN FOOTER (v6.1.0)
   ========================================================= */
.footer {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border-top: 4px solid var(--brand, #15803d) !important;
    padding: 44px 0 24px !important;
    margin-top: 52px !important;
}
.footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 30px !important;
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 960px) {
    .footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1.15fr !important; gap: 32px !important; }
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-bottom: 12px;
}
.footer-about p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 16px;
}
.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-quick-links a {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f8fafc !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}
.footer-quick-links a:hover {
    background: var(--brand, #15803d);
    border-color: var(--brand, #15803d);
}
.footer h4 {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    margin-bottom: 14px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer ul { list-style: none !important; }
.footer li { margin-bottom: 8px !important; font-size: 0.88rem !important; }
.footer li a {
    color: #cbd5e1 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer li a span {
    color: #64748b;
    font-size: 0.8rem;
}
.footer li a:hover { color: #4ade80 !important; }
.footer li a.footer-more {
    color: #fbbf24 !important;
    font-weight: 700;
    margin-top: 4px;
}
.copy {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 18px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
}
@media (min-width: 768px) {
    .copy {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* =========================================================
   LOAD MORE PAGINATION BUTTON (v6.2.0)
   ========================================================= */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.btn-load-more {
    min-height: 48px;
    padding: 12px 28px;
    background: var(--brand, #15803d);
    color: #ffffff;
    border: none;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-load-more:hover {
    background: var(--brand-dark, #14532d);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(20, 83, 45, 0.32);
}


/* Enhanced Fallback Visual for Models Pending Custom Photo (v6.3.0) */
.t-media {
    background: linear-gradient(135deg, #14532d 0%, #1e293b 100%) !important;
}
.t-fallback {
    color: #cbd5e1 !important;
}
.t-fallback strong {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    margin-bottom: 4px;
}
.t-fallback small {
    color: #86efac !important;
    font-weight: 700;
}


/* =========================================================
   AJAX LIVE SEARCH DROPDOWN, SEARCH BUTTON & SEARCH PAGE (v7.0.0)
   ========================================================= */
.btn-search-submit {
    min-height: 46px;
    padding: 0 18px;
    background: var(--brand, #15803d);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.94rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(21, 128, 61, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}
.btn-search-submit:hover {
    background: var(--brand-dark, #14532d);
    transform: translateY(-1px);
}

/* Live Autocomplete Dropdown */
.ac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface, #ffffff);
    border: 1.5px solid var(--brand, #15803d);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    z-index: 250;
    max-height: 380px;
    overflow-y: auto;
}
.ac-dropdown.open { display: block; }
.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    color: var(--ink, #0f172a);
    transition: background 0.12s ease;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--brand-soft, #f0fdf4); }
.ac-thumb {
    width: 48px;
    height: 36px;
    border-radius: 7px;
    overflow: hidden;
    background: #14532d;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-info { flex: 1; min-width: 0; }
.ac-info strong { display: block; font-size: 0.92rem; color: var(--ink, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-info small { display: block; font-size: 0.76rem; color: var(--muted, #64748b); }
.ac-hp {
    background: #0f172a;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.ac-view-all {
    display: block;
    text-align: center;
    padding: 11px;
    background: var(--brand-soft, #f0fdf4);
    color: var(--brand-dark, #14532d);
    font-weight: 800;
    font-size: 0.86rem;
}
.ac-empty {
    padding: 14px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted, #64748b);
}

/* Search Page Header */
.search-page-hero {
    padding: 20px 0 8px;
}
.search-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.search-page-head h1 {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
}
.search-status-pill {
    background: var(--brand-soft, #f0fdf4);
    color: var(--brand-dark, #14532d);
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 800;
}
.empty-search-box {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
}
.empty-search-box h3 { margin-bottom: 6px; font-size: 1.15rem; }
.empty-search-box p { color: var(--muted, #64748b); font-size: 0.94rem; }


/* =========================================================
   CUSTOM VECTOR LOGO & WORDMARK (v8.0.0)
   ========================================================= */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 11px !important;
}
.logo-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}
.logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}
.logo-main {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.logo-accent {
    color: #fbbf24;
}
.logo-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #bbf7d0;
    margin-top: 2px;
}


/* =========================================================
   BUY & SELL MARKETPLACE & MY ACCOUNT STYLES (v9.0.0)
   ========================================================= */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 840px) {
    .auth-grid { grid-template-columns: 1fr 1.35fr; gap: 24px; }
}
.auth-box {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.auth-box h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.auth-box p { color: var(--muted, #64748b); font-size: 0.9rem; margin-bottom: 16px; }
.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: var(--ink-2, #334155); }
.form-row input, .form-row select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    font-size: 0.94rem;
    background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--brand, #15803d);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.seller-contact-box {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
}
.notice-banner {
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 14px;
    font-size: 0.92rem;
}
.notice-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.notice-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }


/* =========================================================
   NATIVE WORDPRESS MENU DROPDOWNS & SEARCHABLE CUSTOM SELECT (v10.0.0)
   ========================================================= */
.wp-primary-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.wp-primary-menu > li {
    position: relative;
}
.wp-primary-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.94rem;
}
.wp-primary-menu > li > a:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}
.wp-primary-menu > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.78rem;
    opacity: 0.85;
}
.wp-primary-menu .sub-menu {
    list-style: none;
    padding-left: 14px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wp-primary-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #cbd5e1;
    border-radius: 8px;
}
.wp-primary-menu .sub-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}
.nav-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    border-radius: 10px;
    margin-top: 6px;
}
.nav-account-btn:hover {
    background: #fbbf24 !important;
}

@media (min-width: 860px) {
    .nav-drawer {
        align-items: center;
        gap: 10px !important;
    }
    .wp-primary-menu {
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }
    .wp-primary-menu > li > a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .wp-primary-menu .sub-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 230px;
        background: #ffffff;
        border: 1px solid var(--line, #e2e8f0);
        border-radius: 12px;
        padding: 8px;
        margin-top: 0;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
        z-index: 300;
    }
    .wp-primary-menu > li:hover > .sub-menu,
    .wp-primary-menu > li:focus-within > .sub-menu {
        display: flex;
    }
    .wp-primary-menu .sub-menu a {
        color: var(--ink, #0f172a);
        font-weight: 600;
        padding: 9px 12px;
    }
    .wp-primary-menu .sub-menu a:hover {
        background: var(--brand-soft, #f0fdf4);
        color: var(--brand-dark, #14532d);
    }
    .nav-account-btn {
        margin-top: 0;
        padding: 8px 15px;
    }
}

/* Custom Searchable Dropdown UI (Replaces raw browser <select> look) */
.td-cselect {
    position: relative;
    width: 100%;
}
.td-cselect-trigger {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    background: #ffffff;
    border: 1.5px solid var(--line, #e2e8f0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    color: var(--ink, #0f172a);
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.td-cselect-trigger:hover {
    border-color: #94a3b8;
}
.td-cselect.open .td-cselect-trigger {
    border-color: var(--brand, #15803d);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}
.td-cselect-trigger.has-value {
    border-color: #86efac;
    background: #fafffc;
}
.td-cselect-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-cselect-arrow {
    color: var(--muted, #64748b);
    font-size: 0.85rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.td-cselect.open .td-cselect-arrow {
    transform: rotate(180deg);
    color: var(--brand, #15803d);
}
.td-cselect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1.5px solid var(--brand, #15803d);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    z-index: 280;
    overflow: hidden;
}
.td-cselect.open .td-cselect-panel {
    display: block;
}
.td-cselect-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--line, #e2e8f0);
    background: #f8fafc;
}
.td-cselect-search {
    width: 100%;
    min-height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid var(--line, #e2e8f0) !important;
    border-radius: 8px !important;
    font-size: 0.86rem !important;
    background: #ffffff !important;
}
.td-cselect-search:focus {
    outline: none;
    border-color: var(--brand, #15803d) !important;
}
.td-cselect-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
}
.td-cselect-option {
    padding: 9px 12px;
    font-size: 0.89rem;
    font-weight: 500;
    color: var(--ink, #0f172a);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
}
.td-cselect-option:hover {
    background: var(--brand-soft, #f0fdf4);
    color: var(--brand-dark, #14532d);
}
.td-cselect-option.selected {
    background: var(--brand, #15803d);
    color: #ffffff;
    font-weight: 700;
}
.td-cselect-empty {
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted, #64748b);
}


/* =========================================================
   RESPONSIVE HEADER & HOVER-SAFE DROPDOWNS (v11.0.0)
   ========================================================= */
.topbar {
    background: var(--brand-dark, #14532d);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 12px;
}
.logo {
    flex-shrink: 0;
}

/* Mobile & Tablet Drawer (< 1024px) */
@media (max-width: 1023px) {
    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 14px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #ffffff;
        font-weight: 800;
        font-size: 0.92rem;
        cursor: pointer;
    }
    .nav-drawer {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 128px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #0f3d21;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 3px solid #f59e0b;
        padding: 14px 16px 20px;
        flex-direction: column;
        gap: 6px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        z-index: 999;
    }
    .nav-drawer.open {
        display: flex !important;
    }
    .wp-primary-menu {
        flex-direction: column !important;
        width: 100%;
        gap: 4px;
    }
    .wp-primary-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 4px;
    }
    .wp-primary-menu > li > a {
        padding: 12px 14px !important;
        font-size: 0.98rem !important;
        width: 100%;
    }
    .wp-primary-menu > li.menu-item-has-children > a::after {
        font-size: 0.95rem;
        padding: 2px 8px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 6px;
    }
    .wp-primary-menu .sub-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.22) !important;
        border: none !important;
        border-radius: 10px;
        padding: 6px 8px !important;
        margin: 4px 0 6px !important;
    }
    .wp-primary-menu > li.sub-open > .sub-menu {
        display: flex !important;
        flex-direction: column;
    }
    .wp-primary-menu > li.sub-open > a::after {
        content: "▴" !important;
        background: #f59e0b;
        color: #0f172a;
    }
    .wp-primary-menu .sub-menu a {
        color: #e2e8f0 !important;
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
    .nav-account-btn {
        width: 100%;
        min-height: 46px;
        margin-top: 8px !important;
        font-size: 0.95rem !important;
    }
}

/* Desktop Hover-Safe Dropdowns (>= 1024px) */
@media (min-width: 1024px) {
    .topbar-inner { height: 68px; }
    .menu-toggle { display: none !important; }
    .nav-drawer {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        gap: 8px !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
    }
    .wp-primary-menu {
        flex-direction: row !important;
        align-items: center !important;
        gap: 2px !important;
    }
    .wp-primary-menu > li {
        position: relative;
        padding: 10px 0; /* Vertical hover buffer so mouse never loses focus */
    }
    .wp-primary-menu > li > a {
        padding: 8px 11px !important;
        font-size: 0.89rem !important;
        white-space: nowrap;
    }
    /* Zero-gap dropdown with invisible top bridge */
    .wp-primary-menu .sub-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 240px;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        padding: 8px !important;
        margin-top: 0 !important;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18) !important;
        z-index: 9999 !important;
        flex-direction: column;
        gap: 2px;
    }
    .wp-primary-menu .sub-menu::before {
        content: "";
        position: absolute;
        top: -14px;
        left: 0;
        right: 0;
        height: 14px;
        background: transparent;
    }
    .wp-primary-menu > li:hover > .sub-menu,
    .wp-primary-menu > li.hover-persist > .sub-menu,
    .wp-primary-menu > li:focus-within > .sub-menu {
        display: flex !important;
    }
    /* Right-align last dropdown (Buy & Sell) so it never overflows off right edge */
    .wp-primary-menu > li:last-child > .sub-menu {
        left: auto !important;
        right: 0 !important;
    }
    .wp-primary-menu .sub-menu a {
        color: #0f172a !important;
        font-weight: 600 !important;
        font-size: 0.88rem !important;
        padding: 9px 12px !important;
        border-radius: 8px;
        white-space: nowrap;
    }
    .wp-primary-menu .sub-menu a:hover {
        background: #f0fdf4 !important;
        color: #14532d !important;
    }
    .nav-account-btn {
        margin-top: 0 !important;
        padding: 9px 15px !important;
        white-space: nowrap;
    }
}


/* =========================================================
   ENHANCED BUY & SELL LANDING & MARKETPLACE UI (v12.0.0)
   ========================================================= */
.market-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 22px;
    margin-top: 10px;
    box-shadow: 0 6px 24px rgba(21, 128, 61, 0.06);
}
@media (min-width: 860px) {
    .market-hero { padding: 30px; }
}
.market-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}
@media (min-width: 860px) {
    .market-hero-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 28px;
    }
}
.market-hero h1 {
    font-size: clamp(1.55rem, 3.6vw, 2.25rem);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 10px;
    color: var(--ink, #0f172a);
}
.market-hero p {
    color: var(--muted, #475569);
    font-size: 0.96rem;
    margin-bottom: 14px;
}
.market-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.market-trust-pills span {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    color: #14532d;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 99px;
}

/* Seller Highlight Card inside Hero */
.seller-cta-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.seller-cta-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.seller-cta-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.seller-cta-card p {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    margin-bottom: 14px !important;
}
.btn-seller-big {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    background: #f59e0b;
    color: #0f172a !important;
    font-weight: 900;
    font-size: 0.96rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn-seller-big:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}
.seller-cta-sub {
    margin-top: 10px;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}
.seller-cta-sub a {
    color: #86efac !important;
    font-weight: 700;
    text-decoration: underline;
}

/* 3-Step How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.step-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand, #15803d);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-card h3 {
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 3px;
}
.step-card p {
    font-size: 0.85rem;
    color: var(--muted, #64748b);
    line-height: 1.45;
}

/* Seller Invite Banner & FAQs */
.seller-invite-banner {
    background: var(--surface, #ffffff);
    border: 1.5px dashed #86efac;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.seller-invite-banner h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.seller-invite-banner p {
    font-size: 0.9rem;
    color: var(--muted, #64748b);
    max-width: 640px;
}
.faq-list { padding: 6px 18px 18px; }
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line, #e2e8f0);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink, #0f172a);
    margin-bottom: 4px;
}
.faq-item p {
    font-size: 0.9rem;
    color: var(--muted, #64748b);
}


/* =========================================================
   ASKING PRICE + CURRENCY INPUT FIX (v12.1.0)
   ========================================================= */
.price-input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.price-input-group .td-cselect {
    flex: 0 0 115px !important;
    width: 115px !important;
    min-width: 115px !important;
}
.price-input-group .td-cselect-panel {
    min-width: 140px !important;
}
.price-input-group input[type="number"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    font-weight: 700;
    font-size: 1rem;
}


/* My Listings action buttons (v13.0.0) */
.my-listing-card { display:flex; flex-direction:column; gap:4px; }
.my-listing-thumb { display:block; border-radius:10px; overflow:hidden; margin-bottom:10px; max-height:170px; }
.my-listing-thumb img { width:100%; height:170px; object-fit:cover; }
.my-listing-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.ml-btn { flex:1 1 0; min-width:80px; text-align:center; padding:10px 14px; border-radius:10px; font-weight:800; font-size:.9rem; border:1px solid var(--line); }
.ml-view { background:var(--brand-soft); color:var(--brand-dark); border-color:#bbf7d0; }
.ml-view:hover { background:var(--brand); color:#fff; }
.ml-edit { background:var(--brand); color:#fff; border-color:var(--brand); }
.ml-edit:hover { background:var(--brand-dark); color:#fff; }
.ml-del { background:#fef2f2; color:#dc2626; border-color:#fecaca; }
.ml-del:hover { background:#dc2626; color:#fff; }

/* =========================================================
   CLEAN MENU (v13.2.0)
   ========================================================= */
.nav-drawer ul, .nav-drawer .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-drawer li { list-style: none; margin: 0; }
.nav-drawer a { display: block; padding: 9px 16px; border-radius: 99px; color: #e8f5ec; font-weight: 700; font-size: .95rem; transition: background .15s ease, color .15s ease; }
.nav-drawer a:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-drawer .current-menu-item > a { background: rgba(255,255,255,.18); color: #fff; }
.nav-drawer .menu-cta > a { background: #f59e0b; color: #111827; font-weight: 800; margin-left: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.nav-drawer .menu-cta > a:hover { background: #d97706; color: #fff; }

@media (max-width: 1023px) {
    .nav-drawer ul, .nav-drawer .menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
    .nav-drawer a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; background: rgba(255,255,255,.06); }
    .nav-drawer .menu-cta > a { margin: 8px 0 0; text-align: center; font-size: 1.02rem; }
}

/* =========================================================
   CLEAN HEADER (v14.0.0) - new class names, no old conflicts
   ========================================================= */
.tdh { position: sticky; top: 0; z-index: 1000; background: #14532d; box-shadow: 0 2px 12px rgba(0,0,0,.18); border-bottom: 3px solid #f59e0b; }
.admin-bar .tdh { top: 32px; }
@media (max-width: 782px) { .admin-bar .tdh { top: 46px; } }

.tdh-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
@media (min-width: 768px) { .tdh-inner { padding: 0 24px; } }

.tdh-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.tdh-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.tdh-logo-main { font-size: 1.22rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.tdh-logo-main em { font-style: normal; color: #fbbf24; }
.tdh-logo-tag { font-size: .58rem; font-weight: 700; letter-spacing: .14em; color: #86efac; margin-top: 3px; }
@media (max-width: 380px) { .tdh-logo-tag { display: none; } }

/* Menu button (mobile) */
.tdh-toggle { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer; }
.tdh-bars { position: relative; width: 18px; height: 14px; display: inline-block; }
.tdh-bars i { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.tdh-bars i:nth-child(1) { top: 0; }
.tdh-bars i:nth-child(2) { top: 6px; }
.tdh-bars i:nth-child(3) { top: 12px; }
.tdh-toggle.is-open .tdh-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.tdh-toggle.is-open .tdh-bars i:nth-child(2) { opacity: 0; }
.tdh-toggle.is-open .tdh-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Menu list */
.tdh-menu, .tdh-menu li { list-style: none; margin: 0; padding: 0; }
.tdh-menu a { display: block; text-decoration: none; font-weight: 700; color: #e8f5ec; }

/* Mobile drawer */
@media (max-width: 1023px) {
    .tdh-nav { position: fixed; top: 68px; left: 0; right: 0; background: #0f3d21; padding: 14px 16px 22px; max-height: calc(100vh - 68px); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; z-index: 1001; border-bottom: 3px solid #f59e0b; }
    .admin-bar .tdh-nav { top: 114px; }
    .tdh-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .tdh-menu { display: flex; flex-direction: column; gap: 6px; }
    .tdh-menu a { padding: 15px 16px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 1.02rem; }
    .tdh-menu a:hover, .tdh-menu .current-menu-item > a { background: rgba(255,255,255,.16); color: #fff; }
    .tdh-menu .menu-cta > a { background: #f59e0b; color: #111827; text-align: center; font-weight: 800; margin-top: 8px; }
    .tdh-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 999; }
    .tdh-overlay.is-open { opacity: 1; visibility: visible; }
    html.tdh-lock { overflow: hidden; }
}

/* Desktop bar */
@media (min-width: 1024px) {
    .tdh-toggle, .tdh-overlay { display: none; }
    .tdh-nav { flex: 1; display: flex; justify-content: flex-end; }
    .tdh-menu { display: flex; align-items: center; gap: 4px; }
    .tdh-menu a { padding: 10px 16px; border-radius: 99px; font-size: .94rem; transition: background .15s ease, color .15s ease; }
    .tdh-menu a:hover { background: rgba(255,255,255,.14); color: #fff; }
    .tdh-menu .current-menu-item > a { background: rgba(255,255,255,.2); color: #fff; }
    .tdh-menu .menu-cta { margin-left: 10px; }
    .tdh-menu .menu-cta > a { background: #f59e0b; color: #111827; font-weight: 800; padding: 10px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .tdh-menu .menu-cta > a:hover { background: #d97706; color: #fff; }
}

/* =========================================================
   HEADER & TRACTOR BUY/SELL CTA BUTTONS (v14.0.0)
   ========================================================= */
.tdh {
    background: #14532d;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #f59e0b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}
.tdh-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.tdh-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    text-decoration: none !important;
    flex-shrink: 0;
}
.tdh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.tdh-logo-main {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.tdh-logo-main em {
    font-style: normal;
    color: #fbbf24;
}
.tdh-logo-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #bbf7d0;
    margin-top: 2px;
}
.tdh-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tdh-menu li { margin: 0; }
.tdh-menu a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 99px;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.15s ease;
}
.tdh-menu a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
.tdh-menu .menu-cta > a {
    background: #f59e0b;
    color: #111827 !important;
    font-weight: 800;
    margin-left: 6px;
}
.tdh-menu .menu-cta > a:hover {
    background: #d97706;
    color: #ffffff !important;
}
.tdh-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.tdh-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}
.tdh-bars i {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}
@media (max-width: 960px) {
    .tdh-toggle { display: inline-flex; }
    .tdh-nav {
        display: none;
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: #0f3d21;
        padding: 14px 16px 20px;
        border-bottom: 3px solid #f59e0b;
        z-index: 999;
    }
    .tdh-nav.open { display: block; }
    .tdh-menu { flex-direction: column; align-items: stretch; gap: 6px; }
    .tdh-menu a { display: block; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); }
    .tdh-menu .menu-cta > a { margin-left: 0; text-align: center; }
}

/* Buy & Sell Action Buttons on Single Tractor Page */
.tractor-trade-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}
@media (min-width: 540px) {
    .tractor-trade-actions { grid-template-columns: 1fr 1fr; }
}
.btn-buy-model, .btn-sell-model {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.94rem;
    text-align: center;
    transition: transform 0.12s ease, background 0.15s ease;
}
.btn-buy-model {
    background: #15803d;
    color: #ffffff !important;
    border: 1.5px solid #15803d;
}
.btn-buy-model:hover {
    background: #14532d;
    transform: translateY(-1px);
}
.btn-sell-model {
    background: #f59e0b;
    color: #111827 !important;
    border: 1.5px solid #f59e0b;
}
.btn-sell-model:hover {
    background: #d97706;
    color: #ffffff !important;
    transform: translateY(-1px);
}
