/* ===== Layout: Clássico (padrão — sem override forte) ===== */
body.layout-classic { }

/* ===== Layout: Revista ===== */
body.layout-magazine .featured-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent);
    padding: 28px 0 10px;
    margin-bottom: 10px;
}
body.layout-magazine .featured-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}
@media (min-width: 900px) {
    body.layout-magazine .featured-grid .product-card.featured:first-child {
        grid-row: span 2;
    }
    body.layout-magazine .featured-grid .product-card.featured:first-child .product-image {
        height: 320px;
    }
}
body.layout-magazine .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}
body.layout-magazine .category-block .product-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: stretch;
    max-width: 100%;
}
body.layout-magazine .category-block .product-image {
    height: 100%;
    min-height: 120px;
    border-radius: var(--radius) 0 0 var(--radius);
}
body.layout-magazine .category-block .product-image img {
    height: 100%;
    object-fit: cover;
}
body.layout-magazine .category-block .product-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.layout-magazine .category-title {
    font-size: 1.6rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 6px;
    display: inline-block;
}
body.layout-magazine .category-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, white);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    body.layout-magazine .featured-grid { grid-template-columns: 1fr; }
    body.layout-magazine .category-block .product-card {
        grid-template-columns: 100px 1fr;
    }
}

/* ===== Layout: Elegante ===== */
body.layout-elegant {
    letter-spacing: 0.01em;
}
body.layout-elegant .hero {
    padding: 80px 0 70px;
}
body.layout-elegant .hero-content h1 {
    font-weight: 500;
    letter-spacing: 0.04em;
}
body.layout-elegant .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
body.layout-elegant .product-card {
    border: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    background: var(--card-bg);
    text-align: center;
}
body.layout-elegant .product-image {
    height: 220px;
    border-radius: 50% 50% 12px 12px;
    margin: 18px 18px 0;
    width: calc(100% - 36px);
    overflow: hidden;
}
body.layout-elegant .product-info {
    padding: 18px 22px 24px;
}
body.layout-elegant .product-info h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
}
body.layout-elegant .category-title {
    text-align: center;
    width: 100%;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text-light);
}
body.layout-elegant .category-nav a {
    border-radius: 999px;
    padding: 8px 16px;
}
body.layout-elegant .btn-add,
body.layout-elegant .btn-add {
    border-radius: 999px;
    min-width: 140px;
}
body.layout-elegant .featured-section .section-title {
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.08em;
}

/* ===== Layout: Compacto ===== */
body.layout-compact .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
body.layout-compact .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
body.layout-compact .product-card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body.layout-compact .product-image {
    height: 110px;
}
body.layout-compact .product-info {
    padding: 10px;
}
body.layout-compact .product-info h3 {
    font-size: 0.92rem;
    line-height: 1.25;
}
body.layout-compact .product-info p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.layout-compact .price,
body.layout-compact .price-promo {
    font-size: 0.9rem;
}
body.layout-compact .btn-add {
    padding: 6px 10px;
    font-size: 0.8rem;
    width: 100%;
}
body.layout-compact .category-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
body.layout-compact .hero {
    padding: 36px 0 28px;
}
body.layout-compact .hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
}
