/* ============================================================
   Shared styles for detail pages: san-pham/, bai-viet/, tuyen-dung/vi-tri.html
   ============================================================ */

/* Breadcrumb */
.breadcrumb-bar {
    background: #f8fdf8; padding: 16px 0; border-bottom: 1px solid #eee;
}
.breadcrumb-bar a { color: #5cb85c; text-decoration: none; font-size: 14px; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: #888; font-size: 14px; }

/* Product detail */
.product-detail { padding: 40px 0 60px; }
.product-detail__image-wrap {
    background: #f8f8f8; border-radius: 12px; overflow: hidden;
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.product-detail__image-wrap img {
    width: 100%; height: 100%; object-fit: contain; padding: 20px;
}

.product-detail__info { padding-left: 32px; }
.product-detail__badge {
    display: inline-block; background: #e53935; color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 12px;
    border-radius: 12px; text-transform: uppercase; margin-bottom: 12px;
}
.product-detail__sku {
    font-size: 13px; color: #999; margin-bottom: 8px;
}
.product-detail__name {
    font-size: 28px; font-weight: 700; color: #1a3c2b;
    margin: 0 0 8px; line-height: 1.3;
}
.product-detail__category {
    font-size: 13px; color: #5cb85c; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.product-detail__price {
    font-size: 24px; font-weight: 700; color: #e53935; margin-bottom: 20px;
}
.product-detail__price small { font-size: 14px; color: #aaa; font-weight: 400; }
.product-detail__price .contact-price { font-size: 16px; color: #888; font-style: italic; font-weight: 400; }

/* Info table */
.product-info-table { width: 100%; margin-bottom: 24px; }
.product-info-table tr { border-bottom: 1px solid #f0f0f0; }
.product-info-table td { padding: 10px 0; font-size: 14px; }
.product-info-table td:first-child { color: #888; width: 140px; }
.product-info-table td:last-child { font-weight: 500; color: #333; }

/* Description */
.product-detail__desc-title { font-size: 18px; font-weight: 600; color: #1a3c2b; margin: 32px 0 12px; }
.product-detail__desc {
    font-size: 14px; line-height: 1.8; color: #555;
    white-space: pre-line;
}

/* CTA buttons */
.product-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-cta {
    padding: 12px 28px; border-radius: 8px; font-size: 15px;
    font-weight: 600; border: none; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important;
}
.btn-cta-primary { background: #1a3c2b; color: #fff !important; }
.btn-cta-primary:hover { background: #2d5a3d; }
.btn-cta-outline { background: #fff; color: #1a3c2b !important; border: 2px solid #1a3c2b; }
.btn-cta-outline:hover { background: #f8fdf8; }
.btn-cta-zalo { background: #0068ff; color: #fff !important; }
.btn-cta-zalo:hover { background: #0054cc; }

/* Loading / Error / 404 */
.product-status {
    text-align: center; padding: 80px 20px; color: #aaa;
}
.product-status .fa { font-size: 48px; margin-bottom: 16px; display: block; }
.product-status h2 { color: #333; font-size: 20px; margin-bottom: 8px; }
.product-status p { font-size: 14px; }
.product-status a { color: #5cb85c; }

/* Related / listing items */
.related-products { padding: 40px 0 60px; background: #f8fdf8; }
.related-products .title h2 { font-size: 24px; }
.related-products .product-card { background: #fff; }

/* Status banner (VD: vị trí đã ngừng tuyển) */
.detail-alert-banner {
    background: #fff3cd; border: 1px solid #ffc107; color: #856404;
    border-radius: 8px; padding: 14px 20px; margin-bottom: 24px; font-size: 14px;
}

@media (max-width: 768px) {
    .product-detail__info { padding-left: 0; margin-top: 24px; }
    .product-detail__name { font-size: 22px; }
    .product-detail__price { font-size: 20px; }
}
