/* Shared breadcrumbs (catalog + shops) */
.breadcrumbs {
    padding: 24px 0 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    gap: 8px;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover { border-bottom: 1px solid var(--color-text-secondary); }

/* Shops directory page */
.shops-page {
    padding-bottom: 0;
}

.shops-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px 60px 24px;
    color: var(--color-text-secondary);
}

.shops-breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.shops-breadcrumbs a:hover {
    border-bottom: 1px solid var(--color-text-secondary);
}

.shops-breadcrumbs .breadcrumbs-sep {
    margin: 0 6px;
    display: inline-flex;
    align-items: center;
}

.shops-breadcrumbs .breadcrumb-active {
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-text-primary);
}

.shops-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 0;
    max-width: 535px;
    margin: 0 auto;
}

.shops-hero-title {
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.shops-hero-lead {
    color: var(--color-text-secondary);
}

.shops-map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent-terracotta);
    text-decoration: none;
}

.shops-map-link:hover {
    color: var(--color-accent-terracotta-hover);
}

.shops-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 60px 12px;
}

.shops-category-form {
    width: min(100%, 360px);
}

.shops-category-select {
    position: relative;
}

.shops-category-trigger {
    width: 360px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 20px;
    border: 1px solid var(--color-border-medium);
    background: #FFFFFF;
    color: var(--color-text-primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-transform: none;
}

.shops-category-trigger:hover {
    border-color: var(--color-text-primary);
}

.shops-category-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: var(--color-bg-main);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 24px rgba(22, 20, 18, 0.08);
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
}

.shops-category-menu[hidden] {
    display: none;
}

.shops-category-option {
    width: 100%;
    display: block;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.shops-category-option:hover {
    background: rgba(22, 20, 18, 0.03);
}

.shops-category-option.is-selected {
    color: var(--color-text-accent-mustard);
}

.shops-alphabet {
    position: sticky;
    top: var(--site-header-offset, 0px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 60px 20px;
    background: var(--color-bg-main);
}

.shops-alphabet-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}

.shops-alphabet-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
    border: 1px solid transparent;
}

.shops-alphabet-item:hover {
    border-color: var(--color-border-medium);
    text-decoration: none;
}

.shops-alphabet-item.is-active {
    border-color: var(--color-border-medium);
}

.shops-directory {
    background: var(--color-bg-milk);
    padding: 32px 60px;
    border-bottom: 1px solid var(--color-border-medium);
}

.shops-directory > .page-container {
    padding: 0 60px;
}

.shops-group + .shops-group {
    margin-top: 48px;
}

.shops-group-letter {
    color: var(--color-text-primary);
    text-transform: none;
}

.shops-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* 48px по обе стороны от вертикальной черты */
    column-gap: 96px;
    row-gap: 0;
}

.shops-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
}

.shops-item:not(:nth-child(3n + 1))::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-border-light);
}

.shops-item:hover .shops-item-arrow {
    transform: translateX(16px);
}

.shops-item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shops-item-name {
    color: var(--color-text-primary);
    font-weight: 600;
}

.shops-item-direction,
.shops-item-pavilion {
    color: var(--color-text-secondary);
}

.shops-item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-text-primary);
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.shops-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--color-text-secondary);
}


/* Shop detail page (legacy catalog shop mode helpers) */
.shop-hero {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    margin-bottom: 32px;
    overflow: hidden;
}

.shop-hero--has-banner {
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

.shop-hero-overlay {
    display: none;
}

.shop-hero--has-banner .shop-hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, .75) 0%, rgba(26, 26, 26, .45) 100%);
}

.shop-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
}

.shop-hero--has-banner .shop-hero-inner {
    align-items: center;
    min-height: 220px;
}

.shop-logo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-hero--has-banner .shop-logo {
    background: #fff;
    border-color: rgba(255, 255, 255, .3);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.shop-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-bg);
}

.shop-hero-info { flex: 1; min-width: 240px; }

.shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.shop-meta-item {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.shop-hero--has-banner .shop-meta-item {
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
}

.shop-meta-type { color: var(--color-accent); }

.shop-hero--has-banner .shop-meta-type { color: #e8d5b8; }

.shop-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

.shop-hero--has-banner .shop-title { color: #fff; }

.shop-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 720px;
}

.shop-lead p {
    margin: 0;
}

.shop-lead p + p {
    margin-top: 0.9em;
}

.shop-hero--has-banner .shop-lead { color: rgba(255, 255, 255, .85); }

.shop-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar { position: sticky; top: 100px; }

.shop-contact-card {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 24px;
}

.shop-contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.shop-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.shop-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.shop-contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.shop-contact-list a {
    color: var(--color-text);
    text-decoration: underline;
    word-break: break-word;
}

.shop-contact-list a:hover { color: var(--color-accent); }

.shop-finance-badge {
    font-size: 13px;
    line-height: 1.5;
    color: #2e7d32;
    background: #edf7ed;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.shop-catalog-button {
    width: 100%;
    text-align: center;
}

.shop-section { margin-bottom: 48px; }

.shop-section:last-child { margin-bottom: 0; }

.shop-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.shop-section-title {
    font-size: 24px;
    font-weight: 600;
}

.shop-section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: underline;
    white-space: nowrap;
}

.shop-section-link:hover { color: var(--color-accent); }

.shop-promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.shop-promotion-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s;
}

.shop-promotion-card:hover { border-color: var(--color-accent); }

.shop-promotion-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.shop-promotion-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}

.shop-promotion-date {
    font-size: 12px;
    color: var(--color-sale);
    font-weight: 600;
}

.shop-empty-state { padding: 48px 20px; }

@media (max-width: 1919px) {

}

@media (max-width: 1199px) {

}

@media (max-width: 1023px) {
    .breadcrumbs.shops-breadcrumbs {
        padding: 24px;
    }

    .shops-directory {
        padding: 32px 24px;
    }

    .shops-group-grid {
        column-gap: 48px;
    }

    .shops-item:not(:nth-child(3n + 1))::before {
        left: -24px;
    }
}

@media (max-width: 767px) {
    .shops-filters {
        padding: 24px 16px 12px;
    }

    .shops-alphabet {
        padding: 12px 16px 16px;
    }

    .shops-category-form {
        width: calc(100svw - 32px);
    }

    .shops-category-trigger {
        width: calc(100svw - 32px);
    }

    .shops-group-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 0;
    }

    .shops-item:not(:first-child)::before {
        content: '';
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
    }
}
