/* ------------------------------------------------------------------ */
/* --- ESTILOS GLOBAIS --- */
/* ------------------------------------------------------------------ */

#inscricao-app {
    max-width: 900px; /* Aumentar um pouco a largura */
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #fff; /* Texto escuro */
}

/* Títulos */
#inscricao-app h1 {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff; /* Azul primário */
    text-align: left;
}

#inscricao-app h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    color: #ffffff;
}

#inscricao-app button, #inscricao-app input, #inscricao-app select {
    border-radius: 200px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #FFF;
    background: #fff;
    color: #000;
    cursor: pointer;
}

#inscricao-app button.remover-atleta {
    background: #f24d4d !important;
    border-color: #f24d4d !important;
    color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* --- OPÇÕES (BADGES) --- */
/* ------------------------------------------------------------------ */

.inscricao-opcoes {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.opcao-grupo {
    margin-bottom: 20px;
}

.opcao-grupo label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1em;
    color: #495057;
}

.opcoes-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-opcao {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.badge-opcao:hover {
    background-color: #dee2e6;
}

.badge-opcao.selecionado {
    background-color: #FF6F35 !important; /* Azul primário */
    color: #fff !important;
    border-color: #FF6F35 !important;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* NOVO: Estilo para o link da tabela de medidas */
.tabela-medidas-link {
    display: inline-block;
    text-decoration: none;
    background: #fff;
    color: #000 !important;
    border: 1px solid #fff !important;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px; /* Espaçamento */
}

.tabela-medidas-link:hover {
    background-color: #fff;
    color: #000;
}

/* ------------------------------------------------------------------ */
/* --- FORMULÁRIO DE ATLETAS --- */
/* ------------------------------------------------------------------ */

.atleta-card {
    border: 1px solid #ced4da;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
}

.atleta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.atleta-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #007bff;
}

.remover-atleta {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: color 0.2s ease;
}

.remover-atleta:hover {
    color: #c82333;
}

.atleta-form-group {
    margin-bottom: 15px;
}

.atleta-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #fff;
}

.atleta-form-group input,
.atleta-form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.atleta-form-group input:focus,
.atleta-form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilo para o select de atletas frequentes */
.atletas-frequentes-selecao {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: #fff;
}

.atletas-frequentes-selecao label {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 10px;
}

#selecao-atleta-frequente {
    /* Reutiliza o estilo de input/select */
    margin-top: 5px;
}

/* ------------------------------------------------------------------ */
/* --- BOTÕES DE AÇÃO --- */
/* ------------------------------------------------------------------ */

.btn-adicionar-atleta {
    background-color: #28a745; /* Verde */
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.btn-adicionar-atleta:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.inscricao-finalizar {
    margin-top: 40px;
    text-align: left;
}

.btn-inscrever {
    background-color: transparent !important; 
    color: #FF6F35 !important;
    border: 1px solid #FF6F35 !important;
    padding: 10px 30px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-inscrever:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* --- ESTILOS DE VALIDAÇÃO --- */
/* ------------------------------------------------------------------ */

.atleta-form-group input.is-invalid,
.atleta-form-group select.is-invalid {
    border-color: #dc3545 !important; /* Vermelho de erro */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.opcoes-badges.is-invalid-badges .badge-opcao {
    border-color: #dc3545 !important;
}

.opcoes-badges.is-invalid-badges .badge-opcao.selecionado {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* ------------------------------------------------------------------ */
/* --- ESTILOS DA GALERIA DE PRODUTOS (WOOCOMMERCE-LIKE) --- */
/* ------------------------------------------------------------------ */

.produto-galeria-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
}

.produto-galeria-principal {
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.produto-galeria-principal img {
    width: 100%;
    height: auto;
    display: block;
}

/* Setas de Navegação */
.galeria-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.5em;
    transition: background-color 0.2s;
}

.galeria-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 10px;
}

.prev-arrow::before {
    content: '‹';
}

.next-arrow {
    right: 10px;
}

.next-arrow::before {
    content: '›';
}

/* Miniaturas */
.produto-galeria-miniaturas {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px; /* Para scrollbar */
}

.galeria-thumbnail {
    flex: 0 0 80px; /* Tamanho fixo para miniaturas */
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.galeria-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-thumbnail.active {
    border-color: #007bff;
}

#content > div.page-content > div > div.wp-block-woocommerce-empty-cart-block > h2:nth-child(3), .wc-block-components-quantity-selector, .wc-block-grid.wp-block-product-new.wp-block-woocommerce-product-new.wc-block-product-new.has-4-columns {
    display: none;
}

h1.entry-title {
    margin-top: 12%;
    text-align: center;
    font-size: 48px !important;
    letter-spacing: 0.5px !important;
}

.wp-block-woocommerce-cart.alignwide {
    margin-inline: 0px;
}

.wc-block-cart__empty-cart__title {
    font-size: 24px !important;
}

.wc-block-checkout__sidebar .wc-block-components-product-name {
    font-size: 20px;
    font-weight: bold !important;
    color: #fff !important;
}

li.woocommerce-MyAccount-navigation-link {
    list-style: none;
}