/*
Theme Name: Ornametais Theme
Template: twentytwentyfour
Description: Tema filho baseado no Twenty Twenty-Four.
Version: 1.3.2
Author: Ornametais
*/

/* === Hero Section === */
.hero {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #222;
}
.hero p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}
#btnComprar {
    background: #ffc107;
    color: #222;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
#btnComprar:hover {
    background: #e0a800;
}

/* === Agendamento Container === */
#agendamento {
    display: none;
    max-width: 480px;
    margin: auto;
    padding: 20px;
    background: #222;
    color: #fff;
    border-radius: 8px;
}
#agendamento h2 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    text-align: center;
    color: #fff;
}

/* === Toolbar Customizada === */
.toolbar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}
.toolbar button {
    background: #444;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.toolbar .active {
    background: #ffc107;
    color: #222;
}
.toolbar button:hover {
    background: #555;
}

/* === Time Slots === */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.time-slot {
    background: #ffc107;
    color: #222;
    border: none;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.time-slot:hover {
    background: #e0a800;
}

/* === Calendar Header & Day Numbers === */
#calendar .fc-col-header-cell-cushion,
#calendar .fc-daygrid-day-number {
    color: #fff;
    font-weight: 500;
}

/* === Responsive Mobile === */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    #btnComprar {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    #agendamento {
        padding: 15px;
    }
    #agendamento h2 {
        font-size: 1.2rem;
    }
    .toolbar button {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .time-slots {
        gap: 8px;
    }
    .time-slot {
        font-size: 0.8rem;
        padding: 10px 0;
    }
}

/* === Utility Focus === */
:focus {
    outline: 3px solid rgba(255,193,7,0.7);
    outline-offset: 2px;
}


/*
==========================================================================
 CÓDIGOS DO PLUGIN DE LEILÃO E VENDAS ABAIXO
==========================================================================
*/

/* --- Estilos para a Página de Joia (single-joia.php) --- */
.single-joia .joia-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .single-joia .joia-single-layout {
        grid-template-columns: 1fr 1fr;
    }
}
.joia-image-column .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}
.joia-details-column .entry-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5em;
}
.price-box-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.price-box {
    flex: 1;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e5e5;
}
.price-box .price-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}
.price-box .price-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}
.joia-details-column .entry-content {
    margin-bottom: 25px;
    line-height: 1.6;
}
.jewelry-meta {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.jewelry-meta .meta-item {
    margin-bottom: 10px;
    color: #555;
}
.joia-buttons-wrapper {
    display: flex;
    gap: 15px;
}
.joia-button {
    flex: 1;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}
.joia-button:hover {
    opacity: 0.85;
}
.dar-lance-btn {
    background-color: #ff8c00;
}
.comprar-btn {
    background-color: #28a745;
}


/* --- Estilos para a Grade e Cards de Joias ([leilao_joias] shortcode) --- */
.joias-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.joia-card {
    border: 1px solid #e5e5e5;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.joia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.joia-card-image {
    position: relative;
}
.joia-card-image a {
    display: block;
}
.joia-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.joia-card-image .live-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d9534f;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}
.joia-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.joia-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}
.joia-title a {
    text-decoration: none;
    color: #333;
}
.joia-title a:hover {
    color: #000;
}
.joia-card-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}
.joia-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: 15px;
}
.joia-card-row:first-of-type {
    margin-top: auto;
}
/* --- CORREÇÃO FINAL: Estilos para a meta-informação com linhas e alinhamento perfeito --- */

.jewelry-meta {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 0; /* Zera o padding antigo para controle total */
    border-top: 1px solid #e5e5e5; /* Linha fina no topo da seção */
}

.jewelry-meta .meta-item {
    display: flex;
    align-items: center; /* Força o alinhamento vertical ao centro */
    padding: 15px 0; /* Adiciona espaçamento vertical para mais respiro */
    border-bottom: 1px solid #e5e5e5; /* Linha fina abaixo de cada item */
    color: #555;
    font-size: 0.95em;
    margin-bottom: 0; /* Remove a margem antiga para um controle preciso */
}

/* --- CORREÇÃO FINAL: Estilos para o Status da Peça (Bolinhas Coloridas) --- */

.status-item {
    display: flex;
    align-items: center;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%; /* Isso transforma o quadrado em um círculo */
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0; /* Impede que a bolinha diminua */
}

.status-dot.status-disponivel {
    background-color: #28a745; /* Verde */
}

.status-dot.status-vendida {
    background-color: #d9534f; /* Vermelho */
}