/* Global Font — Poppins already loaded from layouts/website.blade.php */

/* Prevent horizontal “shake” / page sliding from wide mega-menus & grids */
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

.site-main {
    overflow-x: clip;
    max-width: 100%;
}

/* HEADER DEFAULT */
.main-header {
    position: relative;
    width: 100%;
    z-index: 1000;

    transition: all 0.35s ease;

    padding: 18px 0;

    background: #fff;
}

/* FIXED HEADER */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s ease;
    padding: 10px 0;
    z-index: 1000;
}

/* Keep header on top for customer auth pages */
.main-header.force-sticky {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1200;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* LOGO SMALLER ON SCROLL */
.main-header.sticky .logo img {
    height: 65px;
}

/* NORMAL LOGO */
.logo img {
    height: 80px;
    transition: 0.3s ease;
}

/* SMOOTH HEADER ENTRY */
@keyframes slideDown {

    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}


/* Container */
.container {
    max-width: 1620px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    padding: 20px 0
}

.main-header {
    box-shadow: 0px 4px 20px 0px #0000000D;
    position: relative;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    max-width: min(1620px, 100%);
}

.main-header .logo {
    flex-shrink: 0;
}

.main-header .nav-menu {
    min-width: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-header .header-actionss {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-header .header-actionss:empty {
    display: none !important;
}

.main-header .header-actionss ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header .header-actionss ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Logo */
.logo img {
    height: 80px;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: clamp(14px, 1.4vw, 26px);
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-header .nav-menu>ul>li {
    white-space: nowrap;
    flex-shrink: 0;
}

.main-header .nav-menu>ul>li>a,
.main-header .nav-menu>ul>li>form button.logout-btn {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.95vw, 16.5px);
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

#openRegisterModal {
    background: linear-gradient(97.87deg, #FFEA00 -39.18%, #006D5B 75.53%);
    color: #fff;
    border: transparent;
    min-height: 50px;
    display: flex;
    align-items: center;
    min-width: 140px;
    justify-content: center;
    white-space: nowrap;
    font-size: 15px;
    padding: 0 16px;
    border-radius: 8px;
}

@media (min-width: 1201px) and (max-width: 1480px) {
    .main-header .container {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo img {
        height: 65px;
    }

    .nav-menu ul {
        gap: 14px;
    }

    .nav-menu a,
    .nav-menu ul li form button.logout-btn {
        font-size: 14.5px;
    }

    #openRegisterModal {
        min-width: 125px;
        min-height: 44px;
        font-size: 14px;
        padding: 0 12px;
    }
}

.nav-menu a:hover,
.nav-menu .active {
    color: #1E8449;
}

.resource-card:hover::after {
    content: none;
}

/* Buttons */
.header-actions {
    display: flex;
    gap: 12px;
}

.header-actions .btn {
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Poppins;
    font-weight: 500;
    font-style: SemiBold;
    font-size: 17px;
    line-height: 100%;
    border: none;
    min-width: 200px;
}

.header-actions .btn.primary {
    background: linear-gradient(97.87deg, #FFEA00 -39.18%, #006D5B 75.53%);
    color: #fff;
}

.header-actions .btn.secondary {
    background: linear-gradient(97.87deg, #FFEA00 -39.18%, #006D5B 75.53%);
    color: #fff;
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    display: block;
    transition: all 0.3s ease;
}

/* Animate to Cross */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99990;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    gap: 5px;
    cursor: pointer;
    z-index: 100000;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: #333;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate to Cross */
.menu-toggle.active {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100002;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* .nav-menu a.btn {
    display: none;
} */

/* =========================
   MOBILE RESPONSIVE (<= 1200px)
========================= */
@media (max-width: 1200px) {

    .menu-toggle {
        display: flex !important;
        z-index: 100000;
    }

    .main-header .nav-menu,
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: -100% !important;
        width: min(340px, 100%) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        background: #ffffff !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
        padding: 85px 20px 30px !important;
        transition: right 0.35s ease !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 100001 !important;
        box-sizing: border-box !important;
    }

    .main-header .nav-menu.active,
    .nav-menu.active {
        right: 0 !important;
    }

    .main-header .nav-menu ul,
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    .main-header .nav-menu ul li,
    .nav-menu ul li {
        width: 100%;
    }

    .main-header .nav-menu ul li a,
    .nav-menu ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 15px;
        font-weight: 600;
        color: #1e293b;
        text-decoration: none;
        padding: 4px 0;
        transition: color 0.2s ease;
    }

    .main-header .nav-menu ul li a svg,
    .nav-menu ul li a svg {
        width: 12px !important;
        height: 12px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        fill: currentColor !important;
        color: #94a3b8 !important;
    }

    .main-header .nav-menu ul li a:hover,
    .main-header .nav-menu ul li a.active {
        color: #16a34a;
    }
}

.main-header,
.main-header .container {
    overflow: visible !important;
}



/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

/* span.profile-acc {
    display: none;
} */


.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.profile-toggle img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.3s ease;
}

.profile-dropdown:hover .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu li {
    list-style: none;
}

.profile-menu a,
.profile-menu button.logout-btn,
.nav-menu ul li form button.logout-btn,
.header-actionss .logout-btn,
.profile-menu li form {
    display: block;
    width: 100%;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.profile-menu a:hover,
.profile-menu button.logout-btn:hover,
.header-actionss .logout-btn:hover {
    background: #f5f7f6;
    color: #006D5B;
}

.nav-menu ul li a.btn:hover {
    color: #fff;
}

.nav-menu ul li a.btn:hover::after {
    display: none;
}

li.profile-dropdown ul.profile-menu {
    display: block;
}

@media (max-width: 767px) {
    .main-header .header-actionss ul li a.btn.primary {
        min-width: 0;
        max-width: none;
        padding: 9px 11px;
        font-size: 12px;
        line-height: 1.2;
        border-radius: 8px;
        font-weight: 600;
    }

    .header-actions .btn {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 0;
    }

    .main-header .container {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-header .logo img {
        height: 46px;
        width: auto;
        max-width: 108px;
        object-fit: contain;
    }

    .main-header .header-actionss {
        flex-shrink: 1;
        min-width: 0;
        gap: 6px !important;
    }

    .main-header .header-actionss ul {
        margin: 0;
        padding: 0;
        gap: 4px;
    }

    .main-header .header-actionss ul li a.btn.primary {
        padding: 7px 8px;
        font-size: 10.5px;
        line-height: 1.15;
        white-space: nowrap;
        letter-spacing: -0.2px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
        flex-shrink: 0;
        gap: 5px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
    }

    span.profile-acc {
        display: none;
    }
}





/* ==========================
   WASTE MATERIAL MEGA MENU
========================== */

li.dropdown.mega-menu-wrapper {
    position: static;
}

.waste-mega-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;


    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: .25s ease;
}

.mega-menu-wrapper.active .waste-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-arrow {
    margin-left: 6px;
    transition: .3s;
}

/* Dropdown toggle flex alignment */
.waste-menu-toggle,
.sed-marketplace-toggle,
.sed-resources-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
}

/* Dropdown caret only — do not size every SVG inside mega panels */
.waste-menu-toggle>svg,
.sed-marketplace-toggle>svg,
.sed-resources-toggle>svg,
li.dropdown-menu-wrapper>a>svg,
li.mobile-resources-trigger>a>svg,
li.mobile-marketplace-trigger>a>svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    flex-shrink: 0;
    fill: currentColor;
    transition: transform 0.25s ease, fill 0.25s ease;
    display: inline-block;
    vertical-align: middle;
}

.waste-menu-toggle>svg path,
.sed-marketplace-toggle>svg path,
.sed-resources-toggle>svg path {
    fill: currentColor;
    transition: fill 0.25s ease;
}

/* Hover States across all dropdown toggles */
.waste-menu-toggle:hover,
.sed-marketplace-toggle:hover,
.sed-resources-toggle:hover,
li.dropdown.mega-menu-wrapper:hover>a,
li.sed-marketplace-wrapper:hover>a,
li.sed-resources-wrapper:hover>a {
    color: #1E8449 !important;
}

.waste-menu-toggle:hover>svg,
.sed-marketplace-toggle:hover>svg,
.sed-resources-toggle:hover>svg,
li.dropdown.mega-menu-wrapper:hover>a>svg,
li.sed-marketplace-wrapper:hover>a>svg,
li.sed-resources-wrapper:hover>a>svg,
.waste-menu-toggle:hover>svg path,
.sed-marketplace-toggle:hover>svg path,
.sed-resources-toggle:hover>svg path,
li.dropdown.mega-menu-wrapper:hover>a>svg path,
li.sed-marketplace-wrapper:hover>a>svg path,
li.sed-resources-wrapper:hover>a>svg path {
    fill: #1E8449 !important;
}

/* Active / Open States across all dropdown toggles */
li.dropdown.mega-menu-wrapper.active>a.waste-menu-toggle,
li.sed-marketplace-wrapper.active>a.sed-marketplace-toggle,
li.sed-marketplace-wrapper>a.active,
li.sed-resources-wrapper.active>a.sed-resources-toggle {
    color: #1E8449 !important;
}

li.dropdown.mega-menu-wrapper.active>a.waste-menu-toggle>svg,
li.sed-marketplace-wrapper.active>a.sed-marketplace-toggle>svg,
li.sed-resources-wrapper.active>a.sed-resources-toggle>svg {
    transform: rotate(180deg) !important;
    fill: #1E8449 !important;
}

li.dropdown.mega-menu-wrapper.active>a.waste-menu-toggle>svg path,
li.sed-marketplace-wrapper.active>a.sed-marketplace-toggle>svg path,
li.sed-resources-wrapper.active>a.sed-resources-toggle>svg path {
    fill: #1E8449 !important;
}

.waste-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 94%;
    max-width: min(1380px, calc(100vw - 32px));
    z-index: 9999;
    margin-top: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: normal;
}

.mega-menu-wrapper.active .waste-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.waste-mega-menu-inner {
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 65px -10px rgba(15, 23, 42, 0.18);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

/* ==========================================================
   LEFT GREEN NAVIGATION PANEL
========================================================== */

.sed-mega-left-panel {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(165deg, #034a35 0%, #0a7a55 48%, #065f46 100%);
    border-radius: 20px;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 520px;
}

.sed-mega-kicker {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 8px;
}

.sed-mega-kicker--light {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
}

.sed-mega-left-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.sed-mega-left-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.28;
}

.sed-mega-left-header h3.highlight {
    color: #34d399;
    font-weight: 700;
}

.sed-header-line {
    width: 32px;
    height: 2px;
    background: #34d399;
    margin: 12px 0 10px 0;
    border-radius: 2px;
}

.sed-mega-left-header p {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.sed-mega-panel-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
    z-index: 2;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.sed-mega-panel-footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
    flex-shrink: 0;
    font-size: 12px;
}

.sed-mega-type-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.sed-mega-type-btn {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sed-mega-type-btn .sed-type-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sed-mega-type-btn .sed-type-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.sed-mega-type-btn .sed-type-title {
    font-size: 13px;
}

.sed-mega-type-btn .sed-type-arrow {
    font-size: 11px;
    color: #ffffff;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sed-mega-type-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sed-mega-type-btn.active {
    background: #ffffff;
    color: #044e38;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sed-mega-type-btn .sed-type-icon svg,
.sed-mega-type-btn .sed-type-arrow svg {
    display: block;
    stroke: #ffffff;
    transition: all 0.2s ease;
}

.sed-mega-type-btn.active .sed-type-icon,
.sed-mega-type-btn.active .sed-type-arrow {
    color: #044e38;
    opacity: 1;
}

.sed-mega-type-btn.active .sed-type-icon svg,
.sed-mega-type-btn.active .sed-type-arrow svg {
    stroke: #044e38;
}

.sed-view-all-cats-btn--header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    background: #ffffff;
    border: 1.5px solid #10b981;
    border-radius: 10px;
    padding: 9px 14px;
    color: #047857 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.sed-view-all-cats-btn--header i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sed-view-all-cats-btn--header:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff !important;
}

.sed-view-all-cats-btn--header:hover i {
    transform: translateX(3px);
}

.sed-leaf-watermark {
    position: absolute;
    right: -25px;
    bottom: -25px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================
   RIGHT CATEGORY DISCOVERY AREA
========================================================== */

.sed-mega-right-area {
    flex: 1;
    padding: 18px 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 12px;
}

.sed-mega-right-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.sed-mega-right-header-text {
    min-width: 0;
    flex: 1;
}

.sed-mega-right-title {
    margin: 0 0 6px;
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sed-mega-right-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
    max-width: 520px;
}

/* 2 x 3 Category Grid (reference layout) */

.sed-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sed-cat-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    min-height: 118px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sed-cat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.sed-cat-card-text {
    flex: 1;
    padding: 12px 38px 12px 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sed-cat-card-text h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    line-height: 1.25;
    word-wrap: anywhere;
}

.sed-cat-card-text p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sed-cat-card-img {
    order: -1;
    position: relative;
    flex: 0 0 42%;
    max-width: 130px;
    min-width: 96px;
    z-index: 1;
    overflow: hidden;
}

.sed-cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sed-cat-card-img::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(to left, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.sed-cat-circle-arrow {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 10px;
    transition: all 0.2s ease;
}

.sed-cat-card:hover .sed-cat-circle-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.mega-menu-wrapper span.sed-cat-circle-arrow svg,
.sed-mega-trust-strip .sed-trust-col svg,
.sed-mega-type-list .sed-type-arrow svg,
.mega-menu-wrapper .sed-mega-panel-footer svg {
    transform: none;
}

.sed-empty-category-notice {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 30px;
    margin: 10px 0;
}

.sed-empty-category-notice p {
    margin: 0;
}

/* ==========================================================
   TRUST / BENEFIT STRIP
========================================================== */

.sed-mega-trust-strip {
    background: #ecfdf5;
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #bbf7d0;
}

.sed-mega-trust-strip--why {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: nowrap;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 14px 16px;
}

.sed-trust-strip-intro {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    padding-right: 12px;
    border-right: 1px solid #bbf7d0;
}

.sed-trust-strip-leaf {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
    flex-shrink: 0;
}

.sed-trust-strip-leaf i,
.sed-trust-strip-leaf .fa-leaf {
    font-size: 16px !important;
    line-height: 1;
}

.sed-trust-strip-intro strong {
    display: block;
    font-size: 13px;
    color: #064e3b;
    line-height: 1.2;
}

.sed-trust-strip-intro > div > span {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.sed-trust-strip-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.sed-mega-trust-strip--why .sed-trust-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 2px 4px;
    border-right: none;
    transition: transform 0.2s ease;
}

.sed-mega-trust-strip--why .sed-trust-col:hover {
    transform: translateY(-2px);
}

.sed-mega-trust-strip--why .sed-trust-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sed-mega-trust-strip--why .sed-trust-col:hover .sed-trust-icon-box {
    background: #16a34a;
    color: #fff;
}

.sed-mega-trust-strip--why .sed-trust-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
}

.sed-mega-trust-strip--why .sed-trust-text strong {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #064e3b;
    white-space: normal;
    line-height: 1.25;
}

.sed-mega-trust-strip--why .sed-trust-text span {
    display: block;
    font-size: 9.5px;
    color: #64748b;
    white-space: normal;
    line-height: 1.3;
    margin-top: 2px;
}

.sed-trust-col {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.sed-trust-col:not(:last-child) {
    border-right: 1px solid #e2e8f0;
}

.sed-trust-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sed-trust-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.sed-trust-text span {
    font-size: 11px;
    color: #475569;
}

/* PANELS */

.mega-category-panel {
    display: none;
}

.mega-category-panel.active {
    display: block;
}

@media (min-width:1200px) and (max-width: 1350px) {

    .nav-menu ul li a,
    .nav-menu ul li form button.logout-btn {
        font-size: 16px;
    }

    .nav-menu ul {
        gap: 20px;
    }
}

/* @media(max-width: 1199px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        transition: 0.4s ease;
    }

    .menu-toggle {
        display: flex;
        z-index: 99999;
    }

    .nav-menu.active {
        right: 0;
        height: 100vh;
        z-index: 99999;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        padding-left: 20px;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu ul li a {
        display: block;
        width: 100%;
    }

    .mobile-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease;
        z-index: 9999;
    }

    .mobile-panel.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
} */

@media(min-width:1201px) {

    .mobile-panel.mobile-panel-resources,
    .mobile-panel.mobile-panel-marketplace {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

@media(max-width:1200px) {

    li.sed-resources-wrapper,
    li.sed-marketplace-wrapper {
        display: none !important;
    }

    .waste-mega-menu,
    .sed-marketplace-mega-menu,
    .sed-resources-mega-menu,
    .mobile-waste-menu {
        display: none !important;
        visibility: hidden !important;
    }

    .mobile-product-group {
        border-bottom: 1px solid #ececec;
    }

    .mobile-product-toggle {
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        padding: 14px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
    }

    .mobile-category-list {
        display: none;
        padding-left: 15px;
        padding-bottom: 12px;
    }

    .mobile-product-group.active .mobile-category-list {
        display: block;
    }

    .mobile-category-list a {
        display: block;
        padding: 8px 0;
        color: #555;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}

.mobile-panel-marketplace ul.mobile-panel-body {
    padding: 20px;
}

.mobile-only-menu {
    display: none;
}

@media(max-width:1200px) {

    .mobile-only-menu {
        display: block;
    }

}

@media(max-width:1399px) {

    .main-header .nav-menu .mobile-panel,
    .mobile-panel-marketplace {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        background: #ffffff;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease;
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        white-space: normal !important;
    }

    .main-header .nav-menu .mobile-panel.active,
    .mobile-panel-marketplace.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-panel-header {
        padding: 16px 65px 16px 16px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 10;
        box-sizing: border-box;
    }

    .mobile-panel-header button,
    .mobile-back-level-1,
    .mobile-back-level-2,
    .mobile-back-marketplace,
    .mobile-back-resources {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: #0f172a;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
        outline: none;
    }

    .mobile-panel-header button:hover,
    .mobile-panel-header button:active {
        background: #dcfce7;
        color: #166534;
        border-color: #86efac;
    }

    .mobile-panel-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #006d5b;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-panel-body {
        padding: 16px 20px;
        box-sizing: border-box;
    }

    .mobile-product-type,
    button.mobile-product-type,
    a.mobile-product-type {
        width: 100% !important;
        border: none !important;
        background: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        font-family: 'Poppins', var(--font-body), sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        text-align: left !important;
        cursor: pointer !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        transition: color 0.2s ease !important;
    }

    .mobile-product-type span,
    button.mobile-product-type span,
    a.mobile-product-type span {
        font-family: 'Poppins', var(--font-body), sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: inherit !important;
        line-height: 1.4 !important;
    }

    .mobile-product-type:hover,
    .mobile-product-type:active,
    button.mobile-product-type:hover,
    a.mobile-product-type:hover {
        color: #16a34a !important;
    }

    .mobile-product-type i,
    button.mobile-product-type i,
    a.mobile-product-type i {
        font-size: 12px !important;
        color: #94a3b8 !important;
        flex-shrink: 0 !important;
    }

    .mobile-category-group {
        display: none;
    }

    .mobile-category-group.active {
        display: block;
    }

    .mobile-category-group a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 13px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        font-family: 'Poppins', var(--font-body), sans-serif !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #334155 !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        transition: color 0.2s ease !important;
    }

    .mobile-category-group a:hover,
    .mobile-category-group a:active {
        color: #16a34a !important;
    }

    /* Mobile Search in Panels */
    .mobile-search-box {
        margin-bottom: 16px;
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 50px;
        padding: 4px 5px 4px 12px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        gap: 6px;
    }

    .mobile-search-form:focus-within {
        border-color: #16a34a;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    }

    .mobile-search-form .search-icon {
        color: #94a3b8;
        font-size: 13px;
        flex-shrink: 0;
    }

    .mobile-search-input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 13px;
        color: #0f172a;
        outline: none;
        min-width: 0;
        padding: 4px 0;
    }

    .mobile-search-input::placeholder {
        color: #94a3b8;
    }

    .mobile-search-btn {
        background: #16a34a;
        color: #ffffff;
        border: none;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-search-btn:hover {
        background: #15803d;
    }

    /* Mobile Panel Card Links */
    .mobile-panel-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-card-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-card-link:hover,
    .mobile-card-link:active {
        background: #f0fdf4;
        border-color: #86efac;
        transform: translateX(2px);
    }

    .mobile-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }

    .mobile-card-icon.buy {
        background: #dcfce7;
        color: #15803d;
    }

    .mobile-card-icon.sell {
        background: #e0f2fe;
        color: #0369a1;
    }

    .mobile-card-icon.trust {
        background: #fef3c7;
        color: #b45309;
    }

    .mobile-card-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-card-text strong {
        font-size: 15px;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.25;
    }

    .mobile-card-text span {
        font-size: 12px;
        color: #64748b;
        line-height: 1.35;
        font-weight: 400;
    }

    .mobile-card-link .arrow-icon {
        font-size: 12px;
        color: #94a3b8;
        transition: transform 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-card-link:hover .arrow-icon {
        color: #16a34a;
        transform: translateX(3px);
    }
}

.mega-menu-footer {
    margin-top: 30px;
    text-align: center;
}

.mega-menu-footer .mega-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    height: 52px;

    padding: 0 24px;

    border-radius: 12px;

    background: linear-gradient(135deg,
            #8bc53f,
            #007a6c);

    color: #fff;
    font-weight: 600;
    text-decoration: none;

    transition: .3s ease;
}

.mega-menu-footer .mega-view-all-btn::after,
a.mega-category-item::after {
    display: none;
}

.mega-menu-footer .mega-view-all-btn:hover {
    color: #fff;
    text-decoration: none;
}

.market-card p {
    color: #000;
    font-weight: 400;
}

.market-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 0px 0px;
    color: #000 !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.mega-category-icon img {
    height: 100%;
    object-fit: cover;
}



/* ==========================================================
   Resources Mega Menu
========================================================== */

.main-header .nav-menu ul li.sed-resources-wrapper,
li.sed-resources-wrapper {
    position: static !important;
}

.sed-resources-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 94%;
    max-width: min(960px, calc(100vw - 32px));
    box-sizing: border-box;

    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    border: 1px solid #e2e8f0;

    padding: 26px 28px;
    margin-top: 6px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    white-space: normal;
}

li.sed-resources-wrapper.active .sed-resources-mega-menu,
.main-header .nav-menu ul li.sed-resources-wrapper.active .sed-resources-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================
   Inner Layout
========================================================= */

.sed-resources-mega-menu-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) 250px;
    gap: 20px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================
   Column
========================================================== */

.resources-column {
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    gap: 14px;
    min-width: 0;
    height: 100%;
}

.resources-featured {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    height: 100%;
    min-width: 0;
}


/* ==========================================================
   Heading
========================================================== */

.resources-heading {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #0E5D37;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}


/* ==========================================================
   Cards
========================================================== */

.resource-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    box-sizing: border-box;
    white-space: normal !important;
    height: 100%;
    transition: all .25s ease;
}


.resource-card:hover {
    border-color: #0E5D37;
    background: #f6fbf8;
    transform: translateY(-2px);
}

.resource-card.active {
    border-color: #1E8449;
    background: #f0fdf4;
    box-shadow: 0 4px 16px rgba(30, 132, 73, 0.12);
}

.resource-card-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
    white-space: normal !important;
    transition: color .25s;
}

.resource-card:hover h4,
.resource-card.active h4,
.resource-card.active .resource-card-content h4 {
    color: #1E8449;
    font-weight: 700;
}

.resource-card-content p {
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}

.resource-card.active p,
.resource-card.active .resource-card-content p {
    color: #374151;
}

.mobile-product-type.active {
    background: #f0fdf4 !important;
    color: #1E8449 !important;
    font-weight: 600 !important;
}


/* ==========================================================
   Help Card
========================================================== */

.resources-help-card {
    background: linear-gradient(135deg,
            #0E5D37,
            #157347);
    color: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: normal !important;
}


.resources-help-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: normal !important;
}


.resources-help-card p {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
}


.resources-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #fff;
    color: #0E5D37;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s;
    text-align: center;
}


.resources-support-btn:hover {
    background: #f5f5f5;
}


/* ==========================================================
   Responsive Safety
========================================================== */

@media (max-width: 1200px) {
    .sed-resources-mega-menu {
        width: 680px;
    }
}

.resource-card::after {
    content: "→";
    float: right;
    opacity: 0;
    transition: .25s;
}

.resource-card:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* Desktop */
.mobile-resources-trigger,
.mobile-marketplace-trigger {
    display: none;
}

.mobile-panel-marketplace {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s ease;
    z-index: 9999;
}

@media (max-width: 1200px) {
    li.sed-marketplace-wrapper {
        display: none !important;
    }

    .mobile-resources-trigger,
    .mobile-marketplace-trigger {
        display: block !important;
        width: 100% !important;
    }

    .mobile-marketplace-trigger a,
    .mobile-resources-trigger a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .mobile-marketplace-trigger a svg,
    .mobile-resources-trigger a svg,
    .waste-menu-toggle svg {
        width: 12px !important;
        height: 12px !important;
        margin-left: auto !important;
        fill: currentColor !important;
        color: #94a3b8 !important;
    }
}

/* ==========================================================
   MARKETPLACE MEGA MENU (APPROVED REFERENCE DESIGN)
========================================================== */

li.sed-marketplace-wrapper {
    position: static !important;
}



/* Mega Menu Container */
.sed-marketplace-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 94%;
    max-width: min(1260px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    white-space: normal;
}

li.sed-marketplace-wrapper.active .sed-marketplace-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.sed-mkt-mega-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* COLUMN 1: Main Content Area */
.sed-mkt-col-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header Area */
.sed-mkt-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sed-mkt-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sed-mkt-header-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.sed-mkt-header-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.sed-green-bold {
    color: #16a34a;
    font-weight: 700;
}

/* Hero Search Bar */
.sed-mkt-search-wrapper {
    margin-top: 2px;
}

.sed-mkt-search-form {
    margin: 0;
}

.sed-mkt-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #044e38 0%, #066548 100%);
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 8px 24px rgba(4, 78, 56, 0.22);
}

.sed-mkt-search-icon-left {
    display: flex;
    align-items: center;
    margin-right: 12px;
    opacity: 0.9;
}

.sed-mkt-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.sed-mkt-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.sed-mkt-search-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sed-mkt-search-btn:hover {
    transform: scale(1.06);
    background: #f8fafc;
}

/* Popular Searches */
.sed-mkt-popular-searches {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sed-pop-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.sed-pop-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sed-pop-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sed-pop-pill:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    transform: translateY(-1px);
}

/* Section Divider */
.sed-mkt-divider {
    position: relative;
    text-align: center;
    margin: 4px 0;
}

.sed-mkt-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f1f5f9;
    z-index: 1;
}

.sed-mkt-leaf-icon {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* "I want to..." Section */
.sed-mkt-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.sed-mkt-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.sed-mkt-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    min-width: 0;
    box-sizing: border-box;
}

.sed-mkt-card:hover {
    background: #ffffff;
    border-color: #bbf7d0;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.08);
    transform: translateY(-2px);
}

.sed-mkt-card-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.sed-mkt-card-content h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.sed-mkt-card-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.45;
    white-space: normal;
}

.sed-mkt-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    transition: transform 0.2s ease;
    display: inline-block;
}

.sed-mkt-card:hover .sed-mkt-card-cta {
    transform: translateX(4px);
}

/* Trust Strip */
.sed-mkt-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: #f0fdf4;
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
}

.sed-mkt-trust-col {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sed-mkt-trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.1);
}

.sed-mkt-trust-info {
    min-width: 0;
}

.sed-mkt-trust-info strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.sed-mkt-trust-info span {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

/* COLUMN 2: Promotional Panel */
.sed-mkt-col-promo {
    width: 100%;
    min-width: 0;
    display: flex;
}

.sed-mkt-promo-card {
    width: 100%;
    background: linear-gradient(165deg, #033626 0%, #054f38 60%, #076d4e 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(3, 54, 38, 0.3);
}

.sed-mkt-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    align-self: flex-start;
    margin-bottom: 20px;
}

.sed-mkt-promo-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 14px 0;
    letter-spacing: -0.3px;
    white-space: normal;
}

.sed-mkt-highlight {
    color: #4ade80;
    font-weight: 800;
    position: relative;
}

.sed-mkt-promo-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 90%;
    white-space: normal;
}

.sed-mkt-promo-img {
    margin-top: auto;
    width: 100%;
    text-align: center;
    position: relative;
}

.sed-mkt-promo-img img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sed-mkt-mega-container {
        flex-direction: column;
    }

    .sed-mkt-col-main,
    .sed-mkt-col-promo {
        flex: 1 1 100%;
    }

    .sed-mkt-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sed-mkt-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   Mid-desktop: collapse overcrowded nav (prevents page shake)
========================================================== */
@media (max-width: 1399px) {
    .menu-toggle {
        display: flex !important;
        z-index: 100000;
    }

    .main-header .nav-menu {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: -100% !important;
        width: min(340px, 100%) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        background: #ffffff !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
        padding: 85px 20px 30px !important;
        transition: right 0.35s ease !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 100001 !important;
        box-sizing: border-box !important;
        align-items: flex-start;
    }

    .main-header .nav-menu.active {
        right: 0 !important;
    }

    .main-header .nav-menu>ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 0;
        width: 100%;
    }

    .main-header .nav-menu>ul>li {
        width: 100%;
    }

    .main-header .nav-menu>ul>li>a {
        display: block;
        width: 100%;
        white-space: normal;
        font-size: 16px;
    }

    .main-header .logo img {
        height: 56px;
    }

    .main-header .header-actionss .btn.primary {
        padding: 10px 14px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Products mega menu — narrow desktop tuning (menu visible >= 1400px) */
@media (min-width: 1400px) and (max-width: 1720px) {
    .sed-mega-left-panel {
        width: 278px;
        min-height: 500px;
    }

    .sed-trust-strip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sed-mega-trust-strip--why {
        flex-wrap: wrap;
    }

    .sed-trust-strip-intro {
        min-width: 170px;
    }

    .sed-mega-right-header {
        flex-wrap: wrap;
    }

    .sed-view-all-cats-btn--header {
        font-size: 10px;
        padding: 8px 12px;
    }
}

@media (min-width: 1721px) {
    .sed-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sed-trust-strip-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}