* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-link:hover { transform: translateX(5px); }

.header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(219, 0, 87, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.header-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #db0057, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ─── BANNER ─────────────────────────────────────────────── */

.banner-section {
    padding-top: 75px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: block;
}

.banner-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    display: block;
}

.banner-imagem-fixa {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── SEÇÃO PRODUTOS ─────────────────────────────────────── */

.produtos-section {
    padding: 50px 20px 80px;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #db0057, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

/* ─── CARD ───────────────────────────────────────────────── */

.produto-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.produto-card:hover {
    transform: translateY(-8px);
    border-color: rgba(219, 0, 87, 0.5);
    box-shadow: 0 15px 40px rgba(219, 0, 87, 0.2);
}

.produto-imagem {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
    display: block;
}

.produto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produto-nome {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.produto-descricao {
    color: #b8b8d1;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.produto-preco {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #db0057, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.produto-estoque {
    color: #25d366;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.produto-estoque.baixo   { color: #ff9800; }
.produto-estoque.esgotado { color: #f44336; }

.produto-botoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.btn-produto {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.btn-produto.bloqueado {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.btn-produto.bloqueado::after {
    content: '';
}

.btn-detalhes {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-detalhes:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5); }

.btn-mercadolivre {
    background: linear-gradient(135deg, #fff159, #ffe600);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.3);
}

.btn-mercadolivre:not(.bloqueado):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 230, 0, 0.5); }

.btn-shopee {
    background: linear-gradient(135deg, #ff6347, #ee4d2d);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.3);
}

.btn-shopee:not(.bloqueado):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5); }

.btn-whatsapp {
    background: linear-gradient(135deg, #2ecc71, #25d366);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:not(.bloqueado):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }

/* ─── EMPTY STATE ────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #b8b8d1;
    grid-column: 1 / -1;
}

.empty-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }

.empty-state h3 { font-size: 1.4rem; margin-bottom: 10px; color: #ffffff; }

/* ─── MODAL ──────────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.close { color: #aaa; float: right; font-size: 26px; font-weight: bold; cursor: pointer; line-height: 20px; }
.close:hover { color: #fff; }

/* ─── FORMULÁRIOS ────────────────────────────────────────── */

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b8b8d1;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(219, 0, 87, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group small { display: block; margin-top: 5px; color: #808080; font-size: 0.82rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ─── UPLOAD ─────────────────────────────────────────────── */

.upload-area-multi {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
}

.upload-area-multi:hover { border-color: rgba(219, 0, 87, 0.5); background: rgba(255, 255, 255, 0.05); }
.upload-area-multi.dragover { border-color: #25d366; background: rgba(37, 211, 102, 0.1); }
.upload-content-multi { pointer-events: none; }

.imagens-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.imagem-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.imagem-preview-item.capa { border-color: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

.imagem-preview-item img { width: 100%; height: 140px; object-fit: cover; display: block; }

.imagem-preview-badges {
    position: absolute;
    top: 6px; left: 6px; right: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-capa {
    background: linear-gradient(135deg, #25d366, #2ecc71);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-remover-img {
    background: rgba(244, 67, 54, 0.95);
    color: white;
    border: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remover-img:hover { background: #f44336; transform: scale(1.1); }

.imagem-preview-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 8px;
    text-align: center;
}

.btn-definir-capa {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-definir-capa:hover { background: rgba(37, 211, 102, 0.3); border-color: #25d366; }

/* ─── BOTÕES GERAIS ──────────────────────────────────────── */

.btn { padding: 12px 30px; border: none; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; }

.btn-primary { background: linear-gradient(135deg, #db0057, #8a2be2); color: white; width: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(219, 0, 87, 0.4); }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 2px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.error-message { color: #f44336; margin-top: 12px; text-align: center; font-weight: 600; font-size: 0.9rem; }

/* ─── PAINEL ADMIN ───────────────────────────────────────── */

.admin-panel {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    overflow-y: auto;
    padding: 20px;
}

.admin-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 0 auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
}

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 15px; }

.admin-header h2 {
    background: linear-gradient(135deg, #db0057, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.admin-tabs { display: flex; gap: 8px; margin-bottom: 25px; border-bottom: 2px solid rgba(255, 255, 255, 0.1); flex-wrap: wrap; }

.tab-btn { padding: 10px 20px; background: transparent; border: none; color: #b8b8d1; cursor: pointer; font-weight: 600; transition: all 0.3s ease; border-bottom: 3px solid transparent; font-size: 0.9rem; }
.tab-btn.active { color: #db0057; border-bottom-color: #db0057; }
.tab-btn:hover  { color: #ffffff; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.lista-produtos { display: flex; flex-direction: column; gap: 12px; }

.produto-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
}

.produto-item-info h4 { color: #ffffff; margin-bottom: 4px; }
.produto-item-info p  { color: #b8b8d1; font-size: 0.85rem; }
.produto-item-acoes   { display: flex; gap: 8px; flex-shrink: 0; }

.btn-editar, .btn-deletar { padding: 8px 16px; border: none; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: all 0.3s ease; white-space: nowrap; }
.btn-editar  { background: #2196F3; color: white; }
.btn-editar:hover  { background: #1976D2; }
.btn-deletar { background: #f44336; color: white; }
.btn-deletar:hover { background: #d32f2f; }

/* ─── FOOTER ─────────────────────────────────────────────── */

footer { text-align: center; padding: 25px 20px; color: #808080; font-size: 0.9rem; }

/* ─── MODAL AVISO ────────────────────────────────────────── */

.aviso-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.aviso-modal.show { display: flex; justify-content: center; align-items: center; padding: 20px; }

.aviso-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(219, 0, 87, 0.4);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 580px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: slideIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.aviso-close {
    position: absolute;
    top: 12px; right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.6rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviso-close:hover { background: rgba(244, 67, 54, 0.3); border-color: #f44336; transform: rotate(90deg); }

.aviso-modal-content .aviso-icon { font-size: 3.5rem; margin-bottom: 20px; animation: bounce 2s infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.aviso-modal-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #db0057, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.aviso-modal-content p { color: #d0d0e0; line-height: 1.8; font-size: 1rem; margin-bottom: 15px; }
.aviso-modal-content strong { color: #ffffff; font-weight: 700; }
.aviso-destaque { color: #25d366 !important; font-weight: 700; font-size: 1.05rem !important; }

.btn-entendi {
    background: linear-gradient(135deg, #db0057, #8a2be2);
    color: white;
    border: none;
    padding: 14px 45px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(219, 0, 87, 0.4);
}

.btn-entendi:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(219, 0, 87, 0.6); }

/* ─── COOKIES ────────────────────────────────────────────── */

.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top: 2px solid rgba(219, 0, 87, 0.3);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show { transform: translateY(0); }

.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 250px; }
.cookie-text h4 { color: #ffffff; font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.cookie-text p  { color: #b8b8d1; font-size: 0.9rem; line-height: 1.5; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept, .btn-cookie-reject { padding: 10px 25px; border: none; border-radius: 25px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-size: 0.95rem; white-space: nowrap; }
.btn-cookie-accept { background: linear-gradient(135deg, #25d366, #2ecc71); color: white; }
.btn-cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
.btn-cookie-reject { background: rgba(255, 255, 255, 0.1); color: white; border: 2px solid rgba(255, 255, 255, 0.2); }
.btn-cookie-reject:hover { background: rgba(255, 255, 255, 0.2); }

/* ─── RESPONSIVO MOBILE ──────────────────────────────────── */

@media (max-width: 768px) {
    header { padding: 12px 16px; }
    .header-logo { width: 36px; height: 36px; }
    .header-name { font-size: 1.2rem; letter-spacing: 2px; }
    .admin-btn   { padding: 8px 14px; font-size: 0.82rem; }

    .banner-section  { padding-top: 65px; }
    .banner-container { max-height: 180px; }

    .produtos-section { padding: 25px 12px 60px; }
    .section-title    { font-size: 1.8rem; margin-bottom: 25px; }

    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .produto-imagem { height: 200px; }

    .form-row { grid-template-columns: 1fr; }

    .admin-panel  { padding: 10px; }
    .admin-content { padding: 18px 14px; }
    .admin-header { flex-direction: column; align-items: flex-start; }

    .produto-item { flex-direction: column; align-items: flex-start; }
    .produto-item-acoes { width: 100%; }
    .btn-editar, .btn-deletar { flex: 1; text-align: center; }

    .aviso-modal-content { padding: 30px 18px; }
    .aviso-modal-content h2 { font-size: 1.3rem; }

    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; }
    .btn-cookie-accept, .btn-cookie-reject { flex: 1; }
}

@media (max-width: 400px) {
    .header-name  { font-size: 1rem; letter-spacing: 1px; }
    .section-title { font-size: 1.4rem; }
    .produto-nome  { font-size: 1.2rem; }
    .produto-preco { font-size: 1.5rem; }
}