diff --git a/crm/Views/assets/scss/pages/_ecommerce-public.scss b/crm/Views/assets/scss/pages/_ecommerce-public.scss new file mode 100755 index 0000000..e93b938 --- /dev/null +++ b/crm/Views/assets/scss/pages/_ecommerce-public.scss @@ -0,0 +1,749 @@ +// +// _ecommerce-public.scss +// CSS específico para páginas públicas do Ecommerce +// + +/* Layout de duas colunas para filtros e produtos */ +.ecommerce-layout { + display: grid; + grid-template-columns: 320px 1fr; + gap: 24px; + align-items: start; + max-width: 1600px; + margin: 0 auto; + padding: 16px; + min-height: calc(100vh - 100px); +} + +.filters-sidebar { + position: sticky; + top: 16px; + height: fit-content; + max-height: calc(100vh - 32px); + overflow-y: auto; + background: #ffffff; + border-radius: 8px; + box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); + padding: 20px; + border: 1px solid #e9ecef; +} + +.products-main { + background: #ffffff; + border-radius: 8px; + box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); + border: 1px solid #e9ecef; + overflow: hidden; + height: fit-content; +} + +/* Responsivo */ +@media (max-width: 991px) { + .ecommerce-layout { + grid-template-columns: 1fr; + gap: 16px; + padding: 12px; + } + + .filters-sidebar { + position: static; + max-height: none; + order: 2; + } + + .products-main { + order: 1; + } +} + +/* Melhorias nos filtros */ +.filter-accordion .accordion-item { + border: none; + border-bottom: 1px solid #f1f3f4; + margin-bottom: 4px; +} + +// Melhorar padding do card principal da sidebar +.card .card-header { + padding: 20px 24px; // Aumentado padding do header +} + +.card .card-body { + padding: 20px 24px; // Aumentado padding do body +} + +.filter-accordion .accordion-button { + padding: 16px 20px; // Aumentado padding lateral + font-weight: 600; + color: #2c3e50; + background: transparent; + border: none; + box-shadow: none; + + &:not(.collapsed) { + background-color: transparent; + box-shadow: none; + color: #405189; + } + + &:focus { + box-shadow: none; + border-color: transparent; + } + + &::after { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23405189'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); + } +} + +.filter-accordion .accordion-body { + padding: 0 20px 16px 20px; // Aumentado padding lateral e inferior +} + +// Melhorar espaçamento dos elementos dentro dos filtros +.filter-accordion .form-check { + margin-bottom: 8px; + padding-left: 0; // Remove padding padrão do Bootstrap +} + +.filter-accordion .form-check-input { + margin-right: 12px; // Mais espaço entre checkbox e label +} + +.filter-accordion .form-check-label { + padding-left: 0; + font-size: 0.9rem; + line-height: 1.4; +} + +// Melhorar espaçamento das seções de filtros +.filter-accordion .mb-3 { + margin-bottom: 1.5rem !important; // Mais espaço entre seções +} + +// Melhorar espaçamento dos títulos das seções +.filter-accordion .text-uppercase.fs-13.fw-medium { + margin-bottom: 12px; + padding-left: 0; +} + +// Melhorar espaçamento dos inputs de pesquisa +.filter-accordion .form-control { + margin-bottom: 12px; + border-radius: 6px; + border: 1px solid #e9ecef; + + &:focus { + border-color: #405189; + box-shadow: 0 0 0 0.2rem rgba(64, 81, 137, 0.25); + } +} + +// Melhorar espaçamento das tags/badges +.filter-accordion .badge { + margin-bottom: 6px; + margin-right: 6px; + padding: 6px 10px; + font-size: 0.8rem; +} + +// Melhorar espaçamento da lista de filtros +.filter-accordion .filter-check { + padding-left: 0; + + .d-flex.align-items-center { + padding: 4px 0; + margin-bottom: 2px; + } +} + +// Melhorar espaçamento dos botões de expansão +.filter-accordion .btn-xs.btn-link { + padding: 2px 4px; + margin-right: 8px; + color: #6c757d; + + &:hover { + color: #405189; + } +} + +/* Estilos específicos para produtos */ +.product-card { + border: 1px solid #e9ecef; + border-radius: 8px; + transition: all 0.2s ease; + background: #ffffff; + overflow: hidden; + + &:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + transform: translateY(-1px); + border-color: #405189; + } +} + +.product-image { + width: 100%; + height: 180px; + object-fit: cover; + border-radius: 8px 8px 0 0; + transition: transform 0.2s ease; + + &:hover { + transform: scale(1.02); + } +} + +.product-info { + padding: 16px; +} + +.product-title { + font-size: 1rem; + font-weight: 600; + color: #2c3e50; + margin-bottom: 6px; + line-height: 1.3; +} + +.product-brand { + color: #6c757d; + font-size: 0.85rem; + margin-bottom: 10px; +} + +.product-price { + font-size: 1.2rem; + font-weight: 700; + color: #0ab39c; + margin-bottom: 6px; +} + +.product-stock { + font-size: 0.85rem; + font-weight: 500; + + &.in-stock { + color: #0ab39c; + } + + &.low-stock { + color: #f7b84b; + } + + &.out-of-stock { + color: #f06548; + } +} + +/* Filtros avançados */ +.filter-section { + margin-bottom: 20px; + + .filter-title { + font-size: 0.8rem; + font-weight: 700; + color: #405189; + text-transform: uppercase; + margin-bottom: 10px; + letter-spacing: 0.5px; + } +} + +.filter-checkbox { + display: flex; + align-items: center; + margin-bottom: 6px; + + input[type="checkbox"] { + margin-right: 8px; + accent-color: #405189; + } + + label { + font-size: 0.85rem; + color: #495057; + cursor: pointer; + + &:hover { + color: #405189; + } + } +} + +.filter-search { + margin-bottom: 12px; + + .form-control { + border-radius: 6px; + border: 1px solid #e9ecef; + padding: 6px 10px; + font-size: 0.85rem; + + &:focus { + border-color: #405189; + box-shadow: 0 0 0 0.15rem rgba(64, 81, 137, 0.25); + } + } +} + +/* Paginação */ +.pagination-wrapper { + display: flex; + justify-content: center; + align-items: center; + margin-top: 20px; + padding: 16px; + background: #f8f9fa; + border-top: 1px solid #e9ecef; +} + +.pagination { + .page-link { + border-radius: 6px; + margin: 0 2px; + border: 1px solid #e9ecef; + color: #495057; + font-weight: 500; + padding: 6px 12px; + + &:hover { + background-color: #405189; + border-color: #405189; + color: white; + } + } + + .page-item.active .page-link { + background-color: #405189; + border-color: #405189; + } +} + +/* Loading states */ +.loading-spinner { + display: flex; + justify-content: center; + align-items: center; + min-height: 200px; + flex-direction: column; + + .spinner-border { + color: #405189; + width: 2.5rem; + height: 2.5rem; + } + + .loading-text { + margin-top: 12px; + color: #6c757d; + font-size: 0.9rem; + } +} + +/* Empty states */ +.empty-state { + text-align: center; + padding: 40px 20px; + color: #6c757d; + + .empty-icon { + font-size: 3rem; + margin-bottom: 16px; + opacity: 0.3; + color: #405189; + } + + .empty-title { + font-size: 1.3rem; + font-weight: 600; + margin-bottom: 10px; + color: #2c3e50; + } + + .empty-description { + font-size: 0.9rem; + line-height: 1.4; + } +} + +/* Table improvements */ +.table { + margin-bottom: 0; + + th { + background-color: #f8f9fa; + border-bottom: 2px solid #e9ecef; + font-weight: 600; + color: #2c3e50; + padding: 12px 10px; + font-size: 0.85rem; + text-transform: uppercase; + letter-spacing: 0.5px; + } + + td { + padding: 12px 10px; + vertical-align: middle; + border-bottom: 1px solid #f1f3f4; + font-size: 0.85rem; + } + + tbody tr { + transition: background-color 0.15s ease; + + &:hover { + background-color: #f8f9fa; + } + } +} + +/* Badge improvements */ +.badge { + font-size: 0.7rem; + font-weight: 600; + padding: 4px 8px; + border-radius: 4px; +} + +/* Button improvements */ +.btn { + border-radius: 6px; + font-weight: 500; + padding: 6px 12px; + font-size: 0.85rem; + transition: all 0.15s ease; + + &.btn-primary { + background-color: #405189; + border-color: #405189; + + &:hover { + background-color: #2d375e; + border-color: #2d375e; + transform: translateY(-1px); + } + } + + &.btn-outline-primary { + color: #405189; + border-color: #405189; + + &:hover { + background-color: #405189; + border-color: #405189; + } + } + + &.btn-sm { + padding: 4px 8px; + font-size: 0.8rem; + } +} + +/* Form improvements */ +.form-control { + border-radius: 6px; + border: 1px solid #e9ecef; + padding: 8px 10px; + font-size: 0.85rem; + transition: all 0.15s ease; + + &:focus { + border-color: #405189; + box-shadow: 0 0 0 0.15rem rgba(64, 81, 137, 0.25); + } + + &.form-control-lg { + padding: 12px 16px; + font-size: 1rem; + } + + &.form-control-sm { + padding: 4px 8px; + font-size: 0.8rem; + } +} + +/* Search box improvements */ +.search-box { + position: relative; + + .search-icon { + position: absolute; + left: 12px; + top: 50%; + transform: translateY(-50%); + color: #6c757d; + z-index: 10; + } + + .form-control { + padding-left: 40px; + } + + .dropdown-menu { + border-radius: 8px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); + border: 1px solid #e9ecef; + margin-top: 4px; + + .dropdown-header { + font-weight: 600; + color: #405189; + font-size: 0.8rem; + text-transform: uppercase; + letter-spacing: 0.5px; + } + + .dropdown-item { + padding: 8px 16px; + font-size: 0.9rem; + + &:hover { + background-color: #f8f9fa; + color: #405189; + } + } + } +} + +/* Card improvements */ +.card { + border-radius: 8px; + border: 1px solid #e9ecef; + box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); + + .card-header { + background-color: #f8f9fa; + border-bottom: 1px solid #e9ecef; + padding: 16px 20px; + + &.border-0 { + border-bottom: none; + } + + &.bg-light { + background-color: #f8f9fa !important; + } + } + + .card-body { + padding: 20px; + + &.p-0 { + padding: 0; + } + } +} + +/* Nav tabs improvements */ +.nav-tabs-custom { + border-bottom: none; + + .nav-item { + margin-right: 4px; + } + + .nav-link { + border: none; + border-radius: 6px; + padding: 8px 16px; + font-size: 0.9rem; + font-weight: 500; + color: #6c757d !important; + background-color: transparent; + transition: all 0.15s ease; + + &:hover { + background-color: #f8f9fa; + color: #405189 !important; + } + + &.active { + background-color: #405189; + color: white !important; + } + + /* Garantir que o texto seja sempre visível */ + i { + color: inherit; + } + + .badge { + color: inherit !important; + } + } +} + +/* Alert improvements */ +.alert { + border-radius: 6px; + border: none; + padding: 12px 16px; + font-size: 0.9rem; + + &.alert-info { + background-color: #e7f3ff; + color: #0c5460; + } +} + +/* Header improvements */ +.public-header { + background: linear-gradient(135deg, #405189 0%, #3577f1 100%); + color: white; + padding: 8px 0; // Reduzido de 12px para 8px (30% menos alto) + margin-bottom: 12px; // Reduzido de 16px para 12px + box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08); // Sombra mais suave + + .container-fluid { + max-width: 1600px; + margin: 0 auto; + padding: 0 16px; + } + + .navbar-brand { + color: white; + font-weight: 700; + font-size: 1.2rem; // Reduzido de 1.4rem para 1.2rem + } + + .navbar-nav .nav-link { + color: rgba(255, 255, 255, 0.9); + font-weight: 500; + + &:hover { + color: white; + } + } +} + +/* Utility classes */ +.text-muted-light { + color: #6c757d !important; +} + +.bg-light-subtle { + background-color: #f8f9fa !important; +} + +.border-light-subtle { + border-color: #e9ecef !important; +} + +/* Scrollbar styling - mais discreto */ +.filters-sidebar::-webkit-scrollbar { + width: 4px; +} + +.filters-sidebar::-webkit-scrollbar-track { + background: transparent; +} + +.filters-sidebar::-webkit-scrollbar-thumb { + background: #d1d5db; + border-radius: 2px; + + &:hover { + background: #9ca3af; + } +} + +/* Responsive improvements */ +@media (max-width: 768px) { + .ecommerce-layout { + padding: 8px; + gap: 12px; + } + + .filters-sidebar { + padding: 16px; + } + + .card .card-header { + padding: 12px 16px; + } + + .card .card-body { + padding: 16px; + } + + .table th, + .table td { + padding: 8px 6px; + font-size: 0.8rem; + } + + .nav-tabs-custom .nav-link { + padding: 6px 12px; + font-size: 0.85rem; + } +} + +/* 🏆 Destaque dos Melhores Produtos */ +// Produto selecionado (melhor) - Verde +.table-success { + --bs-table-bg: #d1e7dd !important; + --bs-table-striped-bg: #c7dbd2 !important; + --bs-table-striped-color: #000 !important; + --bs-table-active-bg: #bcd0c7 !important; + --bs-table-active-color: #000 !important; + --bs-table-hover-bg: #c7dbd2 !important; + --bs-table-hover-color: #000 !important; + color: #0a3622 !important; + border-color: #a3cfbb !important; +} + +// Produto alternativo (segundo melhor) - Amarelo +.table-warning { + --bs-table-bg: #fff3cd !important; + --bs-table-striped-bg: #f2e7c3 !important; + --bs-table-striped-color: #000 !important; + --bs-table-active-bg: #e6dbb9 !important; + --bs-table-active-color: #000 !important; + --bs-table-hover-bg: #f2e7c3 !important; + --bs-table-hover-color: #000 !important; + color: #664d03 !important; + border-color: #e5d3a3 !important; +} + +// Para cards (grid view) +.card.table-success { + background-color: #d1e7dd !important; + border-color: #a3cfbb !important; + + .card-body { + background-color: transparent; + } + + // Adicionar um pequeno ícone de destaque + &::before { + content: "🏆"; + position: absolute; + top: 8px; + right: 8px; + font-size: 16px; + z-index: 1; + } +} + +.card.table-warning { + background-color: #fff3cd !important; + border-color: #e5d3a3 !important; + + .card-body { + background-color: transparent; + } + + // Adicionar um pequeno ícone de destaque + &::before { + content: "🥈"; + position: absolute; + top: 8px; + right: 8px; + font-size: 16px; + z-index: 1; + } +} \ No newline at end of file diff --git a/crm/Views/assets/scss/public.scss b/crm/Views/assets/scss/public.scss new file mode 100644 index 0000000..4e664ea --- /dev/null +++ b/crm/Views/assets/scss/public.scss @@ -0,0 +1,47 @@ +// +// public.scss +// Bundle CSS para páginas públicas +// + +// Import Ecommerce public styles +@import "pages/ecommerce-public"; + +// Public page specific styles +.public-header { + background: linear-gradient(135deg, #405189 0%, #3577f1 100%); + color: white; + padding: 1rem 0; + + .navbar-brand { + color: white; + font-weight: 600; + } + + .navbar-nav .nav-link { + color: rgba(255, 255, 255, 0.8); + + &:hover { + color: white; + } + } +} + +.public-footer { + background-color: #f8f9fa; + border-top: 1px solid #e9ecef; + padding: 2rem 0; + margin-top: 3rem; +} + +// Utility classes for public pages +.text-muted-light { + color: #6c757d !important; +} + +.bg-light-subtle { + background-color: #f8f9fa !important; +} + +.border-light-subtle { + border-color: #e9ecef !important; +} \ No newline at end of file