/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1a1a;
    padding: 0.5rem 0;
    border-bottom: 2px solid #c49a1f;
    font-size: 0.85rem;
    position: relative;
    z-index: 101;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    color: #c49a1f;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.back-to-site {
    color: #c49a1f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 1rem;
    background: rgba(196, 154, 31, 0.1);
    border: 1px solid #c49a1f;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-to-site:hover {
    background: #c49a1f;
    color: #000;
    transform: scale(1.05);
}

/* ===== HEADER ADMIN ===== */
.admin-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 3px solid #c49a1f;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '⚔️👑⚔️';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(15deg);
    pointer-events: none;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-header h1 {
    color: #c49a1f;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(196, 154, 31, 0.3);
}

.admin-header p {
    color: #888;
    font-size: 1.1rem;
    font-style: italic;
}

.admin-main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ===== TELA DE LOGIN ===== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
}

.login-modal {
    background: #111;
    border: 3px solid #c49a1f;
    border-radius: 30px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(196, 154, 31, 0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-modal::before {
    content: '⚔️👑⚔️';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: #111;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #c49a1f;
    color: #c49a1f;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-modal-header h2 {
    color: #c49a1f;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-modal-header p {
    color: #888;
    font-style: italic;
}

.login-form-admin {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form-admin .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form-admin .form-group label {
    color: #c49a1f;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form-admin .form-group input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form-admin .form-group input:focus {
    outline: none;
    border-color: #c49a1f;
    box-shadow: 0 0 15px rgba(196, 154, 31, 0.2);
}

.btn-login {
    background: #c49a1f;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: #e5b82b;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(196, 154, 31, 0.3);
}

.login-error {
    color: #ff4444;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    background: rgba(255, 68, 68, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ff4444;
}

.login-modal-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

/* ===== FILTROS DE CATEGORIA ===== */
.category-filters {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c49a1f;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.filters-header span i {
    margin-right: 0.5rem;
}

.clear-filters-btn {
    background: none;
    border: 1px solid #c49a1f;
    color: #c49a1f;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.clear-filters-btn:hover {
    background: #c49a1f;
    color: #000;
}

.category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-category-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-category-btn:hover {
    border-color: #c49a1f;
    color: #c49a1f;
    transform: translateY(-2px);
}

.filter-category-btn.active {
    background: #c49a1f;
    border-color: #c49a1f;
    color: #000;
}

.filter-category-btn i {
    font-size: 1rem;
}

.active-filter-info {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 0 0 0;
    border-top: 1px dashed #333;
}

.active-filter-info strong {
    color: #c49a1f;
}

/* ===== JSON TOOLBAR ===== */
.json-toolbar {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.json-toolbar-left {
    display: flex;
    align-items: center;
}

.json-status {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.json-toolbar-right {
    display: flex;
    gap: 1rem;
}

.json-btn {
    background: none;
    border: 1px solid #c49a1f;
    color: #c49a1f;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.json-btn:hover {
    background: #c49a1f;
    color: #000;
    transform: translateY(-2px);
}

.import-btn:hover {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #000;
}

.export-btn:hover {
    background: #2196F3;
    border-color: #2196F3;
    color: #000;
}

/* ===== PRODUCTS MANAGEMENT (CORRIGIDO) ===== */
.products-management {
    background: #111;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 2rem;
}

.products-management h2 {
    color: #c49a1f;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.category-section {
    margin-bottom: 2.5rem;
    background: #0f0f0f;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #c49a1f;
}

.category-title {
    color: #c49a1f;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

/* ===== ADMIN PRODUCT ITEM (CORRIGIDO) ===== */
.admin-product-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.admin-product-item:hover {
    border-color: #c49a1f;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(196, 154, 31, 0.1);
}

.admin-product-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #c49a1f;
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-product-item:hover::before {
    opacity: 1;
}

/* Informações do produto */
.admin-product-info {
    flex: 1;
    margin-bottom: 1rem;
    width: 100%;
}

.admin-product-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.admin-product-info p {
    color: #c49a1f;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.product-description {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    flex-wrap: wrap;
}

.product-description span {
    color: #666;
    font-size: 0.7rem;
    background: #222;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Container de ações (botões) */
.admin-product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Botões */
.edit-btn,
.delete-btn,
.indisponivel-btn {
    background: none;
    border: 1px solid #c49a1f;
    color: #c49a1f;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.edit-btn:hover {
    background: #c49a1f;
    color: #000;
}

.delete-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: #fff;
}

/* Botão indisponível */
.indisponivel-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

.indisponivel-btn.active {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.indisponivel-btn:hover {
    transform: translateY(-2px);
}

.indisponivel-btn.active:hover {
    background: #ff4444;
    color: #fff;
}

.indisponivel-btn:not(.active):hover {
    background: #4CAF50;
    color: #fff;
}

/* ===== ESTILOS PARA FLAG INDISPONÍVEL NO MODAL ===== */
.indisponivel-group {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c49a1f;
}

.checkbox-label {
    color: #e0e0e0 !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
    text-transform: none !important;
    cursor: pointer;
}

.checkbox-label strong {
    color: #ff4444;
}

.form-text {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.3rem;
    display: block;
}

/* Mensagem de nenhum produto */
.no-products {
    color: #666;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    background: #0f0f0f;
    border-radius: 5px;
    border: 1px dashed #333;
}

/* ===== MODAL PARA CRIAR/EDITAR ITENS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: #111;
    border: 3px solid #c49a1f;
    border-radius: 30px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(196, 154, 31, 0.3);
    animation: slideUpModal 0.4s ease;
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    color: #c49a1f;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal-btn:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c49a1f;
    border-radius: 3px;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-forjar-modal {
    background: #c49a1f;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-forjar-modal:hover {
    background: #e5b82b;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(196, 154, 31, 0.3);
}

.btn-cancelar-modal {
    background: none;
    border: 1px solid #666;
    color: #666;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancelar-modal:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* ===== BOTÃO FLUTUANTE PARA NOVO ITEM ===== */
.fab-forjar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #c49a1f;
    color: #000;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 154, 31, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.fab-forjar:hover {
    transform: scale(1.1) rotate(180deg);
    background: #e5b82b;
    box-shadow: 0 6px 20px rgba(196, 154, 31, 0.5);
}

.fab-forjar span {
    transition: all 0.3s;
}

.fab-forjar:hover span {
    transform: rotate(180deg);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 154, 31, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(196, 154, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 154, 31, 0); }
}

/* ===== FORMULÁRIO DO MODAL ===== */
.admin-product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #c49a1f;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c49a1f;
    box-shadow: 0 0 10px rgba(196, 154, 31, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    font-style: italic;
}

/* ===== PRÉVIA DA IMAGEM ===== */
.image-preview-section {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.image-preview-section label {
    color: #c49a1f;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-preview {
    width: 100%;
    min-height: 200px;
    background: #1a1a1a;
    border: 2px dashed #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
}

.image-preview:hover {
    border-color: #c49a1f;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.preview-placeholder {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.preview-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== FOOTER (NÃO USADO NO ADMIN, MAS MANTIDO PARA CONSISTÊNCIA) ===== */
footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #c49a1f;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #c49a1f;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.85rem;
}

/* ===== MEDIA QUERIES PARA DESKTOP (JÁ EXISTENTES) ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.8rem;
    }
    
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .admin-product-actions {
        flex-direction: column;
    }
    
    .edit-btn,
    .delete-btn,
    .indisponivel-btn {
        width: 100%;
        justify-content: center;
    }
    
    .json-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .json-toolbar-right {
        justify-content: stretch;
    }
    
    .json-btn {
        flex: 1;
        justify-content: center;
    }
    
    .filter-category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .fab-forjar {
        bottom: 1rem;
        right: 1rem;
    }
    
    .modal-container {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .btn-forjar-modal,
    .btn-cancelar-modal {
        width: 100%;
        justify-content: center;
    }

    /* FOOTER EM 2 COLUNAS PARA ADMIN */
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }

    .footer-section:nth-child(1),
    .footer-section:nth-child(3) {
        grid-column: 1 / 2;
    }

    .footer-section:nth-child(2),
    .footer-section:nth-child(4) {
        grid-column: 2 / 3;
    }
}

/* ===== NOVAS MEDIA QUERIES PARA MOBILE (APENAS PARA DISPOSITIVOS MÓVEIS) ===== */
@media (max-width: 480px) {
    /* Ajustes gerais */
    .admin-main {
        padding: 0 1rem;
    }
    
    /* Top bar mais compacto */
    .top-bar-content {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .top-bar-right {
        gap: 0.5rem;
    }
    
    .back-to-site {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Header admin mais compacto */
    .admin-header {
        padding: 1rem 0;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .admin-header p {
        font-size: 0.8rem;
    }
    
    /* Filtros de categoria */
    .category-filters {
        padding: 1rem;
    }
    
    .filters-header {
        font-size: 0.9rem;
    }
    
    .filter-category-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .clear-filters-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .active-filter-info {
        font-size: 0.8rem;
    }
    
    /* JSON Toolbar */
    .json-toolbar {
        padding: 1rem;
    }
    
    .json-status {
        font-size: 0.8rem;
    }
    
    .json-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Products management */
    .products-management {
        padding: 1rem;
    }
    
    .products-management h2 {
        font-size: 1.2rem;
    }
    
    .category-section {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .admin-product-item {
        padding: 0.8rem;
    }
    
    .admin-product-info h4 {
        font-size: 0.9rem;
    }
    
    .admin-product-info p {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.75rem;
    }
    
    .edit-btn,
    .delete-btn,
    .indisponivel-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Botão flutuante */
    .fab-forjar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Modal */
    .modal-container {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .btn-forjar-modal,
    .btn-cancelar-modal {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .image-preview-section {
        padding: 1rem;
    }
    
    .preview-placeholder span {
        font-size: 2rem;
    }
    
    .preview-placeholder p {
        font-size: 0.7rem;
    }
    
    .checkbox-wrapper {
        gap: 0.5rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem !important;
    }

    /* FOOTER EM 2 COLUNAS PARA ADMIN */
    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 0.85rem;
    }

    .footer-section ul li a {
        font-size: 0.75rem;
    }
}

/* Ajustes para telas muito pequenas (menos de 360px) */
@media (max-width: 360px) {
    .admin-header h1 {
        font-size: 1.1rem;
    }
    
    .filter-category-btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .json-toolbar-right {
        flex-direction: column;
        width: 100%;
    }
    
    .json-btn {
        width: 100%;
    }
}