/* Market (store) — kabuk her zaman yüklü; SPA geçişlerinde grid bozulmasın */

body.app-route-store .store-page-shell {
    max-width: 1200px;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    body.app-route-store .store-page-shell {
        padding-left: 28px;
        padding-right: 28px;
    }
    body.app-route-store:not(.ks-listing-detail-open) #app-header {
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    body.app-route-store:not(.ks-listing-detail-open) #bottom-nav.app-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.store-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 1024px) {
    .store-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
}

.store-sidebar {
    display: none;
    flex: 0 0 220px;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 76px;
}

@media (min-width: 1024px) {
    .store-sidebar {
        display: flex;
    }
}

.store-filter-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 12px 14px;
}

.store-filter-card h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #191c22;
    letter-spacing: -0.01em;
}

.store-filter-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.store-filter-card a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #5c5f66;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.store-filter-card a .material-symbols-outlined {
    font-size: 18px !important;
    color: #848484;
}

.store-filter-card a:hover {
    background: #f5f7fc;
    color: #191c22;
}

.store-filter-card a.is-active {
    color: #1663c7;
    font-weight: 600;
    background: #eef4fc;
}

.store-filter-card a.is-active .material-symbols-outlined {
    color: #1663c7;
}

.store-filter-card .store-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-filter-card .store-price-inputs input {
    width: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
}

.store-filter-card .store-filter-hint {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #8e8e8e;
}

.store-main {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-page__intro {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    background: #fff;
}

@media (min-width: 1024px) {
    .store-page__intro {
        display: none;
    }
}

.store-page__intro h2 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #191c22;
}

.store-page__intro p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #8e8e8e;
}

.store-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    background: #fff;
}

@media (min-width: 640px) {
    .store-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.store-toolbar h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #191c22;
}

.store-toolbar h1 span {
    font-size: 12px;
    font-weight: 400;
    color: #8e8e8e;
}

.store-page__filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    .store-page__filters {
        display: none;
    }
}

.store-page__filters .store-filter-pill {
    flex: 0 0 auto;
    font-size: 11px !important;
    padding: 6px 12px !important;
}

#store-listings-lazy {
    width: 100%;
    min-width: 0;
}

#store-listings-lazy #store-listings-grid,
#store-listings-lazy > .store-skeleton-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (min-width: 640px) {
    #store-listings-lazy #store-listings-grid,
    #store-listings-lazy > .store-skeleton-grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    #store-listings-lazy #store-listings-grid,
    #store-listings-lazy > .store-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

a.store-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.store-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.store-listing-card:hover {
    border-color: #d0dff5;
    box-shadow: 0 4px 14px rgba(22, 99, 199, 0.1);
}

.store-listing-card .store-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    overflow: hidden;
    background: #f2f3f6;
}

.store-listing-card .store-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.store-listing-card:hover .store-card-media img {
    transform: scale(1.04);
}

.store-listing-card .store-card-trade-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: #004492;
    color: #e8f0ff;
    box-shadow: 0 1px 4px rgba(0, 68, 146, 0.35);
}

.store-listing-card .store-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

.store-listing-card .store-card-title {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #191c22;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-listing-card .store-card-desc {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #5c6169;
    min-height: 2.8em;
}

.store-listing-card .store-card-price {
    margin: 0;
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #1663c7;
}

.store-listing-card .store-card-seller-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.store-listing-card .store-card-seller-row img,
.store-listing-card .store-card-seller-fallback {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.store-listing-card .store-card-seller-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d7e2ff;
    color: #004492;
    font-size: 10px;
    font-weight: 700;
}

.store-listing-card .store-card-seller-name {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: #6b6f76;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-listing-card .store-verified {
    color: #16c72e;
    font-size: 14px;
    flex-shrink: 0;
}

.store-empty-state {
    padding: 20px 16px;
    border-radius: 10px;
    border: 1px dashed #e0e0e0;
    background: #fafafa;
    font-size: 12px;
    line-height: 1.5;
    color: #6b6f76;
    text-align: center;
}
