/* MarketLink - Custom Design System & Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,500;1,700&display=swap');

:root {
    --ml-primary: #15803d;
    --ml-primary-hover: #166534;
    --ml-primary-dark: #0f3821;
    --ml-primary-darker: #092615;
    --ml-accent-green: #22c55e;
    --ml-accent-light: #dcfce7;
    --ml-accent-soft: #f0fdf4;
    --ml-gold: #f59e0b;
    --ml-text-dark: #0f172a;
    --ml-text-body: #334155;
    --ml-text-muted: #64748b;
    --ml-bg-body: #ffffff;
    --ml-card-bg: #ffffff;
    --ml-border: #e2e8f0;
    --ml-border-soft: #f1f5f9;
    --ml-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --ml-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    --ml-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
    --ml-radius-sm: 10px;
    --ml-radius-md: 16px;
    --ml-radius-lg: 24px;
    --ml-radius-pill: 9999px;
    --ml-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --ml-font-script: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--ml-font);
    background-color: var(--ml-bg-body);
    color: var(--ml-text-body);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--ml-primary);
}

/* Typography Helpers */
.font-script {
    font-family: var(--ml-font-script);
    font-style: italic;
}

/* Header & Navigation (Always Green - Harmonized Theme - Zero Horizontal Overflow) */
.marketlink-header {
    background: linear-gradient(135deg, #092816 0%, #134e2c 50%, #0d381e 100%);
    color: #ffffff;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 2px solid rgba(74, 222, 128, 0.25);
    box-shadow: 0 4px 20px rgba(9, 40, 22, 0.35);
    overflow-x: clip;
    width: 100%;
}

.marketlink-nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1200px) {
    .marketlink-nav-container {
        padding: 0 24px;
    }
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.brand-logo-wrap:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-text span {
    color: #4ade80;
}

.header-nav-block {
    flex-shrink: 0;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.header-nav-links .nav-link-item {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: var(--ml-radius-pill);
    transition: all 0.18s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav-links .nav-link-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.header-nav-links .nav-link-item.active {
    color: #ffffff;
    background: rgba(74, 222, 128, 0.22);
    border-color: rgba(74, 222, 128, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-weight: 700;
}

.nav-link-role-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.nav-link-role-pill:hover {
    background: rgba(245, 158, 11, 0.25) !important;
}

.header-search-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
    flex-shrink: 1;
}

.header-search-input {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--ml-radius-pill);
    padding: 7px 16px 7px 36px;
    color: #ffffff;
    font-size: 0.84rem;
    width: 100%;
    outline: none;
    transition: all 0.25s ease;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}

/* Button Adjustments & Consistency */
.btn-header-login {
    background: #ffffff;
    color: #134e2c !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 16px;
    border-radius: var(--ml-radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    min-height: 38px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-header-login:hover {
    background: #f0fdf4;
    color: #092816 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.cart-btn-indicator {
    position: relative;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-btn-indicator:hover {
    background: rgba(74, 222, 128, 0.25);
    border-color: #4ade80;
    transform: scale(1.05);
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #22c55e;
    color: #092816;
    font-weight: 800;
    font-size: 0.70rem;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #092816;
}

.user-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px 12px 3px 5px;
    border-radius: var(--ml-radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-header-pill:hover {
    background: rgba(255, 255, 255, 0.22);
}

.user-header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.user-header-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.btn-header-mobile-toggle {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-header-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #4ade80;
}

/* Offcanvas Mobile Navigation Menu */
.marketlink-offcanvas {
    background: #0d381e !important;
    color: #ffffff;
    width: 300px !important;
}

.offcanvas-nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.offcanvas-nav-link:hover,
.offcanvas-nav-link.active {
    background: rgba(74, 222, 128, 0.15);
    color: #ffffff;
}

/* ==========================================================================
   Home Hero Section (Exact Pixel-Perfect Match to User Design Reference Image 1)
   ========================================================================== */
.hero-wrapper-reference {
    background-color: #f7f4ea;
    background-image: 
        radial-gradient(at 10% 20%, rgba(22, 101, 52, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(197, 146, 57, 0.08) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
    padding: 40px 0 35px 0;
    border-bottom: 1px solid #e7e2d3;
}

.hero-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef7f0;
    border: 1px solid #bbf7d0;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #14532d;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(20, 83, 45, 0.04);
}

.hero-welcome-badge strong {
    color: #15803d;
    font-weight: 700;
}

.hero-reference-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 4.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
}

.hero-reference-headline .text-dark-title {
    color: #111827;
}

.hero-reference-headline .text-forest-title {
    color: #14532d;
}

.hero-reference-headline .text-forest-accent {
    color: #15803d;
}

.hero-reference-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #374151;
    max-width: 480px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-reference-btns {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-gold {
    background: linear-gradient(135deg, #c59239 0%, #986a1e 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 13px 26px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 8px 18px rgba(152, 106, 30, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-hero-gold:hover {
    background: linear-gradient(135deg, #d4a044 0%, #a67423 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(152, 106, 30, 0.38);
}

.btn-hero-forest {
    background-color: #14532d;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 13px 26px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 8px 18px rgba(20, 83, 45, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-hero-forest:hover {
    background-color: #166534;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 83, 45, 0.35);
}

/* ==========================================================================
   Modern Organic Hero Section (MarketLink Direct Farm-to-Table Showcase)
   ========================================================================== */
.ml-hero-showcase {
    background-color: #f7f5ed;
    background-image: 
        radial-gradient(at 8% 20%, rgba(22, 101, 52, 0.06) 0px, transparent 50%),
        radial-gradient(at 92% 80%, rgba(211, 157, 86, 0.08) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
    padding: 50px 0 54px 0;
    border-bottom: 1px solid #e8e3d5;
}

.ml-hero-content {
    position: relative;
    z-index: 10;
}

.ml-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eaf6ed;
    border: 1.5px solid #86efac;
    border-radius: 9999px;
    padding: 7px 18px;
    margin-bottom: 20px;
    color: #166534;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.06);
}

.ml-hero-badge .ml-badge-icon {
    font-size: 0.95rem;
    color: #16a34a;
}

.ml-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.3rem, 3.8vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: #111827;
    margin-bottom: 18px;
}

.ml-hero-title .text-farm-green {
    color: #166534;
}

.ml-hero-description {
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    line-height: 1.6;
    color: #374151;
    max-width: 520px;
    margin-bottom: 24px;
}

.ml-hero-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ml-hero-stats .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #374151;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ml-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 13px 26px;
    min-width: 250px;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-harvest-action {
    background: linear-gradient(135deg, #d39d56 0%, #aa722b 100%);
    color: #1c1917 !important;
    box-shadow: 0 8px 22px rgba(170, 114, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-harvest-action:hover {
    background: linear-gradient(135deg, #dcab66 0%, #b87d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(170, 114, 43, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #1c1917 !important;
}

.btn-markets-action {
    background: linear-gradient(135deg, #185a32 0%, #0d381e 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(13, 56, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-markets-action:hover {
    background: linear-gradient(135deg, #206d3e 0%, #114526 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 56, 30, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.btn-hero-action:active {
    transform: translateY(1px);
}

.btn-action-icon {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.btn-action-arrow {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Right Visual Collage Card */
.ml-hero-visual-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 540px;
}

.ml-hero-art-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(13, 56, 30, 0.18), 0 6px 16px rgba(0, 0, 0, 0.06);
    border: 4px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.ml-hero-art-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(13, 56, 30, 0.24);
}

.ml-hero-art-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Interactive hotspots on artwork */
.ml-art-hotspot {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ml-art-hotspot:hover {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.hotspot-fazal-tag {
    left: 74%;
    top: 40%;
    width: 14%;
    height: 6%;
    border-radius: 20px;
}

.hotspot-verified-seal {
    left: 63%;
    top: 38%;
    width: 15%;
    height: 21%;
    border-radius: 50%;
}

.hotspot-market-ribbon {
    left: 56%;
    top: 68%;
    width: 44%;
    height: 30%;
    border-radius: 20px;
}

/* ==========================================================================
   Real Interactive Leaf Composition (HTML/CSS Leaf Petals, Badges, Ribbon)
   ========================================================================== */
.hero-composition-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 520px;
    margin-left: auto;
}

/* Individual Interactive Leaf Petals */
.leaf-petal {
    position: absolute;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
    border: 4px solid #ffffff;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.leaf-petal:hover {
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 22px 45px rgba(20, 83, 45, 0.22);
    z-index: 7 !important;
    border-color: #4ade80;
}

.leaf-petal-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.leaf-petal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.leaf-petal:hover .leaf-petal-photo {
    transform: scale(1.08);
}

/* Petal 1: Top Left - Fresh Produce Basket */
.leaf-petal-tl {
    top: 15px;
    left: 20px;
    width: 255px;
    height: 255px;
    border-radius: 130px 30px 130px 30px;
    z-index: 2;
}

/* Petal 2: Top Right - Farmer Fazal Hussain */
.leaf-petal-tr {
    top: 5px;
    right: 15px;
    width: 260px;
    height: 260px;
    border-radius: 30px 140px 30px 140px;
    z-index: 3;
}

.farmer-tag-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(254, 252, 247, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid #e7e0cc;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

/* Petal 3: Bottom Left - Happy Family */
.leaf-petal-bl {
    bottom: 25px;
    left: 15px;
    width: 250px;
    height: 220px;
    border-radius: 32px 110px 32px 110px;
    z-index: 2;
}

/* Petal 4: Bottom Right - Farmers Market Stall */
.leaf-petal-br {
    bottom: 35px;
    right: 10px;
    width: 270px;
    height: 225px;
    border-radius: 110px 32px 110px 32px;
    z-index: 1;
}

/* Center 3D Embossed Wax Seal Badge: 100% VERIFIED GROWERS */
.hero-center-seal-wrap {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8;
}

.wax-seal-badge {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #22c55e 0%, #15803d 55%, #0f3821 100%);
    border: 3.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(15, 56, 33, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.wax-seal-badge:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 16px 36px rgba(15, 56, 33, 0.55);
}

.seal-percent {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.seal-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #fef08a;
}

.seal-sub {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    opacity: 0.95;
}

/* Floating 3D Curved Cream Ribbon Banner */
.hero-floating-ribbon-wrap {
    position: absolute;
    bottom: -8px;
    right: 0px;
    z-index: 9;
}

.ribbon-3d-card {
    background: linear-gradient(135deg, #fdfbf7 0%, #f3ece0 100%);
    border: 1.5px solid #dcd3be;
    border-radius: 14px;
    padding: 10px 24px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    text-align: right;
    position: relative;
    transition: transform 0.3s ease;
}

.ribbon-3d-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.ribbon-script-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
}

.ribbon-cities-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.5px;
}

/* Decorative Green Botanical Dew Drops */
.leaf-dew-deco {
    position: absolute;
    color: #22c55e;
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.3));
    z-index: 6;
    pointer-events: none;
}

.leaf-dew-deco.deco-top {
    top: -10px;
    left: 45%;
    font-size: 2.2rem;
    transform: rotate(-15deg);
}

.leaf-dew-deco.deco-mid-left {
    top: 48%;
    left: -12px;
    font-size: 2.4rem;
    transform: rotate(-45deg);
}

/* Value Props Strip (White Background) */
.value-props-strip {
    background: #ffffff;
    padding: 26px 0;
    border-bottom: 1px solid var(--ml-border);
}

.value-prop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--ml-radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.value-prop-item:hover {
    background: var(--ml-accent-soft);
    border-color: var(--ml-accent-light);
    transform: translateY(-2px);
}

.value-prop-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ml-accent-light);
    color: var(--ml-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.value-prop-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 2px;
}

.value-prop-desc {
    font-size: 0.78rem;
    color: var(--ml-text-muted);
    line-height: 1.3;
}

/* Marketplace Dashboard Layout */
.dashboard-container {
    background: #ffffff;
    padding: 34px 0 60px 0;
    flex: 1;
}

.sidebar-nav-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    box-shadow: var(--ml-shadow-sm);
    padding: 20px 14px;
    position: sticky;
    top: 86px;
    overflow: hidden;
    width: 100%;
}

.sidebar-brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 16px 4px;
    border-bottom: 1px solid var(--ml-border-soft);
    margin-bottom: 16px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.sidebar-brand-mini .brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-radius: var(--ml-radius-sm);
    color: var(--ml-text-body);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-menu-link i {
    width: 20px;
    font-size: 1rem;
    color: var(--ml-text-muted);
    transition: all 0.2s ease;
}

.sidebar-menu-link:hover {
    background-color: var(--ml-accent-soft);
    color: var(--ml-primary);
}

.sidebar-menu-link:hover i {
    color: var(--ml-primary);
}

.sidebar-menu-link.active {
    background-color: var(--ml-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.sidebar-menu-link.active i {
    color: #ffffff;
}

.sidebar-promo-banner {
    margin-top: 24px;
    background: linear-gradient(135deg, #14532d, #166534);
    border-radius: var(--ml-radius-md);
    padding: 18px 16px;
    color: #ffffff;
    text-align: center;
}

.sidebar-promo-banner h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-promo-banner p {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.btn-sidebar-promo {
    background: #ffffff;
    color: var(--ml-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--ml-radius-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-sidebar-promo:hover {
    background: var(--ml-accent-light);
    color: var(--ml-primary-dark);
}

/* Search and Filter Row */
.marketplace-header-row {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1.5px solid var(--ml-border);
    padding: 22px 24px;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 24px;
}

.marketplace-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.marketplace-subtitle {
    font-size: 0.88rem;
    color: var(--ml-text-muted);
}

.search-filter-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-group input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    border: 1.5px solid var(--ml-border);
    border-radius: var(--ml-radius-pill);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-group input:focus {
    border-color: var(--ml-primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.search-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ml-text-muted);
}

.city-select-pill {
    padding: 10px 20px;
    border-radius: var(--ml-radius-pill);
    border: 1.5px solid var(--ml-border);
    background-color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    outline: none;
    cursor: pointer;
    min-height: 44px;
}

/* Category Filter Chips */
.category-chips-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 26px;
    scrollbar-width: thin;
}

.category-chip {
    padding: 9px 22px;
    border-radius: var(--ml-radius-pill);
    background: #ffffff;
    border: 1.5px solid var(--ml-border);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    min-height: 40px;
    transition: all 0.2s ease;
}

.category-chip:hover {
    border-color: var(--ml-primary);
    color: var(--ml-primary);
}

.category-chip.active {
    background-color: var(--ml-primary);
    border-color: var(--ml-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

/* Section Titles */
.section-headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-headline {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    margin: 0;
}

.section-link-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.section-link-more:hover {
    color: var(--ml-primary-hover);
    transform: translateX(2px);
}

/* Market Cards */
.market-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    overflow: hidden;
    box-shadow: var(--ml-shadow-sm);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-md);
    border-color: #cbd5e1;
}

.market-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.market-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.market-badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--ml-radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.market-badge-status.open {
    background: rgba(21, 128, 61, 0.9);
}

.market-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.market-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 6px;
}

.market-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--ml-text-muted);
    margin-bottom: 14px;
}

.market-meta-row i {
    color: var(--ml-primary);
}

.market-rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ml-text-dark);
}

.market-rating-box i {
    color: var(--ml-gold);
}

.btn-view-details {
    background: var(--ml-accent-soft);
    color: var(--ml-primary) !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 16px;
    border-radius: var(--ml-radius-pill);
    border: 1.5px solid var(--ml-accent-light);
    width: 100%;
    margin-top: auto;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background: var(--ml-primary);
    color: #ffffff !important;
    border-color: var(--ml-primary);
}

/* Featured Farmers Row */
.farmer-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--ml-shadow-sm);
    transition: all 0.2s ease;
    height: 100%;
}

.farmer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ml-shadow-md);
    border-color: #cbd5e1;
}

.farmer-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px auto;
}

.farmer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ml-accent-light);
}

.farmer-verified-check {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--ml-primary);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #ffffff;
}

.farmer-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 4px;
}

.farmer-card-sub {
    font-size: 0.78rem;
    color: var(--ml-text-muted);
    margin-bottom: 8px;
}

.farmer-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #b45309;
    padding: 4px 12px;
    border-radius: var(--ml-radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Products Grid & Product Card */
.product-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    overflow: hidden;
    box-shadow: var(--ml-shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ml-shadow-md);
}

.product-img-box {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
}

.product-pill-organic {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(22, 101, 52, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: var(--ml-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-pill-local {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--ml-primary-dark);
    padding: 3px 8px;
    border-radius: var(--ml-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 4px;
    cursor: pointer;
}

.product-card-title:hover {
    color: var(--ml-primary);
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ml-primary);
    margin-bottom: 4px;
}

.product-card-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ml-text-muted);
}

.product-card-origin {
    font-size: 0.78rem;
    color: var(--ml-text-muted);
    margin-bottom: 12px;
}

.btn-add-cart-card {
    background: var(--ml-primary);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 16px;
    border-radius: var(--ml-radius-pill);
    width: 100%;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
}

.btn-add-cart-card:hover {
    background: var(--ml-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
}

/* Market Detail View */
.market-detail-header-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    overflow: hidden;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 24px;
}

.market-detail-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.market-detail-info-bar {
    padding: 24px;
}

.market-detail-nav-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--ml-border);
    margin-bottom: 24px;
}

.market-detail-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.market-detail-tab-btn.active {
    color: var(--ml-primary);
    border-bottom-color: var(--ml-primary);
}

/* Product Detail View */
.product-detail-card {
    background: #ffffff;
    border-radius: var(--ml-radius-lg);
    border: 1px solid var(--ml-border);
    padding: 32px;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 30px;
}

.product-detail-gallery {
    border-radius: var(--ml-radius-md);
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--ml-border);
}

.product-detail-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ml-primary);
    margin-bottom: 16px;
}

.product-detail-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ml-text-muted);
}

.product-detail-desc {
    font-size: 0.95rem;
    color: var(--ml-text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.qty-counter-group {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--ml-radius-pill);
    border: 1.5px solid var(--ml-border);
    padding: 4px;
    height: 44px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ml-text-dark);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: var(--ml-accent-light);
    color: var(--ml-primary);
}

.qty-number {
    width: 48px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--ml-text-dark);
}

.btn-add-to-cart-large {
    background: var(--ml-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 36px;
    border-radius: var(--ml-radius-pill);
    border: none;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
    cursor: pointer;
    min-height: 46px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart-large:hover {
    background: var(--ml-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 128, 61, 0.4);
}

.product-perks-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ml-border);
    flex-wrap: wrap;
}

.product-perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ml-text-dark);
}

.product-perk-item i {
    color: var(--ml-primary);
}

.specs-table {
    width: 100%;
    margin-top: 16px;
}

.specs-table tr td {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ml-border-soft);
}

.specs-table tr td:first-child {
    font-weight: 600;
    color: var(--ml-text-muted);
    width: 35%;
}

.specs-table tr td:last-child {
    font-weight: 600;
    color: var(--ml-text-dark);
}

/* Cart Slide-Over Drawer */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #ffffff;
    z-index: 1070;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-backdrop.show .cart-drawer-panel {
    right: 0;
}

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ml-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    margin: 0;
}

.cart-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ml-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-drawer-close:hover {
    background: #e2e8f0;
    color: var(--ml-text-dark);
}

.cart-drawer-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--ml-radius-sm);
    border: 1px solid var(--ml-border-soft);
    background: #ffffff;
    margin-bottom: 12px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--ml-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 2px;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--ml-text-muted);
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ml-primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-del-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
}

.cart-item-del-btn:hover {
    color: #b91c1c;
}

.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--ml-border);
    background: #ffffff;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ml-text-muted);
    margin-bottom: 8px;
}

.cart-total-row.grand-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ml-text-dark);
    border-top: 1px dashed var(--ml-border);
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.btn-proceed-checkout {
    background: var(--ml-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px;
    border-radius: var(--ml-radius-pill);
    border: none;
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
    transition: all 0.2s ease;
}

.btn-proceed-checkout:hover {
    background: var(--ml-primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Checkout Page */
.checkout-stepper-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.checkout-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--ml-radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ml-text-muted);
    background: #f1f5f9;
}

.checkout-step-pill.active {
    background: var(--ml-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.checkout-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    padding: 28px;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 24px;
}

/* Order Tracking View */
.tracking-card {
    background: #ffffff;
    border-radius: var(--ml-radius-lg);
    border: 1px solid var(--ml-border);
    padding: 32px;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 30px;
}

.order-badge-pill {
    background: var(--ml-accent-light);
    color: var(--ml-primary-dark);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: var(--ml-radius-pill);
    display: inline-block;
}

.tracking-timeline {
    position: relative;
    padding-left: 36px;
    margin: 28px 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 3px;
    background: #e2e8f0;
}

.tracking-step {
    position: relative;
    margin-bottom: 28px;
}

.tracking-step:last-child {
    margin-bottom: 0;
}

.tracking-step-dot {
    position: absolute;
    left: -36px;
    top: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #64748b;
    z-index: 2;
}

.tracking-step.done .tracking-step-dot {
    background: var(--ml-primary);
    border-color: var(--ml-primary);
    color: #ffffff;
}

.tracking-step.active .tracking-step-dot {
    background: #ffffff;
    border-color: var(--ml-primary);
    color: var(--ml-primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.tracking-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    margin-bottom: 2px;
}

.tracking-step-time {
    font-size: 0.82rem;
    color: var(--ml-text-muted);
}

/* User Profile Card */
.profile-card {
    background: #ffffff;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    padding: 24px;
    box-shadow: var(--ml-shadow-sm);
    margin-bottom: 24px;
}

.profile-avatar-container {
    display: inline-block;
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ml-accent-light);
    display: block;
    transition: filter 0.2s ease;
}

.avatar-upload-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
}

.avatar-upload-badge:hover {
    background: #15803d;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.avatar-upload-badge:active {
    transform: scale(0.95);
}

.avatar-upload-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 5;
    backdrop-filter: blur(2px);
}


/* Auth Modals */
.modal-auth-content {
    border-radius: var(--ml-radius-lg);
    border: none;
    overflow: hidden;
    box-shadow: var(--ml-shadow-lg);
}

.modal-auth-body {
    padding: 36px 32px;
}

.auth-role-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--ml-radius-pill);
    margin-bottom: 20px;
}

.auth-role-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--ml-radius-pill);
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ml-text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-role-btn.active {
    background: #ffffff;
    color: var(--ml-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-social-auth {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--ml-radius-pill);
    border: 1.5px solid var(--ml-border);
    background: #ffffff;
    color: var(--ml-text-dark);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.btn-social-auth:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Map Containers */
.leaflet-map-box {
    width: 100%;
    height: 480px;
    border-radius: var(--ml-radius-md);
    border: 1px solid var(--ml-border);
    overflow: hidden;
    box-shadow: var(--ml-shadow-sm);
    z-index: 1;
}

/* Footer (Always Green) */
.marketlink-footer {
    background-color: var(--ml-primary-darker);
    color: #ffffff;
    padding: 42px 0 24px 0;
    margin-top: auto;
    border-top: 3px solid var(--ml-primary);
}

.footer-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 20px;
    border-radius: var(--ml-radius-pill);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 42px;
    transition: all 0.2s ease;
}

.footer-store-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Toast Notifications */
.ml-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--ml-radius-md);
    box-shadow: var(--ml-shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1090;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.92rem;
    font-weight: 600;
}

.ml-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.ml-toast.success {
    border-left: 5px solid #22c55e;
}

.ml-toast.error {
    border-left: 5px solid #ef4444;
}

/* ==========================================================================
   Google-Style Pagination Component
   ========================================================================== */
.ml-pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 20px;
    padding: 16px 0;
}

.ml-pagination-info {
    font-size: 0.88rem;
    color: var(--ml-text-muted);
    font-weight: 600;
}

.ml-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ml-page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ml-text-dark);
    background: #ffffff;
    border: 1.5px solid var(--ml-border);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ml-page-item:hover:not(.disabled):not(.active) {
    background: #f0fdf4;
    border-color: var(--ml-primary);
    color: var(--ml-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.15);
}

.ml-page-item.active {
    background: var(--ml-primary);
    border-color: var(--ml-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.35);
    cursor: default;
}

.ml-page-item.nav-btn {
    padding: 0 18px;
    border-radius: 20px;
    font-weight: 700;
}

.ml-page-item.disabled {
    color: #cbd5e1;
    border-color: #f1f5f9;
    background: #f8fafc;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

.ml-page-ellipsis {
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 0 6px;
}

