/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
}

.cart-icon #cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FFA500;
    color: white;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.cart { 
    position: fixed; 
    right: -300px; 
    top: 0; 
    width: 300px; 
    z-index: 9999;
    height: 100%; 
    background: white; 
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding: 20px;
}
.cart.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; font-weight: bold; }
.cart-items { margin-top: 20px; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 10px; }
.close-cart { cursor: pointer; font-size: 22px; }

.cart-items {
max-height: 400px; /* Limita a altura do carrinho para evitar overflow */
overflow-y: auto; /* Adiciona rolagem se necessário */
padding: 10px;
}


.cart-item:hover {
transform: scale(1.02);
}

/* Estilo para a imagem */
.cart-img {
width: 60px; /* Define um tamanho fixo para a imagem */
height: 60px;
border-radius: 8px;
overflow: hidden;
flex-shrink: 0; /* Garante que a imagem não deforme */
}

.cart-img img {
width: 100%;
height: 100%;
object-fit: cover; /* Mantém a proporção correta */
}

/* Informações do produto no carrinho */
.cart-details {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.cart-details h4 {
font-size: 14px;
font-weight: bold;
margin: 0;
color: #333;
}

.cart-quantity {
display: flex;
align-items: center;
gap: 8px;
margin-top: 5px;
}

.btn-qty {
background: #FFA500;
border: none;
padding: 5px 10px;
font-size: 14px;
cursor: pointer;
border-radius: 4px;
transition: 0.2s;
}

.btn-qty:hover {
background: #e76f51;
}

.cart-price {
font-size: 14px;
color: #555;
margin: 5px 0;
}

.cart-total {
font-size: 14px;
font-weight: bold;
}

/* Botão de remover */
.remove-item {
background: none;
border: none;
color: #d9534f;
font-size: 14px;
cursor: pointer;
transition: 0.2s;
}

.remove-item:hover {
color: #b52b27;
}

/* Carrinho vazio */
.empty-cart {
text-align: center;
font-size: 16px;
color: #777;
padding: 20px;
}

.cart-footer {
padding: 15px;
display: flex;
justify-content: center;
background: #fff;
border-top: 1px solid #ddd;
}


/* Responsividade */
@media (max-width: 768px) {
.cart-item {
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
}

.cart-img {
width: 80px;
height: 80px;
}
}

.cart-items {
max-height: 400px; /* Limita a altura do carrinho para evitar overflow */
overflow-y: auto; /* Adiciona rolagem se necessário */
padding: 10px;
}

.cart-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 12px;
border-bottom: 1px solid #ddd;
background: #f9f9f9;
border-radius: 8px;
transition: transform 0.2s ease-in-out;
}

.cart-item:hover {
transform: scale(1.02);
}

/* Estilo para a imagem */
.cart-img {
width: 60px; /* Define um tamanho fixo para a imagem */
height: 60px;
border-radius: 8px;
overflow: hidden;
flex-shrink: 0; /* Garante que a imagem não deforme */
}

.cart-img img {
width: 100%;
height: 100%;
object-fit: cover; /* Mantém a proporção correta */
}

/* Informações do produto no carrinho */
.cart-details {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.cart-details h4 {
font-size: 14px;
font-weight: bold;
margin: 0;
color: #333;
}

.cart-quantity {
display: flex;
align-items: center;
gap: 8px;
margin-top: 5px;
}

.btn-qty {
background: #FFA500;
border: none;
padding: 5px 10px;
font-size: 14px;
cursor: pointer;
border-radius: 4px;
transition: 0.2s;
}

.btn-qty:hover {
background: #e76f51;
}

.cart-price {
font-size: 14px;
color: #555;
margin: 5px 0;
}

.cart-total {
font-size: 14px;
font-weight: bold;
}

/* Botão de remover */
.remove-item {
background: none;
border: none;
color: #d9534f;
font-size: 14px;
cursor: pointer;
transition: 0.2s;
}

.remove-item:hover {
color: #b52b27;
}

/* Carrinho vazio */
.empty-cart {
text-align: center;
font-size: 16px;
color: #777;
padding: 20px;
}

.cart-footer {
padding: 15px;
display: flex;
justify-content: center;
background: #fff;
border-top: 1px solid #ddd;
}

/* Hero Section com Vídeo */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    filter: blur(3px);
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #80777F, #FF4500);
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: 0px;
}

.btn:hover {
    background: linear-gradient(135deg, #FF4500, #80777F);
    transform: scale(1.05);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 160px 20px 60px; /* Garante espaço suficiente abaixo do header */
}

.product-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 1000px; /* Limita a largura para evitar esticar demais */
    width: 100%;
    justify-content: center; /* Alinha os itens internos corretamente */
    margin: 150px auto 40px; /* Adiciona margem superior para não ficar colado no header */
}

.image-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

.main-image img:hover {
    transform: scale(1.05);
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.thumbnail:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    text-align: center;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #222;
}

.price {
    color: #fff;
    font-weight: bold;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align:left;
    color: #555;
}

.video-container {
    display: flex;
    justify-content: center;
    margin: 20px auto; /* Espaço entre o conteúdo acima e o vídeo */
    width: 100%;
}

.video-container video {
    width: 80%; /* O vídeo ocupa 80% da largura da tela */
    max-width: 800px; /* Limita a largura máxima para não ficar exagerado */
    border-radius: 12px; /* Bordas arredondadas para um visual mais moderno */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: rgba(34, 34, 34, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav a {
        display: block;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav.active {
        display: flex;
    }
}

/* Estilos Responsivos do Menu */
@media (max-width: 768px) {
    .header {
        padding: 15px 30px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav a {
        display: block;
        margin: 10px 0;
    }
}

/* Estilos Responsivos para Product Details */
@media (max-width: 1024px) {
    .product-details {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 30px;
    }
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .product-info h1 {
        font-size: 24px;
    }

    .price {
        font-size: 20px;
    }

    .description {
        font-size: 16px;
    }
}

/* Responsividade para Modal */
@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

.checkout-btn {
    width: 100%;
    background: #FF4500;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.checkout-btn:hover {
    background:#ff591d;
    transform: scale(1.05);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    border: 2px solid #e0e0e0;
    font-weight: bold;
    text-align: center;
}

.payment-method input {
    display: none;
}

.payment-method span {
    font-size: 16px;
    color: #333;
    transition: 0.3s;
}

.payment-method:hover {
    background: #e9ecef;
}

.payment-method input:checked + span {
    color: #28a745;
    font-weight: bold;
}

/* Estilização do botão Apple Pay e Google Pay */
.apple-google-btn img {
    width: 100px;
    height: 40px;
}

/* Campos adicionais escondidos */
.payment-details {
    display: none;
    margin-top: 15px;
}

#visa-fields input, #mbway-phone-container input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

#visa-fields .visa-row {
    display: flex;
    gap: 10px;
}

#visa-fields input:focus, #mbway-phone-container input:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 7px rgba(40, 167, 69, 0.5);
}

/* QR Code do PIX */
#pix-container {
    display: none;
    text-align: center;
    margin-top: 15px;
}

#pix-qr {
    width: 200px;
    height: 200px;
    margin-top: 10px;
}

#payshop-code-container { display: none; margin-top: 15px; }
#payshop-code-container input { width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 6px; font-size: 16px; }
#payshop-code-container input:focus { border-color: #28a745; outline: none; box-shadow: 0 0 7px rgba(40, 167, 69, 0.5); }




/* Rodapé */
.footer {
    background: #000;
    color: white;
    padding: 40px 0;
    font-size: 14px;
}

.container-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px 0;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFA500;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FF4500;
}

.footer-section p a {
    color: #FFA500;
    text-decoration: none;
    font-weight: bold;
}

.footer-section p a:hover {
    color: #FF4500;
}

.social-icons {
    margin-top: 10px;
}

.social-icons .icon {
    display: inline-block;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.footer-bottom {
    text-align: center;
    background: #000;
    padding: 15px;
    margin-top: 20px;
}

/* Responsividade */

@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .cart {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: white;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cart {
        width: 100%;
        right: -100%;
    }
    
    .cart.open {
        right: 0;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .checkout-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer-section {
        min-width: 100%;
        text-align: center;
    }
}
