:root {
    --primary: #8B6914; /* Dourado mais escuro */
    --secondary: #D4AF37; /* Dourado tradicional */
    --background: #FFF8E7; /* Bege claro */
    --text: #2C241B; /* Marrom escuro */
    --text-light: #6B5B47; /* Marrom claro */
    --border: #E8D9B5; /* Dourado claro */
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(139, 105, 20, 0.15);
    --gradient: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDEzNSkiPjxyZWN0IHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgZmlsbD0icmdiYSgyMTYsIDE3NSwgODEsIDAuMDMpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--gradient);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin: 0 auto;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.brand-text { line-height: 1; }
.brand-name {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .5px;
}
.brand-tagline {
    display: block;
    color: var(--text-light);
    font-size: .8rem;
    margin-top: 4px;
}

.icon-btn { display: none; }

.search { 
    margin-top: 8px; 
    display: flex; 
}
.search input {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafafa;
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.search input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(194,149,91,.25);
}

/* Main Content */
.products-section {
    padding: 20px 0 40px;
}

/* Rooms (Categorias de cômodos) */
.rooms-nav {
    margin-bottom: 16px;
}

.rooms-list {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 10px;
    list-style: none;
    scroll-snap-type: x mandatory;
}

.rooms-list::-webkit-scrollbar { height: 8px; }
.rooms-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.12);
    border-radius: 10px;
}

.room-item {
    scroll-snap-align: start;
}

.room-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    min-width: 88px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 8px;
}

.room-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--white);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    border: 2px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.room-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.room-all {
    font-size: .75rem;
    font-weight: 800;
    color: var(--primary);
}

.room-emoji {
    font-size: 28px;
    line-height: 1;
}

.room-label {
    font-size: .78rem;
    color: var(--text);
    text-align: center;
    font-weight: 600;
}

.room-btn[aria-selected="true"] .room-icon {
    border-color: var(--secondary);
    box-shadow: 0 8px 18px rgba(212,175,55,.25);
    transform: translateY(-3px);
}

.room-btn:focus-visible .room-icon {
    outline: 3px solid rgba(212,175,55,.35);
    outline-offset: 2px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 10px 0;
}

/* Força 2 colunas com maior especificidade (caso algum estilo conflite) */
#gridNew.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Evita overflow e quebras inesperadas dentro das colunas */
.products-grid .card {
    min-width: 0;
}

/* Product Card */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card .info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 120px;
    height: 100%;
    box-sizing: border-box;
}

.card .title {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    flex-grow: 1;
}

.card .meta {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.card .buy {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.card .buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 100%);
}

/* Empty State */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, #6B5B47 100%);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid var(--border);
}

.site-footer p {
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card img {
        height: 160px;
    }
}
