* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
}

.promocoes-container {
    min-height: 100vh;
    background: #FFFFFF;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.promocoes-header {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #FFE5D0 0%, #FFF5E6 50%, #E6F7FF 100%);
    margin-bottom: -80px;
    margin-top: -70px;
    position: relative;
}

.header-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.btn-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    padding: 0;
    animation: pulse 2s ease-in-out infinite;
}

.btn-info img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.5);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Categorias */
.categorias-container {
    padding: 1rem 0;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 30px;
}

.categorias-scroll {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.categorias-scroll::-webkit-scrollbar {
    display: none;
}

.btn-categoria {
    background: #F5F5F5;
    color: #666;
    border: 2px solid #E0E0E0;
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-categoria:hover {
    background: #FFEFD5;
    border-color: #FF9800;
}

.btn-categoria.active {
    background: #FF9800;
    color: white;
    border-color: #FF9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 50vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #F0F0F0;
    border-top-color: #FF9800;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 1rem;
}

.promocoes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 1rem;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 15px;
}

.promo-card {
    background: #FBFBFB;
    border: 1px solid #B4B4B4;
    box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 240px;
}

.promo-card:active {
    transform: scale(0.98);
}

.promo-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 30px 30px 0 0;
    flex-shrink: 0;
}

.promo-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
}

.promo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.promo-content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #FBFBFB;
}

.promo-badge {
    display: inline-block;
    background: #FF9800;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    align-self: flex-start;
}

.promo-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.btn-refresh {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    z-index: 50;
    transition: all 0.3s ease;
}

.btn-refresh:hover:not(:disabled) {
    background: #F57C00;
    transform: scale(1.05);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh .spinning {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.load-more-container {
    text-align: center;
    padding: 2rem 1rem;
}

.btn-load-more {
    background: #FF9800;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.emptyimg {
    width: 115px;
    margin-top: 10px;
    height: auto;
    margin-bottom: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-close-modal:hover {
    background: #F0F0F0;
}

.modal-body {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: #FF9800;
    font-weight: 700;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-modal-ok {
    background: #FF9800;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-modal-ok:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.infoAddTelaInicial {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.search-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
}

.btn-search-icon {
    background: white;
    border: 2px solid #FF9800;
    color: #FF9800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.btn-search-icon:hover {
    background: #FF9800;
    transform: scale(1.05);
}

.btn-search-icon img {
    animation: pulse-search 2s ease-in-out infinite;
}

@keyframes pulse-search {
    0%, 100% {
        transform: scale(1.5);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-search-icon:hover img {
    animation: none;
    transform: scale(1.15);
}

.search-box-expanded {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.5rem;
    animation: expandSearch 0.3s ease;
}

@keyframes expandSearch {
    from { width: 50px; opacity: 0; }
    to { width: 300px; opacity: 1; }
}

.search-box-expanded .search-input {
    flex: 1;
    border: none;
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
}

.btn-close-search {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.btn-clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

.btn-clear-search:hover {
    color: #333;
}

/* Footer */
.footer {
    background: #F5F5F5;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #E0E0E0;
}

.footer p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.footer strong a {
    color: #FF9800;
    font-weight: 700;
    text-decoration: none;
}

.emptyphoto {
    width: 80px;
    margin-top: 10px;
    height: auto;
    margin-bottom: 1rem;
}

/* Responsivo */
@media (max-width: 360px) {
    .promocoes-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .promo-card {
        border-radius: 25px;
        min-height: 220px;
    }

    .promo-image {
        height: 100px;
    }

    .promo-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 5;
    }

    .btn-info {
        width: 35px;
        height: 35px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .btn-categoria {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 600px) {
    .promocoes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .promo-card {
        min-height: 260px;
    }

    .promo-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 7;
    }
}

@media (min-width: 900px) {
    .promocoes-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        gap: 2rem;
        padding: 0 2rem;
    }

    .promo-card {
        min-height: 280px;
    }

    .promo-title {
        -webkit-line-clamp: 8;
    }
}

@media (max-width: 768px) {
    .categorias-scroll {
        justify-content: flex-start;
        padding: 0 1rem 0 1rem;
    }
}

@media (min-width: 769px) {
    .categorias-scroll {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
}