/**
 * Stores catalog layout - sidebar + main content
 * Matches site design: #0f2f64, #1e5dbc, white, border-radius, box-shadow
 */

.stores-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
}

@media (max-width: 991.98px) {
    .stores-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Sidebar */
.stores-sidebar {
    flex-shrink: 0;
    width: 260px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991.98px) {
    .stores-sidebar {
        width: 100%;
    }
}

.stores-sidebar__section {
    margin-bottom: 1.5rem;
}

.stores-sidebar__section:last-child {
    margin-bottom: 0;
}

.stores-sidebar__title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2f64;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.stores-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stores-sidebar__item {
    margin-bottom: 0.25rem;
}

.stores-sidebar__item:last-child {
    margin-bottom: 0;
}

.stores-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.stores-sidebar__link:hover {
    color: #1e5dbc;
    background: #f5f9fe;
}

.stores-sidebar__link--active {
    color: #1e5dbc;
    font-weight: 600;
    background: #f5f9fe;
}

.stores-sidebar__link--sub {
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.stores-sidebar__link--toggle {
    cursor: pointer;
    list-style: none;
}

.stores-sidebar__link--toggle::-webkit-details-marker {
    display: none;
}

/* Main category row: clickable name + expand button */
.stores-sidebar__summary-row {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: default;
}

.stores-sidebar__summary-row::-webkit-details-marker {
    display: none;
}

.stores-sidebar__link--main {
    flex: 1;
    min-width: 0;
}

.stores-sidebar__expand-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
}

.stores-sidebar__expand-btn:hover {
    color: #1e5dbc;
    background: #f5f9fe;
}

.stores-sidebar__arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] .stores-sidebar__arrow {
    transform: rotate(90deg);
}

.stores-sidebar__sublist {
    list-style: none;
    padding: 0.25rem 0 0 0;
    margin: 0;
}

.stores-sidebar__details {
    margin-bottom: 0.25rem;
}

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

.stores-main__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stores-main__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f2f64;
    margin: 0;
}

@media (max-width: 575.98px) {
    .stores-main__title {
        font-size: 1.5rem;
    }
}

/* Search */
.stores-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stores-search__input {
    width: 220px;
    padding: 0.5rem 1rem;
}

@media (max-width: 575.98px) {
    .stores-search {
        width: 100%;
    }
    .stores-search__input {
        flex: 1;
    }
}

.stores-search__btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Store cards */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

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

.stores-card {
    display: flex;
    gap: 1.25rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.stores-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stores-card__logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 8px;
    overflow: hidden;
}

.stores-card__logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.stores-card__logo-placeholder {
    font-size: 1.5rem;
    color: #ccc;
}

.stores-back-link {
    margin-bottom: 1rem;
}

.stores-intro {
    margin-bottom: 1.5rem;
    color: #68718b;
}

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

.stores-card__name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f2f64;
    margin: 0 0 0.5rem 0;
}

.stores-card__desc {
    font-size: 0.9rem;
    color: #68718b;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stores-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.stores-card__btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #1e5dbc;
    border-radius: 20px;
    background: #fff;
    color: #1e5dbc;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.stores-card__btn:hover {
    background: #1e5dbc;
    color: #fff;
}

/* Empty state */
.stores-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f5f9fe;
    border-radius: 8px;
    color: #68718b;
}

/* Category grid (for stores_by_country) */
.stores-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.stores-category-card {
    display: block;
    padding: 1.25rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #0f2f64;
    text-decoration: none;
    font-weight: 500;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stores-category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #1e5dbc;
}

/* Store detail page */
.stores-detail {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stores-detail__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.stores-detail__logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 8px;
    overflow: hidden;
}

.stores-detail__logo img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.stores-detail__logo-placeholder {
    font-size: 3rem;
    font-weight: 600;
    color: #ccc;
}

.stores-detail__meta {
    flex: 1;
}

.stores-detail__name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f2f64;
    margin: 0 0 0.5rem 0;
}

.stores-detail__url {
    display: inline-block;
    color: #1e5dbc;
    text-decoration: none;
    font-size: 0.95rem;
}

.stores-detail__url:hover {
    text-decoration: underline;
}

.stores-detail__screenshot {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stores-detail__screenshot img {
    display: block;
    max-width: 100%;
    height: auto;
}

.stores-detail__content h2{
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.stores-detail__content h1{
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.stores-detail__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.stores-detail__content p {
    margin-bottom: 1rem;
}

.stores-detail__content p:last-child {
    margin-bottom: 0;
}

.stores-detail__content ul,
.stores-detail__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.stores-detail__content ul{
    list-style-type: disc;
}