/* Smarteek marketplace shell — aligned with public-interface design tokens */
:root {
    --jmp-orange: var(--smarteek-warm-accent, #d97706);
    --jmp-orange-dark: #b45309;
    --jmp-topbar: var(--smarteek-dark, #064e3b);
    --jmp-text: #1e293b;
    --jmp-muted: var(--smarteek-secondary, #64748b);
    --jmp-border: #e2e8f0;
    --jmp-bg: #f8fafc;
    --jmp-deal-red: #dc2626;
}

body.app--smarteek:not(.app--login-page) {
    background: linear-gradient(180deg, #f0fdf4 0%, var(--jmp-bg) 140px);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--jmp-text);
}

body.app--smarteek:not(.app--login-page) main.py-4 {
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
}

.jmp-topbar {
    background: var(--jmp-topbar);
    color: #fff;
    font-size: .78rem;
}
.jmp-topbar a {
    color: #fff;
    text-decoration: none;
    opacity: .92;
}
.jmp-topbar a:hover { opacity: 1; text-decoration: underline; }

.jmp-header {
    background: #fff;
    border-bottom: 1px solid var(--jmp-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    --smarteek-header-logo-h: clamp(2.25rem, 6.5vw, 2.75rem);
}
.jmp-header__inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 0.85rem) 0;
}
.jmp-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    height: var(--smarteek-header-logo-h);
    max-width: min(10.5rem, 34vw);
    text-decoration: none;
    line-height: 1;
}
.jmp-logo > .smarteek-logo {
    height: 100%;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
}
.jmp-logo:hover { opacity: 0.92; }

.jmp-search {
    display: flex;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
}
.jmp-search input {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--smarteek-service-accent, #059669);
    border-right: 0;
    border-radius: .35rem 0 0 .35rem;
    padding: .55rem .85rem;
    font-size: .92rem;
}
.jmp-search button {
    background: var(--smarteek-service-accent, #059669);
    border: 2px solid var(--smarteek-service-accent, #059669);
    color: #fff;
    border-radius: 0 .35rem .35rem 0;
    padding: 0 1.1rem;
    font-weight: 600;
}
.jmp-search button:hover { background: var(--smarteek-primary, #047857); border-color: var(--smarteek-primary, #047857); }

.jmp-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.15rem, 1vw, 0.35rem);
    flex-shrink: 0;
}
.jmp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--jmp-text);
    font-size: clamp(0.65rem, 1.8vw, 0.72rem);
    padding: clamp(0.2rem, 1vw, 0.25rem) clamp(0.3rem, 1.2vw, 0.45rem);
    border-radius: .35rem;
    min-width: clamp(2.5rem, 8vw, 3.2rem);
}
.jmp-action i { font-size: clamp(1.1rem, 3.5vw, 1.35rem); margin-bottom: .1rem; }
.jmp-action:hover { background: #f8f8f8; color: var(--jmp-orange); }
.jmp-action--cart { position: relative; }
.jmp-action__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--jmp-deal-red);
    color: #fff;
    font-size: .62rem;
    border-radius: 999px;
    min-width: 1rem;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    padding: 0 .2rem;
}

.jmp-categories {
    background: #fff;
    border-bottom: 1px solid var(--jmp-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.jmp-categories::-webkit-scrollbar { display: none; }
.jmp-categories__track {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
}
.jmp-categories__track a {
    display: block;
    padding: .72rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--jmp-text);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.jmp-categories__track a:hover,
.jmp-categories__track a.active {
    color: var(--smarteek-service-accent, #059669);
    border-bottom-color: var(--smarteek-service-accent, #059669);
}

.jmp-hero {
    background: #fff;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.jmp-hero__carousel {
    position: relative;
    border-radius: .5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8cc 100%);
    min-height: 220px;
}
.jmp-hero__slide {
    display: none;
    padding: 2rem 2.5rem;
    min-height: 220px;
    align-items: center;
}
.jmp-hero__slide.active { display: flex; }
.jmp-hero__slide h2 { font-size: 1.75rem; font-weight: 800; color: var(--jmp-text); }
.jmp-hero__slide p { color: var(--jmp-muted); max-width: 520px; }
.jmp-hero__cta {
    background: linear-gradient(135deg, var(--smarteek-service-accent, #059669), var(--smarteek-primary, #047857));
    color: #fff;
    border: 0;
    padding: .55rem 1.25rem;
    border-radius: .35rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.jmp-hero__cta:hover { background: linear-gradient(135deg, #047857, #065f46); color: #fff; }
.jmp-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: 1px solid var(--jmp-border);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    z-index: 2;
}
.jmp-hero__nav--prev { left: .5rem; }
.jmp-hero__nav--next { right: .5rem; }

.jmp-deals {
    background: #fff;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--jmp-border);
    border-bottom: 1px solid var(--jmp-border);
}
.jmp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.jmp-section-head h2 {
    font-size: var(--smarteek-type-heading, 1.25rem);
    font-weight: 700;
    margin: 0;
    color: var(--jmp-text);
    letter-spacing: -0.01em;
}
.jmp-section-head a {
    color: var(--jmp-orange);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.jmp-deals__track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.jmp-deal-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border: 1px solid var(--jmp-border);
    border-radius: .4rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s;
}
.jmp-deal-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    color: inherit;
}
.jmp-deal-card__img {
    height: 110px;
    background: linear-gradient(145deg, #fff8f0, #ffe4c4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--jmp-orange);
}
.jmp-deal-card__body { padding: .55rem .65rem; }
.jmp-deal-card__title {
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}
.jmp-deal-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.4rem;
    margin-top: 0.15rem;
}
.jmp-deal-card__price {
    color: var(--jmp-orange);
    font-weight: 700;
    font-size: .88rem;
}
.jmp-deal-card--discounted .jmp-deal-card__price {
    color: var(--jmp-deal-red);
}
.jmp-deal-card__price-was {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: line-through;
}
.jmp-deal-card__badge {
    display: inline-block;
    background: var(--jmp-deal-red);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: .12rem .4rem;
    border-radius: .2rem;
    margin-top: .25rem;
    letter-spacing: 0.01em;
}
.jmp-deal-card__badge--featured {
    background: #0f172a;
    color: #f8fafc;
}

.jmp-cat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .65rem;
    margin-bottom: 1.25rem;
}
.jmp-cat-tile {
    background: #fff;
    border: 1px solid var(--jmp-border);
    border-radius: .4rem;
    padding: .75rem .5rem;
    text-align: center;
    text-decoration: none;
    color: var(--jmp-text);
    font-size: .75rem;
    font-weight: 600;
}
.jmp-cat-tile i {
    display: block;
    font-size: 1.6rem;
    color: var(--jmp-orange);
    margin-bottom: .35rem;
}
.jmp-cat-tile:hover {
    border-color: var(--jmp-orange);
    color: var(--jmp-orange);
}

.jmp-product-card {
    border: 1px solid var(--jmp-border);
    border-radius: .4rem;
    background: #fff;
    height: 100%;
    transition: box-shadow .15s;
}
.jmp-product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.jmp-product-card__thumb {
    height: 140px;
    background: linear-gradient(180deg, #fafafa, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--jmp-border);
}
.jmp-product-card__thumb i { font-size: 2.8rem; color: var(--jmp-orange); }
.jmp-product-card__thumb--service { background: linear-gradient(180deg, #ecfdf5, #d1fae5); }
.jmp-product-card__thumb { position: relative; }
.jmp-product-card__badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: var(--jmp-orange);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 3px;
    text-transform: uppercase;
}
.jmp-product-card__body { padding: .75rem; }
.jmp-product-card__title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.4em;
    margin-bottom: .35rem;
}
.jmp-product-card__price {
    color: var(--jmp-orange);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.4rem;
}
.jmp-product-card__price-was {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: line-through;
}
.jmp-product-card__meta {
    font-size: .72rem;
    color: var(--jmp-muted);
}
.jmp-product-card__discount {
    background: #ffebee;
    color: var(--jmp-deal-red);
    font-size: .68rem;
    font-weight: 700;
    padding: .1rem .3rem;
    border-radius: .15rem;
}

.jmp-trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--jmp-border);
    font-size: .78rem;
}
.jmp-trust-strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: .55rem 0;
}
.jmp-trust-strip__list a,
.jmp-trust-strip__list span {
    color: var(--jmp-text);
    text-decoration: none;
}
.jmp-trust-strip__list a:hover { color: var(--jmp-orange); }
.jmp-trust-strip__list i { color: var(--jmp-orange); margin-right: .25rem; }

.jmp-promo-strip {
    background: linear-gradient(90deg, #ecfdf5, #fef3c7);
    border-bottom: 1px solid #a7f3d0;
    font-size: var(--smarteek-type-small, .8125rem);
    padding: .45rem 0;
}
.jmp-promo-strip__cta {
    color: var(--jmp-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.jmp-filters__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--jmp-border);
    border-radius: .35rem;
    padding: .65rem .85rem;
}
.jmp-filters__label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--jmp-muted);
    margin: 0;
}
.jmp-filters__select { max-width: 11rem; }
.jmp-filters__saved {
    font-size: .82rem;
    font-weight: 600;
    color: var(--jmp-text);
    text-decoration: none;
}
.jmp-filters__saved:hover { color: var(--jmp-orange); }

.jmp-product-card--saveable { position: relative; }
.jmp-save {
    position: absolute;
    top: .45rem;
    right: .45rem;
    z-index: 2;
    border: 0;
    background: #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    color: var(--jmp-muted);
    padding: 0;
}
.jmp-save--active,
.jmp-save:hover { color: #c62828; }

.jmp-pdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.jmp-pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 600;
    background: #f5f5f5;
    border: 1px solid var(--jmp-border);
    border-radius: .25rem;
    padding: .2rem .45rem;
}
.jmp-pdp-badge a { color: inherit; text-decoration: none; }
.jmp-pdp-badge--official { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.jmp-pdp-badge--instant { background: #fff3e0; border-color: #ffcc80; color: #e65100; }

.jmp-sell-card .jmp-pdp-badge { margin-bottom: .5rem; }

.jmp-pdp-gallery__main {
    height: 320px;
    border-radius: .4rem;
    background: #f0f0f0 center/cover no-repeat;
    border: 1px solid var(--jmp-border);
}
.jmp-pdp-gallery__main--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.jmp-pdp-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: .3rem;
    background: #eee center/cover no-repeat;
    border: 1px solid var(--jmp-border);
}

@media (max-width: 767.98px) {
    .jmp-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.65rem;
    }
    .jmp-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: min(9rem, 40vw);
        --smarteek-header-logo-h: clamp(2rem, 7vw, 2.5rem);
    }
    .jmp-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }
    .jmp-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        margin: 0;
    }
    .jmp-hero__slide { padding: 1.25rem; }
    .jmp-hero__slide h2 { font-size: 1.25rem; }
}

@media (max-width: 479.98px) {
    .jmp-action > span:not(.jmp-action__badge) {
        display: none;
    }
    .jmp-action {
        min-width: 2.35rem;
        padding: 0.3rem;
    }
    .jmp-action i {
        margin-bottom: 0;
    }
}
