/* Aureum - Home page */
.home-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 3rem 0;
    text-align: center;
}

.home-hero .container {
    max-width: 720px;
}

.home-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-hero .hero-tagline {
    margin: 0;
    font-size: 1.125rem;
    opacity: 0.95;
}

.home-hero .hero-sub {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    opacity: 0.85;
}

.home-hero-small {
    padding: 2rem 0;
}

.hero-title-only {
    margin: 0 0 0.25rem;
}

/* Section titles */
.section {
    padding: 2.5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.section-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
}

.section-link:hover {
    text-decoration: underline;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

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

.product-card-link {
    display: block;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg);
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
}

.product-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.product-card-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.product-prices {
    margin-top: auto;
}

.price-pix {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-pix span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.price-or {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.price-installments {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

.product-card-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-add-cart {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: var(--color-primary-dark);
}

.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-cart-link {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-add-cart-link:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Placeholder when no image */
.product-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8eaf0 0%, #dde0e8 100%);
    color: var(--color-text-muted);
    font-size: 2.5rem;
}

/* Página de detalhe do produto */
.produto-breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.produto-breadcrumb a {
    color: var(--color-primary);
}

.produto-breadcrumb span {
    margin: 0 0.25rem;
}

.produto-detalhe-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.produto-detalhe-imagem img {
    width: 100%;
    height: auto;
}

.produto-detalhe-actions .btn-add-cart {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Popular section - horizontal scroll on mobile optional */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-card-title {
        -webkit-line-clamp: 2;
    }
    .section {
        padding: 1.5rem 0;
    }
}
