/* Reset e configurações básicas */
:root {
    /* Palette Tokens - Refined Warm Gold & Neutral Balance */
    --color-primary: #f4d03f;
    --color-primary-gradient-end: #f7dc6f;
    --color-neutral-bg: #222222;
    --color-surface: #ffffff;
    --color-surface-header: #fdfbf7;
    --color-surface-category: #f4f4f4;
    --color-accent-telegram: #0088cc;
    --color-status-lowest: #27ae60;
    --color-status-highest: #e74c3c;
    --color-status-low: #2980b9;
    --color-status-high: #e67e22;
    --color-status-stale: #7f8c8d;
    --color-text-primary: #2c3e50;
    --color-text-muted: #626567;

    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Radius Scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-pill: 25px;

    /* Shadow Scale - Soft & Restrained */
    --shadow-card-rest: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover-lift: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Accessibility Focus Rings */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-neutral-bg);
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1600px) {
    .container {
        padding: 0 60px;
    }
}

/* Header */
.header {
    background: #333;
    color: white;
    padding: 2.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 3rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Header Actions - Container para notificações e telegram */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.reports-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.reports-btn:hover {
    background: #555;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.reports-btn .reports-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Botão do Telegram */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0088cc;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.4);
    color: white;
    text-decoration: none;
}

.telegram-btn i {
    font-size: 1.1rem;
}

/* Botão do Instagram */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e1306c;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(225, 48, 108, 0.3);
}

.instagram-btn:hover {
    background: #c13584;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(225, 48, 108, 0.4);
    color: white;
    text-decoration: none;
}

.instagram-btn i {
    font-size: 1.1rem;
}

/* Botão do YouTube */
.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.youtube-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.youtube-btn i {
    font-size: 1.1rem;
}

/* Botão de Painel Admin / Estatísticas no Header */
.reports-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.reports-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
    color: white;
}


/* Sistema de Notificações */
.notification-wrapper {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.notification-btn {
    position: relative;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.notification-btn:hover,
.notification-btn:active {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.notification-btn i {
    font-size: 1.3rem;
    pointer-events: none;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 1;
}

/* Dropdown de notificações */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

.notification-count {
    background: #333;
    color: white;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
    font-weight: bold;
}

.notification-list {
    max-height: 420px;
    overflow-y: auto;
}

/* Item de notificação */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.notification-status {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.3rem;
}

.notification-status.lowest_price {
    background: #d4edda;
    color: #155724;
}

.notification-status.price_drop {
    background: #d1ecf1;
    color: #0c5460;
}

.notification-status.back_in_stock {
    background: #fff3cd;
    color: #856404;
}

.notification-price {
    font-size: 1rem;
    font-weight: bold;
    color: #28a745;
    margin: 0.2rem 0;
}

.notification-time {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-time i {
    font-size: 0.75rem;
}



/* Estados especiais */
.notification-loading,
.notification-empty {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

.notification-loading i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.notification-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.admin-bulk-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #e6ffed;
    border: 1px solid #2ecc71;
    color: #1e8449;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.15);
}

.admin-bulk-alert i {
    font-size: 1.25rem;
}

.admin-bulk-alert__close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-bulk-alert__close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Overlay para mobile */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Container de Filtros */
.filters-container {
    margin: 2rem 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabeçalho dos Filtros */
.filters-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 0.5rem 0.75rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.filters-header:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.filters-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.filters-header i {
    font-size: 1rem;
    color: #333;
    transition: transform 0.3s ease;
}

.filters-header.collapsed i {
    transform: rotate(-90deg);
}

/* Conteúdo dos Filtros */
.filters {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filters.collapsed {
    display: none !important;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

/* Grupo de busca com ícone */
.search-group {
    min-width: 250px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-submit-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 0.75rem;
    border: 2px solid #ffd700;
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.search-submit-btn i {
    pointer-events: none;
}

.search-submit-btn.active {
    background: linear-gradient(135deg, #ff8c00 0%, #ffb347 100%);
    border-color: #ff8c00;
    color: #fff;
}

.search-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.search-submit-btn:hover {
    transform: translateY(-1px);
}

.search-input-wrapper input {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding-left: 12px;
    flex: 1;
}

.search-input-wrapper input:focus {
    border-left: none;
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.sort-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 0.75rem;
    border: 2px solid #ffd700;
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1;
}

.sort-input-wrapper select {
    border-radius: 0 8px 8px 0;
    border-left: none;
    padding-left: 12px;
    flex: 1;
    height: 100%;
}

.sort-input-wrapper select:focus {
    border-left: none;
    outline: none;
}

/* Grupo de checkbox */
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkbox-group:hover {
    opacity: 0.8;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-group span {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.filter-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.filter-group.checkbox-group label {
    text-transform: none;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: normal;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 0.75rem;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

/* Switch Component Styles */
.highlight-filter {
    background: #e8f5e9;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.15);
    transition: all 0.3s ease;
}

.highlight-filter:hover {
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.25);
    background: #d4edda;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    gap: 1rem;
    margin: 0;
}

.switch-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e8449;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.switch-text i {
    color: #27ae60;
    font-size: 1.1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #27ae60;
}

input:focus+.slider {
    box-shadow: 0 0 1px #27ae60;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Botões de filtro com texto */
.btn-apply,
.btn-clear,
.btn-suggest {
    padding: 0.65rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-apply {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-suggest {
    background: #17a2b8;
    color: white;
}

.btn-suggest:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* Botão aplicar filtros - apenas ícone */
#applyFilters {
    padding: 0.75rem;
    min-width: 50px;
    justify-content: center;
}

#applyFilters i {
    color: #333;
    font-size: 1.1rem;
}

/* Container dos botões de filtro */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Botão secundário - limpar filtros */
.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-secondary i {
    color: white;
    font-size: 1.1rem;
}

/* Seções de categoria (definição movida para cima) */

.category-title {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 0.5rem 0.75rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.category-title:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.category-title i {
    transition: transform 0.3s ease;
}

/* Container de Filtros */
.filters-container {
    margin: 2rem 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-rest);
    overflow: hidden;
}

/* Cabeçalho dos Filtros */
.filters-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-gradient-end) 100%);
    padding: 0.65rem 1rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.filters-header:hover {
    background: linear-gradient(135deg, var(--color-primary-gradient-end) 0%, var(--color-primary) 100%);
}

.filters-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-text-primary);
}

.filters-header i {
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}

.filters-header.collapsed i {
    transform: rotate(-90deg);
}

.product-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: normal;
}

/* Grid de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-height: 99999px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.6s ease, opacity 0.5s ease;
}

@media (max-width: 768px) {
    .products-grid {
        padding: 1rem;
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2.25rem;
    }
}

.products-grid.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease, padding 0.6s ease;
}

/* Seções de categoria com transições */
.category-section {
    margin-bottom: 2.5rem;
    background: var(--color-surface-category);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-rest);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-section[style*="display: none"] {
    margin-bottom: 0;
    box-shadow: none;
}

/* Estilos Específicos para Categorias Especiais (Últimos alertas e Novos) */
.category-title[data-category="Últimos alertas"],
.category-title[data-category="Novos"] {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
}

.category-title[data-category="Últimos alertas"] .product-count,
.category-title[data-category="Novos"] .product-count {
    color: rgba(255, 255, 255, 0.9);
}

.category-title[data-category="Últimos alertas"] i,
.category-title[data-category="Novos"] i {
    color: white;
}

.category-title[data-category="Últimos alertas"]:hover,
.category-title[data-category="Novos"]:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Cards de produto */
.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
    text-decoration: none;
    color: inherit;
}

/* Botão Link Amazon para Produtos Anunciados */
.amazon-link-container {
    width: 100%;
}

.amazon-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #ff9900 0%, #ffac33 100%);
    color: #111;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-card:hover .amazon-link-btn {
    background: linear-gradient(135deg, #e68a00 0%, #ff9900 100%);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.45);
    transform: translateY(-1px);
}

/* Animação de cintilar para o ícone de olho */
@keyframes shimmer {

    0%,
    100% {
        background: #27ae60;
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    }

    50% {
        background: #2ecc71;
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.8), 0 0 30px rgba(46, 204, 113, 0.4);
        transform: scale(1.05);
    }
}


/* Ícone de edição para admin */




/* Marcação visual para produtos desabilitados ou sem notificação (apenas para admin) */
.product-disabled {
    opacity: 0.5;
    border: 3px solid #e74c3c !important;
}

.product-disabled::before {
    content: "DESABILITADO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}

.product-no-notify::after {
    content: "SEM NOTIF.";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 5;
}

.product-disabled.product-no-notify::before {
    right: 10px;
}

.product-disabled.product-no-notify::after {
    top: 40px;
}

/* Cabeçalho do produto - descrição e marca */
.product-header {
    padding: 0.75rem 1rem 0.5rem 1rem;
    background: var(--color-surface-header);
    border-bottom: 1px solid #e9ecef;
}

.product-description {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.product-category {
    font-size: 0.8rem;
    color: #444444;
    margin-top: 2px;
    margin-bottom: 0;
    font-style: italic;
}

/* Conteúdo principal - duas colunas */
.product-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.product-image {
    flex: 0 0 auto;
    padding: 0.75rem 0.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 120px;
    overflow: hidden;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}



.product-info {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
}


/* Preços */
.product-price {
    margin-bottom: 0;
}

.price-value {
    font-size: 1.3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0;
}

.price-green {
    color: #28a745;
}

.price-red {
    color: #dc3545;
}

.price-blue {
    color: #007bff;
}

.price-orange {
    color: #fd7e14;
}

.price-dark {
    color: #6c757d;
    opacity: 0.7;
}

.price-normal {
    color: #333;
}

.price-black {
    color: #000;
}

.price-status {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    margin-top: 0.1rem;
    margin-bottom: 0;
}

.min-price-info {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 0.1rem;
    margin-bottom: 0;
    color: #28a745;
}

.price-green+.price-status {
    color: #28a745;
}

.price-red+.price-status {
    color: #dc3545;
}

.price-blue+.price-status {
    color: #007bff;
}

.price-orange+.price-status {
    color: #fd7e14;
}

.price-dark+.price-status {
    color: #6c757d;
}

.price-black+.price-status {
    color: #000;
}

.product-meta {
    margin-top: 0.2rem;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    color: #666;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
}

.last-update i {
    font-size: 0.7rem;
    margin-right: 0;
}


/* Loading e estados */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 2rem 0;
    margin-top: 3rem;
}

.footer h3 {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.footer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

/* Botão flutuante para voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .telegram-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .notification-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .notification-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .notification-btn i {
        font-size: 1.3rem;
    }

    .notification-badge {
        top: -3px;
        right: -3px;
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .notification-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: calc(100vw - 20px);
        max-width: 380px;
        max-height: 80vh;
        animation: none;
    }

    .notification-header {
        padding: 0.75rem 1rem;
    }

    .notification-item {
        padding: 0.75rem 1rem;
    }

    .notification-image {
        width: 50px;
        height: 50px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .filters-header {
        padding: 0.75rem;
    }

    .filters-header h3 {
        font-size: 1.1rem;
    }

    /* Filtros colapsados por padrão em mobile */
    .filters.collapsed {
        display: none;
    }

    /* Garantir que filtros sejam visíveis quando expandidos */
    .filters:not(.collapsed) {
        display: flex;
    }

    .filters-header.collapsed i {
        transform: rotate(-90deg);
    }

    .filter-group {
        min-width: auto;
    }

    .search-group {
        min-width: auto;
    }

    .search-icon {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .search-input-wrapper input {
        padding: 0.6rem 0.6rem 0.6rem 8px;
    }

    .filter-buttons {
        gap: 0.4rem;
    }

    #applyFilters {
        min-width: 45px;
        padding: 0.6rem;
    }

    .btn-secondary {
        min-width: 45px;
        padding: 0.6rem;
    }

    .btn-secondary i {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .category-title {
        padding: 0.75rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .product-image img {
        width: 80px;
        height: 80px;
    }

    .product-content {
        flex-direction: column;
    }

    .product-image {
        min-width: auto;
        max-width: none;
        padding: 0.5rem;
    }

    .product-header {
        padding: 0.5rem;
    }

    .product-info {
        padding: 0.5rem;
        justify-content: center;
    }

    .footer {
        padding: 2rem 0 1.5rem 0;
    }

    .footer h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-content {
        text-align: center;
        padding: 0 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1rem;
    }
}

/* Tooltips de Primeiro Acesso */
.first-time-tooltip {
    position: absolute;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.first-time-tooltip.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.tooltip-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    max-width: 280px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(44, 62, 80, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(44, 62, 80, 0.6);
    }
}

.tooltip-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.tooltip-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tooltip-close i {
    font-size: 0.75rem;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Tooltip posicionado abaixo */
.tooltip-bottom {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
}

.tooltip-bottom.show {
    transform: translateX(-50%) scale(1);
}

.tooltip-bottom .tooltip-arrow {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #2c3e50 transparent;
}

/* Tooltip posicionado à esquerda */
.tooltip-left {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.tooltip-left.show {
    transform: translateY(-50%) scale(1);
}

.tooltip-left .tooltip-arrow {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #34495e;
}

/* Tooltip para ícone de olho (posicionamento fixo) */
.tooltip-eye {
    position: fixed;
    z-index: 10000;
}

.tooltip-eye .tooltip-arrow {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #34495e;
}

/* Responsivo para tooltips */
@media (max-width: 768px) {
    .tooltip-content {
        max-width: 220px;
        padding: 0.6rem 0.85rem;
    }

    .tooltip-text {
        font-size: 0.85rem;
    }

    .tooltip-left {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(100% + 10px);
        transform: translateX(-50%) scale(0.8);
    }

    .tooltip-left.show {
        transform: translateX(-50%) scale(1);
    }

    .tooltip-left .tooltip-arrow {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-color: #2c3e50 transparent transparent transparent;
    }

    .tooltip-eye {
        position: fixed !important;
    }

    .tooltip-eye .tooltip-arrow {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-color: #2c3e50 transparent transparent transparent;
    }
}

/* ============================================
   Seção de Sugestões
   ============================================ */

.suggestions-section {
    background: #2c2c2c;
    padding: 3rem 0;
    margin-top: 2rem;
}

.suggestions-box {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.suggestions-box h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suggestions-box h3 i {
    color: #ffd700;
    font-size: 1.75rem;
}

.suggestions-box p {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.suggestion-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.suggestion-input-wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ffd700;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    min-height: 45px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-input-wrapper textarea:focus {
    outline: none;
    border-color: #ffed4e;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: 500;
}

.char-counter span {
    font-weight: 700;
}

.btn-submit-suggestion {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-submit-suggestion:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-submit-suggestion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-suggestion i {
    font-size: 1rem;
}

.suggestion-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.suggestion-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsivo para sugestões */
@media (max-width: 768px) {
    .suggestions-section {
        padding: 2rem 0;
    }

    .suggestions-box {
        padding: 1.5rem;
    }

    .suggestions-box h3 {
        font-size: 1.25rem;
    }

    .btn-submit-suggestion {
        padding: 0.75rem 1.5rem;
    }
}

/* Botão de sugestões nos filtros */
.btn-suggestions {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    text-decoration: none;
}

.btn-suggestions:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    color: white;
    text-decoration: none;
}

.btn-suggestions i {
    color: white;
    font-size: 1.1rem;
}

/* Scroll suave para âncoras */
html {
    scroll-behavior: smooth;
}

/* ============================================
   MELHORIAS DE UX - Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.95;
}

.hero-description p {
    margin-bottom: 0;
}

.eye-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #27ae60;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    animation: shimmer 2s ease-in-out infinite;
    vertical-align: middle;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-scroll-products {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-scroll-products:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.product-total-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   Stats Banner
   ============================================ */

.stats-banner {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    font-size: 2rem;
    color: #333;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}




/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: bounce-scroll 2s ease-in-out infinite;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.scroll-indicator i {
    color: #ffd700;
    font-size: 1.2rem;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}



/* ============================================
   Tutorial Interativo
   ============================================ */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.show {
    opacity: 1;
}

.tutorial-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.tutorial-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tutorial-step.active {
    opacity: 1;
    pointer-events: all;
}

.tutorial-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tutorial-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutorial-box p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #666;
}

.tutorial-box ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tutorial-box li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #555;
}

.btn-tutorial-next,
.btn-tutorial-finish {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.btn-tutorial-next:hover,
.btn-tutorial-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-tutorial-skip {
    background: transparent;
    color: #999;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.tutorial-highlight {
    position: relative;
    z-index: 100000 !important;
    box-shadow: 0 0 0 4px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6) !important;
    animation: tutorial-glow 2s ease-in-out infinite;
}

@keyframes tutorial-glow {

    0%,
    100% {
        box-shadow: 0 0 0 4px #ffd700, 0 0 40px rgba(255, 215, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px #ffd700, 0 0 60px rgba(255, 215, 0, 0.9);
    }
}


.tutorial-arrow {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid white;
    margin-bottom: -1px;
}


/* ============================================
   Ajustes Responsivos para Filtros Mobile
   ============================================ */
@media (max-width: 768px) {
    .filters {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
    }

    .search-group {
        min-width: 0;
        width: 100%;
    }

    /* Ajuste para inputs e selects ocuparem 100% */
    .filter-group select,
    .filter-group input[type="text"],
    .search-input-wrapper input {
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
    }

    /* Input de busca */
    .search-input-wrapper input {
        min-width: 0;
        flex: 1;
    }

    /* Container dos botões de filtro */
    .filter-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .btn-apply,
    .btn-clear,
    .btn-suggest {
        flex: 1 0 auto;
        text-align: center;
        width: auto;
        justify-content: center;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    /* Switch em mobile */
    .highlight-filter {
        width: 100%;
    }

    .switch-container {
        width: 100%;
    }
}


/* ============================================
   Responsividade Mobile
   ============================================ */

@media (max-width: 768px) {

    /* Hero Section */
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    /* Stats Banner */
    .stats-banner {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        justify-content: center;
    }

    /* Price Legend */
    .legend-items {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Filter Toast */
    .filter-toast {
        top: 80px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    /* Tutorial */
    .tutorial-box {
        margin: 1rem;
        padding: 1.5rem;
    }

    .tutorial-box h3 {
        font-size: 1.3rem;
    }

}

/* Alert Reason Badge in Product Card */
.alert-reason-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-time {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.95;
    margin-top: 2px;
    text-transform: lowercase;
}

.alert-reason-badge.lowest-price {
    background-color: #28a745;
}

.alert-reason-badge.price-drop {
    background-color: #007bff;
}

.alert-reason-badge.back-in-stock {
    background-color: #fd7e14;
}

/* Telegram Alert Notice in Category Section */
.telegram-alert-notice {
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    color: #444;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 136, 204, 0.05);
}

.telegram-alert-notice i {
    font-size: 2rem;
    color: #0088cc;
}

.telegram-alert-notice p {
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.telegram-alert-notice a {
    color: #0088cc;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 136, 204, 0.3);
    transition: all 0.2s ease;
}

.telegram-alert-notice a:hover {
    color: #006699;
    border-bottom-color: #006699;
}

@media (max-width: 768px) {
    .telegram-alert-notice {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .telegram-alert-notice i {
        font-size: 1.5rem;
    }
}

/* ==========================================
   COOKIE CONSENT BANNER (LGPD COMPLIANT)
   ========================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 40px);
    max-width: 850px;
    background: rgba(44, 44, 44, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    padding: 1.5rem;
}

.cookie-consent-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-consent-icon {
    font-size: 2.2rem;
    color: #ffd700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceSlow 3s infinite alternate;
}

@keyframes bounceSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.cookie-consent-text {
    flex: 1;
    color: #ffffff;
}

.cookie-consent-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-consent-text p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cookie-consent-text a {
    color: #ffd700;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.cookie-consent-text a:hover {
    color: #ffed4e;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.35);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Responsividade Mobile para o Banner */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 1.25rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-consent-icon {
        display: none;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
}