Files
App-Estoque-LiberiKids/site/styles.css
2025-10-14 14:04:17 -03:00

1034 lines
18 KiB
CSS

/* Reset e Base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
/* Melhorias para touch */
button, select, input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
touch-action: manipulation;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: #333;
overflow-x: hidden;
background: url('assets/Fundo_LiberiKids.jpg') center center fixed;
background-size: cover;
background-repeat: no-repeat;
position: relative;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Overlay para melhorar legibilidade do texto sobre a imagem */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
z-index: -1;
pointer-events: none;
}
/* Page wrapper para layout flexível */
.page-wrapper {
flex: 1;
display: flex;
flex-direction: column;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Produtos section principal */
.produtos {
flex: 1;
padding: 3rem 0;
min-height: 400px; /* Altura mínima para garantir espaço */
background: transparent; /* Fundo transparente */
position: relative; /* Para permitir elementos flutuantes */
z-index: 1; /* Acima do fundo mas abaixo do header */
}
/* Header */
.header {
background: rgba(246, 244, 230, 0.95);
backdrop-filter: blur(10px);
padding: 1.2rem 0;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
border-bottom: 2px solid #e29cc5;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo-img {
height: 70px;
width: auto;
max-width: 250px;
object-fit: contain;
}
.header-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.cart-btn {
background: #e29cc5;
border: none;
color: #000000;
padding: 0.8rem;
border-radius: 50%;
cursor: pointer;
position: relative;
transition: all 0.3s ease;
font-size: 1.2rem;
box-shadow: 0 4px 15px rgba(226, 156, 197, 0.3);
}
.cart-btn:hover {
background: #ecbad7;
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(236, 186, 215, 0.5);
}
.cart-count {
position: absolute;
top: -5px;
right: -5px;
background: #f9f295;
color: #000000;
border-radius: 50%;
width: 20px;
height: 20px;
font-size: 0.7rem;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
border: 1px solid #e29cc5;
}
/* Filtros */
.filters {
background: rgba(246, 244, 230, 0.9);
backdrop-filter: blur(10px);
padding: 2rem 0;
margin-top: 100px;
border-bottom: 1px solid #ddd9c7;
}
.filter-options {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.filter-options select {
padding: 0.8rem 1rem;
border: 2px solid #ddd9c7;
border-radius: 25px;
background: #f6f4e6;
color: #464444;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
min-width: 150px;
}
.filter-options select:focus {
outline: none;
border-color: #e29cc5;
box-shadow: 0 0 0 3px rgba(226, 156, 197, 0.2);
}
.clear-filters {
background: #ff4757;
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 25px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
.clear-filters:hover {
background: #ff3742;
transform: translateY(-2px);
}
/* Produtos */
.produtos {
padding: 4rem 0;
}
.produtos h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #464444;
text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8), 1px 1px 4px rgba(226, 156, 197, 0.5);
background: transparent; /* Título transparente */
position: relative;
z-index: 3; /* Acima dos cards */
}
.loading {
text-align: center;
padding: 3rem 0;
color: #e29cc5;
background: transparent; /* Loading transparente */
}
.loading i {
font-size: 2rem;
margin-bottom: 1rem;
}
.produtos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
padding: 0 1rem;
justify-items: center;
background: transparent; /* Grid transparente */
}
.produto-card {
background: rgba(246, 244, 230, 0.95); /* Fundo semi-transparente */
backdrop-filter: blur(10px); /* Efeito de vidro */
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 40px rgba(70, 68, 68, 0.25); /* Sombra mais pronunciada */
transition: all 0.3s ease;
cursor: pointer;
border: 2px solid rgba(221, 217, 199, 0.8); /* Borda semi-transparente */
width: 100%;
max-width: 320px;
display: flex;
flex-direction: column;
position: relative; /* Para flutuar */
z-index: 2; /* Acima da seção */
}
.produto-card:hover {
transform: translateY(-15px) scale(1.02); /* Mais elevação e leve aumento */
box-shadow: 0 25px 60px rgba(226, 156, 197, 0.4); /* Sombra ainda maior */
border-color: rgba(226, 156, 197, 0.9);
backdrop-filter: blur(15px); /* Mais blur no hover */
}
.produto-image {
width: 100%;
height: 250px;
background: linear-gradient(45deg, #c0daf3, #ddd9c7);
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.produto-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 0.3s ease;
}
.produto-card:hover .produto-image img {
transform: scale(1.1);
}
.placeholder-img {
font-size: 3rem;
color: #adb5bd;
}
.produto-info {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.produto-nome {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #464444;
}
.produto-badges {
display: flex;
gap: 0.5rem;
margin: 0.8rem 0;
flex-wrap: wrap;
}
.produto-detalhes {
margin-bottom: 1rem;
}
.produto-badge {
padding: 0.3rem 0.8rem;
border-radius: 15px;
font-size: 0.8rem;
font-weight: 500;
}
.badge-tamanho {
background: #c0daf3;
color: #000000;
}
.badge-genero {
background: #ecbad7;
color: #000000;
}
.badge-estacao {
background: #f9f295;
color: #464444;
}
.badge-cor {
color: #000000;
border: 1px solid #ddd9c7;
}
.produto-header {
margin-bottom: 0.8rem;
}
.produto-codigo {
font-size: 0.7rem;
color: #464444;
background: #ddd9c7;
padding: 0.2rem 0.5rem;
border-radius: 10px;
display: inline-block;
margin-top: 0.3rem;
}
.produto-detalhes small {
display: block;
color: #464444;
font-size: 0.8rem;
margin: 0.2rem 0;
}
.produto-sem-estoque {
position: absolute;
top: 10px;
right: 10px;
background: rgba(220, 53, 69, 0.9);
color: white;
padding: 0.3rem 0.6rem;
border-radius: 15px;
font-size: 0.7rem;
font-weight: 600;
}
.add-to-cart:disabled {
background: #6c757d;
cursor: not-allowed;
opacity: 0.6;
}
.add-to-cart:disabled:hover {
background: #6c757d;
transform: none;
box-shadow: none;
}
.produto-preco {
font-size: 1.4rem;
font-weight: 700;
color: #e29cc5;
margin-bottom: 1rem;
}
.add-to-cart {
width: 100%;
background: linear-gradient(135deg, #e29cc5 0%, #ecbad7 100%);
color: #000000;
border: none;
padding: 0.8rem;
border-radius: 25px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
}
.add-to-cart:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(226, 156, 197, 0.5);
background: linear-gradient(135deg, #ecbad7 0%, #e29cc5 100%);
}
.no-products {
text-align: center;
padding: 3rem 0;
color: #464444;
background: transparent; /* Mensagem "sem produtos" transparente */
}
.no-products i {
font-size: 3rem;
margin-bottom: 1rem;
}
/* Sobre */
.sobre {
background: #f8f9fa;
padding: 4rem 0;
}
.sobre-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.sobre-text h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: #333;
}
.sobre-text p {
font-size: 1.1rem;
margin-bottom: 1rem;
color: #6c757d;
}
.features {
display: flex;
gap: 2rem;
margin-top: 2rem;
}
.feature {
display: flex;
align-items: center;
gap: 0.5rem;
color: #667eea;
font-weight: 500;
}
.sobre-image {
display: flex;
justify-content: center;
}
.placeholder-image {
width: 300px;
height: 300px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
font-size: 4rem;
}
.placeholder-image p {
font-size: 1.2rem;
font-weight: 600;
margin-top: 1rem;
}
/* Contato */
.contato {
padding: 4rem 0;
}
.contato h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: #333;
}
.contato-content {
display: flex;
justify-content: center;
}
.contato-info {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 800px;
}
.contato-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 2rem;
background: white;
border-radius: 15px;
box-shadow: 0 5px 25px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}
.contato-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.contato-item i {
font-size: 2rem;
color: #667eea;
}
.contato-item h4 {
margin-bottom: 0.5rem;
color: #333;
}
.contato-item p {
color: #6c757d;
margin-bottom: 0.5rem;
}
.contato-item a {
color: #667eea;
text-decoration: none;
font-weight: 600;
}
/* Carrinho Lateral */
.cart-sidebar {
position: fixed;
top: 0;
right: -400px;
width: 400px;
height: 100vh;
background: #f6f4e6;
z-index: 2000;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
box-shadow: -5px 0 25px rgba(70, 68, 68, 0.2);
}
.cart-sidebar.active {
right: 0;
}
.cart-header {
padding: 1.5rem;
border-bottom: 1px solid #ddd9c7;
display: flex;
justify-content: space-between;
align-items: center;
background: #e29cc5;
color: #000000;
}
.cart-header h3 {
color: #000000;
font-size: 1.3rem;
}
.close-cart {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #000000;
transition: all 0.3s ease;
}
.close-cart:hover {
color: #333;
transform: scale(1.1);
}
.cart-content {
flex: 1;
padding: 1rem;
overflow-y: auto;
}
.empty-cart {
text-align: center;
padding: 3rem 1rem;
color: #6c757d;
}
.empty-cart i {
font-size: 3rem;
margin-bottom: 1rem;
}
.cart-item {
display: flex;
gap: 1rem;
padding: 1rem;
border-bottom: 1px solid #e9ecef;
align-items: center;
}
.cart-item-image {
width: 60px;
height: 60px;
background: #f8f9fa;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: #adb5bd;
}
.cart-item-info {
flex: 1;
}
.cart-item-name {
font-weight: 600;
margin-bottom: 0.3rem;
color: #333;
}
.cart-item-details {
font-size: 0.9rem;
color: #6c757d;
margin-bottom: 0.5rem;
}
.cart-item-price {
font-weight: 600;
color: #667eea;
}
.cart-item-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.qty-btn {
background: #f8f9fa;
border: 1px solid #e9ecef;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.qty-btn:hover {
background: #e9ecef;
}
.remove-item {
background: #ff4757;
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.remove-item:hover {
background: #ff3742;
}
.cart-footer {
padding: 1.5rem;
border-top: 1px solid #ddd9c7;
background: #ecbad7;
}
.cart-total {
text-align: center;
margin-bottom: 1rem;
font-size: 1.2rem;
color: #000000;
}
.checkout-btn {
width: 100%;
background: #25d366;
color: white;
border: none;
padding: 1rem;
border-radius: 25px;
font-weight: 600;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
}
.checkout-btn:hover {
background: #22c55e;
transform: translateY(-2px);
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1500;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.overlay.active {
opacity: 1;
visibility: visible;
}
/* WhatsApp Flutuante */
.whatsapp-float {
position: fixed;
bottom: 80px;
right: 20px;
width: 60px;
height: 60px;
background: #25d366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.8rem;
cursor: pointer;
z-index: 1000;
box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
transition: all 0.3s ease;
animation: pulse 2s infinite;
}
.whatsapp-float:hover {
transform: scale(1.1);
box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}
.whatsapp-tooltip {
position: absolute;
right: 70px;
top: 50%;
transform: translateY(-50%);
background: #464444;
color: white;
padding: 8px 12px;
border-radius: 8px;
font-size: 0.9rem;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.whatsapp-tooltip::after {
content: '';
position: absolute;
right: -8px;
top: 50%;
transform: translateY(-50%);
border: 8px solid transparent;
border-left-color: #464444;
}
.whatsapp-float:hover .whatsapp-tooltip {
opacity: 1;
visibility: visible;
}
@keyframes pulse {
0% {
box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
50% {
box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
}
100% {
box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Estilos do carrinho */
.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #ddd9c7;
}
.cart-item:last-child {
border-bottom: none;
}
.item-info h4 {
margin: 0 0 0.5rem 0;
color: #464444;
font-size: 1rem;
}
.item-info p {
margin: 0;
color: #666;
font-size: 0.9rem;
}
.remove-item {
background: #dc3545;
border: none;
color: white;
padding: 0.5rem;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
}
.remove-item:hover {
background: #c82333;
transform: scale(1.1);
}
/* Animações */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsivo */
@media (max-width: 768px) {
/* Header otimizado para mobile */
.header {
padding: 0.8rem 0;
}
.header-content {
padding: 0 1rem;
}
.logo-img {
height: 50px; /* Mantém logo visível mas não muito grande */
}
.cart-btn {
padding: 0.6rem;
font-size: 1.1rem;
}
/* Filtros otimizados */
.filters {
padding: 1.5rem 0;
margin-top: 80px; /* Reduzido para mobile */
}
.filter-options {
flex-direction: column;
gap: 0.8rem;
padding: 0 1rem;
}
.filter-options select {
width: 100%;
padding: 1rem;
font-size: 1rem;
border-radius: 12px;
}
/* Grid de produtos otimizado */
.produtos {
padding: 2rem 0;
min-height: 300px; /* Altura mínima menor em mobile */
}
.produtos h2 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
padding: 0 1rem;
}
.produtos-grid {
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1rem;
padding: 0 1rem;
}
/* Cards de produto menores mas informativos */
.produto-card {
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.produto-image {
height: 140px; /* Reduzido para mobile */
}
.produto-info {
padding: 0.8rem;
}
.produto-nome {
font-size: 0.9rem;
line-height: 1.3;
margin-bottom: 0.3rem;
}
.produto-preco {
font-size: 1rem;
margin: 0.3rem 0;
}
.produto-badges {
gap: 0.3rem;
margin: 0.5rem 0;
flex-wrap: wrap;
}
.badge {
font-size: 0.7rem;
padding: 0.2rem 0.4rem;
}
.add-to-cart {
padding: 0.6rem;
font-size: 0.9rem;
border-radius: 10px;
}
/* Carrinho mobile */
.cart-sidebar {
width: 100%;
right: -100%;
}
.cart-header {
padding: 1rem;
}
.cart-content {
padding: 0 1rem;
}
/* WhatsApp mobile */
.whatsapp-float {
width: 55px;
height: 55px;
bottom: 60px;
right: 15px;
font-size: 1.6rem;
}
.whatsapp-tooltip {
right: 65px;
font-size: 0.8rem;
padding: 6px 10px;
}
/* Estados especiais mobile */
.loading, .no-products {
padding: 2rem 1rem;
}
.loading p, .no-products h3 {
font-size: 1.1rem;
}
.no-products p {
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.container {
padding: 0 15px;
}
.hero {
padding: 100px 0 60px;
}
.produtos {
padding: 2rem 0;
}
.sobre, .contato {
padding: 2rem 0;
}
}