/*
=========================================================
 NANCY NOVIDADES - DESIGN SYSTEM
 FASE 1 - VISUAL
=========================================================
*/

:root{
    --primary:#ff5a00;
    --primary-dark:#e64d00;
    --primary-light:#ff7a00;

    --bg:#f5f7fa;
    --surface:#ffffff;
    --surface-soft:#fafafa;

    --text:#202124;
    --muted:#6b7280;

    --border:#e5e7eb;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#d97706;

    --shadow-sm:0 2px 8px rgba(0,0,0,.06);
    --shadow:0 8px 30px rgba(0,0,0,.08);
    --radius:14px;

    --max-width:1240px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(circle at top left,rgba(255,90,0,.05),transparent 35%),
        var(--bg) !important;

    color:var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif !important;

    line-height:1.5;
}

/* ======================================================
   LINKS
====================================================== */

a{
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* ======================================================
   HEADER
====================================================== */

header{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        ) !important;

    box-shadow:
        0 5px 25px rgba(255,90,0,.20) !important;

    backdrop-filter:blur(10px);
}

.header{
    max-width:var(--max-width) !important;
    min-height:64px;
}

.logo{
    letter-spacing:-.5px;
    text-shadow:0 2px 5px rgba(0,0,0,.12);
}

/* ======================================================
   CONTAINERS
====================================================== */

.container,
main,
section{
    max-width:var(--max-width);
}

/* ======================================================
   BUTTONS
====================================================== */

button,
.btn,
a.button,
a.btn,
input[type="submit"],
input[type="button"]{
    border-radius:10px !important;
    border:none;
    cursor:pointer;

    font-weight:700;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

button:hover,
.btn:hover,
a.button:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
    transform:translateY(-1px);
    box-shadow:0 7px 18px rgba(0,0,0,.12);
}

button:active,
.btn:active,
a.button:active,
a.btn:active{
    transform:translateY(0);
}

/* ======================================================
   CARDS
====================================================== */

.card,
.box,
.product,
.produto,
.item,
.panel,
.dashboard-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.card:hover,
.product:hover,
.produto:hover,
.item:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow);
    border-color:#f1c5ad;
}

/* ======================================================
   PRODUCTS
====================================================== */

.products,
.produtos,
.product-grid,
.grid{
    gap:20px !important;
}

.product img,
.produto img{
    border-radius:12px;
    object-fit:cover;
}

.product h2,
.product h3,
.produto h2,
.produto h3{
    color:var(--text);
}

.price,
.preco{
    color:var(--primary);
    font-weight:800;
    font-size:1.15rem;
}

/* ======================================================
   FORMS
====================================================== */

input,
select,
textarea{
    width:100%;
    border:1px solid var(--border);
    background:#fff;

    border-radius:10px;

    padding:11px 13px;

    color:var(--text);

    outline:none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--primary);

    box-shadow:
        0 0 0 3px rgba(255,90,0,.10);
}

label{
    display:block;
    margin-bottom:6px;

    font-size:.9rem;
    font-weight:700;
    color:#374151;
}

/* ======================================================
   ADMIN
====================================================== */

body.admin,
.admin-body{
    background:
        linear-gradient(
            135deg,
            #f6f7f9,
            #eef1f5
        ) !important;
}

.admin-wrapper,
.dashboard,
.admin-container{
    max-width:1240px;
    margin:0 auto;
}

.box{
    padding:24px !important;
}

h1,
h2,
h3{
    letter-spacing:-.3px;
}

/* ======================================================
   ADMIN TABLE
====================================================== */

table{
    width:100%;
    border-collapse:separate !important;
    border-spacing:0;

    overflow:hidden;

    border:1px solid var(--border);
    border-radius:12px;

    box-shadow:var(--shadow-sm);

    background:#fff !important;
}

thead,
table tr:first-child{
    background:#fafafa;
}

th{
    text-align:left;

    color:#4b5563;

    font-size:.82rem;
    font-weight:800;

    text-transform:uppercase;
    letter-spacing:.04em;

    background:#fafafa !important;
}

th,
td{
    padding:14px 15px !important;
    border-bottom:1px solid #edf0f2 !important;
}

tbody tr{
    transition:background .15s ease;
}

tbody tr:hover{
    background:#fff8f4;
}

tbody tr:last-child td{
    border-bottom:none !important;
}

/* ======================================================
   ADMIN BUTTONS
====================================================== */

.box > a,
.box a[href],
button{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    color:#fff !important;

    box-shadow:
        0 5px 14px rgba(255,90,0,.16);
}

/* ======================================================
   BADGES
====================================================== */

.badge,
.status,
.estado{
    display:inline-flex;
    align-items:center;

    padding:5px 9px;

    border-radius:999px;

    font-size:.78rem;
    font-weight:800;
}

.badge-success,
.status-success{
    color:#166534;
    background:#dcfce7;
}

.badge-warning,
.status-warning{
    color:#92400e;
    background:#fef3c7;
}

.badge-danger,
.status-danger{
    color:#991b1b;
    background:#fee2e2;
}

/* ======================================================
   LOGIN
====================================================== */

.login,
.login-container,
.login-box{
    max-width:420px;
    margin:60px auto;

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    padding:30px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.10);
}

.login h1,
.login h2,
.login-container h1,
.login-container h2,
.login-box h1,
.login-box h2{
    text-align:center;
    margin-bottom:24px;
}

/* ======================================================
   FOOTER
====================================================== */

footer{
    border-top:1px solid var(--border);
    color:var(--muted);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:900px){

    .header{
        padding-left:16px !important;
        padding-right:16px !important;
    }

    .box{
        padding:18px !important;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

}

@media(max-width:600px){

    body{
        font-size:15px;
    }

    header{
        padding:13px 15px !important;
    }

    .logo{
        font-size:21px !important;
    }

    .box{
        border-radius:12px !important;
        padding:15px !important;
    }

    .login,
    .login-container,
    .login-box{
        margin:25px 15px;
        padding:22px;
    }

    th,
    td{
        padding:11px !important;
    }

    button,
    .btn,
    a.button,
    a.btn,
    input[type="submit"]{
        min-height:44px;
    }
}

/* ======================================================
   SCROLLBAR
====================================================== */

::-webkit-scrollbar{
    width:9px;
    height:9px;
}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:#9ca3af;
}
