:root {
    --cor-primaria: #dd3333;
    --cor-primaria-hover: #c00;
    --bs-link-color-rgb: 51, 51, 51;
    --bs-link-hover-color-rgb: 221, 51, 51;
}
html {
    height: 100%;
}
body {
    font-family: 'Outfit', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
main {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}
.text-primaria { color: var(--cor-primaria) !important; }
.bg-primaria { background-color: var(--cor-primaria) !important; }
.btn-primaria {
    background-color: var(--cor-primaria);
    color: white;
    border-color: var(--cor-primaria);
    transition: background-color 0.3s ease;
}
.btn-primaria:hover {
    background-color: var(--cor-primaria-hover);
    border-color: var(--cor-primaria-hover);
    color: white;
}
.offer-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.offer-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.offer-card img { transition: transform 0.3s ease; }
.offer-card:hover img { transform: scale(1.03); }
.form-control:focus, .form-control:focus-within {
    border-color: var(--cor-primaria);
    outline: none;
    box-shadow: 0 0 0 2px rgba(221, 51, 51, 0.5);
}
.input-group-text { background-color: #f8f9fa; }
.main-nav-link {
    color: #333;
    font-weight: 500;
}
.main-nav-link:hover, .main-nav-link.active {
    color: var(--cor-primaria);
    background-color: #f8f9fa;
}
.header-icon {
    color: #555;
    transition: color 0.2s ease;
    text-decoration: none;
}
.header-icon:hover { color: var(--cor-primaria); }
.snow-roof {
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" preserveAspectRatio="none"><path d="M0,50 Q25,0 50,50 T100,50 L100,0 L0,0 Z" fill="%23f7f7f7" /></svg>');
    background-repeat: repeat-x;
    background-size: 100px 50px;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 10;
}
.footer-links li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links li a:hover {
    color: var(--cor-primaria);
    text-decoration: underline;
}
.footer-links li .footer-text {
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-address {
    color: #555;
}
.footer-address p {
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-bottom-bar a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-bottom-bar a:hover {
    color: white;
    text-decoration: underline;
}
.social-icon {
    color: #adb5bd;
    transition: color 0.2s ease;
}
.social-icon:hover { color: white; }
.product-catalog-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.product-catalog-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}
.product-catalog-card img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: contain;
    width: 100%;
    height: 200px;
    transition: transform 0.3s ease, opacity 0.3s ease-in-out;
    padding: 0.5rem;
    display: block;
}
.product-catalog-card:hover img { transform: scale(1.03); }
.product-catalog-card .card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90px;
}
.product-catalog-card .product-name {
    font-weight: 600;
    color: #333;
    font-size: 1.15rem;
}
.product-image-wrapper .no-image-icon {
    font-size: 5rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ajustes para Mobile */
@media (max-width: 767.98px) {
    /* Reduzir espaçamento entre cards */
    #catalogo-container.row,
    #livros-container.row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    
    /* Reduzir padding das seções */
    #destaques,
    #livros {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Reduzir padding horizontal no mobile */
    #destaques.container-xxl,
    #livros.container-xxl {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Ajustar cards no mobile */
    .product-catalog-card {
        border-radius: 6px;
    }
    
    /* Reduzir altura da imagem no mobile */
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-catalog-card img {
        height: 160px;
        padding: 0.375rem;
    }
    
    /* Reduzir padding do card-body no mobile */
    .product-catalog-card .card-body {
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }
    
    /* Reduzir tamanho do nome do produto no mobile */
    .product-catalog-card .product-name {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* Reduzir tamanho dos badges no mobile */
    .product-catalog-card .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        margin: 0.375rem !important;
    }
    
    /* Reduzir tamanho do ícone sem imagem no mobile */
    .product-image-wrapper .no-image-icon {
        font-size: 3.5rem;
    }
    
    /* Ajustar títulos das seções no mobile */
    #destaques h2,
    #livros h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
    }
    
    /* Ajustar botões no mobile */
    #botao-carregar-mais,
    #botao-carregar-mais-livros {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem !important;
    }
    
}
