html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f4f1ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #161616;
}

.troia-app {
    max-width: 540px;
    min-height: 100vh;
    margin: 0 auto;
    background: #f9f7f3;
}

.troia-hero {
    padding: 22px 18px 18px;
    background: linear-gradient(135deg, #161616, #3a2a1d);
    color: #fff;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.troia-hero-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.troia-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff;
    color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
}

.troia-hero h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
}

.troia-hero p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: .78;
}

.troia-category-nav {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 14px 12px;
    background: rgba(249, 247, 243, .96);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
}

.troia-category-nav::-webkit-scrollbar {
    display: none;
}

.troia-category-nav a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #161616;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.troia-category-nav a:first-child {
    background: #161616;
    color: #fff;
}

.troia-content {
    padding: 6px 14px 28px;
}

.troia-section {
    scroll-margin-top: 78px;
    margin-bottom: 30px;
}

.troia-section-title {
    margin: 18px 2px 13px;
}

.troia-section-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.3px;
}

.troia-product-list {
    display: grid;
    gap: 14px;
}

.troia-product-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
    min-height: 132px;
}

.troia-product-image {
    position: relative;
    background: #eee;
    min-height: 132px;
}

.troia-product-image img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    display: block;
}

.troia-no-image {
    height: 100%;
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.troia-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #161616;
    color: #fff;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.troia-product-body {
    padding: 13px 13px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.troia-product-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.troia-product-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
}

.troia-product-head strong {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 900;
    color: #7a4a16;
}

.troia-product-body p {
    margin: 7px 0 9px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6b6b6b;
}

.troia-allergens {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.troia-allergens span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1eee8;
    color: #5c5146;
    font-size: 10.5px;
    font-weight: 700;
}

.troia-empty {
    padding: 70px 20px;
    text-align: center;
}

.troia-empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.troia-empty p {
    margin: 0;
    color: #777;
}

@media (min-width: 700px) {
    body {
        background: #e8e1d6;
    }

    .troia-app {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,.12);
    }
}

@media (max-width: 380px) {
    .troia-product-card {
        grid-template-columns: 104px 1fr;
    }

    .troia-product-head h3 {
        font-size: 15px;
    }

    .troia-product-head strong {
        font-size: 15px;
    }
}