/* Hero Animations & Visuals */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 500px;
}

.floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 1s;
}

.badge-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 2s;
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}/* Search Box Restore */
.search-box-wrapper { margin-top: 30px; }
.search-box-container {
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.search-box {
    display: flex;
    align-items: center;
}
.search-input-group { flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.search-input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 1rem;
    color: #495057;
}
.divider {
    width: 1px;
    height: 40px;
    background: #e9ecef;
    margin: 0 10px;
}
.btn-search {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    margin-left: auto;
}

/* Store Cards Restore */
.store-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    height: 100%;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.store-banner {
    height: 90px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.store-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    position: absolute;
    bottom: -30px;
    left: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #fff;
}
.store-info {
    padding: 35px 15px 15px;
}
.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Autocomplete Restore */
.autocomplete-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1060;
    width: 100%;
}

#autocomplete-results {
    position: absolute;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 10px;
    z-index: 1060;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: #fff;
    border-radius: 20px;
}

/* Modal Search Mode */
.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

body.search-modal-open .search-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* O Wrapper precisa ter um z-index maior que o backdrop (1040) */
.search-box-wrapper.modal-active {
    z-index: 1050;
}

/* No celular, joga para o topo e limpa bloqueios de layout dos pais */
@media (max-width: 991px) {
    body.search-modal-open .hero-content,
    body.search-modal-open .hero-content .row,
    body.search-modal-open .hero-content .col-lg-6 {
        position: static !important;
        transform: none;
        filter: none;
        perspective: none;
    }

    body .search-box-wrapper.modal-active {
        position: fixed !important;
        top: 15px;
        left: 15px;
        right: 15px;
        margin: 0;
        width: auto;
        transform: translateZ(0);
    }
    
    #autocomplete-results {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

body.search-modal-open section.overflow-hidden {
    overflow: visible;
}
.autocomplete-item { text-decoration: none !important; color: inherit;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.autocomplete-item:hover {
    background: #f8f9fa;
}
.autocomplete-item:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.autocomplete-item:first-child {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.autocomplete-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.autocomplete-info {
    display: flex;
    flex-direction: column;
}
.autocomplete-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}
.autocomplete-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.autocomplete-item {
    text-decoration: none !important;
    color: inherit;
}