/* catalog/public tema food — carregar com @if theme === food. */
:root {
    --page: #fffaf5;
    --surface: #fff;
    --line: #f0e3d7;
    --ink: #2a211d;
    --muted: #806f64;
}

body {
    background: var(--page);
}

.topbar {
    background: #fffdf9f2;
    border-bottom-color: var(--line);
}

.brand-mark {
    border-radius: 13px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent);
}

.page-shell {
    max-width: 1180px;
}

.hero {
    display: grid;
    margin: 22px 0 0;
    padding: 44px clamp(24px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 82% 18%,
            color-mix(in srgb, var(--accent) 16%, white),
            transparent 28%
        ),
        linear-gradient(135deg, #fff2df, #fffdf9);
}

.hero h1 {
    letter-spacing: -0.055em;
}

.hero-art {
    border-radius: 40% 40% 45% 45%;
    transform: rotate(5deg);
    box-shadow: 0 20px 45px color-mix(in srgb, var(--accent) 30%, transparent);
}

.catalog {
    padding-top: 34px;
}

.tools {
    margin-bottom: 18px;
}

.tools h2 {
    letter-spacing: -0.035em;
}

.categories {
    position: static !important;
    display: flex !important;
    width: 100%;
    margin: 0 0 20px;
    padding: 4px 0 14px;
    gap: 10px;
}

.chip {
    flex: 0 0 auto;
    border-color: var(--line);
    background: #fff;
    color: var(--muted);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

.product {
    border-color: var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 25px #7b4b2410;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px #7b4b2420;
}

.visual {
    background: linear-gradient(145deg, #fff0dc, #fffaf4);
}

.product-body {
    padding: 15px 16px 17px;
}

.product h2 {
    letter-spacing: -0.02em;
}

.price {
    color: var(--accent);
}

.add {
    width: auto;
    min-width: 104px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0;
    font-weight: 800;
}

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

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

.theme-food .hero {
    background: linear-gradient(
        135deg,
        #7b2d26 0 43%,
        #b9472f 43% 70%,
        #ffcf8a 70%
    );
    color: #fff;
    border: 0;
}

.theme-food .hero p {
    color: #fff0df;
}

.theme-food .hero .open {
    color: #ffd99d;
}

.theme-food .hero-art {
    background: #ffd99d;
}

.theme-food .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.theme-food .product {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 0;
    padding: 10px;
    border-radius: 16px;
}

.theme-food .visual {
    margin: 0;
    aspect-ratio: 1;
    border-radius: 12px;
}

.theme-food .product-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.theme-food .product-foot {
    margin-top: auto;
    display: block;
}

.theme-food .price {
    display: block;
    margin-bottom: 8px;
}

.theme-food .add {
    width: 100%;
}

body:has(.theme-food) {
    background: #fff;
}

.theme-food {
    --food-red: var(--accent);
    --food-dark: #171310;
    --page: #fff;
    --line: #e9edf2;
}

.theme-food .topbar {
    background: #fff;
    border-bottom: 1px solid #edf0f3;
}

.theme-food .brand-mark {
    background: var(--food-dark);
    border-radius: 13px;
    box-shadow: none;
}

.theme-food .hero {
    position: relative;
    min-height: 300px;
    margin: 20px 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    padding: 42px clamp(24px, 5vw, 58px);
    background: #171310;
    color: #fff;
}

.theme-food .food-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.theme-food .hero:before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        #110e0cf5 0%,
        #110e0cb8 43%,
        #110e0c20 78%,
        #110e0c70 100%
    );
}

.theme-food .hero:after {
    content: none;
}

.theme-food .hero > div {
    position: relative;
    z-index: 2;
}

.theme-food .hero:after {
    content: none !important;
}

.theme-food .hero h1 {
    position: relative;
    z-index: 1;
    max-width: 55%;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    letter-spacing: -0.065em;
}

.theme-food .hero p {
    position: relative;
    z-index: 1;
    max-width: 48%;
    color: #f7e9dd;
}

.theme-food .hero .open {
    position: relative;
    z-index: 1;
    color: #ffb35c;
}

.theme-food .hero-art {
    display: none;
}

.theme-food .catalog {
    padding-top: 26px;
}

.theme-food .tools {
    margin-bottom: 15px;
}

.theme-food .tools h2 {
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.theme-food .categories {
    gap: 10px;
    padding: 5px 0 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf0f3;
    overflow-x: auto;
}

.theme-food .chip {
    border: 1px solid #e4e8ed;
    border-radius: 999px;
    padding: 10px 17px;
    background: #fff;
    color: #354052;
    font-weight: 700;
    white-space: nowrap;
}

.theme-food .chip.active {
    border-color: var(--food-red);
    background: var(--food-red);
    color: #fff;
}

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

.theme-food .product {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px #1a27330b;
}

.theme-food .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px #1a27331a;
}

.theme-food .visual {
    margin: 0;
    aspect-ratio: 1.15;
    border-radius: 12px;
    background: #f3f5f7;
}

.theme-food .product-body {
    padding: 7px 12px;
}

.theme-food .product h2 {
    font-size: 1.02rem;
    letter-spacing: -0.025em;
}

.theme-food .product .category {
    color: #8c98a6;
}

.theme-food .price {
    color: #121820;
}

.theme-food .product-foot {
    display: flex;
    align-items: center;
}

.theme-food .add {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--food-red);
}

.theme-food .add:before {
    content: "";
}

.theme-food .add:after {
    content: "+";
    font-size: 1.45rem;
}

.category-menu {
    display: none;
}

.contemporary-nav {
    max-width: none !important;
    padding: 0 max(30px, calc((100% - 1180px) / 2)) !important;
    background: #fff7ee !important;
    border-bottom-color: var(--line) !important;
}

.contemporary-nav > div {
    gap: 25px !important;
}

.contemporary-nav a {
    color: var(--muted) !important;
}

.contemporary-nav a.active,
.contemporary-nav a:hover {
    color: var(--ink) !important;
    border-color: var(--accent) !important;
}

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

@media (max-width: 900px) {
    .theme-food .grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        display: grid;
        margin-top: 12px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .catalog {
        padding-top: 25px;
    }

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

    .visual {
        margin: 0;
    }

    .product-body {
        padding: 12px;
    }

    .product h2 {
        font-size: 0.9rem;
    }

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

    .category-menu {
        display: block;
    }

    .theme-food .hero {
        min-height: 260px;
    }

    .theme-food .hero h1,
    .theme-food .hero p {
        max-width: 68%;
    }

    .theme-food .hero:after {
        right: -2%;
        bottom: -18px;
        font-size: 9rem;
    }

    .theme-food .grid {
        grid-template-columns: 1fr;
    }

    .theme-food .product {
        grid-template-columns: 100px 1fr;
    }
}
