/* Mağazalar — premium siyahı + filtr */

/* overflow-x: hidden sticky-ni öldürür; clip öldürmür */
html:has(.shops-page),
body:has(.shops-page) {
    overflow-x: clip !important;
}

.verified-mark {
    --verified-blue: #34b7f1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--verified-blue);
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}

.verified-mark svg {
    display: block;
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 1px 2px rgba(52, 183, 241, 0.35));
}

.verified-mark--sm { font-size: 16px; }
.verified-mark--md { font-size: 20px; }
.verified-mark--lg { font-size: 24px; }

.verified-mark__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0ea5e9;
    text-transform: none;
}

.shops-page {
    --shops-ink: #0f172a;
    --shops-muted: #64748b;
    --shops-line: #e2e8f0;
    --shops-accent: #ea580c;
    --shops-accent-deep: #c2410c;
    --shops-surface: #f8fafc;
    background:
        radial-gradient(ellipse 70% 45% at 8% -8%, rgba(52, 183, 241, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 92% 0%, rgba(234, 88, 12, 0.08), transparent 48%),
        linear-gradient(180deg, var(--shops-surface) 0%, #fff 40%, var(--shops-surface) 100%);
    min-height: 60vh;
    padding: 36px 0 72px;
}

.shops-page__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.shops-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.shops-page__eyebrow {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--shops-accent);
    font-size: 13px;
    font-weight: 750;
}

.shops-page__title {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    color: var(--shops-ink);
}

.shops-page__lead {
    margin: 0;
    color: var(--shops-muted);
    font-size: 1rem;
    max-width: 520px;
}

.shops-page__stats {
    display: flex;
    gap: 12px;
}

.shops-stat {
    min-width: 110px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--shops-line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.shops-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--shops-ink);
    letter-spacing: -0.03em;
}

.shops-stat span {
    font-size: 12px;
    font-weight: 650;
    color: var(--shops-muted);
}

.shops-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.shops-aside {
    --shops-sticky-top: 88px;
    position: sticky;
    top: var(--shops-sticky-top);
    align-self: start;
    max-height: calc(100dvh - var(--shops-sticky-top) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 5;
    background: #fff;
    border: 1px solid var(--shops-line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.shops-aside::-webkit-scrollbar {
    width: 6px;
}

.shops-aside::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 999px;
}

.shops-aside::-webkit-scrollbar-track {
    background: transparent;
}

.shops-aside__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.shops-aside__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--shops-ink);
}

.shops-aside__title i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: #fff7ed;
    color: var(--shops-accent);
    font-size: 0.85rem;
}

.shops-aside__close {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.shops-filter {
    display: grid;
    gap: 14px;
}

.shops-filter__group {
    display: grid;
    gap: 7px;
}

.shops-filter__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
    color: #475569;
}

.shops-filter__label i {
    color: var(--shops-accent);
    width: 14px;
    text-align: center;
}

.shops-filter__control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px 0 38px;
    border: 1.5px solid var(--shops-line);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.shops-filter__control:focus-within {
    border-color: rgba(234, 88, 12, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.shops-filter__control > i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}

.shops-filter__control input,
.shops-filter__control select {
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shops-ink);
    padding: 10px 4px 10px 0;
}

.shops-filter__control select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 22px;
}

.shops-filter__check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--shops-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.shops-filter__check:has(input:checked) {
    border-color: rgba(52, 183, 241, 0.55);
    background: #f0f9ff;
}

.shops-filter__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shops-filter__check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.shops-filter__check:has(input:checked) .shops-filter__check-box {
    background: #34b7f1;
    border-color: #34b7f1;
}

.shops-filter__check:has(input:checked) .shops-filter__check-box::after {
    content: "";
    width: 9px;
    height: 5px;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg) translate(0, -1px);
}

.shops-filter__check-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
}

.shops-filter__actions {
    display: grid;
    gap: 8px;
    padding-top: 6px;
}

.shops-filter__submit,
.shops-filter__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 750;
    text-decoration: none;
}

.shops-filter__submit {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #f7971c, #ea580c);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
    cursor: pointer;
}

.shops-filter__reset {
    border: 1.5px solid rgba(234, 88, 12, 0.35);
    color: #c2410c;
    background: #fff;
}

.shops-aside__tip {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f9ff, #fff);
    border: 1px solid #bae6fd;
}

.shops-aside__tip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--shops-ink);
}

.shops-aside__tip p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--shops-muted);
}

.shops-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.shops-toolbar__count {
    margin: 0;
    color: var(--shops-muted);
    font-size: 14px;
}

.shops-toolbar__count strong {
    color: var(--shops-ink);
}

.shops-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--shops-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    color: var(--shops-ink);
    cursor: pointer;
}

.shops-filter-toggle__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shops-accent);
    color: #fff;
    font-size: 11px;
    display: inline-grid;
    place-items: center;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--shops-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.shop-card--verified {
    border-color: rgba(52, 183, 241, 0.35);
}

.shop-card__cover {
    height: 118px;
    background: linear-gradient(125deg, #0f172a 0%, #1e293b 42%, #ea580c 100%);
    position: relative;
}

.shop-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
}

.shop-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.28));
    pointer-events: none;
}

.shop-card__package {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
}

.shop-card__package--premium {
    background: #fff7ed;
    color: #c2410c;
}

.shop-card__package--vip {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
}

.shop-card__logo {
    width: 82px;
    height: 82px;
    margin: -41px auto 0;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.shop-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card__logo span {
    font-size: 1.55rem;
    font-weight: 850;
    color: var(--shops-accent);
}

.shop-card__body {
    padding: 14px 18px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.shop-card__name {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 1.08rem;
    font-weight: 850;
    color: var(--shops-ink);
    line-height: 1.25;
}

.shop-card__name > span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25em * 2);
}

.shop-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--shops-muted);
}

.shop-card__stars {
    display: inline-flex;
    gap: 2px;
    color: #e2e8f0;
}

.shop-card__stars .is-on {
    color: #f59e0b;
}

.shop-card__rating-empty {
    color: #94a3b8;
}

.shop-card__meta {
    margin: 4px 0 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--shops-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.shop-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shop-card__meta i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.shops-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 20px;
    color: var(--shops-muted);
}

.shops-empty i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.shops-empty__link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--shops-accent);
    font-weight: 750;
    text-decoration: none;
}

.shops-page__pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.shops-filter-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .shops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .shops-layout {
        grid-template-columns: 1fr;
    }

    .shops-aside {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 92vw);
        z-index: 1300;
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        max-height: 100vh;
    }

    .shops-aside.is-open {
        transform: translateX(0);
    }

    .shops-aside__close,
    .shops-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .shops-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1250;
        background: rgba(15, 23, 42, 0.45);
    }

    .shops-filter-backdrop[hidden] {
        display: none;
    }

    body.shops-filter-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .shops-page {
        padding: 24px 0 48px;
    }

    .shops-page__container {
        padding: 0 16px;
    }

    .shops-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shop-card__cover {
        height: 100px;
    }

    .shops-page__stats {
        width: 100%;
    }

    .shops-stat {
        flex: 1;
    }
}
