/* =================================================================== */
/* ARQUIVO DE ESTILO UNIFICADO E FINAL                                 */
/* =================================================================== */
/* 1. Reset e Configurações Globais                                    */
/* 2. Páginas de Login e Cadastro                                      */
/* 3. Página Principal de Vendas (Layout Original Restaurado)          */
/* 4. Página do Carrinho e Contador                                    */
/* 5. Menu de Usuário (Dropdown)                                       */
/* 6. Página de Endereços                                              */
/* 7. Rodapé e Modal de Créditos                                       */
/* 8. Estilos Adicionais do Modal (Clientes)                           */
/* 9. Estilos da Calculadora de Frete                                  */
/* 10. Estilos da Página de Detalhes de Produto                        */
/* 11. Estilos da Navegação de Categorias                              */
/* 12. Estilos do Checkout e Páginas de Status                         */
/* 13. Estilos da Página de Pedidos                                    */
/* 14. Estilos da Área Administrativa                                  */
/* 15. Estilos de Edição para Admin (Frontend)                         */
/* =================================================================== */

/* 1. RESET E CONFIGURAÇÕES GLOBAIS */
:root {
    --orange-primary: #ff6b00;
    --orange-secondary: #ff8c33;
    --dark-bg-primary: #0d0d0f;
    --dark-bg-secondary: #1a1a1c;
    --dark-surface: #252528;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
}
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--dark-bg-primary);
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2. PÁGINAS DE LOGIN E CADASTRO */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 0;
}
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ff7e00, #c300ff, #007bff, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
    z-index: -1;
    filter: blur(100px);
}
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.login-container {
    perspective: 1200px;
}
.login-box {
    width: 380px;
    padding: 50px 40px;
    background: rgba(20, 20, 22, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
    transition: transform 0.4s ease-out;
}
.login-container:hover .login-box {
    transform: translateZ(20px);
}
.logo-container {
    margin-bottom: 30px;
}
.logo-container h1 {
    font-size: 2rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
    letter-spacing: 2px;
}
.input-group {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group:focus-within {
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}
.input-group i {
    padding: 0 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.input-group:focus-within i {
    color: var(--orange-primary);
}
.input-group input {
    width: 100%;
    padding: 15px 15px 15px 0;
    font-size: 1rem;
    color: #fff;
    border: none;
    background: transparent;
    outline: none;
}
.input-group input::placeholder {
    color: #888;
    font-family: 'Poppins', sans-serif;
}
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--orange-primary), var(--orange-secondary));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
    margin-top: 10px;
}
.btn-login:hover, .btn-login:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}
.alternative-action {
    margin-top: 30px;
    font-size: 0.9em;
    color: var(--text-secondary);
}
.alternative-action a {
    color: var(--orange-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.alternative-action a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(255, 130, 35, 0.7);
}
.error-message-box {
    margin-bottom: 20px;
    background-color: #581a1a;
    padding: 10px;
    border-radius: 8px;
    color: #ffc1c1;
    border: 1px solid #a82c2c;
}
.error-message-box p {
    margin: 0;
}
.success-message-box {
    margin-bottom: 20px;
    background-color: #1a582d;
    padding: 10px;
    border-radius: 8px;
    color: #c1ffda;
    border: 1px solid #2ca852;
}

/* 3. PÁGINA PRINCIPAL DE VENDAS (LAYOUT ORIGINAL RESTAURADO) */
body {
    padding-top: 135px;
}
.main-header {
    width: 100%;
    background: rgba(26, 26, 28, 0.85);
    padding: 10px 5%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    gap: 20px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.logo-link:hover {
    transform: scale(1.05);
}
.logo-text {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}
.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 650px;
}
.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #444;
    border-right: none;
    border-radius: 25px 0 0 25px;
    background-color: var(--dark-surface);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}
.search-bar input:focus {
    background-color: #333;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.2);
}
.search-bar button {
    padding: 12px 20px;
    border: none;
    background-color: var(--orange-primary);
    color: #fff;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--orange-secondary);
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.welcome-message {
    color: var(--text-secondary);
    white-space: nowrap;
}
.action-icon {
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}
.action-icon:hover {
    color: var(--orange-primary);
    transform: scale(1.1);
}
.logout-btn {
    color: var(--text-primary);
    background-color: var(--dark-surface);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.logout-btn:hover {
    background-color: var(--orange-primary);
    color: #fff;
}
.btn-admin-nav {
    background-color: var(--dark-surface);
    border: 1px solid var(--orange-primary);
    color: var(--orange-primary);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-admin-nav:hover {
    background-color: var(--orange-primary);
    color: #fff;
}
.main-content {
    animation: fadeIn 0.5s ease-in-out;
    min-height: calc(100vh - 220px);
}
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?q=80&w=2070') no-repeat center center/cover;
    animation: fadeIn 1s ease-out;
}
.hero-content {
    animation: slideUp 1s ease-out forwards;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 10px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
}
.hero-content p {
    font-size: 1.2rem;
    margin: 0 0 20px;
    font-weight: 300;
    opacity: 0.9;
}
.hero-button {
    background: var(--orange-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
}
.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6);
}
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--orange-primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.product-card {
    background-color: var(--dark-surface);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.5);
}
.product-card-link-image, .product-card-link-title {
    text-decoration: none;
    color: inherit;
}
.product-image-container {
    width: 100%;
    height: 220px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    padding: 10px;
}
.product-card:hover .product-image-container img {
    transform: scale(1.1);
}
.product-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}
.product-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    height: 45px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--orange-primary);
}
.product-price span {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 5px;
}
.product-actions {
    padding: 0 20px 20px;
}
.btn-buy {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--orange-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-buy:hover {
    background: var(--orange-secondary);
    transform: scale(1.05);
}
.btn-buy .fas {
    margin-right: 8px;
}

/* 4. PÁGINA DO CARRINHO E CONTADOR */
.cart-icon-wrapper { position: relative; display: inline-block; }
.cart-counter { position: absolute; top: -8px; right: -10px; background-color: red; color: white; border-radius: 50%; padding: 1px 6px; font-size: 0.75rem; font-weight: 700; border: 2px solid var(--dark-bg-secondary); }
.cart-container { padding-top: 20px; padding-bottom: 40px; }
.empty-cart-message { text-align: center; padding: 60px 20px; background-color: var(--dark-surface); border-radius: 12px; }
.empty-cart-message h3 { font-size: 1.8rem; margin-bottom: 10px; }
.empty-cart-message p { color: var(--text-secondary); margin-bottom: 30px; }
.empty-cart-message .hero-button { text-decoration: none; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: flex-start; }
.cart-items-and-shipping { display: flex; flex-direction: column; gap: 30px; }
.cart-table { width: 100%; border-collapse: collapse; background-color: var(--dark-surface); border-radius: 12px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.cart-table th { background-color: rgba(0,0,0,0.2); font-weight: 600; }
.cart-table tbody tr:last-child td { border-bottom: none; }
.product-image-cell img { width: 80px; height: 80px; object-fit: contain; background-color: #fff; border-radius: 8px; padding: 5px; }
.remove-btn { color: var(--text-secondary); font-size: 1.2rem; transition: color 0.3s; text-decoration: none; }
.remove-btn:hover { color: #ff4d4d; }
.cart-summary { background-color: var(--dark-surface); padding: 25px; border-radius: 12px; position: sticky; top: 155px; }
.cart-summary h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.summary-row, .summary-total { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1rem; }
.summary-row span:first-child { color: var(--text-secondary); }
.summary-total { font-size: 1.2rem; font-weight: 600; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.checkout-btn { width: 100%; margin-top: 10px; font-size: 1.1rem; padding: 15px; display: block; text-align: center; text-decoration: none; }
.checkout-btn.disabled { background: #555 !important; pointer-events: none; cursor: not-allowed; color: #999 !important; }

/* 5. MENU DE USUÁRIO (DROPDOWN) */
.profile-dropdown { position: relative; display: inline-block; }
.dropdown-content { display: block; position: absolute; background-color: var(--dark-surface); min-width: 180px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 1001; border-radius: 8px; border: 1px solid var(--border-color); right: 0; top: calc(100% + 15px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s ease, visibility 0s 0.3s, transform 0.3s ease; }
.dropdown-content.show { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.dropdown-content a { color: var(--text-secondary); padding: 12px 16px; text-decoration: none; display: block; text-align: left; font-size: 0.95rem; transition: background-color 0.2s, color 0.2s; }
.dropdown-content a:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.dropdown-content a:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.dropdown-content a:hover { background-color: var(--orange-primary); color: #fff; }

/* 6. PÁGINA DE ENDEREÇOS */
.address-card { background-color: var(--dark-surface); padding: 25px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid var(--orange-primary); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.address-info { flex-grow: 1; }
.address-info p { margin: 0; line-height: 1.6; color: var(--text-secondary); }
.address-info p strong { color: var(--text-primary); font-size: 1.1em; }
.address-actions a { color: var(--text-secondary); margin-left: 20px; text-decoration: none; transition: color 0.3s; font-size: 0.9em; }
.address-actions a:hover { color: var(--orange-primary); }
.address-actions a .fas { margin-right: 5px; }
.add-address-btn { display: inline-block; background: linear-gradient(45deg, var(--orange-primary), var(--orange-secondary)); color: #fff; padding: 12px 25px; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.add-address-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.add-address-btn .fas { margin-right: 8px; }
.address-form-container { background-color: var(--dark-surface); padding: 30px 40px; border-radius: 12px; margin-bottom: 40px; border-top: 4px solid var(--orange-primary); animation: fadeIn 0.5s ease; }
.address-form-container h3 { margin-top: 0; font-size: 1.8rem; }
.form-row { display: flex; gap: 20px; width: 100%; flex-wrap: wrap; }
.form-row .form-group { flex: 1 1 200px; }
.form-group { margin-bottom: 20px; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-secondary); }
.form-group input { width: 100%; padding: 12px; font-size: 1rem; background-color: var(--dark-bg-secondary); border: 1px solid #444; border-radius: 8px; color: var(--text-primary); transition: all 0.3s; }
.form-group input:focus { outline: none; border-color: var(--orange-primary); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.3); }
.form-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 20px; }
.btn-save, .btn-cancel { padding: 10px 25px; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s; }
.btn-save { background: var(--orange-primary); color: #fff; }
.btn-save:hover { background: var(--orange-secondary); }
.btn-cancel { background-color: #444; color: var(--text-primary); text-decoration: none; }
.btn-cancel:hover { background-color: #555; }

/* 7. RODAPÉ E MODAL DE CRÉDITOS */
.site-footer { background-color: var(--dark-bg-primary); color: var(--text-secondary); text-align: center; padding: 25px 20px; margin-top: 50px; border-top: 1px solid var(--border-color); font-size: 0.9em; }
.footer-link { color: var(--orange-primary); font-weight: 500; text-decoration: none; transition: color 0.3s; cursor: pointer; }
.footer-link:hover { color: var(--orange-secondary); text-decoration: underline; }
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content { background-color: var(--dark-surface); margin: auto; padding: 30px; border: 1px solid var(--border-color); width: 90%; max-width: 500px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5); position: relative; animation: zoomIn 0.4s ease-out; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; }
.modal-header h2 { margin: 0; color: var(--orange-primary); }
.modal-close { color: var(--text-secondary); font-size: 28px; font-weight: bold; transition: color 0.3s; }
.modal-close:hover, .modal-close:focus { color: #fff; text-decoration: none; cursor: pointer; }
.modal-body ul { list-style: none; padding: 0; margin: 0; }
.modal-body li { padding: 8px 0; color: var(--text-secondary); }
.modal-body li strong { color: var(--text-primary); min-width: 180px; display: inline-block; }
.modal-body hr { border: none; height: 1px; background-color: var(--border-color); margin: 20px 0; }
.contact-info p { margin: 10px 0; color: var(--text-secondary); display: flex; align-items: center; }
.contact-info .fas { color: var(--orange-primary); margin-right: 12px; width: 20px; text-align: center; }

/* 8. ESTILOS ADICIONAIS DO MODAL (CLIENTES) */
.modal-subtitle { color: var(--orange-secondary); font-size: 1.1rem; font-weight: 600; margin-top: 20px; margin-bottom: 15px; }
.client-list { list-style: none; padding: 0; margin: 0; columns: 2; -webkit-columns: 2; -moz-columns: 2; }
.client-list li { padding: 6px 0; display: flex; align-items: center; }
.client-list .fas { color: var(--orange-primary); margin-right: 10px; }

/* 9. ESTILOS DA CALCULADORA DE FRETE */
.shipping-calculator { background-color: var(--dark-surface); padding: 25px; border-radius: 12px; }
.shipping-calculator h4 { margin: 0 0 20px 0; font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; }
.shipping-calculator h4 .fas { color: var(--orange-primary); margin-right: 12px; }
.shipping-form { display: flex; gap: 10px; margin-bottom: 20px; }
.shipping-form input { flex-grow: 1; padding: 12px; font-size: 1rem; background-color: var(--dark-bg-secondary); border: 1px solid #444; border-radius: 8px; color: var(--text-primary); transition: all 0.3s; }
.shipping-form input:focus { outline: none; border-color: var(--orange-primary); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.3); }
.shipping-form button { padding: 12px 20px; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; background: var(--orange-primary); color: #fff; transition: all 0.3s; }
.shipping-form button:hover { background: var(--orange-secondary); }
.saved-addresses { font-size: 0.9em; color: var(--text-secondary); }
.saved-addresses p { margin: 0 0 10px; }
.saved-addresses ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 15px; }
.saved-addresses a { color: var(--orange-secondary); text-decoration: none; font-weight: 500; }
.saved-addresses a:hover { text-decoration: underline; }
.shipping-options { margin-top: 25px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.shipping-options h5 { margin: 0 0 15px; font-size: 1.1rem; }
.shipping-options ul { list-style: none; padding: 0; margin: 0; }
.shipping-options li { background-color: var(--dark-bg-secondary); margin-bottom: 10px; border-radius: 8px; border: 2px solid transparent; transition: border-color 0.3s; }
.shipping-options li.selected { border-color: var(--orange-primary); }
.shipping-options li a { display: block; padding: 15px; text-decoration: none; color: var(--text-primary); }
.shipping-options li span { display: block; font-size: 0.9em; color: var(--text-secondary); margin-top: 4px; }
.error-message { color: #ff6b6b; }

/* 10. ESTILOS DA PÁGINA DE DETALHES DE PRODUTO */
.product-detail-container { padding-top: 40px; }
.product-detail-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; align-items: flex-start; }
.product-image-column .product-gallery { background-color: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.product-image-column .product-gallery img { width: 100%; height: auto; object-fit: contain; max-height: 500px; }
.product-info-column h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin: 0 0 15px 0; }
.product-info-column p.product-description-short { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 30px; }
.product-price-detail { font-size: 2.8rem; font-weight: 700; color: var(--orange-primary); margin-bottom: 30px; }
.product-actions-detail { display: flex; flex-wrap: wrap; gap: 15px; }
.product-actions-detail form { flex-grow: 1; min-width: 200px; }
.btn-buy-now, .btn-add-cart { width: 100%; padding: 15px; font-size: 1.1rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; transition: all 0.3s; }
.btn-buy-now { background: linear-gradient(45deg, var(--orange-primary), var(--orange-secondary)); color: #fff; box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3); }
.btn-buy-now:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5); }
.btn-add-cart { background-color: var(--dark-surface); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-add-cart:hover { border-color: var(--orange-primary); color: var(--orange-primary); }
.btn-add-cart .fas { margin-right: 10px; }
.specs-section { margin-top: 60px; border-top: 1px solid var(--border-color); padding-top: 40px; }
.specs-toggle-btn { background-color: var(--dark-surface); color: var(--text-primary); border: 1px solid var(--border-color); width: 100%; padding: 15px; font-size: 1.1rem; font-weight: 500; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.specs-toggle-btn:hover { border-color: var(--orange-primary); color: var(--orange-primary); }
.specs-toggle-btn .fas { transition: transform 0.3s ease; }
.specs-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; background-color: var(--dark-surface); margin-top: -8px; border-radius: 0 0 8px 8px; border: 1px solid var(--border-color); border-top: none; }
.specs-content.show { max-height: 1000px; transition: max-height: 0.5s ease-in; }
.specs-content ul { list-style: none; padding: 30px; margin: 0; }
.specs-content li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 1rem; flex-wrap: wrap; gap: 10px; }
.specs-content li:last-child { border-bottom: none; }
.specs-content li strong { color: var(--text-primary); margin-right: 15px; }

/* 11. NAVEGAÇÃO DE CATEGORIAS */
.category-nav { width: 100%; padding-top: 5px; }
.category-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 40px; }
.category-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; padding: 5px 0; position: relative; transition: color 0.3s; font-size: 0.9rem; }
.category-nav a:hover { color: var(--orange-primary); }
.category-nav a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 50%; border-radius: 2px; background-color: var(--orange-primary); transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.category-nav a:hover::after { width: 100%; left: 0; }

/* 12. ESTILOS DO CHECKOUT E PÁGINAS DE STATUS */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: flex-start; }
.checkout-box { background-color: var(--dark-surface); padding: 25px; border-radius: 12px; margin-bottom: 25px; }
.checkout-box h3 { margin: 0 0 20px 0; font-size: 1.3rem; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.checkout-box h3 .fas { color: var(--orange-primary); margin-right: 10px; }
.address-option, .payment-option { display: block; margin-bottom: 15px; }
.address-option input, .payment-option input { display: none; }
.address-option-card, .payment-option-card { padding: 20px; border: 2px solid #444; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.address-option input:checked + .address-option-card, .payment-option input:checked + .payment-option-card { border-color: var(--orange-primary); background-color: rgba(255, 107, 0, 0.1); }
.address-option-card p { margin: 4px 0 0; color: var(--text-secondary); }
.payment-option-card { display: flex; align-items: center; font-weight: 500; }
.payment-option-card .fas { font-size: 1.5rem; margin-right: 15px; color: var(--orange-secondary); }
.order-items-summary .order-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 0.9em; }
.order-items-summary img { width: 50px; height: 50px; object-fit: contain; border-radius: 6px; background: #fff; padding: 5px;}
.order-items-summary .item-name { flex-grow: 1; }
.order-items-summary .item-price { font-weight: 500; }
.success-container { background-color: var(--dark-surface); border-radius: 12px; padding: 50px; text-align: center; margin: 40px auto; max-width: 700px; }
.success-icon { font-size: 5rem; color: #2ca852; margin-bottom: 20px; }
.success-container h2 { font-size: 2.5rem; margin: 0 0 10px; }
.success-container p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; }
.success-address { background-color: var(--dark-bg-secondary); padding: 15px; border-radius: 8px; margin: 25px 0; color: var(--text-primary); display: inline-block; }
.success-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* 13. ESTILOS DA PÁGINA DE PEDIDOS */
.order-list { max-width: 900px; margin: 0 auto; }
.order-card { background-color: var(--dark-surface); border: 1px solid var(--border-color); border-left: 4px solid var(--orange-primary); border-radius: 8px; margin-bottom: 20px; position: relative; overflow: visible; }
.order-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding: 15px 20px; background-color: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); }
.order-header-left strong { font-size: 1.2rem; }
.order-header-left span { font-size: 0.9em; color: var(--text-secondary); display: block; }
.order-status { text-align: right; }
.order-status span { font-weight: 600; padding: 5px 10px; border-radius: 20px; font-size: 0.85em; color: #fff; }
.status-processando { background-color: #e67e22; }
.status-cancelado { background-color: #c0392b; }
.status-enviado { background-color: #27ae60; }
.status-entregue { background-color: #2980b9; }
.order-body { padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.order-body-left p { margin: 0 0 5px; }
.order-body-left p:last-child { margin-bottom: 0; }
.cancel-order-btn { display: inline-block; background-color: transparent; color: #e74c3c; border: 1px solid #e74c3c; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.9em; white-space: nowrap; transition: all 0.3s; }
.cancel-order-btn:hover { background-color: #e74c3c; color: #fff; transform: translateY(-2px); }
.cancel-order-btn .fas { margin-right: 6px; }
.delete-order-btn { position: absolute; top: 15px; right: -35px; color: #e74c3c; font-size: 1.4rem; text-decoration: none; transition: all 0.3s ease; padding: 5px; }
.delete-order-btn:hover { color: #ff4d4d; transform: scale(1.2) rotate(10deg); }

/* 14. ESTILOS DA ÁREA ADMINISTRATIVA */
.admin-body { background-color: #2c3e50; padding-top: 0; }
.admin-container { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background-color: #34495e; color: #ecf0f1; padding: 20px; flex-shrink: 0; }
.admin-sidebar h3 { text-align: center; font-size: 1.5rem; margin: 0 0 30px 0; color: var(--orange-primary); }
.admin-sidebar nav a { display: block; color: #ecf0f1; text-decoration: none; padding: 12px 15px; margin-bottom: 8px; border-radius: 6px; transition: background-color 0.3s; }
.admin-sidebar nav a .fas { margin-right: 12px; width: 20px; }
.admin-sidebar nav a:hover { background-color: #46627f; }
.admin-sidebar nav a.active { background-color: var(--orange-primary); color: #fff; font-weight: 600; }
.admin-content { flex-grow: 1; padding: 30px; background-color: #ecf0f1; color: #34495e; }
.admin-header { margin-bottom: 30px; }
.admin-header h1 { margin: 0; font-size: 2.2rem; }
.admin-header p { margin: 5px 0 0; color: #7f8c8d; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.stat-card { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.stat-card h4 { margin: 0 0 10px 0; font-size: 1rem; color: #7f8c8d; }
.stat-card p { margin: 0; font-size: 2.5rem; font-weight: 600; color: var(--orange-primary); }
.admin-table-container { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow-x: auto;}
.admin-table-container table { width: 100%; border-collapse: collapse; }
.admin-table-container th, .admin-table-container td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; white-space: nowrap; }
.admin-table-container th { font-weight: 600; }
.admin-table-container tbody tr:hover { background-color: #f9f9f9; }
.status-form { display: flex; gap: 5px; }
.status-form select { padding: 5px; border: 1px solid #ccc; border-radius: 4px; }
.status-form button { padding: 5px 10px; border: none; border-radius: 4px; background-color: #2980b9; color: white; cursor: pointer; }
.status-form button:hover { background-color: #3498db; }
.admin-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.btn-admin-add { background: var(--orange-primary); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-admin-add:hover { background: var(--orange-secondary); transform: translateY(-2px); }
.table-product-img { width: 60px; height: 60px; object-fit: contain; background-color: #f8f8f8; border: 1px solid #ddd; border-radius: 4px; padding: 5px; }
.table-actions { display: flex; gap: 10px; }
.table-actions a { font-size: 1rem; padding: 8px 10px; border-radius: 4px; color: #fff; }
.action-btn-edit { background-color: #2980b9; }
.action-btn-edit:hover { background-color: #3498db; }
.action-btn-delete { background-color: #c0392b; }
.action-btn-delete:hover { background-color: #e74c3c; }
.admin-form-container { background-color: #fff; padding: 30px; border-radius: 8px; }
.admin-form-container small { display: block; margin-top: 5px; color: #7f8c8d; }

/* 15. ESTILOS DE EDIÇÃO PARA ADMIN (FRONTEND) */
.product-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--orange-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    z-index: 5;
}
.admin-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(45, 52, 54, 0.7);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-decoration: none;
}
.admin-edit-link:hover {
    background-color: var(--orange-primary);
    transform: scale(1.1);
}
.product-info-column {
    position: relative;
}
.product-info-column .product-category-detail {
    display: inline-block;
    background-color: var(--dark-surface);
    color: var(--orange-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 15px;
}
.admin-edit-link-inline { 
    display: inline-block;
    background-color: var(--dark-surface);
    color: var(--orange-primary);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.admin-edit-link-inline:hover {
    background-color: var(--orange-primary);
    color: #fff;
    border-color: var(--orange-primary);
}
.admin-edit-link-inline .fas {
    margin-right: 6px;
}