@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');
:root {
    --prime-blue: #003366; --prime-red: #dc3545; --light-bg: #f5f7fa; --white-color: #ffffff;
    --dark-text: #343a40; --light-text: #6c757d; --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 51, 102, 0.08); --shadow-hover: 0 8px 25px rgba(0, 51, 102, 0.15);
    --heading-font: 'Montserrat', sans-serif; --body-font: 'Nunito', sans-serif;
}
body { font-family: var(--body-font); background-color: var(--light-bg); color: var(--dark-text); }
.container { max-width: 1800px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--heading-font); font-weight: 600; }
.header-wrapper { background: var(--prime-blue); padding: 1rem 0; }
.sticky-filter-container { padding: 1rem 0; background-color: var(--white-color); border-bottom: 1px solid var(--border-color); transition: all 0.3s ease-in-out; }
.sticky-filter-container.sticky-active { position: fixed; top: 0; left: 0; width: 100%; z-index: 1030; background-color: var(--prime-blue); box-shadow: 0 4px 10px rgba(0,0,0,0.15); border-bottom: none; padding: 0.5rem 0; }
.sticky-filter-container.sticky-active .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.sticky-filter-container.sticky-active .filter-form { flex-grow: 1; }
.sticky-filter-container.sticky-active .filter-logo { display: block; flex-shrink: 0; }
.sticky-filter-container.sticky-active .sticky-cart-icon { display: block; flex-shrink: 0; }
.sticky-filter-container.sticky-active .form-label { display: block; color: var(--white-color); font-size: 0.75rem; font-weight: normal; margin-bottom: 2px; white-space: nowrap; }
.sticky-filter-container.sticky-active .form-control, .sticky-filter-container.sticky-active .form-select { height: calc(1.5em + 0.75rem); font-size: 0.9rem; }
.filter-spacer { display: none; }
.filter-spacer.active { display: block; }
.filter-form { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.filter-logo { display: none; height: 40px; margin-right: 1.5rem; }
.filter-field { display: flex; flex-direction: column; }
.field-search, .field-select { flex: 1 1 180px; }
.field-price { flex: 1 1 100px; }
.filter-actions { display: flex; align-items: flex-end; gap: 0.5rem; }
.filter-btn { display: block; width: 100%; padding: 0.75rem; border-radius: 4px; text-align: center; font-weight: bold; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s; background: var(--prime-red); color: white; }
.filter-btn:hover { background-color: #c82333; }
.clear-filter-btn { display: block; width: auto; padding: 0.75rem; border-radius: 4px; text-align: center; font-weight: bold; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s; background: var(--light-text); color: white; }
.clear-filter-btn:hover { background-color: #5a6268; }
.product-card { border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; display: flex; flex-direction: column; background-color: var(--white-color); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card .card-img-top { height: 180px; object-fit: contain; padding: 1rem; border-bottom: 1px solid var(--border-color); }
.product-card .card-body { padding: 1rem; flex-grow: 1; }
.product-card .card-title { font-size: 1rem; font-weight: 600; height: 3em; line-height: 1.5em; overflow: hidden; }
.product-card .product-price { font-size: 1.6rem; font-weight: 700; color: var(--prime-blue); margin: 0.5rem 0 1rem 0; }
.btn-add-cart, .btn-details { font-weight: bold; border: none; width: 100%; }
.btn-add-cart { background-color: var(--prime-red); color: var(--white-color); }
.btn-add-cart:hover { background-color: #c82333; color: var(--white-color); }
.btn-details { background-color: transparent; color: var(--prime-blue); border: 2px solid var(--prime-blue); }
.btn-details:hover { background-color: var(--prime-blue); color: var(--white-color); }
#transfer-cart-btn { background-color: var(--prime-red); border: none; }
.summary-box { border: none; border-radius: 8px; box-shadow: var(--shadow); background-color: var(--white-color); padding: 1.5rem; }
.admin-sidebar { background-color: var(--prime-blue); color: var(--white-color); }
.admin-sidebar .nav-link { color: rgba(255, 255, 255, 0.7); }
.admin-sidebar .nav-link.active { background-color: var(--prime-red); color: var(--white-color); }
.sticky-cart-icon { display: none; color: var(--white-color); position: relative; text-decoration: none; transition: transform 0.2s ease; }
.sticky-cart-icon:hover { transform: scale(1.1); color: var(--white-color); }
.footer-wrapper { background-color: var(--prime-blue); }
.footer-wrapper h5 { color: var(--white-color); font-weight: bold; }
.footer-wrapper a { transition: color 0.2s ease-in-out; }
.footer-wrapper a:hover { color: var(--white-color) !important; }
.header-nav .nav-link { font-weight: 600; transition: opacity 0.2s ease-in-out; opacity: 0.8; }
.header-nav .nav-link:hover { opacity: 1; }
/* Adiciona o contexto de posicionamento para o card */
.product-card {
    position: relative; /* Essencial para o badge funcionar */
}

/* Estilo do badge do fabricante */
.manufacturer-badge {
    position: absolute;
    top: 15px;
    right: -5px; /* Efeito de sobreposição para fora do card */
    background-color: var(--prime-blue);
    color: var(--white-color);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px 0 0 5px; /* Cantos arredondados na esquerda */
    z-index: 5;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.25);
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}