/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* MENU / HEADER */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.logo span {
    color: #ff477e;
}

nav a {
    text-decoration: none;
    color: #475569;
    margin: 0 16px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff477e;
}

.cart-icon {
    font-size: 16px;
    cursor: pointer;
    background: #f1f5f9;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cart-icon:hover {
    background: #ffeef2;
    color: #ff477e;
    transform: translateY(-1px);
}

/* HERO BANNER */
.hero {
    background: radial-gradient(circle at top right, #ffeef2 0%, #e6f0fa 100%);
    text-align: center;
    padding: 100px 24px;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-banner {
    display: inline-block;
    background-color: #ff477e;
    color: white;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.25);
    transition: all 0.2s ease;
}

.btn-banner:hover {
    background-color: #f43f5e;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 71, 126, 0.35);
}

/* VITRINE DE PRODUTOS */
.produtos-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.produtos-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 48px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    justify-content: center;
}

.produto-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 10px 15px -3px rgba(0,0,0,0.04);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.produto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produto-card:hover img {
    transform: scale(1.04);
}

.produto-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produto-info h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.produto-info .preco {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 12px;
}

.produto-info .desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.input-personalizacao {
    margin-bottom: 20px;
}

.input-personalizacao label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #334155;
}

.input-personalizacao textarea {
    width: 100%;
    height: 70px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    resize: none;
    font-size: 13.5px;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.input-personalizacao textarea:focus {
    outline: none;
    border-color: #ff477e;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.15);
}

.btn-add {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    transition: all 0.2s;
}

.btn-add:hover {
    background-color: #ff477e;
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.2);
}

/* OVERLAY & CARRINHO LATERAL */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
}

#cart-overlay.ativo {
    display: block;
}

.carrinho-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 400px) {
    .carrinho-sidebar {
        width: 100%;
        right: -100%;
    }
}

.carrinho-sidebar.aberto {
    right: 0;
}

.carrinho-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.carrinho-header h3 {
    font-weight: 700;
    font-size: 18px;
}

.fechar-carrinho {
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    transition: color 0.2s;
}

.fechar-carrinho:hover {
    color: #0f172a;
}

.carrinho-itens-lista {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1; 
}

.carrinho-vazio {
    color: #94a3b8;
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
}

.item-carrinho-box {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
    position: relative;
}

.item-carrinho-box:first-child {
    padding-top: 0;
}

.item-carrinho-box h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    padding-right: 70px;
}

.item-carrinho-box p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
    line-height: 1.4;
}

.btn-remover {
    position: absolute;
    top: 16px;
    right: 0;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-remover:hover {
    background: #fee2e2;
}

.carrinho-footer {
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    margin-bottom: env(safe-area-inset-bottom);
}

.total-container {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: #0f172a;
}

#valor-total {
    color: #10b981;
}

.btn-finalizar {
    background-color: #25d366;
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: all 0.2s;
}

.btn-finalizar:hover {
    background-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* FOOTER */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 24px;
    text-align: center;
    font-size: 14px;
}

.footer-container p {
    margin: 6px 0;
}
