/* ============================================================
   components/marketplace-cards.css
   Cards do marketplace
   cafedireto.com.br
   ============================================================ */

.marketplace-product-card-link {
    display: block;
    color: inherit;
    height: 100%;
    text-decoration: none;
}

.marketplace-product-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.marketplace-product-card {
    height: 100%;
    min-height: 468px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.marketplace-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 154, 66, 0.42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.product-image-wrap {
    width: 100%;
    height: 176px;
    display: grid;
    place-items: center;
    background: #f2f2f2;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-name-strip {
    min-height: 44px;
    padding: 10px 12px;
    background: #ffffff;
    color: #101010;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.product-meta-chips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.product-meta-chips span,
.product-meta-inline span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f8f4ea;
    border: 1px solid #dfd3bc;
    color: #082b1f;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.product-meta-inline {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
    width: 100%;
    white-space: nowrap;
}

.origin-indicators {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 1px;
}

.origin-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.86rem;
    border: 1px solid #d7d7d7;
    background: #f4f4f4;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.origin-dot.is-active {
    background: #eef7ef;
    border-color: #93c59b;
}

.origin-dot.is-muted {
    background: #f3f3f3;
    border-color: #d9d9d9;
    opacity: 0.72;
}

.product-short-description {
    min-height: 50px;
    margin: 0;
    color: #4f6258;
    font-size: 0.80rem;
    line-height: 1.36;
}

.product-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-rating,
.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d19a2e;
}

.product-rating {
    padding-top: 4px;
    font-size: 0.72rem;
}

.product-rating small,
.product-detail-rating small {
    color: #5f6c66;
    font-size: 0.72rem;
}

.product-detail-rating strong {
    color: var(--color-primary-dark);
}

.product-card-footer {
    margin-top: 0;
    padding-top: 7px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
}

.product-old-price {
    color: #8a8a8a !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-decoration: line-through;
    line-height: 1;
}

.product-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1;
}

.product-price strong {
    color: #071f18;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
}

.product-price em {
    color: #00a650;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.product-price span {
    color: #5e6964;
    font-size: 0.74rem;
    line-height: 1.1;
}

/* ============================================================
   Painéis e página de detalhe
   ============================================================ */

.marketplace-panel {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.marketplace-panel h2 {
    color: var(--color-primary-dark);
    font-size: 1.65rem;
    margin-bottom: 14px;
}

.marketplace-panel h3 {
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.marketplace-panel p:last-child {
    margin-bottom: 0;
}

.origin-story-panel {
    border-color: rgba(35, 122, 75, 0.20);
    background:
        radial-gradient(circle at top right, rgba(35, 122, 75, 0.08), transparent 34%),
        #ffffff;
}

.curiosity-panel {
    border-color: rgba(201, 154, 66, 0.30);
    background:
        radial-gradient(circle at top right, rgba(201, 154, 66, 0.12), transparent 36%),
        #ffffff;
}

.curiosity-panel h2 {
    max-width: 720px;
}

.product-detail-info {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.product-detail-info h1 {
    margin: 18px 0 12px;
    color: var(--color-primary-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.product-detail-subtitle {
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.product-detail-price-box {
    margin: 24px 0 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    display: grid;
    gap: 4px;
}

.product-detail-price-box span {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-detail-price-box strong {
    color: var(--color-primary-dark);
    font-size: 2rem;
}

.product-detail-price-box small {
    color: var(--color-muted);
}

.product-safety-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 0.9rem;
    border: 1px solid rgba(154, 101, 0, 0.16);
}

.interest-result-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 38px;
    text-align: center;
}

.interest-product-summary {
    max-width: 560px;
    margin: 24px auto;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    display: grid;
    gap: 5px;
    text-align: left;
}

.interest-product-summary span {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.interest-product-summary strong {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.interest-product-summary small {
    color: var(--color-muted);
}

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 680px) {
    .marketplace-product-card {
        min-height: 466px;
    }

    .product-image-wrap {
        height: 176px;
    }

    .product-card-name-strip {
        min-height: 42px;
        font-size: 0.94rem;
    }

    .product-detail-info,
    .marketplace-panel,
    .interest-result-card {
        padding: 20px;
    }

    .product-detail-price-box strong {
        font-size: 1.65rem;
    }
}