* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    color: #1a1a1a;
    line-height: 1.6;
}

/* ... (Mantendo estilos base do usuário) ... */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

/* PADRONIZAÇÃO RIGOROSA DAS IMAGENS DOS CARDS */
.store-image-container {
    width: 100%;
    height: 220px; /* Altura fixa obrigatória */
    min-height: 220px; /* Garante que não encolha */
    max-height: 220px; /* Garante que não cresça */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    border-bottom: 1px solid #eee; /* Linha sutil para separar da info */
}

.store-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Força o preenchimento total cortando as sobras */
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
}

.store-card:hover .store-image {
    transform: scale(1.1);
}

/* ESTILOS DO MODAL - DESIGN MODERNO */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 550px;
    border-radius: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #800000 0%, #4a0000 100%);
    padding: 2rem;
    color: white;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

#modalStoreName {
    margin: 0;
    font-size: 1.75rem;
    color: #ffffff;
    -webkit-text-fill-color: white;
}

.modal-body {
    padding: 2rem;
}

/* Bloco de Informações Institucionais (CNPJ/VoIP) */
.info-highlight-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #800000;
    letter-spacing: 0.05em;
}

.info-item span {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

/* Seções de Horário e Contato */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.modal-section p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section a {
    color: #800000;
    font-weight: 600;
    transition: color 0.2s;
}

.modal-section a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* Responsividade do Modal */
@media (max-width: 480px) {
    .info-highlight-box {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        border-radius: 1rem;
    }
    
    .modal-header, .modal-body {
        padding: 1.5rem;
    }
}

/* SIDEBAR - Modern Design */
.sidebar-final {
    width: 280px;
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(128, 0, 0, 0.2);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header-final {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo-final img {
    width: 100%;
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.sidebar-logo-final:hover img {
    transform: scale(1.05);
}

.sidebar-scrollable-content-final {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav-final ul {
    list-style: none;
}

.sidebar-nav-final li {
    margin: 0;
}

.sidebar-nav-final a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-nav-final a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffff00;
    transform: translateX(4px);
}

.sidebar-nav-final a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffff00;
    border-left-color: #ffff00;
    box-shadow: inset 0 0 10px rgba(255, 255, 0, 0.1);
}

.sidebar-nav-icon-final {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* MAIN CONTENT - Modern Layout */
.main-content-final {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar-final {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-final h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
    font-size: 1.8rem;
}

.top-bar-final h1::before {
    content: '🗝️ ';
    margin-right: 0.5rem;
}

.container-final {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* SECTION TITLES */
.section-title-final {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%) 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title-final::before {
    content: '';
    width: 6px;
    height: 2rem;
    background: linear-gradient(to bottom, #800000, #6e0303);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

/* GRID LAYOUT */
.grid-final {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .grid-final {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-final {
        grid-template-columns: repeat(3, 1fr);
    }
}

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
    font-size: 1.8rem;
}

.top-bar h1::before {
    content: '📍 ';
    margin-right: 0.5rem;
}

.container {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* STORES GRID */
.stores-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (min-width: 768px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* STORE CARDS - Modern Design */
.store-card {
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.store-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(110, 3, 3, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.store-card:hover {
    border-color: #800000;
    box-shadow: 0 12px 30px rgba(128, 0, 0, 0.15);
    transform: translateY(-8px);
}

.store-card:hover::before {
    opacity: 1;
}

.store-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-card:hover .store-image {
    transform: scale(1.05);
}

.store-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.store-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #800000;
    text-transform: uppercase;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.store-card:hover .store-name {
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-address {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
}

.saiba-mais-btn {
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.saiba-mais-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6e0303 0%, #800000 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.saiba-mais-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(128, 0, 0, 0.3);
}

.saiba-mais-btn:hover::before {
    opacity: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 4px 15px rgba(128, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
        margin-top: 60px;
    }

    .sidebar-nav {
        display: none;
    }

    .sidebar-nav.active {
        display: block;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 1.5rem;
    }

    .top-bar h1 {
        font-size: 1.4rem;
    }

    .store-card {
        margin-top: 0;
    }

    .store-image {
        height: 180px;
    }

    .store-info {
        padding: 1.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.store-card {
    animation: fadeIn 0.6s ease-out;
}

.sidebar-nav a {
    animation: slideInLeft 0.5s ease-out;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #800000, #6e0303);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6e0303, #800000);
}

/* ACCESSIBILITY */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

/* UTILITY CLASSES */
.gradient-text {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
}

.shadow-lg {
    box-shadow: 0 12px 30px rgba(128, 0, 0, 0.15);
}

.transition-all {
    transition: all 0.3s ease;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(128, 0, 0, 0.25);
    border: 2px solid #e0e0e0;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #800000;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 0, 0, 0.1);
}

.modal-close:hover {
    background: linear-gradient(135deg, #800000 0%, #6e0303 100%);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #800000 0%, #6e0303 50%, #000000 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 1rem 1rem 0 0;
}

.modal-header h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: #800000;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-section p {
    margin-bottom: 0.75rem;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-section a {
    color: #800000;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-section a:hover {
    color: #6e0303;
    text-decoration: underline;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }
}

/* Estilo para o Modal funcionar */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8);
    justify-content: center; 
    align-items: center;
}

.modal-content {
    background-color: #fff; 
    padding: 30px; 
    border-radius: 15px;
    width: 90%; 
    max-width: 500px; 
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute; 
    right: 20px; 
    top: 10px;
    font-size: 30px; 
    cursor: pointer; 
    color: #800000;
}

