/* style.css - Ki-Sucesso */

/* reset simples */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    color: #111;
    -webkit-font-smoothing:antialiased;
}

/* TOPO */
.topbar {
    background:#ffff00;
    color: black;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.left-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 60px;
}

.left-icons i { cursor: pointer; }

.logo img { height: 180px; display:block; }

/* Ícone do carrinho */
.cart { font-size: 60px; cursor: pointer; }

/* MENU LATERAL (usando transform para não deixar faixa) */
.menu-lateral {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.12);
    padding: 18px;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(.22,.9,.36,1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-lateral.open {
    transform: translateX(0);
}

.menu-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 8px;
}

.menu-top h2 { font-size: 20px; }
#btnClose { cursor:pointer; font-size:20px; }

.menu-lateral a {
    display:block;
    padding: 12px 8px;
    font-size: 17px;
    color: #111;
    text-decoration: none;
    border-radius: 8px;
}

.menu-lateral a:hover { background: #fafafa; }

/* BACKDROP ESCURO */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.0);
    opacity: 0;
    pointer-events: none;
    transition: background 0.25s ease, opacity 0.25s ease;
    z-index: 998;
}

.menu-backdrop.show {
    background: rgba(0,0,0,0.42);
    opacity: 1;
    pointer-events: auto;
}

/* CARROSSEL */
.carousel {
    margin: 30px auto;        /* CENTRALIZA */
    max-width: 1200px;
    overflow: hidden;         /* NECESSÁRIO PRO SLIDE */
    border-radius: 12px;
    padding: 6px 0;
    width: 100%;
    display: block;           /* <<< ESSENCIAL: NÃO USAR FLEX */
}

.carousel-inner {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease;
    will-change: transform;
}


.carousel .slide {
    min-width: calc(100% - 40px);
    max-width: 100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.carousel img {
    width: 100%;
    max-width: 980px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

/* 🔥 CENTRALIZAÇÃO NO DESKTOP — ÚNICA ALTERAÇÃO */
@media (min-width: 900px) {
    .carousel-inner {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* SLIDE FINAL COM BOTÃO DO WHATSAPP */
.final-slide {
    position: relative;
}

.final-slide .btn-whats {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    background: #25d366;
    color: #fff;
    padding: 14px 26px;
    border-radius: 40px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
    border:2px solid #000;
}

.final-slide .btn-whats:hover {
    transform: translateX(-50%) scale(1.05);
}

/* indicador (simples) */
.carousel-indicators {
    display:flex;
    gap:8px;
    justify-content:center;
    margin-top:8px;
}
.carousel-indicators button {
    width:10px; height:10px; border-radius:50%; border:none; background:#ddd; cursor:pointer;
}
.carousel-indicators button.active { background:#333; }

/* TITULO PRODUTOS */
.titulo-produtos {
    max-width:1200px;
    margin: 18px auto 0;
    padding-left: 16px;
    font-size: 20px;
}

/* GRID PRODUTOS - estilo "cartão" mais quadrado */
.produtos {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    padding: 20px;
}

.produto {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 320px;
}

.produto img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* nome, preço, desc */
.produto h3 { font-size: 16px; margin-top: 4px; }
.produto .preco { color: #c0392b; font-weight: 700; font-size: 16px; }
.produto .desc { color:#666; font-size:13px; }

/* form controls */
.produto label { margin-top: auto; display:flex; align-items:center; gap:8px; font-size:14px; }
.produto input[type="number"] { width:60px; padding:6px; border-radius:6px; border:1px solid #ddd; }

/* QUANTIDADE (botões + e - + input) */
.qtd-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px auto;
}

.qtd-box button {
    width: 32px;
    height: 32px;
    font-size: 20px;
    border: none;
    background: #ffcc00;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.qtd-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
}

/* botão */
.produto .add {
    margin-top: 6px;
    background: #111;
    color: #fff;
    border: 0;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .12s ease;
}
.produto .add:active { transform: translateY(1px); }
.produto .add:hover { box-shadow: 0 6px 14px rgba(0,0,0,0.08); }

/* RWD - celular */
@media (max-width: 600px) {

    .left-icons { font-size: 40px; }
    .cart { font-size: 40px; }
    .logo img { height: 100px; }

    .carousel img { height: 180px; }

    .produtos { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
    .produto { min-height: 260px; padding: 10px; }
    .produto img { height: 130px; }

    .topbar { height: 86px; padding: 6px 12px; }
}

/* RWD - desktop large */
@media (min-width: 1200px) {
    .carousel img { height: 380px; }
    .produto img { height: 220px; }
    .produtos { gap: 20px; }
}
