/* ═══════════════════════════════════════════
   Product Recommendation Block – Frontend
   ═══════════════════════════════════════════ */

.prb-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin: 1.5rem 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Label Styles ── */
.prb-label--ribbon .prb-label {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.prb-label--badge .prb-label {
    display: inline-block;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.prb-label--pill .prb-label {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.prb-label--tag .prb-label {
    display: inline-block;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.prb-label--banner .prb-label {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.prb-label--stamp .prb-label {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--prb-label-color, #4A6CF7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(15deg);
    line-height: 1.1;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Bookmark ── */
.prb-bookmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    z-index: 3;
}
.prb-bookmark:hover { color: #4A6CF7; }

/* ── Card Body ── */
.prb-card--horizontal .prb-card-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.prb-card--horizontal .prb-card-image {
    flex: 0 0 200px;
}
.prb-card--horizontal .prb-card-image img {
    max-width: 100%;
    height: auto;
}

.prb-card--vertical .prb-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Typography ── */
.prb-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: #111827;
    line-height: 1.2;
}

.prb-card-subtitle {
    display: block;
    color: #4A6CF7;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: underline;
    margin-bottom: 0.75rem;
}
.prb-card-subtitle:hover { color: #3b5bdb; }

.prb-card-description {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.75rem 0 1.25rem;
}

/* ── Stars ── */
.prb-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.75rem;
}
.prb-star {
    color: #d1d5db;
    font-size: 1.1rem;
}
.prb-star.filled { color: #FBBF24; }
.prb-star.half {
    background: linear-gradient(90deg, #FBBF24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.prb-review-count {
    color: #6b7280;
    font-size: 0.85rem;
    margin-left: 6px;
}

/* ── Price Buttons ── */
.prb-price-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.prb-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.prb-price-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.prb-price { font-weight: 800; }
.prb-store { font-weight: 400; opacity: 0.9; }

/* ── Stock ── */
.prb-stock {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 500;
}
.prb-stock--out-of-stock { color: #EF4444; }
.prb-stock--limited-stock { color: #F59E0B; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .prb-card--horizontal .prb-card-body {
        flex-direction: column;
    }
    .prb-card--horizontal .prb-card-image {
        flex: none;
        width: 100%;
        max-width: 250px;
    }
    .prb-price-buttons {
        flex-direction: column;
    }
    .prb-price-btn {
        justify-content: center;
    }
}