* {
    box-sizing: border-box;
}

body.theme-cafe {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3eadb;
    color: #24211d;
}

.cafe-hero {
    position: relative;
    min-height: 72svh;
    display: flex;
    align-items: end;
    overflow: hidden;
    background: #2b211b;
    color: #fff7e8;
    isolation: isolate;
}

.cafe-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("/images/seu-cafe-hero.png") center center / cover no-repeat;
}

.cafe-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(37, 27, 21, 0.88), rgba(37, 27, 21, 0.58) 52%, rgba(37, 27, 21, 0.16));
}

.hero-inner,
.cafe-content {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.hero-inner {
    padding: 28px 0 44px;
}

.top-links {
    position: absolute;
    top: 18px;
    left: max(14px, calc((100% - 1120px) / 2));
}

.top-links a,
.image-link,
.cafe-card h3 a {
    color: inherit;
    text-decoration: none;
}

.top-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 247, 232, 0.34);
    border-radius: 8px;
    background: rgba(37, 27, 21, 0.34);
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.eyebrow {
    margin: 0 0 10px;
    color: #9fd3bc;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cafe-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.intro {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 247, 232, 0.94);
    font-size: clamp(1rem, 2vw, 1.24rem);
    font-weight: 800;
    line-height: 1.45;
}

.intro-secondary {
    margin-top: 8px;
    color: rgba(255, 247, 232, 0.82);
    font-size: 1rem;
}

.hours {
    display: inline-flex;
    margin: 22px 0 0;
    min-height: 38px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(159, 211, 188, 0.58);
    border-radius: 999px;
    background: rgba(45, 78, 62, 0.52);
    color: #fff7e8;
    font-weight: 900;
}

.cafe-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cafe-order-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid rgba(255, 247, 232, 0.58);
    border-radius: 8px;
    background: #fff7e8;
    color: #315846;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(37, 27, 21, 0.22);
}

.cafe-order-link-secondary {
    background: rgba(49, 88, 70, 0.78);
    color: #fff7e8;
}

.cafe-local-note {
    display: grid;
    gap: 4px;
    width: min(430px, 100%);
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(159, 211, 188, 0.44);
    border-radius: 8px;
    background: rgba(37, 27, 21, 0.42);
    backdrop-filter: blur(8px);
}

.cafe-local-note h2,
.cafe-local-note p {
    margin: 0;
}

.cafe-local-note h2 {
    color: #9fd3bc;
    font-size: 1rem;
}

.cafe-local-note p {
    color: rgba(255, 247, 232, 0.9);
    font-weight: 800;
    line-height: 1.35;
}

.cafe-content {
    padding: 26px 0 54px;
}

.catalog-tools {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.search-label,
.category-title {
    color: #315846;
    font-weight: 900;
}

.search-input {
    width: min(520px, 100%);
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8b69f;
    border-radius: 8px;
    background: #fffdf8;
    color: #24211d;
    font: inherit;
    font-weight: 800;
}

.category-section {
    margin-top: 28px;
}

.category-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.cafe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cafe-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddcbb2;
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 10px 22px rgba(56, 38, 25, 0.08);
}

.image-frame {
    display: grid;
    place-items: center;
    height: 214px;
    overflow: hidden;
    background: #e9ddcd;
    color: #6b513e;
    font-weight: 900;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.category-pill {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #e5f1e9;
    color: #315846;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cafe-card h3 {
    margin: 0;
    color: #2b211b;
    font-size: 1.06rem;
}

.cafe-card p {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0;
    overflow: hidden;
    color: #6b6258;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cafe-card strong {
    margin-top: auto;
    color: #315846;
    font-weight: 900;
}

.empty-message {
    margin: 18px 0 0;
    padding: 14px;
    border: 1px solid #ddcbb2;
    border-radius: 8px;
    background: #fffdf8;
    color: #6b513e;
    font-weight: 900;
}

.theme-cafe .category-filter[aria-pressed="true"] {
    border-color: #315846;
    background: #315846;
    color: #fffdf8;
    box-shadow: 0 4px 12px rgba(49, 88, 70, 0.18);
}

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

@media (max-width: 560px) {
    .cafe-hero {
        min-height: 68svh;
    }

    .cafe-hero::after {
        background: linear-gradient(180deg, rgba(37, 27, 21, 0.84), rgba(37, 27, 21, 0.54));
    }

    .cafe-grid {
        grid-template-columns: 1fr;
    }
}
