/**
 * Estilos del card público de comercios
 * Directorio de comercios adheridos – grid de tarjetas (portada, logo, nombre, ubicación, botón Conocer más)
 * Plugin: Club Riomonte
 */

@import url("https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap");

.stores-directory {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 0;
}

/* Barra de filtros – tipografía Noto Sans, botón azul como en formulario de comercios */
.stores-directory .stores-directory-filters {
    margin-bottom: 24px;
    font-family: "Noto Sans", sans-serif;
}
.stores-directory .stores-directory-filters * {
    font-family: "Noto Sans", sans-serif;
}
.stores-directory .stores-filters-form {
    width: 100%;
}
.stores-directory .stores-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}
.stores-directory .stores-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}
.stores-directory .stores-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #777;
}
.stores-directory .stores-filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 160px;
    color: #666;
}
.stores-directory .stores-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.stores-directory .stores-filter-btn {
    padding: 10px 20px;
    background: #E85246 !important;
    background-color: #E85246 !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.stores-directory .stores-filter-btn:hover {
    background: #d14535 !important;
    background-color: #d14535 !important;
}
.stores-directory .stores-filter-clear {
    font-size: 14px;
    color: #E85246;
    text-decoration: none;
}
.stores-directory .stores-filter-clear:hover {
    text-decoration: underline;
    color: #d14535;
}

.stores-directory .stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.stores-directory .store-card {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.stores-directory .store-card:hover {
    box-shadow: 0 0 16px rgba(0,0,0,0.18);
}
.stores-directory .store-card-cover-wrap {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    background: #e8e8e8;
}
.stores-directory .store-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stores-directory .store-card .store-card-logo-wrap {
    position: absolute;
    left: 14px;
    top: 130px;
    width: 80px;
    height: 80px;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: padding-box;
    background-clip: padding-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.238);
    z-index: 10;
}
.stores-directory .store-card .store-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    text-align: center;
}
.stores-directory .store-card-body {
    padding: 30px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.stores-directory .store-card h3 {
    margin: 10px 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: "Inria Serif", Georgia, serif;
}
.stores-directory .store-card-location {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-family: "Noto Sans", sans-serif;
}
.stores-directory .store-card-location .pin-icon {
    flex-shrink: 0;
    width: 18px;
    color: #c62828;
}
.stores-directory .store-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    padding: 0;
    background: #E85246;
    color: white !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    font-family: "Noto Sans", sans-serif;
}
.stores-directory .store-card-btn:hover {
    background: #d14535;
    color: white;
}
.stores-directory .no-stores {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}
@media (max-width: 900px) {
    .stores-directory .stores-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 900px) {
    .stores-directory .stores-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .stores-directory .stores-filter-group {
        min-width: 0;
    }
    .stores-directory .stores-filter-select {
        min-width: 0;
    }
    .stores-directory .stores-filter-actions {
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .stores-directory .stores-grid { grid-template-columns: 1fr !important; }
    .stores-directory .store-card-cover-wrap { height: 220px; }
    .stores-directory .store-card .store-card-logo-wrap { top: 170px; }
}

/* Slider de comercios – layout con flechas por fuera */
.stores-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.stores-slider .stores-slider-viewport {
    width: 100%;
    cursor: grab;
}
.stores-slider .stores-slider-viewport.is-dragging {
    cursor: grabbing;
}
.stores-slider .stores-slider-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}
.stores-slider .stores-slider-viewport-outer {
    margin: -16px -12px;
    padding: 16px 12px;
    overflow: hidden;
}
.stores-slider .stores-slider-inner .store-card {
    min-width: 0;
    box-sizing: border-box;
    pointer-events: auto;
}
.stores-slider .stores-slider-viewport.is-dragging .store-card {
    pointer-events: none;
}
.stores-slider .store-card {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.stores-slider .store-card:hover {
    box-shadow: 0 0 16px rgba(0,0,0,0.18);
}
.stores-slider .store-card-cover-wrap {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    background: #e8e8e8;
}
.stores-slider .store-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stores-slider .store-card .store-card-logo-wrap {
    position: absolute;
    left: 14px;
    top: 130px;
    width: 80px;
    height: 80px;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: padding-box;
    background-clip: padding-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.238);
    z-index: 10;
}
.stores-slider .store-card .store-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    text-align: center;
}
.stores-slider .store-card-body {
    padding: 30px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.stores-slider .store-card h3 {
    margin: 10px 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: "Inria Serif", Georgia, serif;
}
.stores-slider .store-card-location {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-family: "Noto Sans", sans-serif;
}
.stores-slider .store-card-location .pin-icon {
    flex-shrink: 0;
    width: 18px;
    color: #c62828;
}
.stores-slider .store-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 35px;
    padding: 0;
    background: #E85246;
    color: white !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    font-family: "Noto Sans", sans-serif;
}
.stores-slider .store-card-btn:hover {
    background: #d14535;
    color: white;
}
.stores-slider .stores-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #E85246;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: "Noto Sans", sans-serif;
    z-index: 10;
}
.stores-slider .stores-slider-arrow:hover,
.stores-slider .stores-slider-arrow:focus,
.stores-slider .stores-slider-arrow:focus-visible {
    background: #d14535;
    box-shadow: none;
}
.stores-slider .stores-slider-prev {
    left: -56px;
}
.stores-slider .stores-slider-next {
    right: -56px;
}
.stores-slider .no-stores {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}
@media (max-width: 1300px) {
    .stores-slider {
        padding: 0 56px;
    }
    .stores-slider .stores-slider-prev { left: 0; }
    .stores-slider .stores-slider-next { right: 0; }
}
@media (max-width: 900px) {
    .stores-slider {
        padding: 0 52px;
    }
}
@media (max-width: 600px) {
    .stores-slider {
        padding: 0 44px;
    }
    .stores-slider .store-card-cover-wrap {
        height: 220px;
    }
    .stores-slider .store-card .store-card-logo-wrap {
        top: 170px;
    }
    .stores-slider .store-card h3 {
        font-size: 24px;
    }
    .stores-slider .stores-slider-arrow {
        width: 36px;
        height: 36px;
    }
    .stores-slider .stores-slider-prev { left: 0; }
    .stores-slider .stores-slider-next { right: 0; }
}
