/*
 * wc-gi-public.css
 * Contém apenas estilos que dependem de classes dinâmicas (status-*)
 * e overrides específicos do plugin. Todo o restante usa Tailwind.
 *
 * Cards (.gi-product-card): alinhados ao tema Arte do Colecionismo
 * (izap-product-card — surface-muted, sombra sombra-2, CTA brand-blue).
 */

/* ── Cards tipo “content product” (tema izap-product-card) ───────────── */
.gi-product-card {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #fafafa;
    box-shadow: 0 3px 20px rgb(195 195 195 / 0.2);
    transition: box-shadow 0.2s ease;
}

.gi-product-card:hover {
    box-shadow: 0 8px 30px rgba(195, 195, 195, 0.3);
}

.gi-product-card__media {
    aspect-ratio: 370 / 345;
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
    background: #fff;
}

.gi-product-card__image,
.gi-product-card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gi-product-card:hover .gi-product-card__image,
.gi-product-card:hover .gi-product-card__media img {
    transform: scale(1.05);
}

.gi-product-card__media--contain img,
.gi-product-card__media--contain .gi-product-card__image {
    height: auto;
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    padding: 1rem;
}

.gi-product-card:hover .gi-product-card__media--contain img,
.gi-product-card:hover .gi-product-card__media--contain .gi-product-card__image {
    transform: none;
}

/* Faixa branca como no card de produto (strip / espaço reservado) */
.gi-product-card__strip {
    z-index: 10;
    display: flex;
    height: 38px;
    width: 100%;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 3px 20px rgb(195 195 195 / 0.2);
    font-size: 14px;
    line-height: 1.6;
    color: #212121;
}

.gi-product-card__strip-link {
    color: #212121;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.gi-product-card__strip-link:hover {
    color: #0e83c5;
}

.gi-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1.5rem;
}

.gi-product-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.75rem;
    color: #212121;
}

.gi-product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.gi-product-card__title a:hover {
    color: #0e83c5;
}

.gi-product-card__price {
    margin-top: 0.5rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #212121;
}

.gi-product-card__price .woocommerce-Price-amount {
    font-weight: inherit;
}

/* Botão primário = mesmo “Adicionar ao carrinho” do tema */
.gi-product-card__btn {
    display: flex;
    margin-top: auto;
    min-height: 58px;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 0;
    background: #0e83c5;
    padding: 0 1rem;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.gi-product-card__btn:hover {
    background: #0b6a9f;
    color: #fff;
}

.gi-product-card__btn:disabled,
.gi-product-card__btn--disabled {
    cursor: not-allowed;
    background: #f5f5f5;
    color: rgba(33, 33, 33, 0.3);
}

.gi-product-card__btn--disabled:hover {
    background: #f5f5f5;
    color: rgba(33, 33, 33, 0.3);
}

.gi-product-card__meta {
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background: #f5f5f5;
    padding: 0.75rem 0.75rem;
    font-size: 12px;
    color: rgba(33, 33, 33, 0.7);
}

.gi-product-card__label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(33, 33, 33, 0.5);
}

.gi-product-card__input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #212121;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.gi-product-card__input:focus {
    outline: none;
    border-color: #0e83c5;
    box-shadow: 0 0 0 2px rgb(14 131 197 / 0.25);
}

/* Badges sobre a mídia (grupos) */
.gi-product-card__badges {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

/* ── Listagem de grupos: mesma altura visual e hierarquia fixa ─────── */
.gi-product-card--grupo .gi-product-card__media {
    aspect-ratio: 16 / 9;
}

.gi-product-card--grupo .gi-product-card__content {
    gap: 0.75rem;
}

/* Título: sempre até 2 linhas — evita cards com alturas muito diferentes */
.gi-product-card--grupo .gi-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 3.5rem;
    line-height: 1.3;
}

/* Resumo: reserva 2 linhas mesmo vazio */
.gi-product-card__excerpt {
    margin: 0;
    min-height: calc(1.25rem * 2);
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(33, 33, 33, 0.58);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gi-product-card__excerpt:empty::before {
    content: "\00a0";
}

/* Período + faixa de stats em grid fixo */
.gi-product-card--grupo .gi-product-card__meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 0.75rem;
}

.gi-product-card__period {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(33, 33, 33, 0.72);
}

.gi-product-card__period-text {
    min-width: 0;
}

.gi-product-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    padding-top: 0.75rem;
    align-items: start;
}

.gi-product-card__stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.gi-product-card__stat--end {
    text-align: right;
    align-items: flex-end;
}

.gi-product-card__stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(33, 33, 33, 0.45);
    line-height: 1.2;
}

.gi-product-card__stat-value {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: #212121;
}

.gi-product-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: #ecfdf5;
    padding: 0.5rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #065f46;
}

.gi-product-card__notice svg {
    flex-shrink: 0;
    margin-top: 0.1em;
}

/* ── Status badges (nomes gerados dinamicamente via PHP) ─────────────── */
.wc-gi-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f3f4f6;
    color: #374151;
}
.status-reservado              { background: #fef3c7; color: #92400e; }
.status-entrada_paga           { background: #d1fae5; color: #065f46; }
.status-aguardando_complemento { background: #fef9c3; color: #713f12; }
.status-complemento_pago       { background: #dbeafe; color: #1e3a5f; }
.status-enviado                { background: #ede9fe; color: #4c1d95; }
.status-concluido              { background: #f0fdf4; color: #14532d; }
.status-cancelado              { background: #fee2e2; color: #7f1d1d; }

/* ── Modal: scroll-lock no body ──────────────────────────────────────── */
body.overflow-hidden {
    overflow: hidden;
}

/* ── Suite fotos grid ────────────────────────────────────────────────── */
.wc-gi-suite-row-blocked {
    opacity: 0.5;
}
