/* ===== VARIÁVEIS CSS (serão sobrescritas pelo dynamic-styles.php) ===== */
:root {
    --primary: #0066cc;
    --secondary: #00a8ff;
    --accent: #ff6b00;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --text: #333333;
    --background: #ffffff;
}

/* ===== ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
}

.logo-icon {
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Botões */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ... continue com o resto do seu CSS existente, substituindo cores fixas por variáveis ... */

:root {
    /* Estas variáveis serão sobrescritas pelo dynamic-styles.php */
    --primary: #0066cc;
    --secondary: #00a8ff;
    --accent: #ff6b00;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
    margin-left: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #ff8533;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Services Section */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    color: var(--dark);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    background: var(--light);
    padding: 20px;
    text-align: center;
    font-size: 40px;
    color: var(--primary);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.service-content p {
    color: #666;
    margin-bottom: 15px;
}

.service-content .preco {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.service-actions .btn {
    flex: 1;
    text-align: center;
}

.service-category {
    display: inline-block;
    background: var(--light);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 50px;
    position: relative;
}

.product-image img {
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 50px;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.out-of-stock {
    background: var(--danger);
    color: white;
}

.low-stock {
    background: var(--warning);
    color: var(--dark);
}

.product-content {
    padding: 15px;
}

.product-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-info {
    margin-bottom: 10px;
}

.product-marca, .product-btus, .product-category {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    min-height: 40px;
}

.product-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* Booking Section */
.booking {
    background: var(--light);
    padding: 60px 0;
}

.booking-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-content {
    flex: 1;
    padding-right: 40px;
}

.booking-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 8px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
}

/* Filters */
.products-filters {
    margin-bottom: 30px;
}

.filter-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
}

/* Categories */
.services-categories {
    margin-bottom: 30px;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-filter {
    background: white;
    border: 2px solid var(--light);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* No Data */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: var(--success);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: var(--warning);
}

.alert-info {
    background: #d1edff;
    color: #004085;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

.bg-light {
    background: var(--light);
}

/* Loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary);
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification-content {
    display: flex;
    justify-content: between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Error */
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(220,53,69,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .booking-container {
        flex-direction: column;
    }
    
    .booking-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .service-actions, .product-actions {
        flex-direction: column;
    }
    
    .category-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .product-card {
        margin-bottom: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
}

/* =================================== */
/* ESTILOS PARA BLOG / FEED SOCIAL     */
/* =================================== */

.social-grid {
    display: grid;
    /* Padrão: 3 colunas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 30px;
}

.social-post-card {
    background: var(--light, #f8f9fa);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Garante que todos os cards tenham a mesma altura base */
    display: flex;
    flex-direction: column;
}

.social-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-post-card a {
    text-decoration: none;
    color: var(--text, #333333);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-media {
    width: 100%;
    height: 300px; /* Altura fixa para a imagem/vídeo */
    overflow: hidden;
    margin: 0;
    position: relative;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    transition: transform 0.3s ease;
}

.social-post-card:hover .post-media img,
.social-post-card:hover .post-media video {
    transform: scale(1.05);
}

.post-type-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post-caption {
    padding: 15px;
    flex-grow: 1; /* Permite que a legenda ocupe o espaço restante */
}

.post-caption p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--gray, #6c757d);
    margin-top: auto; /* Empurra a data para o final da box */
}


/* Responsividade - Adapte ao seu responsive.css */
@media (max-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
    }
    .post-media {
        height: 250px; /* Reduz altura da mídia em telas menores */
    }
}