/* =============================================
   Drinks Store — Estilos Globais
   ============================================= */

:root {
    --drinks-primary: #e63946;
    --drinks-dark:    #1d3557;
    --drinks-accent:  #457b9d;
    --drinks-light:   #f1faee;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
}

/* ---- Navbar ---- */
.bg-drinks {
    background: linear-gradient(135deg, var(--drinks-dark) 0%, var(--drinks-accent) 100%);
}

.navbar-brand span {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* ---- Hero Banner ---- */
.hero-banner {
    background: linear-gradient(135deg, var(--drinks-dark) 0%, var(--drinks-primary) 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.hero-banner h1 { font-size: 2.8rem; font-weight: 700; }
.hero-banner p  { font-size: 1.15rem; opacity: .85; }

/* ---- Filtros ---- */
.filter-section {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
}

.filter-btn {
    border-radius: 20px !important;
    margin: 3px 4px;
    font-size: .88rem;
    transition: all .2s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--drinks-primary) !important;
    border-color:     var(--drinks-primary) !important;
    color: #fff !important;
}

/* ---- Cards de produtos ---- */
.product-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.product-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.product-card .card-body { padding: 16px; }
.product-card .card-title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.product-card .price { font-size: 1.25rem; font-weight: 700; color: var(--drinks-primary); }

.badge-refrigerante { background-color: #0d6efd; color:#fff; }
.badge-suco         { background-color: #28a745; color:#fff; }
.badge-cerveja      { background-color: #ffc107; color:#333; }
.badge-vinho        { background-color: #dc3545; color:#fff; }

.estoque-badge {
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ---- Sem produtos ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #adb5bd;
}

.empty-state i { font-size: 4rem; display: block; margin-bottom: 16px; }

/* ---- Footer ---- */
.footer { margin-top: auto; }

/* =============================================
   Admin — Sidebar Layout
   ============================================= */

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--drinks-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.admin-sidebar .sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 10px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 10px 20px;
    border-radius: 0;
    transition: background .2s, color .2s;
    font-size: .93rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.admin-sidebar .nav-link i { width: 20px; margin-right: 8px; }

.admin-content {
    flex: 1;
    padding: 28px 32px;
    background: #f4f6f8;
    overflow-x: auto;
}

/* ---- Tabela admin ---- */
.table thead th {
    background: var(--drinks-dark);
    color: #fff;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table-hover tbody tr:hover { background: #eef2f7; }

/* ---- Preview imagem upload ---- */
#imgPreviewWrap {
    margin-top: 10px;
    display: none;
}
#imgPreview {
    max-width: 200px;
    max-height: 160px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    object-fit: cover;
}

/* ---- Estoque badge ---- */
.stock-ok   { color: #28a745; font-weight: 600; }
.stock-low  { color: #fd7e14; font-weight: 600; }
.stock-zero { color: #dc3545; font-weight: 600; }

/* ---- Login page ---- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--drinks-dark) 0%, var(--drinks-accent) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.login-card .card-header {
    background: var(--drinks-primary);
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px 16px 0 0 !important;
    padding: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-content { padding: 16px; }
    .hero-banner h1 { font-size: 1.9rem; }
}
