/* HEADER */
.navbar {
    padding: 12px 20px;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo {
    height: 40px;
}

/* BUSCA */
.busca-box {
    display: flex;
    gap: 8px;
}

.busca-box input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 280px;
}

.busca-box button {
    background: #ff4d6d;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
}

/* PRODUTOS */
.pagina-catalogo #produtos {
    margin-top: 20px;
}

.produto-card {
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
    border: 1px solid #eee;
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGEM */
.slider {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.slider img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* SLIDE */
.produto-slide {
    display: none;
}

.produto-slide.ativo {
    display: block;
}

/* SETAS */
.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* BOTÃO */
.btn-comprar {
    width: 100%;
    background: linear-gradient(45deg, #ff4d6d, #ff758f);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
}

/* CARRINHO */
.carrinho-lateral {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    transition: 0.3s;
    z-index: 9999;
}

.carrinho-lateral.ativo {
    right: 0;
}

/* GALERIA */
.galeria-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.galeria-modal img {
    max-width: 70%;
    border-radius: 12px;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ===== CARRINHO LATERAL ===== */
.carrinho-lateral {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.carrinho-lateral.ativo {
    right: 0;
}

/* ===== HEADER ===== */
.carrinho-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrinho-header h4 {
    margin: 0;
    font-size: 18px;
}

.carrinho-header button {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/* ===== BODY ===== */
.carrinho-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* ITEM */
.item-carrinho {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.item-carrinho img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}

.item-info {
    flex: 1;
}

.item-info h5 {
    margin: 0;
    font-size: 14px;
}

.item-info span {
    font-size: 13px;
    color: #666;
}

/* REMOVER */
.btn-remover {
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ===== FOOTER ===== */
.carrinho-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.carrinho-total {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

/* BOTÃO FINALIZAR */
.carrinho-footer button {
    width: 100%;
    background: #ff4d6d;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.carrinho-footer button:hover {
    background: #e63956;
}



/* ===== GALERIA MODAL ===== */
.galeria-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.galeria-modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
}

/* BOTÃO FECHAR */
.fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

/* SETAS */
.seta-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.seta-modal:hover {
    background: rgba(0,0,0,0.8);
}

.seta-modal.prev {
    left: 20px;
}

.seta-modal.next {
    right: 20px;
}

.galeria-modal .seta {
    width: 50px;
    height: 50px;
    font-size: 26px;
    border-radius: 12px;
}