/* Estilos Básicos */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    background-color: #0c0c0c;
    color: #ffffff;
    padding-top: 70px; 
    overflow-x: hidden; 
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #e50914;
}

/* Cabeçalho */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #121212;
    padding: 5px 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

header .logo a {
    text-decoration: none;
    color: #e50914;
    display: flex;
    align-items: center;
}

header .logo img {
    width: 30px;
    margin-right: 10px;
}

header .logo h1 {
    font-size: 1.2rem;
    margin: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.nav-links ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    padding: 5px 0;
}

.nav-links ul li a:hover,
.nav-links ul li a:focus {
    color: #e50914;
    transform: scale(1.1);
}

/* Barra de pesquisa */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #1c1c1c;
    padding: 3px 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.search-bar input {
    background-color: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    padding: 5px;
    font-size: 12px;
    flex-grow: 1;
    width: 100%;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: #e50914;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1c1c1c;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-suggestions a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

.search-suggestions a img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.search-suggestions a:hover {
    background-color: #e50914;
}

/* Ícone do carrinho */
.cart-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: 20px;
}

.cart-icon svg {
    color: #e50914;
    width: 24px;
    height: 24px;
}

#cart-item-count {
    position: absolute;
    top: -8px; 
    right: -10px;
    background-color: #e50914;
    color: #ffffff;
    font-size: 14px;
    padding: 6px 10px; 
    border-radius: 50%; 
    font-weight: bold; 
    border: 2px solid #ffffff; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilização do carrinho deslizante */
.cart-container {
    position: fixed;
    top: 0;
    right: -320px; /* Largura do carrinho */
    width: 320px;
    height: 100%;
    background-color: #1c1c1c;
    padding: 20px;
    z-index: 2000;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding-bottom: 60px; /* Espaço para o botão fixo */
    visibility: hidden;
    opacity: 0;
}

.cart-container.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    background-color: #343434;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-name {
    flex-grow: 1;
    font-size: 14px;
    color: #ffffff;
}

.cart-item-price {
    margin-right: 10px;
    font-size: 14px;
    color: #e50914;
}

.remove-cart-item {
    background: none;
    border: none;
    cursor: pointer;
    color: #e50914;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Ajuste no botão de finalizar compra */
.cart-actions {
    position: relative; /* Alterado de fixed para relative */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1c1c1c;
    padding: 10px 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* Adicionei uma margem para separação */
}

.cart-actions button {
    background-color: #e50914;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cart-actions button:hover {
    background-color: #ff1c3b;
}

.cart-total {
    border-top: 1px dashed #ffffff;
    padding-top: 10px;
    margin-bottom: 0; /* Ajuste a margem inferior */
    text-align: right;
}

.cart-total p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

#cart-total-value {
    color: #e50914;
    font-size: 24px;
    font-weight: bold;
}

/* Menu Hambúrguer */
.hamburger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1100; 
    transition: transform 0.3s ease-in-out;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #e50914;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger.open span {
    opacity: 0;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none; 
    }

    #mobile-nav {
        display: block; 
    }
}

#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; 
    max-width: 300px;
    height: 100%;
    background-color: #1c1c1c;
    padding-top: 60px; 
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    z-index: 1001; 
}

#mobile-nav.open {
    transform: translateX(0); 
}

#mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-nav ul li {
    margin-bottom: 20px;
}

#mobile-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

#mobile-nav ul li a:hover {
    color: #e50914;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.menu-overlay.visible {
    display: block; 
    z-index: 1000; 
}

.no-scroll {
    overflow: hidden;
}

/* Ícones */
.icon-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
    background-color: transparent;
    flex-wrap: wrap;
}

.icon-box {
    position: relative;
    background-color: #100f0f;
    padding: 16px; /* Aumentei o padding para ampliar a área clicável */
    border-radius: 12%; /* Leve ajuste no border-radius */
    box-shadow: 0px 4px 10px rgba(3, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 54px; /* Aumentei a largura do ícone */
    height: 54px; /* Aumentei a altura do ícone */
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box img {
    width: 45px; /* Aumentei o tamanho da imagem */
    height: 50px; /* Aumentei o tamanho da imagem */
    opacity: 1;
    transition: opacity 0.3s ease;
}


.icon-box:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.icon-box:hover img {
    opacity: 1;
}

.icon-box:hover .tooltip,
.icon-box:focus .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

@media (hover: none) {
    .icon-box:active .tooltip {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Contêiner do carrossel */
.banner-container {
    display: flex;
    gap: 0.2rem;
    width: 80%;
    max-width: 1200px;
    height: 400px;
    position: relative;
    margin: auto;
    margin-bottom: 50px;
}

.main-banner {
    flex: 2;
    position: relative;
    height: 100%;
    background-color: #333;
    border-right: 5px;
    overflow: hidden;
}

.side-banners {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem; 
}

.small-banner {
    flex: 1;
    height: 100%;
    background-color: #444;
    border-left: 1px;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.banner img.active {
    display: block;
}

.price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, width 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 100px;
}

.price-tag span {
    transition: opacity 0.3s ease;
}

.banner:hover .price-tag,
.banner:focus-within .price-tag {
    background-color: #e50914;
    width: auto;
    padding: 10px;
    min-width: 50px;
}

.banner:hover .price-tag span,
.banner:focus-within .price-tag span {
    opacity: 0;
}

.banner:hover .cart-icon-carousel,
.banner:focus-within .cart-icon-carousel {
    display: block;
}

/* Estilo do ícone do carrinho no carrossel */
.cart-icon-carousel {
    width: 24px;
    height: 24px;
    background-color: #e50914;
    mask: url('https://img.icons8.com/ios-glyphs/30/ffffff/shopping-cart.png') center / contain no-repeat;
    -webkit-mask: url('https://img.icons8.com/ios-glyphs/30/ffffff/shopping-cart.png') center / contain no-repeat;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease;
}

.cart-icon-carousel:after {
    content: '+';
    color: white;
    font-size: 16px;
    position: absolute;
    right: -10px;
    top: -10px;
    background-color: #e50914;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner:hover .cart-icon-carousel,
.banner:focus-within .cart-icon-carousel {
    display: block;
    opacity: 1;
}

.banner:hover .price-tag span,
.banner:focus-within .price-tag span {
    opacity: 0;
}

.banner:hover .price-tag,
.banner:focus-within .price-tag {
    background-color: rgba(0, 0, 0, 0.7);
    width: auto;
    padding: 10px;
}

/* Botões de navegação do carrossel */
.navigation-buttons {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation-buttons.left {
    left: -50px;
}

.navigation-buttons.right {
    right: -50px;
}

.navigation-buttons button {
    background: none;
    border: none;
    color: #e50914;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    outline: none;
}

.navigation-buttons button:hover {
    color: #ff1c3b;
    transform: scale(1.2);
}

.navigation-buttons button svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navigation-buttons button:focus {
    outline: none;
}

/* Contador de páginas (bolinhas) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    background-color: #e50914;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: #ff1c3b;
}

.carousel-indicators .indicator:hover {
    background-color: #ff1c3b;
}

/* Produtos em Destaque */
.produtos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.categoria {
    margin-bottom: 30px;
}

.categoria h2 {
    display: inline-block;
    font-size: 24px;
    color: #e50914;
    margin-right: 20px;
}

.ver-mais {
    background-color: #e50914;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    float: right;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.ver-mais:hover {
    background-color: #ff1c3b;
}

.produtos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.produto-item {
    background-color: #1c1c1c;
    border: 1px solid #e50914;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.produto-item:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.produto-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.produto-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.produto-item p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
}

.produto-item .btn-add-cart,
.produto-item .btn-view-accounts,
.produto-item .btn-view-product {
    background-color: #e50914;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.produto-item .btn-add-cart:hover,
.produto-item .btn-view-accounts:hover,
.produto-item .btn-view-product:hover {
    background-color: #ff1c3b;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    header {
        padding: 5px 10px;
    }

    .cart-icon {
        margin-right: 10px;
    }

    .nav-links {
        display: none;
    }

    .banner-container {
        flex-direction: column;
        height: auto;
    }

    .main-banner {
        width: 100%;
        height: 100vw;
    }

    .small-banner {
        display: none;
    }
}
