/* ===== Taty Fashion - Estilo Principal ===== */
:root {
    --rosa: #e84393;
    --rosa-claro: #fce4ec;
    --rosa-hover: #d63384;
    --dourado: #c9a96e;
    --dourado-claro: #f5e6cc;
    --bg: #fef6f9;
    --bg-card: #ffffff;
    --texto: #2d2d2d;
    --texto-claro: #6b7280;
    --borda: #f0e0e8;
    --sombra: 0 2px 12px rgba(0,0,0,0.06);
    --sombra-hover: 0 6px 24px rgba(0,0,0,0.1);
    --teal: #3bb7d9;
    --verde: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--texto);
    line-height: 1.6;
}

/* ===== TOP BAR ===== */
.topbar {
    background: linear-gradient(135deg, var(--rosa), var(--rosa-hover));
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ===== HEADER ===== */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--borda);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rosa);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span { color: var(--dourado); }

/* Busca */
.busca {
    flex: 1;
    max-width: 400px;
    display: flex;
}
.busca input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--borda);
    border-radius: 25px 0 0 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.busca input:focus { border-color: var(--rosa); }
.busca button {
    padding: 10px 18px;
    background: var(--rosa);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-actions a {
    color: var(--texto);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.header-actions a:hover { color: var(--rosa); }
.header-actions .icone { font-size: 1.3rem; }
.carrinho-count {
    background: var(--rosa);
    color: white;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -6px;
    right: -10px;
}
.carrinho-link { position: relative; }

/* ===== NAV CATEGORIAS ===== */
nav.categorias {
    background: var(--bg-card);
    border-bottom: 1px solid var(--borda);
    padding: 0;
}
nav.categorias ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
}
nav.categorias ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--texto);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
nav.categorias ul li a:hover,
nav.categorias ul li a.ativo {
    color: var(--rosa);
    border-bottom-color: var(--rosa);
}

/* ===== CONTEÚDO ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, var(--rosa-claro), #fff0f5);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
}
.banner h1 { font-size: 2.2rem; color: var(--rosa); margin-bottom: 10px; }
.banner p { color: var(--texto-claro); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* Seção título */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--texto);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--borda);
}

/* ===== GRID DE PRODUTOS ===== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.produto-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.3s;
    border: 1px solid var(--borda);
}
.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.produto-card .img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #fafafa;
    position: relative;
}
.produto-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.produto-card:hover .img-wrapper img { transform: scale(1.05); }

.produto-card .info {
    padding: 18px;
}
.produto-card .categoria-tag {
    font-size: 0.75rem;
    color: var(--rosa);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}
.produto-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--texto);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.produto-card .preco {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rosa);
    margin-bottom: 12px;
}
.produto-card .btn-comprar {
    width: 100%;
    padding: 10px;
    background: var(--rosa);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.produto-card .btn-comprar:hover { background: var(--rosa-hover); }

/* ===== PRODUTO DETALHE ===== */
.produto-detalhe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--sombra);
}
.produto-detalhe .galeria {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.produto-detalhe .foto-principal {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}
.produto-detalhe .foto-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.produto-detalhe .miniaturas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.produto-detalhe .miniaturas img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.produto-detalhe .miniaturas img:hover,
.produto-detalhe .miniaturas img.ativa { border-color: var(--rosa); }

.produto-detalhe .info h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.produto-detalhe .info .categoria-tag {
    color: var(--rosa);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}
.produto-detalhe .info .preco {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rosa);
    margin-bottom: 20px;
}
.produto-detalhe .info .descricao {
    color: var(--texto-claro);
    line-height: 1.8;
    margin-bottom: 25px;
}
.produto-detalhe .qtd-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.produto-detalhe .qtd-selector button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--borda);
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.produto-detalhe .qtd-selector button:hover { border-color: var(--rosa); color: var(--rosa); }
.produto-detalhe .qtd-selector span {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.produto-detalhe .btn-carrinho {
    width: 100%;
    padding: 15px;
    background: var(--rosa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.produto-detalhe .btn-carrinho:hover {
    background: var(--rosa-hover);
    transform: translateY(-2px);
}

/* ===== CARRINHO ===== */
.carrinho-vazio {
    text-align: center;
    padding: 60px 20px;
}
.carrinho-vazio .icone { font-size: 4rem; margin-bottom: 15px; }
.carrinho-vazio h2 { margin-bottom: 10px; }
.carrinho-vazio p { color: var(--texto-claro); margin-bottom: 25px; }

.carrinho-itens { margin-bottom: 30px; }
.carrinho-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
}
.carrinho-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}
.carrinho-item .info { flex: 1; }
.carrinho-item .info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.carrinho-item .info .preco { color: var(--rosa); font-weight: 700; }
.carrinho-item .qtd { display: flex; align-items: center; gap: 8px; }
.carrinho-item .qtd button {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--borda);
    background: white;
    cursor: pointer;
}
.carrinho-item .remove {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.carrinho-total {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
    text-align: right;
}
.carrinho-total .total-label { font-size: 1.1rem; color: var(--texto-claro); }
.carrinho-total .total-valor { font-size: 2rem; font-weight: 800; color: var(--rosa); }
.carrinho-total .btn-finalizar {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 40px;
    background: var(--verde);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.carrinho-total .btn-finalizar:hover { background: #059669; }

/* ===== FORMULÁRIOS ===== */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
}
.form-container h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--rosa);
}
.form-container .subtitle {
    text-align: center;
    color: var(--texto-claro);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--texto);
    margin-bottom: 5px;
}
.form-group label .req { color: #ef4444; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fcfcfc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rosa); }
.form-group .error { color: #ef4444; font-size: 0.8rem; margin-top: 3px; }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--rosa);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit:hover { background: var(--rosa-hover); transform: translateY(-1px); }

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--texto-claro);
}
.form-footer a { color: var(--rosa); text-decoration: none; font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* CAPTCHA */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-row img {
    border-radius: 8px;
    border: 2px solid var(--borda);
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: #a0a0b0;
    padding: 40px 0 20px;
    margin-top: 60px;
}
footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
footer h4 { color: white; margin-bottom: 12px; font-size: 1rem; }
footer p, footer a { color: #a0a0b0; font-size: 0.85rem; text-decoration: none; line-height: 2; }
footer a:hover { color: var(--rosa); }
footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #2a2a4a;
    font-size: 0.8rem;
}

/* ===== CHECKBOX ESTILIZADO (radio upload/url) ===== */
.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid var(--borda);
    transition: all 0.2s;
}
.radio-group label:has(input:checked) {
    border-color: var(--rosa);
    background: var(--rosa-claro);
}
.radio-group input[type="radio"] { accent-color: var(--rosa); }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .busca { order: 3; max-width: 100%; flex-basis: 100%; }
    .produto-detalhe { grid-template-columns: 1fr; }
    .produto-detalhe .foto-principal { height: 300px; }
    .banner h1 { font-size: 1.5rem; }
    .banner { padding: 30px 20px; }
    .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .produto-card .img-wrapper { height: 200px; }
    nav.categorias ul { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .produtos-grid { grid-template-columns: 1fr; }
    .produto-card .img-wrapper { height: 250px; }
    .form-container { padding: 20px; }
}
