/* Stores listing — Gems Harbor */
.stores-page .dynamic-part,
.dynamic-part:has(.stores-page) {
    background: transparent !important;
}

.stores-page {
    --st-brand: #045d48;
    --st-brand-dark: #034436;
    --st-brand-light: #e8f5f1;
    --st-surface: #ffffff;
    --st-surface-muted: #f4f6f9;
    --st-border: #e6eaef;
    --st-text: #1a1f26;
    --st-text-muted: #6b7280;
    --st-radius: 14px;
    --st-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    --st-font: "Inter", sans-serif;
    font-family: var(--st-font);
    background:
        radial-gradient(ellipse 70% 40% at 50% -10%, rgba(4, 93, 72, 0.07), transparent),
        linear-gradient(180deg, #eef2f6 0%, #f8fafc 200px, transparent 400px);
    padding: 1rem 0 2.5rem;
    min-height: 50vh;
}

.stores-page__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

/* Sidebar */
.stores-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stores-panel {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    padding: 1.1rem 1.15rem;
}

.stores-panel__title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--st-text);
}

.stores-search {
    position: relative;
}

.stores-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--st-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.stores-search__input {
    width: 100%;
    height: 40px;
    padding: 0 0.85rem 0 2.35rem;
    border: 1px solid var(--st-border);
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--st-surface-muted);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.stores-search__input:focus {
    outline: none;
    border-color: rgba(4, 93, 72, 0.45);
    box-shadow: 0 0 0 3px rgba(4, 93, 72, 0.1);
    background: #fff;
}

.stores-filters {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.15rem;
}

.stores-filters::-webkit-scrollbar {
    width: 5px;
}

.stores-filters::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.stores-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.35rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.stores-filter-row:hover {
    background: var(--st-surface-muted);
}

.stores-filter-row__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--st-text);
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.stores-filter-row__label input {
    width: 16px;
    height: 16px;
    accent-color: var(--st-brand);
    flex-shrink: 0;
}

.stores-filter-row__count {
    flex-shrink: 0;
    min-width: 1.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--st-surface-muted);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--st-text-muted);
    text-align: center;
}

.stores-info-card {
    text-align: center;
    padding: 1.15rem 1rem;
}

.stores-info-card__img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.65rem;
}

.stores-info-card__heading {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--st-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.stores-info-card__heading .bi-patch-check-fill {
    color: #10b981;
}

.stores-info-card__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--st-text-muted);
    text-align: center;
}

/* Main */
.stores-main {
    min-width: 0;
}

.stores-hero {
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(125deg, #ffffff 0%, #f0faf6 55%, #e8f5f1 100%);
    border: 1px solid rgba(4, 93, 72, 0.12);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.stores-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--st-brand);
    color: #fff;
}

.stores-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--st-text);
    text-align: left;
}

.stores-hero__subtitle {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--st-text-muted);
    text-align: left !important;
}

.stores-page .stores-info-card__text,
.stores-page .stores-empty__title,
.stores-page .stores-empty__text {
    text-align: center !important;
}

.stores-hero__subtitle strong {
    color: var(--st-brand);
    font-weight: 800;
}

/* Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.st-store-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 120px;
}

.st-store-card:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 93, 72, 0.25);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.st-store-card__logo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--st-surface-muted);
    border: 1px solid var(--st-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.st-store-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.st-store-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.st-store-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--st-brand);
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.st-store-card__name .bi-patch-check-fill {
    color: #10b981;
    font-size: 0.9rem;
}

.st-store-card__bookmark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--st-border);
    border-radius: 8px;
    background: var(--st-surface-muted);
    color: var(--st-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.st-store-card__location {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: var(--st-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.st-store-card__desc {
    margin: 0 0 auto;
    font-size: 0.8rem;
    color: var(--st-text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-store-card__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--st-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--st-text-muted);
}

.st-store-card__stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.st-store-card__stat strong {
    color: var(--st-text);
}

/* Empty */
.stores-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--st-surface);
    border: 1px dashed var(--st-border);
    border-radius: var(--st-radius);
}

.stores-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--st-brand-light);
    color: var(--st-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stores-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--st-text);
    text-align: center;
}

.stores-empty__text {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--st-text-muted);
    text-align: center;
    max-width: 22rem;
}

.stores-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    background: var(--st-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s;
}

.stores-empty__btn:hover {
    background: var(--st-brand-dark);
    color: #fff;
}

.stores-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--st-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .stores-page__layout {
        grid-template-columns: 1fr;
    }

    .stores-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stores-sidebar .stores-info-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .stores-grid {
        grid-template-columns: 1fr;
    }

    .stores-sidebar {
        grid-template-columns: 1fr;
    }

    .st-store-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .st-store-card__head {
        flex-direction: column;
        align-items: center;
    }

    .st-store-card__stats {
        justify-content: center;
        flex-wrap: wrap;
    }

}
