/* catalog/public tema contemporary — carregar com @if theme === contemporary. */
:root {
    --page: #fff;
    --surface: #fff;
    --line: #eef0f2;
    --ink: #17202b;
    --muted: #7b8490;
}

body {
    font-family: Inter, Manrope, system-ui, sans-serif;
}

.topbar {
    position: relative;
    height: auto !important;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
    box-shadow: none;
}

.topbar-inner {
    max-width: 1540px;
    height: 72px;
}

.page-shell {
    max-width: 1540px;
    padding: 0 30px;
}

.hero {
    display: grid;
    min-height: 220px;
    margin: 0;
    padding: 42px clamp(24px, 5vw, 72px);
    border: 0;
    border-radius: 0;
    background: linear-gradient(115deg, #f7fbfa, #fff 70%);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 620px;
}

.hero-art {
    width: 110px;
    font-size: 3.5rem;
    border-radius: 18px;
    transform: rotate(0);
    box-shadow: none;
}

.catalog {
    padding: 42px 0 100px;
}

.tools {
    margin: 0 0 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f2;
    align-items: center;
}

.tools h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tools .category {
    display: none;
}

.search {
    max-width: 260px;
}

.categories {
    position: absolute;
    right: 300px;
    top: 94px;
    padding: 0;
    gap: 25px;
}

.chip {
    padding: 9px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #57616d;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.chip.active {
    background: transparent;
    color: var(--ink);
    border-color: #f5b51b;
}

.result-summary {
    display: none;
}

.grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    padding-top: 40px;
}

.product {
    position: relative;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 23px rgba(19, 31, 44, 0.07);
    background: #fff;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(19, 31, 44, 0.12);
}

.visual {
    margin: 16px 16px 0;
    border-radius: 11px;
    aspect-ratio: 1;
    background: #fafafa;
}

.photo-placeholder {
    font-size: 3.5rem;
}

.product-body {
    padding: 16px;
}

.product h2 {
    font-size: 1rem;
    margin: 0 0 8px;
    font-weight: 700;
}

.product .category {
    color: #98a1aa;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.product .category:after {
    content: none;
}

.price {
    font-size: 1.25rem;
    color: #101a24;
}

.old {
    font-size: 0.72rem;
}

.product-foot {
    align-items: end;
}

.theme-contemporary .product-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.theme-contemporary .product-foot .price {
    width: 100%;
}

.theme-contemporary .product-foot .add {
    width: 100%;
}

.add {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.add:hover {
    background: transparent;
    color: #0c5f57;
}

.add::before {
    content: "Adicionar";
}

.add {
    width: auto;
    min-width: 92px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0;
    font-weight: 800;
}

.add::after {
    content: " +";
    font-size: 1rem;
}

.contemporary-sale {
    position: absolute;
    z-index: 2;
    top: 31px;
    left: 31px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #9dbe45;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.contemporary-favorite {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 25px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe2e4;
    border-radius: 50%;
    background: #fff;
    color: #2e3740;
    font-size: 1.35rem;
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .categories {
        position: static;
        margin: 14px 0;
        overflow: auto;
    }

    .tools {
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 0 18px;
    }

    .catalog {
        padding-top: 28px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .visual {
        margin: 10px 10px 0;
    }

    .product-body {
        padding: 12px;
    }

    .contemporary-sale {
        top: 19px;
        left: 19px;
    }

    .contemporary-favorite {
        top: 15px;
        right: 17px;
        width: 36px;
        height: 36px;
    }

    .tools h2 {
        font-size: 1.35rem;
    }
}

.contemporary-header-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 660px;
    height: 48px;
    margin: 0 30px;
    border-radius: 13px;
    background: #f7f8f8;
    overflow: hidden;
}

.contemporary-header-search select {
    width: 190px;
    height: 100%;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid #e6e8e8;
    background: transparent;
    color: #67717a;
    outline: 0;
}

.contemporary-header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: transparent;
    outline: 0;
    color: #17202b;
}

.contemporary-header-search button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #5e6871;
}

.contemporary-header-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.catalog > .categories {
    display: none;
}

.contemporary-nav {
    max-width: 1540px;
    margin: auto;
    padding: 0 30px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.contemporary-nav {
    overflow-x: auto;
    scrollbar-width: thin;
}

.contemporary-nav > div {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 30px;
    white-space: nowrap;
}

.contemporary-nav::-webkit-scrollbar {
    height: 6px;
}

.contemporary-nav::-webkit-scrollbar-thumb {
    background: #b8c5c1;
    border-radius: 99px;
}

.contemporary-nav a {
    display: block;
    flex: 0 0 auto;
    padding: 18px 0;
    border-bottom: 2px solid transparent;
    color: #68727c;
    text-decoration: none;
    font-size: 0.9rem;
}

.contemporary-nav a.active,
.contemporary-nav a:hover {
    border-color: #f5b51b;
    color: #17202b;
}

@media (max-width: 900px) {
    .topbar-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
        justify-content: flex-start;
    }

    .top-actions {
        margin-left: auto;
    }

    .contemporary-header-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        margin: 10px 0 0;
    }

    .contemporary-nav {
        padding: 0 20px;
    }

    .contemporary-nav > div {
        gap: 20px;
    }

    .tools .search {
        display: none;
    }
}

@media (max-width: 520px) {
    .contemporary-header-search select {
        width: 135px;
        font-size: 0.75rem;
        padding: 0 8px;
    }

    .contemporary-header-search input {
        font-size: 0.82rem;
    }

    .contemporary-nav {
        padding: 0 15px;
    }

    .contemporary-nav a {
        padding: 13px 0;
        font-size: 0.78rem;
    }
}
