/* TrustBhai Shops List — mobile-first */
body:has(.shops-page) {
    background: #f0f2f5 !important;
    font-family: "Roboto", sans-serif !important;
}

.shops-page {
    --shop-bg: #f0f2f5;
    --shop-card: #ffffff;
    --shop-text: #1e293b;
    --shop-muted: #64748b;
    --shop-primary: #5b6ee8;
    --shop-accent: #7c4fbd;
    --shop-radius: 16px;
    --shop-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
    max-width: 680px;
    margin: 0 auto;
    padding: 0 12px calc(72px + env(safe-area-inset-bottom, 0));
    font-family: "Roboto", sans-serif;
}

.shops-page .card.card-style {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

.shops-page .page-content {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero — compact */
.shops-page .shops-hero {
    background: linear-gradient(135deg, #5b6ee8 0%, #7c4fbd 55%, #db2777 100%);
    border-radius: 18px;
    padding: 16px 16px 14px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: var(--shop-shadow);
}

.shops-page .shops-hero--compact .shops-hero__row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.shops-page .shops-hero__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin: 0;
}

.shops-page .shops-hero__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 2px;
    line-height: 1.2;
}

.shops-page .shops-hero__sub {
    font-size: .78rem;
    opacity: .9;
    margin: 0;
}

/* Search */
.shops-page .shops-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--shop-card);
    border-radius: 14px;
    padding: 4px 14px;
    box-shadow: var(--shop-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.shops-page .shops-search:focus-within {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(91, 110, 232, .12);
}

.shops-page .shops-search i {
    color: var(--shop-muted);
    font-size: .95rem;
}

.shops-page .shops-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: .9rem;
    color: var(--shop-text);
    min-width: 0;
    padding: 11px 0;
    outline: none;
}

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

/* Categories */
.shops-page .shops-categories {
    margin-bottom: 12px;
    overflow: hidden;
}

.shops-page .shops-categories .splide__track {
    overflow: visible;
}

.shops-page .shops-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--shop-text);
    min-width: 72px;
    transition: transform .15s ease;
}

.shops-page .shops-cat-item:active {
    transform: scale(.96);
}

.shops-page .shops-cat-item__img-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--shop-card);
    box-shadow: var(--shop-shadow);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.shops-page .shops-cat-item:active .shops-cat-item__img-wrap {
    border-color: var(--shop-primary);
    box-shadow: 0 2px 10px rgba(91, 110, 232, .18);
}

.shops-page .shops-cat-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.shops-page .shops-cat-item__label {
    font-size: .68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 72px;
    color: var(--shop-muted);
}

/* Toolbar */
.shops-page .shops-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.shops-page .shops-toolbar__left {
    flex-shrink: 0;
}

.shops-page .shops-toolbar__filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.shops-page .shops-toolbar__filters::-webkit-scrollbar {
    display: none;
}

.shops-page .shops-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: var(--shop-card);
    color: var(--shop-text);
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shop-shadow);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s ease, transform .1s ease;
}

.shops-page .shops-filter-btn:active {
    transform: scale(.97);
    background: #f8fafc;
}

.shops-page .shops-filter-btn i {
    font-size: .72rem;
    color: var(--shop-primary);
}

.shops-page .shops-filter-btn:first-of-type {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff;
    border-color: transparent;
}

.shops-page .shops-filter-btn:first-of-type i {
    color: #fff;
}

.shops-page .shops-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
}

/* Shop cards */
.shops-page .shops-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shops-page .shop-card {
    background: var(--shop-card);
    border-radius: var(--shop-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.shops-page .shop-card:active {
    transform: scale(.995);
}

.shops-page .shop-card__media {
    position: relative;
    aspect-ratio: 16 / 7.5;
    background: #1e293b;
}

.shops-page .shop-card__banner-link {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shops-page .shop-card__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.shops-page .shop-card:active .shop-card__banner {
    transform: scale(1.03);
}

.shops-page .shop-card__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, .08) 0%,
        rgba(15, 23, 42, 0) 30%,
        rgba(15, 23, 42, .5) 70%,
        rgba(15, 23, 42, .92) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.shops-page .shop-card__offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.shops-page .shop-card__banner-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.shops-page .shop-card__badge-img {
    height: 18px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, .9);
    padding: 2px 4px;
}

.shops-page .shop-card__media-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.shops-page .shop-card__banner-badges ~ .shop-card__media-actions {
    top: auto;
    bottom: 58px;
    right: 10px;
}

.shops-page .shop-card__pill-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #475569;
    font-size: .85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: transform .12s ease, background .12s ease;
}

.shops-page .shop-card__pill-btn:active {
    transform: scale(.92);
}

.shops-page .shop-card__pill-btn--fav.is-active,
.shops-page .shop-card__pill-btn--fav.is-active i {
    color: #ef4444;
    background: #fff;
}

.shops-page .shop-card__media-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 12px 10px;
}

.shops-page .shop-card__logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
    flex-shrink: 0;
}

.shops-page .shop-card__head-main {
    flex: 1;
    min-width: 0;
}

.shops-page .shop-card__title {
    font-size: .86rem;
    font-weight: 800;
    margin: 0 0 3px;
    line-height: 1.25;
}

.shops-page .shop-card__title a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.shops-page .shop-card__views {
    font-size: .68rem;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shops-page .shop-card__body {
    padding: 10px 12px 12px;
}

/* Compact chips row */
.shops-page .shop-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.shops-page .shop-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .68rem;
    font-weight: 600;
    font-family: "Roboto", sans-serif !important;
    line-height: 1.3;
    max-width: 100%;
}

.shops-page .shop-card__chip i {
    font-size: .6rem;
    color: var(--shop-primary);
    flex-shrink: 0;
}

.shops-page .shop-card__chip--loc {
    background: #eef2ff;
    color: var(--shop-primary);
    flex: 1 1 100%;
}

/* CTA buttons */
.shops-page .shop-card__cta-row {
    display: flex;
    gap: 8px;
}

.shops-page .shop-card__btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--shop-text);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}

.shops-page .shop-card__btn:active {
    transform: scale(.98);
    background: #f1f5f9;
}

.shops-page .shop-card__btn--primary {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(91, 110, 232, .28);
}

.shops-page .shop-card__btn--primary:active {
    background: linear-gradient(135deg, #4a5fd6, #6b3fa8);
}

.shops-page .shop-card__btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.shops-page .shop-card__btn-label {
    font-family: "Roboto", sans-serif !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shops-page .shop-card__btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.shops-page .shop-card__btn:has(img[src=""]),
.shops-page .shop-card__btn:not(:has(.shop-card__btn-icon[src]:not([src=""]))) {
    display: none !important;
}

/* Font fixes */
.shop-card .shop-card__title,
.shop-card .shop-card__title a,
.shop-card .shop-card__views,
.shop-card .shop-card__chip,
.shop-card .shop-card__btn-label,
.shop-card .shop-card__offer-badge {
    font-family: "Roboto", sans-serif !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    -webkit-font-smoothing: antialiased;
}

.shop-card .shop-card__chip i,
.shop-card .shop-card__views i,
.shop-card .shop-card__pill-btn i,
.shop-card .shop-card__offer-badge i,
.shop-card .shops-hero__icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-style: normal !important;
    font-weight: 900;
}

.shop-card .shop-card__pill-btn i.far,
.shop-card i.far {
    font-weight: 400 !important;
}

/* Loader */
.shops-page #loader-container {
    padding: 20px;
    text-align: center;
}

.shops-page #loader-container img {
    width: 48px !important;
    height: auto;
}

/* Hide legacy clutter */
.shops-page .divider,
.shops-page .search-box.bg-theme,
.shops-page .content.mt-n0 {
    display: none !important;
}

.shops-page .ribbon.ribbon-top-left {
    display: none !important;
}

@media (min-width: 768px) {
    .shops-page {
        padding: 0 16px 32px;
    }

    .shops-page .shops-hero__title {
        font-size: 1.35rem;
    }

    .shops-page .shop-card__cta-row {
        max-width: 360px;
    }
}
