html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
}

header, main, footer {
    width: 100%;
}

main {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #100c4c;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    white-space: nowrap; /* Impede a quebra de linha nos itens */
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 60px;
    width: auto;
    filter: invert(1);
    padding-right: 20px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto; /* Permite a rolagem horizontal dos itens */
    gap: 10px; /* Espaçamento entre os itens */
}

.navbar::-webkit-scrollbar {
    height: 0px;
}

.navbar::-webkit-scrollbar-thumb {
    opacity: 0;

    border-radius: 10px;
}

.nav-item {
    padding: 10px 20px;
    background-color: #ffffff;
    color: black;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item:hover {
    background-color: #100c4c; 
    color: #ffffff; 
}

.nav-item:focus {
    background-color: #100c4c; 
    color: #ffffff; 
}

.navbar-menu-icon {
    font-size: 1.8em;
    cursor: pointer;
    color: #ffffff; 
    display: none;
    border: none;
    background-color: #100c4c;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1045; 
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    transition: width 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.25rem; 
    color: #343a40;
    text-align: center;
    border-radius: 5px;
    width: 90%;
    margin: 10px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar a:hover {
    background-color: #100c4c;
    color: #ffffff;
    transform: scale(1.05);
}

.sidebar a:active {
    background-color: #100c4c;
    transform: scale(1);
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    cursor: pointer;
    color: #000000;
    border: none;
    background-color: transparent;
    padding: 10px;
    border-radius: 50%; 
    transition: background-color 0.2s ease;
}

.sidebar .closebtn:hover {
    background-color: #f0f0f0; 
}


@media screen and (max-width: 768px) {
    .navbar-menu-icon {
        display: block;
    }

    .navbar-nav {
        display: none;
    }
}

#product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-bottom: 2px solid #ccc;
}

#category-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px; 
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background-color: #f8f8f8;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: #aaa;
}

.search-container input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 20px;
}

.search-container input:focus + .search-icon {
    color: #0056b3; 
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; 
    padding: 0 1.4rem;
    padding-bottom: 40px;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    justify-content: center; 
}

.product-card {
    border: 1px solid #dddddd;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease; 
    opacity: 1;
    transform: scale(1); 

    width: 100%;
    aspect-ratio: 1 / 1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 320px) {
    .product-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.btn-primary {
    width: 100%;
    background-color: #007bff;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

#product-details {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px; 
    margin: auto;
    padding: 40px 20px;
}


.product-details-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px; 
    gap: 40px; 
}

.product-details-container div {
    flex: 1;

    max-width: 1500px;
}

.product-details-content, .carousel {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details-container #product-description {
    margin-top: 20px;
}

.product-box {
    display: flex;
    flex-direction: column;
}    

.carousel {
    max-width: 1200px;
    position: relative;
    border-radius: 10px;
}
  
.carousel img {
    display: none; 
    width: 100%;
    height: 100%;
    
}
  
.carousel img:first-child {
    display: block; 
}
  
.carousel-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media screen and (max-width: 768px) {

    .product-details-container  {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        padding: 10px 15px;
    }
    
    .carousel {
        margin-top: 10px;
    }

    .carousel img {
        max-height: 400px;
    }
}

#product-id {
    display: none;
}

#product-title {
    margin-top: 10px;
    font-size: 1.8rem; 
    font-weight: 600;
}

#product-price {
    margin-top: 15px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #28a745;
}

#product-description {
    margin-top: 20px;
    line-height: 1.6;
    color: #666666; 
}

.btn-whatsapp {
    width: 100%;
    background-color: green;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;  
    z-index: 1000; 
}

.whatsapp-button img {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

.footer {
    background-color: #100c4c;
    color: #fff;
    padding: 20px 20px 0px 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 2rem;
}

.footer-social a {
    display: inline-block;
    width: 3rem;
    height: 3rem; 
}

.footer-social img {
    filter: invert(1);
    width: 100%;
    height: 100%; 
    object-fit: contain; 
}