/* Nellimart marketplace homepage — restrained B2B styling inspired by leading sourcing portals. */
body:has(.market-hero) { background: #f5f6f7; color: #25313c; }

body:has(.market-hero) .extracted-header { box-shadow: 0 1px 4px rgba(16, 42, 67, .08); }
body:has(.market-hero) .extracted-header .header-top,
body:has(.market-hero) .extracted-header .header-nav { background: #fff; }
body:has(.market-hero) .extracted-header .header-search-control { border: 1px solid #d8dde3; border-radius: 4px; overflow: hidden; }
body:has(.market-hero) .extracted-header .header-search input { height: 46px; border-radius: 0; }
body:has(.market-hero) .extracted-header .header-search button { min-width: 128px; color: #fff; background: #2e7d32; border-radius: 0; }
body:has(.market-hero) .extracted-header .header-search button:hover { background: #1b5e20; }
body:has(.market-hero) .extracted-header .header-nav-link { color: #273444; }
body:has(.market-hero) .extracted-header .header-nav a::after { background: #2e7d32; }
body:has(.market-hero) .extracted-header .header-nav a:hover,
body:has(.market-hero) .extracted-header .header-nav a[aria-current="page"] { color: #1b5e20; }

body:has(.market-hero) .market-hero { gap: 12px; margin-top: 16px; margin-bottom: 22px; }
body:has(.market-hero) .market-hero__categories,
body:has(.market-hero) .market-hero__slider,
body:has(.market-hero) .market-hero__quote { border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: none; }
body:has(.market-hero) .market-hero__categories { padding: 13px 10px; background: #fff; }
body:has(.market-hero) .market-hero__categories h2 { margin-inline: 4px; padding: 0 4px 11px; color: #25313c; border-color: #e5e8ec; font-size: 17px; }
body:has(.market-hero) .market-hero__categories h2 span { color: #2e7d32; }
body:has(.market-hero) .category-sidebar__row { border-radius: 2px; }
body:has(.market-hero) .category-sidebar__row:hover,
body:has(.market-hero) .category-sidebar__row.is-active { color: #1b5e20; background: #eaf5ed; border-left: 3px solid #2e7d32; box-shadow: none; }
body:has(.market-hero) .category-sidebar__row.is-active .category-sidebar__link,
body:has(.market-hero) .category-sidebar__row.is-active .category-sidebar__toggle { color: #1b5e20; }
body:has(.market-hero) .category-sidebar__row.is-active .category-sidebar__toggle { background: transparent; transform: none; }

body:has(.market-hero) .market-hero__slider { border: 0; border-radius: 4px; }
body:has(.market-hero) .market-slide__overlay { background: linear-gradient(90deg, rgba(7, 35, 62, .88), rgba(7, 35, 62, .6) 52%, rgba(7, 35, 62, .12)); }
body:has(.market-hero) .market-slide__label { background: #2e7d32; border: 0; border-radius: 2px; }
body:has(.market-hero) .market-slide__actions a { border-radius: 3px; }
body:has(.market-hero) .market-slide__primary { color: #fff; background: #2e7d32; }
body:has(.market-hero) .market-slide__primary:hover { background: #1b5e20; }
body:has(.market-hero) .market-slider__dots button[aria-current="true"] { background: #2e7d32; }

body:has(.market-hero) .market-hero__quote { justify-content: flex-start; padding: 27px 24px; color: #25313c; background: #fff; }
body:has(.market-hero) .market-quote__label { color: #1b5e20; }
body:has(.market-hero) .market-hero__quote h2 { color: #172a3c; font-size: clamp(25px, 2vw, 31px); }
body:has(.market-hero) .market-hero__quote > p:not(.market-quote__label) { color: #65717d; }
body:has(.market-hero) .market-hero__quote li { color: #344250; }
body:has(.market-hero) .market-hero__quote li span { color: #1c8a43; }
body:has(.market-hero) .market-hero__quote a { border-radius: 3px; }
body:has(.market-hero) .market-quote__primary { color: #fff; background: #2e7d32; }
body:has(.market-hero) .market-quote__primary:hover { background: #1b5e20; }
body:has(.market-hero) .market-quote__secondary { color: #1b6e39; background: #fff; border-color: #b8c8be; }
body:has(.market-hero) .market-quote__secondary:hover { color: #fff !important; background: #0a7a32 !important; border-color: #0a7a32 !important; }

body:has(.market-hero) .category-mega-menu-backdrop { display: none !important; }
body:has(.market-hero) .category-mega-menu { left: calc(100% + 8px); width: min(790px, calc(100vw - 370px)); padding: 0; background: #fff; border: 1px solid #cfd5dc; border-radius: 4px; box-shadow: 0 10px 28px rgba(16, 42, 67, .16); }
body:has(.market-hero) .category-mega-menu__header { position: static; margin: 0; padding: 16px 20px; color: #25313c; background: #fff; border-bottom: 1px solid #e1e5e9; }
body:has(.market-hero) .category-mega-menu__title > .material-symbols-outlined { width: 38px; height: 38px; color: #1b5e20; background: #eaf5ed; border-radius: 3px; box-shadow: none; }
body:has(.market-hero) .category-mega-menu__title small { color: #8a949e; }
body:has(.market-hero) .category-mega-menu__header h3 { color: #25313c; font-size: 22px; }
body:has(.market-hero) .category-mega-menu__close { color: #596674; background: #fff; border-color: #d5dbe1; border-radius: 3px; }
body:has(.market-hero) .category-mega-menu__close:hover { color: #1b5e20; background: #eaf5ed; border-color: #9acb9d; transform: none; }
body:has(.market-hero) .category-mega-menu__grid { padding: 18px 20px; gap: 26px; background: #fff; }
body:has(.market-hero) .category-mega-menu__group { padding: 0; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
body:has(.market-hero) .category-mega-menu__group h4 { padding: 0 0 8px; color: #25313c; border-bottom: 1px solid #e5e8ec; }
body:has(.market-hero) .category-mega-menu__group a { min-height: 30px; color: #65717d; border-radius: 2px; }
body:has(.market-hero) .category-mega-menu__group a:hover { color: #1b5e20; background: #eaf5ed; }
body:has(.market-hero) .category-mega-menu__footer { margin: 0; padding: 14px 20px; background: #f7f8f9; border: 0; border-top: 1px solid #e1e5e9; border-radius: 0; }
body:has(.market-hero) .category-mega-menu__footer small { color: #8a949e; }
body:has(.market-hero) .category-mega-menu__footer p { color: #25313c; }
body:has(.market-hero) .category-mega-menu__actions a { border-radius: 3px; }
body:has(.market-hero) .category-mega-menu__quote { color: #fff; background: #2e7d32; box-shadow: none; }

body:has(.market-hero) .home-section { background: transparent; }
body:has(.market-hero) .home-section .text-headline-lg { color: #25313c !important; }
body:has(.market-hero) .premium-category-section,
body:has(.market-hero) .premium-product-section { background: transparent; }
body:has(.market-hero) .category-carousel .category-card,
body:has(.market-hero) .premium-product-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 4px; box-shadow: none; }
body:has(.market-hero) .category-carousel .category-card:hover,
body:has(.market-hero) .premium-product-card:hover { border-color: #f1a65f; box-shadow: 0 5px 14px rgba(16, 42, 67, .09); transform: translateY(-2px); }
body:has(.market-hero) .category-image-wrapper { border-radius: 2px; }
body:has(.market-hero) .category-carousel-button { border-radius: 3px; }
body:has(.market-hero) .product-badge-tag { border-radius: 2px; }

/* Responsive density: comfortable on 1080p, compact on laptops, touch-friendly below. */
body:has(.market-hero) .market-hero {
    width: min(calc(100% - clamp(24px, 3.5vw, 48px)), 1320px);
    max-width: var(--site-container);
    margin-inline: auto;
    min-height: clamp(420px, 31vw, 470px);
}
body:has(.market-hero) .market-hero__categories,
body:has(.market-hero) .market-hero__slider,
body:has(.market-hero) .market-hero__quote { min-height: clamp(420px, 31vw, 470px); }
body:has(.market-hero) .market-slide h2 { font-size: clamp(28px, 2.5vw, 42px); }
body:has(.market-hero) .market-hero__quote h2 { font-size: clamp(22px, 1.65vw, 27px); }
body:has(.market-hero) .category-carousel .category-card { padding: clamp(13px, 1vw, 16px); }
body:has(.market-hero) .category-image-wrapper { margin-bottom: 14px; }

@media (min-width: 1440px) {
    body:has(.market-hero) .category-carousel .category-card {
        flex-basis: calc((100% - 80px) / 5);
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    body:has(.market-hero) .market-hero { grid-template-columns: 205px minmax(0, 1fr) 235px; }
    body:has(.market-hero) .market-slide__content { padding: 34px; }
    body:has(.market-hero) .market-hero__quote { padding: 21px 18px; }
}

@media(max-width:1023px){
    body:has(.market-hero) .market-hero { min-height: 0; }
    body:has(.market-hero) .market-hero__slider,
    body:has(.market-hero) .market-hero__quote { min-height: 420px; }
    body:has(.market-hero) .market-hero__quote { padding: 24px 20px; }
    body:has(.market-hero) .category-sidebar__row.is-active { border-left: 3px solid #2e7d32; box-shadow: none; }
}

@media(max-width:767px){
    body:has(.market-hero) .market-hero__slider { min-height: 420px; }
    body:has(.market-hero) .market-hero__quote { min-height: auto; padding: 26px 20px; }
    body:has(.market-hero) .market-slide__content { width: min(100%, calc(100% - 24px)); padding: 24px 16px 44px; }
    body:has(.market-hero) .market-hero__quote h2 { font-size: clamp(21px, 6vw, 25px); }
    body:has(.market-hero) .home-section { padding-block: 40px; }
}

@media(max-width:479px){
    body:has(.market-hero) .market-categories a { flex-basis: 62%; }
}
