/* assets/css/style.css - Redesign Clean & White */
:root {
    --primary-blue: #0066cc;
    --dark-blue: #003366; 
    --accent-green: #2BA700;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f8f9fa; /* Branco levemente acinzentado */
    --card-bg: #ffffff;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 20px; /* Bordas bem arredondadas */
    --soft-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body {
    font-family: 'Bree Serif', serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    color: var(--dark-blue);
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.main-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 180px; /* Aumentado para acomodar o logo de 150px */
    transition: height 0.4s ease;
}

.main-header.scrolled .header-container {
    height: 100px;
}

.logo img {
    height: 150px;
    width: auto;
    transition: height 0.4s ease, transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-header.scrolled .logo img {
    height: 80px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-family: 'Bree Serif', serif;
    font-weight: 300;
    font-size: 18px;
    margin-left: 35px;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.main-nav a i {
    font-size: 18px;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.main-nav a:hover i {
    transform: scale(1.2);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--dark-blue);
    z-index: 1002;
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    z-index: 1001;
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

@media (min-width: 901px) {
    .mobile-menu, .mobile-overlay, .mobile-menu-btn {
        display: none !important;
    }
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark-blue);
    font-family: 'Bree Serif', serif;
    font-size: 20px;
    font-weight: 300;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu a i {
    color: var(--primary-blue);
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .header-container {
        justify-content: center;
        height: 130px; /* Header acomodando logo maior no mobile */
        position: relative;
    }
    .logo img {
        height: 110px; /* Logo maior no mobile */
    }
    .mobile-menu-btn {
        position: absolute;
        right: 20px;
    }
    
    .main-content {
        padding-top: 130px; /* Alinha o conteúdo ao novo tamanho do header sem sobrar margem branca */
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 180px;
}

/* Hero Section - Canvas Waves */
.hero {
    background-color: #003366; /* Azul escuro base */
    padding: 180px 20px 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Camada azul gradiente transparente por cima do canvas para suavizar */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.4) 0%, rgba(0, 51, 102, 0.7) 100%);
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    z-index: 10;
    /* Contorno Azul */
    text-shadow: 
        -2px -2px 0 var(--dark-blue),  
         2px -2px 0 var(--dark-blue),
        -2px  2px 0 var(--dark-blue),
         2px  2px 0 var(--dark-blue),
         0px  4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
    color: #ffffff;
    position: relative;
    z-index: 10;
    /* Contorno Azul suave */
    text-shadow: 
        -1px -1px 0 var(--dark-blue),  
         1px -1px 0 var(--dark-blue),
        -1px  1px 0 var(--dark-blue),
         1px  1px 0 var(--dark-blue),
         0px  2px 5px rgba(0,0,0,0.5);
}

.hero .btn {
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background: var(--accent-green);
    color: var(--white);
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(43, 167, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #248c00;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(43, 167, 0, 0.3);
}

/* Catalog section */
.catalog-layout {
    display: flex;
    gap: 40px;
    padding: 60px 0;
}

.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    display: inline-block;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-light);
    transition: color 0.2s;
}

.filter-label:hover {
    color: var(--primary-blue);
}

.filter-label input[type="checkbox"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Redesign Clean do Card de Produto */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-img-wrapper {
    width: 100%;
    height: 250px;
    background-color: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    margin-top: 0;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background-color: #eef2f7;
    color: var(--primary-blue);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
}

/* Botão do Carrinho no Card */
.btn-add-quote {
    width: 100%;
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    padding: 12px;
    border-radius: 50px;
    font-family: 'Bree Serif', serif;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-quote:hover {
    background: var(--accent-green);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(43, 167, 0, 0.2);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #FFF;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.btn-cart {
    background-color: var(--primary-blue);
}

.btn-cart:hover {
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.3);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Bree Serif', serif;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}

/* Offcanvas Cart Clean */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-offcanvas.open {
    right: 0;
}

.cart-header {
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-blue);
}

.close-cart {
    background: transparent;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ff4757;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #fafafa;
}

.cart-empty {
    text-align: center;
    color: #999;
    margin-top: 80px;
}

.cart-empty i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fdfdfd;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: var(--text-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background: #eef2f7;
    border: none;
    color: var(--dark-blue);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: #dce4ee; }

.cart-item-qty {
    font-weight: bold;
    font-size: 14px;
}

.remove-item {
    color: #ff4757;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: var(--white);
}

.btn-send-whatsapp {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-send-whatsapp:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Footer */
.main-footer {
    background-color: var(--white);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 1px solid #eee;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--dark-blue);
    font-size: 24px;
}

.footer-col p {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 14px;
    color: #aaa;
}

@media (max-width: 900px) {
    .catalog-layout { flex-direction: column; }
    .filters-sidebar { width: 100%; box-sizing: border-box; }
    .hero h1 { font-size: 42px; }
    .floating-actions { bottom: 20px; right: 20px; }
}
