/* =========================================================
   GUARUS DELIVERY - MARKETPLACE
   CSS PREMIUM - ESTRUTURA E RESPONSIVIDADE
   COR PRINCIPAL: #F50000
   (SEM ANIMAÇÕES DE LETRAS - MOVIDAS PARA hero-guarus-animation.css)
========================================================= */

:root {
    /* Cores principais - atualizadas para #F50000 */
    --store-primary: #F50000;
    --store-primary-dark: #D90000;
    --store-primary-darker: #A80000;
    --store-secondary: #111111;
    --store-accent: #ffffff;
    --store-background: #f5f6f8;
    --store-surface: #ffffff;
    --store-text: #17181b;
    --store-text-soft: #30343a;
    --store-muted: #6f747c;
    --store-border: #e6e8ec;
    --store-radius: 22px;

    /* Status */
    --color-success: #15803d;
    --color-success-bg: #dcfce7;
    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;

    /* Raios */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Sombras - suaves para desempenho */
    --shadow-sm: 0 4px 16px rgba(18, 24, 33, 0.06);
    --shadow-md: 0 8px 30px rgba(18, 24, 33, 0.08);
    --shadow-lg: 0 18px 48px rgba(18, 24, 33, 0.12);
    --shadow-xl: 0 28px 80px rgba(18, 24, 33, 0.16);

    /* Layout */
    --content-width: 1180px;
    --header-height: 72px;

    /* Transições */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.15s;
    --duration-base: 0.3s;
    --duration-slow: 0.5s;
}

/* =========================================================
   RESET & BASE
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--store-background);
    color: var(--store-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */

:focus-visible {
    outline: 3px solid rgba(245, 0, 0, 0.25);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   LOADING
========================================================= */

#page-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}

#page-loading[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 40px;
    background: var(--store-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 380px;
    text-align: center;
    border: 1px solid var(--store-border);
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(245, 0, 0, 0.12);
    border-top-color: var(--store-primary);
    border-radius: 50%;
    animation: spin 0.9s var(--ease-in-out) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-card strong {
    font-size: 1.15rem;
    font-weight: 950;
    color: var(--store-text);
}

.loading-card p {
    color: var(--store-muted);
    font-size: 0.9rem;
    margin-top: -4px;
}

/* =========================================================
   HEADER
========================================================= */

.header-premium {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 232, 236, 0.6);
    padding: 0 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--store-primary), var(--store-primary-darker));
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 6px 20px rgba(245, 0, 0, 0.25);
    transition: transform var(--duration-fast) var(--ease-out);
}

.brand-link:hover .brand-icon {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.15rem;
    font-weight: 950;
    color: var(--store-text);
}

.brand-text span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--store-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

.header-location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(245, 0, 0, 0.08);
    border: 1px solid rgba(245, 0, 0, 0.12);
    color: var(--store-primary);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.location-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 850;
    color: var(--store-text-soft);
    border: 1.5px solid var(--store-border);
    background: transparent;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    min-height: 40px;
    min-width: 40px;
    justify-content: center;
}

.btn-outline:hover {
    background: rgba(245, 0, 0, 0.06);
    border-color: var(--store-primary);
    color: var(--store-primary);
    transform: translateY(-1px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 850;
    color: #fff;
    background: linear-gradient(145deg, var(--store-primary), var(--store-primary-darker));
    box-shadow: 0 4px 16px rgba(245, 0, 0, 0.25);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    min-height: 40px;
    min-width: 40px;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 0, 0, 0.35);
}

/* =========================================================
   BANNER PRINCIPAL - FINO E PREMIUM
   SEM MARGENS LATERAIS
========================================================= */

.hero-premium {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 300px; /* desktop */
    border-radius: 0;
    overflow: hidden;
}

/* Gradiente do banner */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #F50000 0%, #B30000 30%, #5C0000 60%, #1A0000 100%);
    overflow: hidden;
    border-radius: 0;
}

/* Camada decorativa - mais leve para desempenho */
.hero-gradient-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 50, 50, 0.10), transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(255, 0, 0, 0.05), transparent 50%);
    pointer-events: none;
}

/* Blobs decorativos - removidos em mobile por desempenho */
.hero-blob {
    display: none;
}

/* Partículas - apenas em desktop */
.hero-particles {
    display: none;
}

/* =========================================================
   CONTEÚDO DO BANNER
========================================================= */

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 100%;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    gap: 40px;
}

/* Texto do banner */
.hero-text {
    flex: 1;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Título - estrutura em duas linhas (sem animação aqui) */
.hero-brand-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.hero-brand-line {
    display: flex;
    line-height: 0.9;
    white-space: nowrap;
}

/* Tamanhos das letras (estilo base, a animação está no outro arquivo) */
.hero-brand-letter {
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #fff;
    display: inline-block;
}

/* Slogan e descrição */
.hero-brand-slogan {
    font-size: clamp(1.0rem, 1.2vw, 1.2rem);
    max-width: 540px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #fff;
}

.hero-brand-description {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #fff;
}

/* Botões */
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--store-primary);
    font-weight: 850;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 48px;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-button-secondary {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.20);
}

/* Ilustração - apenas desktop */
.hero-illustration {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-icon-circle {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-icon {
    font-size: 4.5rem;
    line-height: 1;
}

.hero-float-cards {
    display: flex;
    gap: 12px;
}

.float-card {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 1.4rem;
    animation: floatCard 3s var(--ease-in-out) infinite;
}

.float-card-1 { animation-delay: 0s; }
.float-card-2 { animation-delay: 0.6s; }
.float-card-3 { animation-delay: 1.2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =========================================================
   CARTÃO DE PESQUISA - AGORA ABAIXO DO BANNER
   BORDA VERMELHA E TEXTOS VERMELHOS
========================================================= */

.search-overlay-wrapper {
    max-width: var(--content-width);
    margin: 24px auto 0;   /* <-- AGORA ABAIXO DO BANNER, SEM SOBREPOSIÇÃO */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.search-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.search-card-inner {
    background: var(--store-surface);
    border-radius: var(--radius-md);
    padding: 14px 20px 18px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--store-primary);  /* BORDA VERMELHA */
    transition: box-shadow var(--duration-base) var(--ease-out);
}

.search-card-inner:focus-within {
    box-shadow: 0 40px 96px rgba(18, 24, 33, 0.18);
}

.search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--store-primary);  /* TEXTO VERMELHO */
    margin-bottom: 6px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--store-background);
    border-radius: var(--radius-sm);
    border: 2px solid var(--store-border);
    transition: all var(--duration-fast) var(--ease-out);
    padding-right: 4px;
}

.search-input-wrapper:focus-within {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 4px rgba(245, 0, 0, 0.08);
}

#search {
    flex: 1;
    height: 44px;
    padding: 0 12px 0 16px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: var(--store-primary);  /* TEXTO VERMELHO */
    min-width: 0;
}

#search::placeholder {
    color: var(--store-primary);  /* PLACEHOLDER VERMELHO */
    opacity: 0.7;
}

.search-button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, var(--store-primary), var(--store-primary-darker));
    color: #fff;
    font-size: 1rem;
    transition: all var(--duration-fast) var(--ease-out);
    display: grid;
    place-items: center;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 0, 0, 0.25);
}

/* =========================================================
   SEÇÃO DE LOJAS
========================================================= */

main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px 60px;
}

.stores-premium {
    margin-top: 28px;
}

.stores-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.stores-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--store-primary);
    margin-bottom: 2px;
}

.stores-header h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 950;
    letter-spacing: -0.02em;
    color: var(--store-text);
}

.stores-header h2 span {
    color: var(--store-primary);
}

.stores-badge {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(245, 0, 0, 0.08);
    color: var(--store-primary);
    font-size: 0.8rem;
    font-weight: 850;
    white-space: nowrap;
    border: 1px solid rgba(245, 0, 0, 0.12);
}

/* =========================================================
   GRADE DE LOJAS
========================================================= */

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 32px;
}

/* =========================================================
   CARD DA LOJA - LOGO, NOME E STATUS
========================================================= */

.store-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: fadeUp 0.5s var(--ease-out) both;
    transition: transform var(--duration-fast) var(--ease-out);
}

.store-card:hover {
    transform: translateY(-6px);
}

.store-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    gap: 10px;
}

/* Logo */
.store-logo {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, var(--store-primary), var(--store-primary-darker));
    display: grid;
    place-items: center;
    box-shadow: 0 8px 28px rgba(245, 0, 0, 0.20);
    transition: all var(--duration-base) var(--ease-out);
}

.store-card:hover .store-logo {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(245, 0, 0, 0.30);
}

.store-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-logo-letter {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

/* Cabeçalho do card - exibe nome e status */
.store-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.store-title-group {
    display: block;
    width: 100%;
    text-align: center;
}

.store-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--store-text);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-status {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 2px;
}

.store-status-open {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.store-status-closed {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* Ocultar informações extras que não usamos */
.store-location {
    display: none;
}
.store-information {
    display: none;
}
.store-arrow,
.store-content {
    /* .store-content pode ser removido ou mantido vazio */
}

.store-content {
    /* garantia de que o conteúdo fique centralizado */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* =========================================================
   MENSAGENS (erro, vazio)
========================================================= */

.marketplace-message {
    grid-column: 1 / -1;
    padding: 60px 30px;
    text-align: center;
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.marketplace-message-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.marketplace-message h3 {
    font-size: 1.3rem;
    font-weight: 950;
    margin-bottom: 6px;
}

.marketplace-message p {
    color: var(--store-muted);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

.marketplace-message-error {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
}

.marketplace-message-error h3 {
    color: var(--color-danger);
}

/* =========================================================
   ANIMAÇÕES (apenas para fadeUp dos cards e float dos ícones)
   A animação das letras está no arquivo hero-guarus-animation.css
========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-card:nth-child(2) { animation-delay: 0.03s; }
.store-card:nth-child(3) { animation-delay: 0.06s; }
.store-card:nth-child(4) { animation-delay: 0.09s; }
.store-card:nth-child(5) { animation-delay: 0.12s; }
.store-card:nth-child(6) { animation-delay: 0.15s; }
.store-card:nth-child(7) { animation-delay: 0.18s; }
.store-card:nth-child(8) { animation-delay: 0.21s; }

/* =========================================================
   RODAPÉ
========================================================= */

.footer-premium {
    background: var(--store-secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 0;
    margin-top: 20px;
    border-top: 3px solid var(--store-primary);
}

.footer-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--duration-fast) var(--ease-out);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--store-primary);
}

.footer-brand .footer-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--store-primary), var(--store-primary-darker));
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 6px 20px rgba(245, 0, 0, 0.20);
}

.footer-brand-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
}

.footer-brand-text span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-description {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.45);
    transition: all var(--duration-fast) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-link:hover {
    background: var(--store-primary);
    color: #fff;
    border-color: var(--store-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 0, 0, 0.20);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact a:hover {
    color: var(--store-primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-legal a:hover {
    color: var(--store-primary);
}

/* =========================================================
   RESPONSIVIDADE
   Estratégia mobile-first com ajustes progressivos
========================================================= */

/* --- Telas grandes (acima de 1280px) --- */
@media (min-width: 1281px) {
    .hero-particles {
        display: block;
    }
    .hero-blob {
        display: block;
    }
}

/* --- Desktop padrão (1024px - 1280px) --- */
@media (max-width: 1280px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 28px;
    }

    .store-logo {
        width: 100px;
        height: 100px;
        flex: 0 0 100px;
    }
    .store-logo-letter {
        font-size: 2.2rem;
    }

    .hero-container {
        height: 300px;
    }

    .hero-content {
        padding: 0 36px;
    }

    .hero-brand-letter {
        font-size: clamp(2.4rem, 5vw, 3.8rem);
    }

    .hero-icon-circle {
        width: 120px;
        height: 120px;
    }
    .hero-icon {
        font-size: 3.8rem;
    }
}

/* --- Tablet (768px - 1024px) --- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }

    .hero-container {
        height: 240px;
    }

    .hero-content {
        padding: 0 32px;
        gap: 24px;
    }

    .hero-brand-letter {
        font-size: clamp(2.2rem, 7vw, 3.4rem);
    }

    .hero-brand-slogan {
        font-size: clamp(0.9rem, 1.2vw, 1.0rem);
        max-width: 400px;
    }

    .hero-icon-circle {
        width: 100px;
        height: 100px;
    }
    .hero-icon {
        font-size: 3.2rem;
    }

    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 24px;
    }

    .store-logo {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
    }
    .store-logo-letter {
        font-size: 1.8rem;
    }

    .search-overlay-wrapper {
        margin-top: 20px;  /* Ajuste fino para tablet */
    }
}

/* --- Tablet pequeno / Celular grande (700px - 820px) --- */
@media (max-width: 820px) {
    .header-location .location-text {
        max-width: 100px;
    }

    /* Ajuste de botões no header - mantém texto, apenas reduz tamanho */
    .btn-outline {
        padding: 6px 14px;
        font-size: 0.8rem;
        min-height: 36px;
        min-width: 36px;
    }
    .btn-primary {
        padding: 6px 16px;
        font-size: 0.8rem;
        min-height: 36px;
        min-width: 36px;
    }

    .hero-container {
        height: 220px;
    }

    .hero-content {
        padding: 0 24px;
        gap: 20px;
    }

    .hero-brand-letter {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
    .hero-brand-slogan {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 12px;
    }
    .hero-cta .hero-button {
        padding: 10px 24px;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .hero-icon-circle {
        width: 80px;
        height: 80px;
    }
    .hero-icon {
        font-size: 2.6rem;
    }
    .hero-float-cards {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 20px;
    }

    .store-logo {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }
    .store-logo-letter {
        font-size: 1.6rem;
    }
    .store-name {
        font-size: 0.75rem;
    }

    .search-overlay-wrapper {
        margin-top: 18px;
        padding: 0 16px;
    }
}

/* --- Celular (até 700px) --- */
@media (max-width: 700px) {
    .header-premium {
        padding: 0 14px;
    }
    .header-container {
        height: 56px;
        gap: 12px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .brand-text strong {
        font-size: 1rem;
    }
    .brand-text span {
        font-size: 0.55rem;
    }

    .header-location {
        display: none;
    }

    .btn-outline,
    .btn-primary {
        font-size: 0.75rem;
        padding: 4px 12px;
        min-height: 32px;
        min-width: 32px;
    }

    /* Banner */
    .hero-container {
        height: 190px;
    }

    .hero-content {
        padding: 0 20px;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }

    /* Esconde ilustração e descrição */
    .hero-illustration {
        display: none;
    }
    .hero-brand-description {
        display: none;
    }

    .hero-cta .hero-button {
        padding: 8px 20px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 3px 12px;
        margin-bottom: 6px;
    }

    .hero-brand-letter {
        font-size: clamp(1.75rem, 10vw, 2.6rem);
    }

    .hero-brand-slogan {
        font-size: 0.8rem;
        margin-bottom: 8px;
        max-width: 100%;
    }

    /* Centralizar título */
    .hero-brand-title {
        align-items: center;
    }
    .hero-brand-line {
        justify-content: center;
    }

    .search-overlay-wrapper {
        margin-top: 16px;
        padding: 0 14px;
    }
    .search-card-inner {
        padding: 10px 14px 14px;
    }
    #search {
        height: 40px;
        font-size: 0.85rem;
        padding: 0 8px 0 12px;
    }
    .search-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    main {
        padding: 0 14px 40px;
    }

    .stores-header h2 {
        font-size: 1.2rem;
    }
    .stores-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }

    /* Grade de lojas: 3 colunas */
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .store-logo {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
        box-shadow: 0 4px 16px rgba(245, 0, 0, 0.15);
    }
    .store-logo-letter {
        font-size: 1.3rem;
    }
    .store-name {
        font-size: 0.7rem;
        max-width: 90px;
        white-space: normal;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .store-status {
        font-size: 0.5rem;
        padding: 1px 8px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-description {
        max-width: 100%;
    }
}

/* --- Celular pequeno (até 580px) - esconde o CTA --- */
@media (max-width: 580px) {
    .hero-cta {
        display: none;
    }
}

/* --- Celular pequeno (430px) --- */
@media (max-width: 430px) {
    .header-container {
        height: 50px;
        gap: 8px;
    }
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .brand-text strong {
        font-size: 0.9rem;
    }
    .brand-text span {
        font-size: 0.5rem;
        display: none;
    }

    .btn-outline,
    .btn-primary {
        font-size: 0.7rem;
        padding: 4px 10px;
        min-height: 30px;
        min-width: 30px;
    }

    .hero-container {
        height: 170px;
    }
    .hero-content {
        padding: 0 16px;
        gap: 8px;
    }
    .hero-badge {
        font-size: 0.55rem;
        padding: 2px 10px;
        margin-bottom: 4px;
    }
    .hero-brand-letter {
        font-size: 1.65rem;
    }
    .hero-brand-slogan {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .search-overlay-wrapper {
        margin-top: 14px;
        padding: 0 12px;
    }
    .search-card-inner {
        padding: 8px 10px 12px;
    }
    #search {
        height: 36px;
        font-size: 0.8rem;
        padding: 0 6px 0 10px;
    }
    .search-button {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .stores-grid {
        gap: 14px;
    }
    .store-logo {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
        box-shadow: 0 4px 12px rgba(245, 0, 0, 0.12);
    }
    .store-logo-letter {
        font-size: 1.1rem;
    }
    .store-name {
        font-size: 0.65rem;
        max-width: 70px;
    }
    .store-status {
        font-size: 0.45rem;
        padding: 1px 6px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Celular muito pequeno (390px e abaixo) --- */
@media (max-width: 390px) {
    .hero-container {
        height: 160px;
    }
    .hero-brand-letter {
        font-size: 1.5rem;
    }
    .hero-brand-slogan {
        font-size: 0.65rem;
    }

    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .store-logo {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }
    .store-logo-letter {
        font-size: 0.9rem;
    }
    .store-name {
        font-size: 0.6rem;
        max-width: 60px;
    }
    .store-status {
        font-size: 0.4rem;
        padding: 1px 4px;
    }
}

/* --- Celular abaixo de 360px - duas colunas --- */
@media (max-width: 359px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .store-logo {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }
    .store-name {
        max-width: 70px;
    }
}

/* =========================================================
   REDUÇÃO DE MOVIMENTO (apenas para elementos que não são letras)
   A animação das letras é tratada no arquivo hero-guarus-animation.css
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .float-card {
        animation: none !important;
    }
    .hero-particles span {
        animation: none !important;
    }
}

/* =========================================================
   IMPRESSÃO
========================================================= */

@media print {
    .hero-premium,
    .header-actions,
    .search-overlay-wrapper,
    .footer-social,
    .footer-legal,
    #page-loading {
        display: none !important;
    }

    .header-premium {
        position: static;
        backdrop-filter: none;
        background: #fff;
        border-bottom: 1px solid #ccc;
        padding: 12px 20px;
    }

    body {
        background: #fff;
    }

    .store-card {
        break-inside: avoid;
        transform: none !important;
    }

    .stores-grid {
        display: block;
    }

    .footer-premium {
        background: #222;
        color: #ccc;
        padding: 20px 0;
        border-top: 2px solid #444;
    }
    .footer-container {
        display: block;
    }
    .footer-col {
        margin-bottom: 16px;
    }
    .footer-bottom {
        margin-top: 20px;
    }
}