body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1F1F1F;
    color: white;
}
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}
.content {
    flex: 3;
    padding: 20px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 20px;
    background: white;
    border-radius: 15px;
}
.product {
    background: #333;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    aspect-ratio: 1 / 1; /* Mantém os produtos quadrados */
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar {
    flex: 1;
    padding: 20px;
    background: #292929;
}

.topbar {
    background: rgba(34, 34, 34, 0.9);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o logo e o nome */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s;
}
.topbar.scrolled {
    background: #222;
}
.topbar .logo {
    height: 50px;
}
.navbar {
    background: #333;
    padding: 15px;
    text-align: center;
    margin-top: 80px;
    display: flex;
    justify-content: center;
}
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.navbar ul li {
    margin: 0 20px;
}
.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.search-box input {
    width: 70vw;
    padding: 10px;
    border: none;
    border-radius: 5px;
}
.categories {
    margin-top: 20px;
}
.categories h3 {
    margin-bottom: 10px;
}
.categories ul {
    list-style: none;
    padding: 0;
}
.categories ul li {
    padding: 5px 0;
}

/* Layout principal */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.col-6 {
    width: 50%;
    padding-left: 8px;
    padding-right: 8px;
}

.col-lg-3 {
    width: 25%;
}

/* Estilo do Card */
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    height: 100%;
    background-color: #fff;
    position: relative; /* Para garantir que o .stretched-link funcione corretamente */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: auto;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.pt-3 {
    padding-top: 16px;
}

.pl-3 {
    padding-left: 16px;
}

.pr-3 {
    padding-right: 16px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

/* Botão de Favoritar */
.btn-icon {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: #f8f9fa;
}

/* Conteúdo do Card */
.card-body {
    padding: 16px;
    flex-grow: 1; /* Ocupa o espaço disponível */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Máximo de 3 linhas antes de cortar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.0em; /* Garante altura mínima suficiente para 3 linhas */
}

.card-body a {
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
}

.card-body h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 5px 0;
}

.card-body span {
    font-weight: bold;
    font-size: 16px;
}

.card-footer {
    padding: 16px;
    border-top: 1px solid #ddd;
    margin-top: auto; /* Empurra o footer para o final */
    position: relative; /* Garante que o footer fique acima do stretched-link */
    z-index: 2; /* Eleva o footer acima do link expandido */
}

.btn-outline-primary {
    background: none;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.title {
    margin: 20px 0;
    text-align: center;
}
.small, small {
    font-size: 80%;
    font-weight: 900;
}

/* Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Default Image */
.product-image {
    width: 100%;;
    transition: transform 0.3s ease;
}

/* Hover Image */
.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Image Swap on Hover */
.product-image-wrapper:hover .product-image-hover {
    opacity: 1;  /* Show second image */
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    .navbar ul li {
        margin: 10px 0;
    }
    .container {
        flex-direction: column;
        padding: 0;
    }
    .sidebar {
        order: -1;
    }

    .col-lg-3 {
        width: 50%;
    }
}




hr {
    display: none;
}

#footer {
    display: none !important;
}
