/* Estilos para a página Meus Produtos */
/* Cores baseadas no CSS original */

.meus-produtos-container {
    margin-top: 140px;
    /* Large spacing for quick-access-bar */
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Título da página */
.page-title-container {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    padding-top: 60px;
    /* Extra spacing for quick-access-bar */
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFA500, #ADFF2F, #40E0D0, #FFA500);
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientAnimation 6s linear infinite;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Cards de estatísticas */
.stats-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stats-card {
    background: linear-gradient(140deg, rgba(0, 51, 0, 0.75), rgba(0, 34, 0, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(173, 255, 47, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    border-color: rgba(173, 255, 47, 0.4);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.2), rgba(173, 255, 47, 0.2));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stats-icon i {
    font-size: 24px;
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(173, 255, 47, 0.5));
}

.stats-content {
    flex: 1;
}

.stats-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.stats-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Alerta de expiração de 30 dias */
.product-alert {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.15), rgba(255, 69, 0, 0.15));
    border-left: 4px solid #FFA500;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.product-alert i {
    font-size: 24px;
    color: #FFA500;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.5));
}

.product-alert p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

/* Segundo alerta (informativo sobre status) */
.product-alert.info-alert {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border-left-color: #FFC107;
}

.product-alert.info-alert i.fa-info-circle {
    color: #FFC107;
}

.product-alert.info-alert i.fa-signal {
    color: #FFC107;
    margin: 0 3px;
}

/* Filtros */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.date-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.date-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-filter label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(173, 255, 47, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
    width: 160px;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: rgba(173, 255, 47, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(173, 255, 47, 0.4);
}

.search-filter {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 500px;
    margin: 0 auto;
}

.search-filter input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(173, 255, 47, 0.3);
    border-radius: 8px;
    padding: 10px 15px 10px 40px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-filter input:focus {
    outline: none;
    border-color: rgba(173, 255, 47, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(173, 255, 47, 0.4);
}

.search-filter i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(173, 255, 47, 0.7);
    font-size: 16px;
}

.filter-button {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.3), rgba(64, 224, 208, 0.3));
    border: 1px solid rgba(173, 255, 47, 0.4);
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-button:hover {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.4), rgba(64, 224, 208, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.filter-button i {
    font-size: 16px;
    color: rgba(173, 255, 47, 0.9);
}

/* Botão de exportar */
.export-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.export-button {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.25), rgba(0, 191, 255, 0.25));
    border: 1px solid rgba(64, 224, 208, 0.4);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.export-button:hover {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.35), rgba(0, 191, 255, 0.35));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.export-button i {
    font-size: 14px;
    color: rgba(64, 224, 208, 0.9);
}

/* Tabela de Produtos */
.products-table-container {
    width: 100%;
    overflow-x: visible;
    /* ✅ MUDANÇA AQUI */
    background: linear-gradient(140deg, rgba(0, 51, 0, 0.6), rgba(0, 34, 0, 0.7));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(173, 255, 47, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 5px;
    margin-bottom: 3rem;
    position: relative;
    min-height: 200px;
    max-width: 1200px;
    /* ✅ AUMENTADO DE 1000px PARA 1200px */
    margin-left: auto;
    margin-right: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    /* ⛔ Corrige a diferença de altura */
    table-layout: auto;
}


.products-table thead th:nth-child(1) {
    width: 25%;
}

/* Produto */
.products-table thead th:nth-child(2) {
    width: 15%;
}

/* Opção */
.products-table thead th:nth-child(3) {
    width: 10%;
}

/* Preço */
.products-table thead th:nth-child(4) {
    width: 18%;
}

/* Data */
.products-table thead th:nth-child(5) {
    width: 10%;
}

/* Código */
.products-table thead th:nth-child(6) {
    width: 22%;
}

/* Ações */

/* Centraliza cabeçalhos DATA e AÇÕES */
.products-table thead th:nth-child(4) {
    text-align: center;
}

.products-table thead th:nth-child(6) {
    text-align: center;
}



.products-table th {
    text-align: left;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    position: relative;
}

.products-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(173, 255, 47, 0.3), transparent);
}

.products-table td {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.products-table tr:last-child td {
    border-bottom: none;
}

.products-table tr:hover td {
    background: rgba(173, 255, 47, 0.05);
}

/* Colunas da tabela */
.products-table .produto-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.produto-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.2), rgba(173, 255, 47, 0.2));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.produto-icon i {
    font-size: 18px;
    color: #FFD700;
}

.produto-nome {
    font-weight: 600;
    color: white;
    word-wrap: break-word;
    /* ✅ ADICIONADO */
    overflow-wrap: break-word;
    /* ✅ ADICIONADO */
    display: block;
    /* ✅ ADICIONADO */
}

.preco-col {
    font-weight: 600;
    color: #FFD700;
}

.data-col {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    /* Centraliza todo o conteúdo */
}

/* Centraliza também o cabeçalho DATA */
.products-table thead th:nth-child(4) {
    text-align: center;
}

.data-hora {
    white-space: normal;
    /* ✅ ADICIONADO */
    word-wrap: break-word;
    /* ✅ ADICIONADO */
}

.codigo-col {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* Botões de ação */
.acoes-col {
    padding: 15px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    /* Impede quebra de linha */
}


.action-button {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
    /* evita empurrar altura da linha */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.action-button.view-button {
    border-color: rgba(64, 224, 208, 0.4);
}

.action-button.view-button:hover {
    background: rgba(64, 224, 208, 0.15);
}

.action-button.view-button i {
    color: rgba(64, 224, 208, 0.9);
}

.action-button.download-button {
    border-color: rgba(173, 255, 47, 0.4);
}

.action-button.download-button:hover {
    background: rgba(173, 255, 47, 0.15);
}

.action-button.download-button i {
    color: rgba(173, 255, 47, 0.9);
}

/* Tooltip para botões de ação */
.action-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    z-index: 10;
}

.action-button:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Mensagem de Sem Produtos */
.no-products-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.no-products-message i {
    font-size: 3rem;
    color: rgba(173, 255, 47, 0.5);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(173, 255, 47, 0.3));
}

.no-products-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.shop-button {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.6), rgba(255, 140, 0, 0.6));
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.shop-button:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.8), rgba(255, 140, 0, 0.8));
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.4);
}

/* Loader de carregamento */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(173, 255, 47, 0.3);
    border-radius: 50%;
    border-top-color: #ADFF2F;
    animation: spin 1s infinite ease-in-out;
    margin-bottom: 1rem;
}

.loader-container p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .meus-produtos-container {
        padding: 0 1rem;
    }
}

@media (max-width: 991px) {
    .stats-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-cards-wrapper .stats-card:last-child {
        grid-column: span 2;
    }

    .date-filters,
    .search-filter {
        width: 100%;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }

    .product-alert {
        flex-direction: row;
        /* Mantém ícone ao lado */
        text-align: left;
        padding: 12px 15px;
    }

    .product-alert i {
        font-size: 20px;
        flex-shrink: 0;
    }

    .product-alert p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .date-filters {
        flex-direction: column;
    }

    .date-filter,
    .date-input {
        width: 100%;
    }

    .products-table {
        min-width: 850px;
    }

    .products-table-container {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        /* Scroll suave no iOS */
    }

    /* Ajusta larguras das colunas no mobile */
    .products-table thead th:nth-child(1) {
        width: 22%;
    }

    .products-table thead th:nth-child(2) {
        width: 16%;
    }

    .products-table thead th:nth-child(3) {
        width: 10%;
    }

    .products-table thead th:nth-child(4) {
        width: 18%;
    }

    .products-table thead th:nth-child(5) {
        width: 10%;
    }

    .products-table thead th:nth-child(6) {
        width: 24%;
    }

    /* Ajusta coluna DATA */
    .data-col {
        font-size: 0.75rem;
        padding: 10px 5px;
    }

    .data-hora {
        font-size: 0.75rem;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-top: 3px;
        display: block;
    }

    /* Ajusta botões de ação */
    .acoes-col .acoes-wrapper {
        gap: 4px;
    }

    .action-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .action-button i {
        font-size: 14px;
    }

    /* Indicador de status responsivo */
    .status-indicator {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .status-indicator i {
        font-size: 0.7rem;
        margin-right: 3px;
    }
}

@media (max-width: 576px) {
    .stats-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .stats-cards-wrapper .stats-card:last-child {
        grid-column: span 1;
    }

    .stats-card {
        padding: 1rem;
    }

    .stats-value {
        font-size: 1.2rem;
    }

    .export-container {
        justify-content: center;
    }

    .products-table th,
    .products-table td {
        padding: 8px 5px;
    }

    .action-button::before {
        display: none;
        /* Remove tooltips no mobile */
    }

    /* Ajustes extras para telas muito pequenas */
    .page-title {
        font-size: 1.5rem;
    }

    .product-alert p {
        font-size: 0.8rem;
    }

    .produto-nome {
        font-size: 0.85rem;
    }

    .action-button {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .action-button i {
        font-size: 13px;
    }
}

/* Estilos adicionais para status badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(0, 128, 0, 0.2));
    color: #32CD32;
    border: 1px solid rgba(50, 205, 50, 0.3);
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.2);
}

.status-badge.expired {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.2));
    color: #DC143C;
    border: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.2);
}

/* Estilos para botões desabilitados */
.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Overlay de carregamento */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(173, 255, 47, 0.3);
    border-radius: 50%;
    border-top-color: #ADFF2F;
    animation: spin 1s infinite ease-in-out;
}

/* Toast de mensagens */
.mensagem-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 51, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.mensagem-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.mensagem-toast.success {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.9), rgba(0, 128, 0, 0.9));
    border-left: 4px solid #32CD32;
}

.mensagem-toast.error {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.9), rgba(139, 0, 0, 0.9));
    border-left: 4px solid #DC143C;
}

.mensagem-toast i {
    font-size: 18px;
}

/* Ajuste de espaçamento para o menu móvel */
.mobile-nav-menu .mobile-menu-button {
    margin-top: 10px;
    margin-bottom: 10px;
}

.mobile-nav-menu .mobile-menu-divider {
    margin: 5px 0;
}

/* Novo estilo para centralizar a section container */
.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================== */
/* ADIÇÕES P/ ACESSO RÁPIDO AO DASHBOARD */
/* ===================== */

/* 1) Título/Logo clicável mantém aparência */
.site-title,
.site-title a,
.site-title-mobile,
.site-title-mobile a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.site-title a:hover,
.site-title-mobile a:hover {
    text-shadow: 0 0 10px rgba(173, 255, 47, 0.6);
}

/* 2) CTA Desktop abaixo do título da página */
.return-dashboard-cta {
    width: 100%;
    max-width: 1000px;
    margin: -0.5rem auto 1.5rem auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
}

.return-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(173, 255, 47, 0.35);
    background: linear-gradient(135deg, rgba(0, 90, 0, 0.45), rgba(20, 120, 20, 0.45));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.return-dashboard-btn i {
    color: rgba(173, 255, 47, 0.95);
}

.return-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .3);
    background: linear-gradient(135deg, rgba(0, 110, 0, 0.55), rgba(30, 150, 30, 0.55));
}

/* 3) Botão fixo no mobile (barra inferior) */
.mobile-return-cta {
    display: none;
    /* só mostra no mobile */
}

@media (max-width: 768px) {
    .mobile-return-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(0, 40, 0, 0.0), rgba(0, 40, 0, 0.65) 40%, rgba(0, 40, 0, 0.85));
        display: flex;
        justify-content: center;
        z-index: 999;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .mobile-return-btn {
        width: 100%;
        max-width: 520px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid rgba(173, 255, 47, 0.35);
        background: linear-gradient(135deg, rgba(173, 255, 47, 0.25), rgba(64, 224, 208, 0.25));
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .mobile-return-btn i {
        color: rgba(173, 255, 47, 0.95);
        font-size: 1.05rem;
    }

    .mobile-return-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    }

    /* espaço de respiro no fim da página para não ficar escondido */
    .main-container {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* 4) Botão "Ir para Loja" dentro do vazio de produtos
      (já seguia o tema, mantemos só a harmonia) */
.no-products-message .shop-button {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.35), rgba(64, 224, 208, 0.35));
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.no-products-message .shop-button:hover {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.55), rgba(64, 224, 208, 0.55));
}

/* Botão Voltar às Compras */
.back-to-shop-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 2.5rem auto;
    width: 100%;
    max-width: 1000px;
    padding: 0 10px;
}

.back-to-shop-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.2), rgba(64, 224, 208, 0.2));
    border: 1px solid rgba(173, 255, 47, 0.3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.back-to-shop-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.back-to-shop-button:hover::before {
    left: 100%;
}

.back-to-shop-button:hover {
    background: linear-gradient(135deg, rgba(173, 255, 47, 0.3), rgba(64, 224, 208, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(173, 255, 47, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.back-to-shop-button i {
    color: rgba(173, 255, 47, 0.9);
    font-size: 16px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(173, 255, 47, 0.3));
}

.back-to-shop-button:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(173, 255, 47, 1);
    filter: drop-shadow(0 0 6px rgba(173, 255, 47, 0.6));
}

.back-to-shop-button span {
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Responsividade para o botão */
@media (max-width: 768px) {
    .back-to-shop-container {
        padding: 0 1rem;
        margin: 1rem auto 2rem auto;
    }

    .back-to-shop-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .back-to-shop-button i {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .back-to-shop-container {
        margin: 0.5rem auto 1.5rem auto;
    }

    .back-to-shop-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: 240px;
    }

    .back-to-shop-button i {
        font-size: 14px;
    }
}

.products-table tbody td {
    vertical-align: middle;
}

.products-table tbody tr {
    min-height: 70px;
}


/* 🔧 Correção final do alinhamento e preenchimento da última célula */
.products-table tbody tr {
    height: 68px;
    /* altura padronizada */
    vertical-align: middle;
    /* centraliza conteúdo */
}

.products-table tbody td {
    height: 68px;
    /* iguala a altura das células */
    vertical-align: middle;
}

/* 🔧 Garante que o fundo da linha cubra toda a extensão */
.products-table tbody tr td {
    background-clip: padding-box;
    /* evita cortes no fundo */
}


/* 🔧 Célula de ações agora se comporta como td normal */
.acoes-col {
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

/* 🔧 Novo container interno com o flex */
.acoes-col .acoes-wrapper {
    display: inline-flex;
    /* inline-flex ao invés de flex */
    justify-content: center;
    align-items: center;
    gap: 6px;
    /* Reduzido de 8px para 6px */
    flex-wrap: nowrap;
    /* Nunca quebra linha */
}


/* 🔧 Botões idênticos em altura e centralizados */
.action-button {
    width: 34px;
    /* Reduzido de 36px para 34px */
    height: 34px;
    /* Reduzido de 36px para 34px */
    min-width: 34px;
    /* Garante tamanho mínimo */
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Centraliza o texto "Ações" no cabeçalho */
.products-table thead th:nth-child(6) {
    text-align: center;
}

/* Indicador de status dos perfis */
.status-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.status-indicator.all-live {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(0, 128, 0, 0.2));
    border-color: rgba(76, 175, 80, 0.3);
}

.status-indicator.all-dead {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(139, 0, 0, 0.2));
    border-color: rgba(244, 67, 54, 0.3);
}

.status-indicator.mixed {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-color: rgba(255, 193, 7, 0.3);
}

/* Indicador de status dos perfis */
.status-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.status-indicator.all-live {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(0, 128, 0, 0.2));
    border-color: rgba(76, 175, 80, 0.3);
}

.status-indicator.all-dead {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(139, 0, 0, 0.2));
    border-color: rgba(244, 67, 54, 0.3);
}

.status-indicator.mixed {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-color: rgba(255, 193, 7, 0.3);
}