/* CSS do Catálogo Principal - Compra Esperta Promoções */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ff4757;      /* Coral vibrante */
    --secondary-color: #2f3542;    /* Dark Charcoal */
    --accent-color: #2ed573;       /* Verde sucesso */
    --bg-main: #f8f9fa;            /* Fundo geral da página */
    --bg-white: #ffffff;
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --border-radius: 20px;
    --font-family: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 1. Header (Glassmorphic) */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.brand span {
    color: var(--primary-color);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--bg-white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.2);
    transition: var(--transition-smooth);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
}

/* 2. Hero Section */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(255, 71, 87, 0.03) 0%, rgba(255, 255, 255, 0) 90%);
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* 3. Vitrine / Grid de Produtos */
.vitrine-section {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

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

/* Card de Produto */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    overflow: hidden;
    background-color: #f1f2f6;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-price-row {
    margin-top: auto;
    margin-bottom: 15px;
}

.card-price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.card-price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.product-card:hover .card-btn {
    background-color: var(--primary-color);
}

/* 4. Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: #a4b0be;
    padding: 50px 20px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.05rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #a4b0be;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.75rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .grid-products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}
