/* MLM-Shop মার্কেটপ্লেস — মূল স্টাইলশিট */
    :root {
        --ink:        #1E2A22;
        --paper:      #FBF6EC;
        --paper-dim:  #F2EADA;
        --teal:       #0B4F4A;
        --teal-dark:  #073732;
        --marigold:   #E8A93A;
        --marigold-dk:#C68A20;
        --chili:      #B23A48;
        --line:       #E4D9C2;
        --white:      #FFFFFF;
    }
    * { box-sizing: border-box; }
    body { font-family: "Hind Siliguri", "Segoe UI", Arial, sans-serif; background: var(--paper); margin: 0; color: var(--ink); line-height: 1.55; }
    h1, h2, h3, h4, .brand, .eyebrow { font-family: "Baloo Da 2", "Hind Siliguri", sans-serif; }
    nav {
        background: var(--teal-dark); padding: 14px 28px; display: flex; justify-content: space-between;
        align-items: center; flex-wrap: wrap; border-bottom: 4px solid var(--marigold);
        position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    }
    nav a { color: #F5EFE1; text-decoration: none; margin-left: 20px; font-size: 15px; font-weight: 500; transition: color .15s; }
    nav a:hover { color: var(--marigold); }
    nav .brand { font-size: 23px; font-weight: 700; margin-left: 0; color: var(--white); letter-spacing: 0.3px; }
    .container { max-width: 1100px; margin: 0 auto 44px; padding: 28px 18px 0; }
    .card {
        background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
        box-shadow: 0 1px 2px rgba(30,42,34,0.04), 0 8px 20px -12px rgba(30,42,34,0.15); margin-bottom: 24px;
    }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    .stat { background: var(--teal); color: var(--white); border-radius: 12px; padding: 20px 16px; text-align: center; box-shadow: 0 8px 20px -10px rgba(11,79,74,0.5); }
    .stat .value { font-family: "Baloo Da 2", sans-serif; font-size: 27px; font-weight: 700; color: var(--marigold); }
    .stat .label { font-size: 13px; color: #DCE9E6; margin-top: 4px; }
    table { width: 100%; border-collapse: collapse; margin-top: 10px; }
    th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
    th { background: var(--paper-dim); font-family: "Baloo Da 2", sans-serif; font-weight: 600; }
    tr:hover td { background: #FCFAF3; }
    form input, form select, form textarea, form button {
        width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 8px; border: 1.5px solid var(--line);
        font-size: 15px; font-family: inherit; background: var(--white); transition: border-color .15s, box-shadow .15s;
    }
    form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,79,74,0.12); }
    form button {
        background: var(--chili); color: var(--white); border: none; cursor: pointer; font-family: "Baloo Da 2", sans-serif;
        font-weight: 600; font-size: 16px; letter-spacing: 0.3px; transition: transform 0.08s ease, box-shadow .15s;
        box-shadow: 0 6px 14px -6px rgba(178,58,72,0.55);
    }
    form button:hover { transform: translateY(-1px); background: #9c2f3c; }
    .error { background: #FBE4E6; color: var(--chili); padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid #F0C4C8; }
    .success { background: #E4F1E0; color: #2C6B2F; padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid #C7E3C2; }
    .badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
    .badge-pending { background: #FCEFD2; color: #8A5B00; }
    .badge-paid { background: #E4F1E0; color: #2C6B2F; }
    .badge-running { background: #E4F1E0; color: #2C6B2F; }
    .badge-upcoming { background: #DDEAF6; color: #1D5A8A; }
    .badge-discount { background: #FBE4E6; color: var(--chili); }
    .badge-retail { background: #EFE6D5; color: var(--teal-dark); }
    .badge-wholesale { background: #FCEFD2; color: #8A5B00; }
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
    .product-card {
        border: 1px solid var(--line); border-radius: 14px; background: var(--white); display: flex; flex-direction: column;
        overflow: hidden; box-shadow: 0 1px 2px rgba(30,42,34,0.04), 0 6px 16px -12px rgba(30,42,34,0.18);
        transition: transform .15s ease, box-shadow .15s ease;
    }
    .product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(30,42,34,0.28); }
    .product-card .product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
    .product-card h4 { margin: 4px 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
    .price-old { text-decoration: line-through; color: #A69A80; font-size: 13px; }
    .price-new { color: var(--chili); font-weight: 700; font-family: "Baloo Da 2", sans-serif; font-size: 17px; }
    .eyebrow {
        display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--teal);
        background: #E1EDEA; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
    }
    .product-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 42px; position: relative; overflow: hidden; }
    .product-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 60%); }
    .thumb-1 { background: linear-gradient(135deg, #0B4F4A, #147A72); }
    .thumb-2 { background: linear-gradient(135deg, #E8A93A, #C68A20); }
    .thumb-3 { background: linear-gradient(135deg, #B23A48, #8A2A36); }
    .thumb-4 { background: linear-gradient(135deg, #1D5A8A, #123C5C); }
    .thumb-5 { background: linear-gradient(135deg, #6B8E4E, #4C6836); }
    .thumb-6 { background: linear-gradient(135deg, #8A5B00, #5E3D00); }
    .product-thumb-img { padding: 0; background: var(--paper-dim); }
    .product-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
    .vendor-card {
        border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column;
        box-shadow: 0 1px 2px rgba(30,42,34,0.04), 0 6px 16px -12px rgba(30,42,34,0.18); transition: transform .15s ease, box-shadow .15s ease;
    }
    .vendor-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(30,42,34,0.28); }
    .vendor-stripe { height: 9px; }
    .vendor-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
    .vendor-body h4 { margin: 0; font-size: 16px; }
    .vendor-meta { font-size: 12.5px; color: #6B6152; }
    .vendor-body a { color: var(--teal); font-weight: 600; text-decoration: none; font-size: 14px; margin-top: 6px; }
    footer.site-footer { margin-top: 60px; padding: 26px 18px; text-align: center; color: #8A7F68; font-size: 13px; border-top: 1px solid var(--line); }

    /* --- ভেন্ডর প্রোফাইল পেজ --- */
    .vendor-hero {
        border-radius: 16px; padding: 30px 28px; color: #fff; position: relative; overflow: hidden;
        display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 24px;
    }
    .vendor-hero::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 85% 0%, rgba(255,255,255,0.18), transparent 55%); }
    .vendor-avatar {
        width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.5);
        display: flex; align-items: center; justify-content: center; font-family: "Baloo Da 2", sans-serif; font-size: 30px;
        font-weight: 700; color: #fff; flex-shrink: 0; position: relative; z-index: 1;
    }
    .vendor-hero-info { position: relative; z-index: 1; flex: 1; min-width: 200px; }
    .vendor-hero-info h1 { margin: 4px 0 6px; font-size: 26px; color: #fff; }
    .vendor-hero-meta { font-size: 13.5px; color: rgba(255,255,255,0.85); }
    .vendor-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
    .vendor-badges .badge { background: rgba(255,255,255,0.18); color: #fff; }
    .category-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
    .category-chip {
        display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 30px; background: var(--paper-dim);
        border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--teal-dark); text-decoration: none;
        transition: transform .12s ease, background .12s ease;
    }
    .category-chip:hover { transform: translateY(-2px); background: #EFE6D5; }
    .category-chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
    .category-chip .count { font-weight: 400; opacity: 0.75; }
    .category-browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .category-browse-card {
        text-align: center; padding: 18px 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
        text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease;
    }
    .category-browse-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(30,42,34,0.25); }
    .category-browse-card .icon { font-size: 30px; display: block; margin-bottom: 8px; }
    .category-browse-card .name { font-size: 13px; font-weight: 600; }

/* --- হোমপেজ হিরো স্লাইডার --- */
.hero-slider {
    position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 24px;
    min-height: 300px; box-shadow: 0 8px 24px -14px rgba(30,42,34,0.35);
}
.hero-slide {
    position: absolute; inset: 0; padding: 34px 64px; color: #fff;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .5s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; position: relative; }
.hero-slide h1 { margin: 8px 0 10px; font-size: 28px; color: #fff; max-width: 640px; }
.hero-slide p { max-width: 560px; color: #F1ECDF; font-size: 15px; margin: 0 0 4px; }
.hero-slide-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.hero-btn-primary {
    background: var(--marigold); color: var(--teal-dark); padding: 11px 20px; border-radius: 8px;
    text-decoration: none; font-weight: 700; font-family: 'Baloo Da 2', sans-serif; font-size: 15px;
    transition: transform .12s ease;
}
.hero-btn-primary:hover { transform: translateY(-2px); }
.hero-btn-secondary { color: #fff; text-decoration: underline; font-size: 14.5px; font-weight: 500; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(255,255,255,0.2); border: none; color: #fff; width: 38px; height: 38px;
    border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }
.hero-slider-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none;
    cursor: pointer; padding: 0; transition: background .15s ease, transform .15s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* সেকশনগুলোর মাঝে একটানা লেগে থাকার (কোনো গ্যাপ না থাকার) সমস্যা ঠিক করতে —
   .card এর মতোই .grid এরও নিচে মার্জিন থাকা দরকার */
.grid { margin-bottom: 24px; }

@media (max-width: 600px) {
    .hero-slider { min-height: 360px; }
    .hero-slide { padding: 26px 22px 56px; }
    .hero-slide h1 { font-size: 22px; }
    /* ছোট স্ক্রিনে অ্যারো বাটন টেক্সটের সাথে লেগে যায় বলে লুকিয়ে দেওয়া হলো, ডট নেভিগেশন ও অটো-প্লে থাকছে */
    .hero-arrow { display: none; }
}
