/* Простые стили для страницы магазинов */

.page-header {
    margin-bottom: 2rem;
}

/* Page title and page-description используют общие стили из main styles.css */


/* Сетка магазинов */
.stores-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 0;
}

/* Карточка магазина */
.store-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
}

.store-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 250px;
}

.store-card:hover {
    border-color: var(--primary-blue);
}

.store-card.hidden {
    display: none;
}

.store-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-card h3::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23003366"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Контактная информация */
.store-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.store-map {
    background: #f8f9fa;
    border-left: 1px solid #e5e5e5;
}

.store-map .map {
    border: none;
    border-radius: 0;
    height: 100%;
}

.store-info div {
    line-height: 1.5;
}

.store-info strong {
    color: #333;
    margin-right: 0.5rem;
}

.address {
    color: #666;
}

.phone a,
.email a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.phone a:hover,
.email a:hover {
    text-decoration: underline;
}

.hours {
    color: #666;
    font-size: 0.9rem;
}

.description {
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    /* Исправление курсива для iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    -webkit-text-size-adjust: 100%;
}

/* Простая информация о магазине */


.map {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

/* Состояние отсутствия магазинов */
.no-stores {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

/* Отключение курсива на iOS, замена на наклонный обычный шрифт */
@supports (-webkit-touch-callout: none) {
    .description {
        font-style: normal !important;
        transform: skewX(-8deg) !important;
        font-weight: 300 !important;
        opacity: 0.9 !important;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .store-content {
        grid-template-columns: 1fr;
    }
    
    .store-map {
        border-left: none;
        border-top: 1px solid #e5e5e5;
        height: 250px;
    }
    
    .store-info {
        padding: 1rem;
    }
    
    .map {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .store-card h3 {
        font-size: 1.125rem;
    }
    
    .map {
        height: 200px;
    }
}