/* Marketplace UI — design/layout only */

:root {
    --market-teal: #159da3;
    --market-teal-dark: #117b81;
    --market-teal-soft: #eaf9f9;
    --market-mint: #f2fbfb;
    --market-text: #183247;
    --market-muted: #71808d;
    --market-border: #e5ecef;
    --market-white: #ffffff;
    --market-radius: 16px;
    --market-shadow: 0 8px 28px rgba(24, 50, 71, .07);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f8fafb;
    color: var(--market-text);
    font-family: 'Quicksand', sans-serif;
}

a { color: inherit; text-decoration: none; }

.market-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--market-border);
}

.header-main {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr minmax(420px, 680px) 1fr;
    align-items: center;
    gap: 24px;
    padding: 14px 4%;
}

/* Logo stays on the left */
.market-logo {
    justify-self: start;
    flex: none;
}

.market-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.market-search {
    width: 100%;
    height: 48px;
    max-width: 680px;
    justify-self: center;

    display: flex;
    align-items: center;

    border: 1px solid var(--market-border);
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,.025);
}

.market-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;

    font-family: inherit;
    color: var(--market-text);
}

.market-search-input:focus {
    outline: none;
    box-shadow: none;
}

.market-search-input::selection {
    background: #dff5f4;
    color: #128f8e;
}

/* Remove browser autofill styling where supported */
.market-search-input:-webkit-autofill,
.market-search-input:-webkit-autofill:hover,
.market-search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #31586c;
    transition: background-color 9999s ease-in-out 0s;
}

.search-category {
    display: flex;
    align-items: stretch;
    position: relative;
}

.search-category .dropdown-toggle {
    background: none;
    border: none;
    border-right: 1px solid var(--market-border);
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    font-family: inherit;
    color: var(--market-text);
    height: 100%;
}

.search-category .dropdown-toggle::after {
    display: none;
}

.search-category .dropdown-menu {
    min-width: 180px;
}

.market-search button#searchBtn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 0 13px 13px 0;
    background: var(--market-teal);
    color: white;
    font-size: 18px;
}

.header-actions {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 20px;

    margin-left: 0;
}

.header-action,
.profile-action {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.header-action > i {
    font-size: 22px;
}


/* Same icon treatment for Cart + Login */
.icon-wrap {
    position: relative;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    font-size: 20px;
    color: var(--market-teal-dark);
    background: var(--market-mint);

    border: 1px solid var(--market-border);
    border-radius: 50%;
}


/* Cart badge */
.cart-count {
    position: absolute;
    top: -6px;
    right: -7px;

    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    display: grid;
    place-items: center;

    border-radius: 99px;
    background: var(--market-teal);
    color: #fff;

    font-size: 9px;
    font-weight: 700;
}


.profile-copy {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.profile-copy small {
    color: var(--market-muted);
    font-size: 10px;
}

.profile-copy strong {
    font-size: 14px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    border-top: 1px solid #f2f5f6;
    background: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 40px;

    padding: 0 4%;
    min-height: 45px;
}

.nav-link {
    position: relative;

    padding: 12px 0;

    font-size: 13px;
    font-weight: 600;
    color: #566774;
}

.nav-link:hover,
.nav-link.active {
    color: var(--market-teal-dark);
}

.nav-link.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: var(--market-teal);
    border-radius: 4px 4px 0 0;
}
.market-container {
    width: calc(100% - 48px);
    max-width: 1250px;
    margin: 28px auto 60px;
}

/* GENERAL BOOTSTRAP DROPDOWN */

.dropdown-menu {
    border: 1px solid #e5eef1;
    border-radius: 12px;

    padding: 8px;

    background: #ffffff;

    box-shadow: 0 12px 30px rgba(24, 65, 86, 0.12);

    font-family: 'Quicksand', sans-serif;

    z-index: 1050;
}

/* Only hide Bootstrap arrow for category dropdown
   because it already has a custom chevron */
.search-category .dropdown-toggle::after {
    display: none;
}


/* SEARCH CATEGORY DROPDOWN */

.search-category {
    position: relative;
    flex-shrink: 0;
}


/* Category button */

.search-category > button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    min-width: 145px;
    height: 44px;

    padding: 0 14px;

    border: 0;
    border-right: 1px solid #e4ecef;

    border-radius: 8px 0 0 8px;

    background: transparent;

    color: #31586c;

    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: none;
}


.search-category > button:hover {
    background: #f7fbfb;
}


.search-category > button:focus,
.search-category > button:active {
    outline: none;

    box-shadow: none;
}


/* Chevron */

.search-category > button i {
    font-size: 11px;

    color: #7a929e;

    transition: transform 0.2s ease;
}


/* Rotate arrow when open */

.search-category > button[aria-expanded="true"] i {
    transform: rotate(180deg);
}


/* Category dropdown */

.search-category .dropdown-menu {
    min-width: 230px;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 8px !important;
    border-radius: 10px;
    padding: 7px;
}

/* Category option */

.search-category .dropdown-item {
     color: var(--text-color, #333);
    background: transparent;
    outline: none;
    box-shadow: none;
    border: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}


.search-category .dropdown-item:active,
.search-category .dropdown-item:focus {
    outline: none !important;
    box-shadow: none !important;
}


.search-category .dropdown-item:hover {
    color: #22a8a8;
    background-color: rgba(34, 168, 168, 0.08);
}

/* Currently selected category */
.search-category .dropdown-item.active-category {
    color: #22a8a8 !important;
    background-color: transparent !important;
    font-weight: 600;
}

/* Selected category hover */
.search-category .dropdown-item.active-category:hover {
    color: #22a8a8 !important;
    background-color: rgba(34, 168, 168, 0.08) !important;
}

/* USER PROFILE DROPDOWN */

.profile-action {
    text-decoration: none;
}

.profile-action.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Bootstrap arrow */
.profile-action.dropdown-toggle::after {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    content: "";
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
    color: #5f7887;
    transition: transform 0.2s ease;
}

/* Rotate arrow when dropdown is open */
.profile-action.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}


/* User dropdown container */

.header-actions > .dropdown {
    position: relative;
}


/* User dropdown menu */

.header-actions .profile-action + .dropdown-menu,
.header-actions .dropdown-menu {
    min-width: 220px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid #e4edef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(25, 65, 85, 0.14);
}


/* Dropdown item */

.header-actions .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #36586a;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


/* Icons */

.header-actions .dropdown-menu .dropdown-item i {
    width: 20px;
    color: #159c9c;
    font-size: 15px;
    text-align: center;
    transition: color 0.15s ease;
}


/* Hover */

.header-actions .dropdown-menu .dropdown-item:hover {
    background: #eefafa;
    color: #128f8e;
    transform: translateX(2px);
}


.header-actions .dropdown-menu .dropdown-item:hover i {
    color: #128f8e;
}


/* Active */

.header-actions .dropdown-menu .dropdown-item:active {
    background: #dff5f4;
    color: #128f8e;
}


/* Divider */

.header-actions .dropdown-menu .dropdown-divider {
    margin: 6px 4px;
    border-top-color: #edf2f4;
}


/* Logout */

.header-actions .dropdown-menu form {
    margin: 0;
}


.header-actions .dropdown-menu form .dropdown-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}


.header-actions .dropdown-menu form .dropdown-item i {
    color: #c56c6c;
}


.header-actions .dropdown-menu form .dropdown-item:hover {
    background: #fff3f3;
    color: #b65454;
}


.header-actions .dropdown-menu form .dropdown-item:hover i {
    color: #b65454;
}

/* DROPDOWN ANIMATION*/

@keyframes ksmallDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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


.dropdown-menu.show {
    animation: ksmallDropdownIn 0.16s ease-out;
}


/* MOBILE */

@media (max-width: 768px) {

    /* Search category */

    .search-category > button {
        min-width: 120px;

        padding-left: 10px;
        padding-right: 10px;

        font-size: 12px;
    }


    .search-category .dropdown-menu {
        min-width: 210px;
    }


    /* User dropdown */

    .header-actions .dropdown-menu {
        min-width: 205px;
        margin-top: 8px !important;
    }

}


@media (max-width: 480px) {

    .search-category > button {
        min-width: 105px;
    }

    .search-category > button span {
        max-width: 78px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .header-actions .dropdown-menu {
        min-width: 200px;
    }

}

/* HERO BANNER */

.market-hero {
    position: relative;
    width: 100%;
    height: 600px; /* reduce this */
    overflow: hidden;
    border-radius: 20px;
}

.market-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 50px 7%;
    
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.50) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0) 75%
    );
}

.market-hero-content {
    max-width: 520px;
    color: #fff;
}

.market-hero-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.market-hero-content h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, #00bfa6, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-hero-content p {
    margin: 0 0 25px;
    max-width: 450px;
    font-size: 17px;
    line-height: 1.6;
}

.market-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #22a8a8, #00bfa6);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.market-hero-btn:hover {
    transform: translateY(-2px);
    color: #126f6f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* CATEGORY NAVIGATION */

.category-navigation {
    margin-top: 18px;
    width: 100%;
}

.category-list {
    display: flex;
    width: 100%;
    gap: 14px;

    /* Desktop */
    overflow-x: auto;
    overflow-y: hidden;

    padding: 4px 2px 10px;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.market-category {
    flex: 1 1 0;
    min-width: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #e5eeee;
    border-radius: 14px;
    color: #333;
    text-decoration: none;
    text-align: center;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    scroll-snap-align: start;
}

.market-category:hover {
    transform: translateY(-3px);
    border-color: var(--market-teal);
    box-shadow: 0 6px 18px rgba(21, 157, 163, 0.10);
    color: var(--market-teal-dark);
}

.market-category-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.market-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-category > span:last-child {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* MOBILE CATEGORY - HORIZONTAL SWIPE*/

@media (max-width: 768px) {

     .market-hero {
        border-radius: 14px;
    }

    .market-hero-overlay {
        padding: 25px;
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.15)
        );
    }

    .market-hero-content {
        max-width: 75%;
    }

    .market-hero-label {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .market-hero-content h1 {
        margin-bottom: 8px;
        font-size: 28px;
    }

    .market-hero-content p {
        margin-bottom: 15px;
        font-size: 13px;
        line-height: 1.4;
    }

    .market-hero-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .category-navigation {
        margin-top: 14px;
    }

    .category-list {
        width: 100%;

        gap: 12px;

        overflow-x: auto;
        overflow-y: hidden;

        /* Important for mobile swipe */
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;

        scroll-snap-type: x mandatory;

        padding: 4px 4px 12px;
    }

    .market-category {
        /*
         * 2 cards visible at a time
         */
        flex: 0 0 calc(50% - 6px);

        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);

        min-height: 125px;

        padding: 16px 10px;

        scroll-snap-align: start;
    }

    .market-category-icon {
        width: 62px;
        height: 62px;
    }

    .market-category > span:last-child {
        font-size: 12px;
    }
}


/* TRUST STRIP */

.trust-strip {

    margin-top: 18px;

    padding: 15px 22px;

    background: #ffffff;

    border: 1px solid var(--market-border);

    border-radius: 16px;

    box-shadow: var(--market-shadow);

    display: flex;

    align-items: center;

    justify-content: space-around;

    gap: 16px;
}


.trust-item {

    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;

    justify-content: center;
}


.trust-icon {

    width: 36px;

    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: var(--market-teal-soft);

    color: var(--market-teal);

    font-size: 17px;
}


.trust-item div {

    display: flex;

    flex-direction: column;
}


.trust-item strong {

    font-size: 11px;

    font-weight: 700;
}


.trust-item small {

    margin-top: 2px;

    color: var(--market-muted);

    font-size: 9px;
}


.trust-divider {

    width: 1px;

    height: 32px;

    background: var(--market-border);
}

.category-row:last-child { border-bottom: 0; }
.category-row:hover {
    background: var(--market-teal-soft);
    color: var(--market-teal-dark);
}

.category-icon {
    width: 27px;
    text-align: center;
    color: var(--market-teal);
    font-size: 17px;
}

.category-row > i { color: #a2afb7; font-size: 11px; }

.hero-banner {
    min-width: 0;
    border-radius: var(--market-radius);
    overflow: hidden;
    box-shadow: var(--market-shadow);
    background: var(--market-mint);
}

.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

.trust-strip {
    margin-top: 18px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid var(--market-border);
    border-radius: var(--market-radius);
    box-shadow: var(--market-shadow);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    justify-content: center;
}

.trust-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--market-teal-soft);
    color: var(--market-teal);
    font-size: 18px;
}

.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { font-size: 12px; }
.trust-item small { margin-top: 2px; color: var(--market-muted); font-size: 10px; }

.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--market-border);
}

.section-block { margin-top: 42px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.eyebrow {
    margin-bottom: 4px;
    color: var(--market-teal);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
}

.section-heading h2 span { font-size: 21px; }

.section-heading p {
    margin: 4px 0 0;
    color: var(--market-muted);
    font-size: 12px;
}

.view-all {
    color: var(--market-teal-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--market-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(24,50,71,.1);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f6f8f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

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

.daily-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--market-teal);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.product-body { padding: 13px; }

.product-name {
    display: block;
    min-height: 38px;
    margin: 2px 0 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: uppercase;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--market-text);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f3f4;
}

.simple-label {
    color: var(--market-muted);
    font-size: 9px;
}

.btn-add-cart {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--market-teal-soft);
    color: var(--market-teal);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.add-cart-btn:hover {
    background: var(--market-teal);
    color: #fff;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.promo-card {
    position: relative;
    min-height: 145px;
    padding: 22px 24px;
    border-radius: var(--market-radius);
    overflow: hidden;
    border: 1px solid var(--market-border);
    transition: transform .2s ease;
}

.promo-card:hover { transform: translateY(-2px); }

.promo-card small {
    font-size: 10px;
    font-weight: 700;
    color: var(--market-teal-dark);
}

.promo-card h3 {
    position: relative;
    z-index: 2;
    margin: 3px 0 17px;
    font-size: 18px;
    font-weight: 700;
}

.promo-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 7px 11px;
    background: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.promo-uniform { background: #eef5ff; }
.promo-books { background: #eaf9f7; }
.promo-digital { background: #f0f2f6; }

.promo-watermark {
    position: absolute;
    right: 18px;
    bottom: -18px;
    font-size: 110px;
    color: rgba(21,157,163,.13);
}

.empty-products {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--market-border);
    border-radius: var(--market-radius);
    color: var(--market-muted);
}

.empty-products i {
    display: block;
    font-size: 35px;
    margin-bottom: 8px;
    color: var(--market-teal);
}

@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .hero-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .trust-item small { display: none; }
}

@media (max-width: 900px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        padding: 12px 4%;
    }

    .market-search {
        max-width: none;
        width: 100%;
    }

    .header-actions {
        gap: 12px;
    }

    .nav-inner {
        justify-content: center;
        gap: 28px;
    }

    .hero-layout { grid-template-columns: 1fr; }

    .category-panel {
        display: flex;
        overflow-x: auto;
    }

    .category-panel-title { min-width: 170px; }
    .category-row {
        min-width: 155px;
        border-bottom: 0;
        border-right: 1px solid #f0f3f4;
    }

    .trust-strip {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .trust-item {
        min-width: 190px;
        justify-content: flex-start;
    }

    .trust-divider { display: none; }
    .promo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 12px 4%;
    }

    .market-logo img {
        width: 120px;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .search-category {
        display: none;
    }

    .market-search {
        height: 44px;
    }

    .market-search button#searchBtn {
        width: 44px;
        height: 44px;
    }

    .nav-inner {
        justify-content: center;
        overflow-x: auto;
        gap: 22px;
    }

    .nav-link {
        white-space: nowrap;
    }

    .market-container {
        width: 94%;
        margin-top: 16px;
    }

    .hero-banner img { min-height: 210px; }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .section-heading h2 { font-size: 21px; }

    .trust-strip { padding: 12px; }
    .trust-item { min-width: 170px; }

    .nav-inner {
        overflow-x: auto;
        gap: 22px;
    }

    .nav-link { white-space: nowrap; }
}

/* TABLET */

@media (max-width: 1100px) {

    .market-hero {

        height: 270px;

    }

}


/* MOBILE */

@media (max-width: 768px) {

    .market-hero {

        height: 220px;

        border-radius: 14px;

    }


    .category-navigation {

        padding: 0;

    }


    .trust-strip {

        justify-content: flex-start;

        overflow-x: auto;

        scrollbar-width: none;

    }


    .trust-strip::-webkit-scrollbar {

        display: none;

    }


    .trust-item {

        flex: 0 0 180px;

        justify-content: flex-start;

    }


    .trust-divider {

        display: none;

    }

}


/* SMALL MOBILE */

@media (max-width: 576px) {

    .market-hero {
        height: 180px;
    }
    .category-navigation-header h2 {
        font-size: 17px;
    }
    .category-eyebrow {
        font-size: 9px;
    }
}
@media (max-width: 480px) {

    .market-hero-overlay {
        padding: 20px;
    }

    .market-hero-content {
        max-width: 80%;
    }

    .market-hero-content h1 {
        font-size: 23px;
    }

    .market-hero-content p {
        font-size: 12px;
    }

    .market-hero-btn {
        padding: 8px 13px;
        font-size: 12px;
    }
}

/* alert css */
.ks-toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.ks-toast {
  --c: #f59e0b;
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 360px;
  padding: 12px 14px; background: #fff; color: #1f2937;
  border-left: 4px solid var(--c); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  font-size: 14px; pointer-events: auto;
  opacity: 0; transform: translateX(30px);
  transition: opacity .25s, transform .25s;
}
.ks-toast.show { opacity: 1; transform: translateX(0); }
.ks-toast i { color: var(--c); font-size: 20px; }
.ks-toast span { flex: 1; }
.ks-toast button {
  background: none; border: 0; color: #9ca3af;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.ks-toast.success { --c: #16a34a; }
.ks-toast.error   { --c: #dc2626; }
.ks-toast.warning { --c: #f59e0b; }

@media (max-width: 576px) {
  .ks-toast-wrap { top: 12px; right: 12px; left: 12px; }
  .ks-toast { min-width: 0; max-width: none; }
}

.floating-ks-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22a8a8, #00bfa6);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    animation: ks-glow 2s ease-in-out infinite;
    transition: transform .2s;
}
.floating-ks-btn:hover { transform: translateY(-3px); color: #fff; }

.floating-ks-btn .ks-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

@keyframes ks-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(59,130,246,.6), 0 0 16px rgba(59,130,246,.4); }
    50%      { box-shadow: 0 0 18px rgba(59,130,246,.9), 0 0 32px rgba(59,130,246,.6); }
}

@media (max-width: 576px) {
    .floating-ks-btn { padding: 6px; }
    .floating-ks-btn span { display: none; }
}