/* ===== LAYOUT 0: MODERN (padrão para todos) =====
   Grid 3x3 bem organizado, cards detalhados, hero grande.
   É o layout original padrão do sistema.
*/
body[data-layout="modern"] .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
body[data-layout="modern"] .product-card {
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gray-200, #e2e8f0);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body[data-layout="modern"] .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}
body[data-layout="modern"] .product-image-wrap {
    aspect-ratio: 1;
    background: var(--gray-100, #f1f5f9);
}
body[data-layout="modern"] .product-image-wrap img {
    object-fit: contain;
    padding: 1rem;
}
body[data-layout="modern"] .product-info {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
body[data-layout="modern"] .product-name {
    font-size: 1rem;
    height: auto;
    min-height: 2.5em;
    -webkit-line-clamp: 2;
}
body[data-layout="modern"] .product-sku {
    font-size: 0.72rem;
    color: var(--gray-400, #94a3b8);
}
body[data-layout="modern"] .product-price {
    margin-top: 0.4rem;
}
body[data-layout="modern"] .price-new {
    font-size: 1.4rem;
    font-weight: 800;
}
body[data-layout="modern"] .product-sizes-preview {
    margin-top: 0.6rem;
}
body[data-layout="modern"] .hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #fef3ed 0%, #f8e8dc 100%);
}
body[data-layout="modern"] .hero h1 { font-size: 3.5rem; }
body[data-layout="modern"] .hero-search { max-width: 600px; margin: 0 auto; }

/* Responsivo: 2 colunas em tablet, 1 coluna em mobile */
@media (max-width: 768px) {
    body[data-layout="modern"] .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    body[data-layout="modern"] .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYOUT 1: GRID (alternativo) =====
   Grid de cards 4 colunas, hero grande, sidebar de filtros
*/
body[data-layout="grid"] .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
body[data-layout="grid"] .product-card {
    flex-direction: column;
}
body[data-layout="grid"] .product-image-wrap {
    aspect-ratio: 1;
}

/* ===== LAYOUT 2: LIST =====
   Lista vertical, imagem à esquerda, info à direita (tipo Mercado Livre)
*/
body[data-layout="list"] .products-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
body[data-layout="list"] .product-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-radius: 12px;
    overflow: hidden;
}
body[data-layout="list"] .product-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
body[data-layout="list"] .product-image-wrap {
    aspect-ratio: 1;
    border-radius: 0;
    border-bottom: none;
    height: 100%;
}
body[data-layout="list"] .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}
body[data-layout="list"] .product-name {
    font-size: 1.1rem;
    height: auto;
    -webkit-line-clamp: unset;
}
body[data-layout="list"] .price-new {
    font-size: 1.4rem;
}
body[data-layout="list"] .product-sizes-preview {
    margin-top: auto;
}
body[data-layout="list"] .btn-ver {
    width: fit-content;
    margin-top: 1rem;
}

/* ===== LAYOUT 3: MAGAZINE =====
   Primeiro produto grande (destaque), depois grid 3 colunas menor
*/
body[data-layout="magazine"] .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
body[data-layout="magazine"] .product-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
body[data-layout="magazine"] .product-card:first-child .product-image-wrap {
    aspect-ratio: 4/3;
}
body[data-layout="magazine"] .product-card:first-child .product-name {
    font-size: 1.3rem;
    height: auto;
}
body[data-layout="magazine"] .product-card:first-child .price-new {
    font-size: 1.8rem;
}

/* ===== LAYOUT 4: SHOWCASE =====
   2 colunas grandes, foco na imagem, info minimalista embaixo
*/
body[data-layout="showcase"] .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
body[data-layout="showcase"] .product-card {
    border: none;
    box-shadow: none;
    background: transparent;
}
body[data-layout="showcase"] .product-card:hover {
    transform: none;
    box-shadow: none;
}
body[data-layout="showcase"] .product-image-wrap {
    aspect-ratio: 4/5;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}
body[data-layout="showcase"] .product-info {
    padding: 1rem 0;
    text-align: center;
}
body[data-layout="showcase"] .product-brand {
    display: none;
}
body[data-layout="showcase"] .product-name {
    font-size: 1rem;
    height: auto;
}
body[data-layout="showcase"] .price-new {
    font-size: 1.3rem;
}
body[data-layout="showcase"] .btn-ver {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--dark);
}
body[data-layout="showcase"] .btn-ver:hover {
    background: var(--dark);
    color: #fff;
}
body[data-layout="showcase"] .product-sizes-preview {
    justify-content: center;
}

/* ===== HERO VARIAÇÕES POR LAYOUT ===== */
body[data-layout="list"] .hero { padding: 3rem 0; }
body[data-layout="list"] .hero h1 { font-size: 2.5rem; }

body[data-layout="magazine"] .hero { padding: 3rem 0; text-align: left; }
body[data-layout="magazine"] .hero h1 { font-size: 2.8rem; }
body[data-layout="magazine"] .hero-search { margin: 0; }

body[data-layout="showcase"] .hero { background: transparent; padding: 4rem 0 2rem; }
body[data-layout="showcase"] .hero h1 { font-size: 3rem; }
body[data-layout="showcase"] .hero p { display: none; }
body[data-layout="showcase"] .hero-search { display: none; }
body[data-layout="showcase"] .section-title { text-align: center; }

/* ===== RESPONSIVO PARA TODOS ===== */
@media (max-width: 768px) {
    body[data-layout="list"] .product-card {
        grid-template-columns: 120px 1fr;
    }
    body[data-layout="magazine"] .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    body[data-layout="magazine"] .product-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    body[data-layout="showcase"] .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body[data-layout="list"] .product-card {
        grid-template-columns: 100px 1fr;
    }
    body[data-layout="list"] .product-info { padding: 1rem; }
    body[data-layout="list"] .product-name { font-size: 0.9rem; }
    body[data-layout="magazine"] .products-grid {
        grid-template-columns: 1fr;
    }
    body[data-layout="magazine"] .product-card:first-child {
        grid-column: span 1;
    }
    body[data-layout="showcase"] .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYOUT 6: SNEAKER SHOP ===== */
body[data-layout="sneaker"] { background: #f7f7f5 !important; }
body[data-layout="sneaker"] .site-header { background: #111 !important; border-bottom: 0; }
body[data-layout="sneaker"] .logo { color: #fff; letter-spacing: -.04em; text-transform: uppercase; }
body[data-layout="sneaker"] .search-bar { border: 1px solid #404040; background: #202020; border-radius: 3px; }
body[data-layout="sneaker"] .search-bar input { color: #fff; background: transparent; }
body[data-layout="sneaker"] .search-bar input::placeholder { color: #aaa; }
body[data-layout="sneaker"] .hero { background: #e9e5df !important; padding: 5.5rem 0 4.5rem; text-align: left; position: relative; overflow: hidden; }
body[data-layout="sneaker"] .hero::after { content: "STEP INTO\\A STYLE"; white-space: pre; position: absolute; right: 5%; top: 15%; color: rgba(17,17,17,.08); font-size: clamp(4rem,11vw,10rem); font-weight: 800; line-height: .8; letter-spacing: -.08em; text-align: right; }
body[data-layout="sneaker"] .hero h1 { position: relative; z-index: 1; font-size: clamp(3rem,7vw,6.5rem); line-height: .92; letter-spacing: -.075em; max-width: 720px; }
body[data-layout="sneaker"] .hero .highlight { color: var(--primary); }
body[data-layout="sneaker"] .hero p { position: relative; z-index: 1; color: #555; max-width: 440px; margin: 1.4rem 0 2rem; }
body[data-layout="sneaker"] .hero-search { position: relative; z-index: 1; margin: 0; max-width: 510px; border-radius: 3px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
body[data-layout="sneaker"] .filters-bar { background: #fff; border-bottom: 1px solid #e8e8e8; }
body[data-layout="sneaker"] .chip { border-radius: 2px; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
body[data-layout="sneaker"] .section { padding-top: 3.5rem; }
body[data-layout="sneaker"] .section-title { text-transform: uppercase; letter-spacing: -.04em; font-size: 1.7rem; }
body[data-layout="sneaker"] .products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
body[data-layout="sneaker"] .product-card { display: flex; flex-direction: column; background: #fff; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; transition: transform .25s ease, box-shadow .25s ease; }
body[data-layout="sneaker"] .product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
body[data-layout="sneaker"] .product-image-wrap { aspect-ratio: 1 / 1.08; background: #f0efed; border: 0; border-radius: 0; }
body[data-layout="sneaker"] .product-image-wrap img { object-fit: contain; padding: 1.2rem; mix-blend-mode: multiply; }
body[data-layout="sneaker"] .product-info { padding: 1rem 1.1rem 1.3rem; gap: .3rem; }
body[data-layout="sneaker"] .product-brand { color: var(--primary); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
body[data-layout="sneaker"] .product-name { font-weight: 700; min-height: 2.6em; color: #171717; }
body[data-layout="sneaker"] .product-sku { color: #999; font-size: .65rem; }
body[data-layout="sneaker"] .price-new { color: #111; font-size: 1.15rem; }
body[data-layout="sneaker"] .price-old { color: #999; }
body[data-layout="sneaker"] .site-footer { background: #111; border-top: 0; }
body[data-layout="sneaker"] .site-footer h3, body[data-layout="sneaker"] .site-footer p, body[data-layout="sneaker"] .site-footer a { color: #ddd; }
@media (max-width: 900px) { body[data-layout="sneaker"] .products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) { body[data-layout="sneaker"] .hero { padding: 3.5rem 0 3rem; } body[data-layout="sneaker"] .hero::after { font-size: 4rem; top: 10%; right: -2%; } body[data-layout="sneaker"] .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; } body[data-layout="sneaker"] .product-info { padding: .75rem; } body[data-layout="sneaker"] .product-name { font-size: .85rem; } }
