/*
==========================================================================
 ESTILOS DO PLUGIN DE LEILÃO E VENDAS - BARRA GOLD JOIAS
 Versão: 1.2.0
==========================================================================
*/

/* --- 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-top: 30px;
    margin-bottom: 30px;
    border-top: 1px solid #e5e5e5;
}
.jewelry-meta .meta-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #555;
    font-size: 0.95em;
    margin-bottom: 0; 
}
.status-item {
    display: flex;
    align-items: center;
}
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.status-dot.status-disponivel {
    background-color: #28a745; /* Verde */
}
.status-dot.status-vendida {
    background-color: #d9534f; /* Vermelho */
}

/* --- Estilos para as Ações de Lance e Compra (Layout Compacto Responsivo) --- */
.joia-actions-wrapper {
    margin-top: 30px;
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}
.lance-livre-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.lance-livre-wrapper input[type="text"] {
    flex-grow: 1;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}
.comprar-wrapper .comprar-btn {
    width: 100%;
}
.joia-button {
    padding: 15px 20px;
    height: auto;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: white !important;
    transition: opacity 0.3s ease;
    border: none; 
    cursor: pointer;
    font-size: 1em;
}
.dar-lance-btn {
    background-color: #ff8c00;
}
.comprar-btn {
    background-color: #28a745;
}
@media (max-width: 600px) {
    .lance-livre-wrapper {
        flex-direction: column;
    }
    .lance-livre-wrapper input[type="text"],
    .lance-livre-wrapper .dar-lance-btn {
        width: 100%;
    }
    .lance-livre-wrapper input[type="text"] {
        height: 50px;
    }
}


/* --- 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;
}
.price-label {
    font-size: 0.8em;
    color: #777;
    display: block;
}
.price-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
}
.joia-card-button {
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}
.button-lance {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: white;
}
.button-lance:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    color: white;
}
.button-comprar {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ccc;
}
.button-comprar:hover {
    background-color: #eee;
    color: #333;
}
.joia-card.is-sold {
    opacity: 0.65;
}
.joia-card.is-sold:hover {
    transform: none;
    box-shadow: none;
}
.joia-card.is-sold .joia-card-button {
    pointer-events: none;
    background-color: #ccc;
    border-color: #ccc;
}
.joia-card.is-sold .sold-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 2.2em;
    font-weight: bold;
    text-transform: uppercase;
}