/* ══════════════════════════════════════════════════════════════
 *  BizCity Marketplace — CSS
 *  Shortcode [bizcity_marketplace] + /marketplace/ + /marketplace/{slug}/
 * ══════════════════════════════════════════════════════════════ */

/* ─── Reset & Wrap ─── */
.bzm-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    font-family: "Inter", sans-serif;
}

/* ═══════════════════  GRID  ═══════════════════ */
.bzm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) {
    .bzm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .bzm-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══════════════════  CARD  ═══════════════════ */
.bzm-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bzm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.bzm-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Cover */
.bzm-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
}
.bzm-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.bzm-card:hover .bzm-card-cover img {
    transform: scale(1.04);
}
.bzm-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

/* Tags on cover */
.bzm-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
}
.bzm-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 1.4;
}
.bzm-tag-outline {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* Card body */
.bzm-card-body {
    padding: 16px 18px 18px;
}
.bzm-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}
.bzm-card-author {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}
.bzm-card-price {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

/* ═══════════════════  "XEM THÊM" BUTTON  ═══════════════════ */
.bzm-more-wrap {
    text-align: center;
    margin-top: 32px;
}
.bzm-btn-more {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.bzm-btn-more:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff;
}

/* ═══════════════════  HERO (List page)  ═══════════════════ */
/* Hero sits OUTSIDE #content so it spans full viewport width naturally.
   bzm-hero-inner mirrors bzm-wrap max-width to keep text aligned. */
.bzm-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 28px 0 22px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.bzm-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.bzm-hero h1,
.bzm-hero p,
.bzm-hero span,
.bzm-hero strong {
    color: #111 !important;
}
.bzm-hero h1 {
    font-size: 22px;
    margin: 0 0 4px;
    font-weight: 700;
}
.bzm-hero p {
    font-size: 14px;
    color: #6b7280 !important;
    margin: 0 0 12px;
    line-height: 1.5;
}
.bzm-hero-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #6b7280 !important;
}
.bzm-hero-stats span {
    color: #6b7280 !important;
}
.bzm-hero-stats strong {
    display: inline;
    font-size: 14px;
    font-weight: 700;
    color: #111 !important;
    margin-right: 3px;
}

/* ═══════════════════  TOOLBAR (List page)  ═══════════════════ */
.bzm-toolbar {
    margin-bottom: 28px;
}
.bzm-search-wrap {
    position: relative;
    max-width: 400px;
    margin-bottom: 16px;
}
.bzm-search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.bzm-search-wrap input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.bzm-search-wrap input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Category filter */
.bzm-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bzm-cat-btn {
    padding: 7px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
}
.bzm-cat-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.bzm-cat-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Empty state */
.bzm-empty {
    text-align: center;
    color: #9ca3af;
    padding: 60px 0;
    font-size: 15px;
}

/* ═══════════════════  DETAIL PAGE  ═══════════════════ */

/* Breadcrumb */
.bzm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: #6b7280;
}
.bzm-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.bzm-breadcrumb a:hover {
    text-decoration: underline;
}

/* Cover */
.bzm-detail-cover {
    position: relative;
    width: 100%;
    max-height: 400px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}
.bzm-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bzm-detail-cover .bzm-card-tags {
    bottom: 14px;
    top: auto;
    left: 14px;
}

/* Header */
.bzm-detail-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.bzm-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.bzm-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bzm-detail-info h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
}
.bzm-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bzm-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

/* Plan badge */
.bzm-plan-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.bzm-plan-free {
    background: #d1fae5;
    color: #065f46;
}
.bzm-plan-pro {
    background: #fef3c7;
    color: #92400e;
}

/* Actions */
.bzm-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.bzm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
    border: none;
    line-height: 1.4;
}
.bzm-btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.bzm-btn-primary:hover {
    opacity: .9;
    color: #fff;
}
.bzm-btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
}
.bzm-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111;
}

/* Quick View */
.bzm-detail-quickview {
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #1e3a8a;
    margin-bottom: 28px;
}

/* Sections */
.bzm-detail-section {
    margin-bottom: 36px;
}
.bzm-detail-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Description */
.bzm-detail-desc {
    line-height: 1.75;
    color: #374151;
    font-size: 15px;
}
.bzm-detail-short {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1f2937;
}

/* Tags */
.bzm-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bzm-detail-tags .bzm-tag {
    font-size: 13px;
    padding: 5px 14px;
}

/* Info table */
.bzm-detail-table {
    width: 100%;
    border-collapse: collapse;
}
.bzm-detail-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}
.bzm-detail-table td:first-child {
    font-weight: 600;
    color: #6b7280;
    width: 160px;
}
.bzm-detail-table code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}
.bzm-detail-table a {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}
.bzm-detail-table a:hover {
    text-decoration: underline;
}

/* Back button */
.bzm-back-wrap {
    padding: 24px 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

/* ═══════════════════  RESPONSIVE  ═══════════════════ */
@media (max-width: 768px) {
    .bzm-hero { padding: 16px 0 14px; }
    .bzm-hero h1 { font-size: 18px; }
    .bzm-hero p { font-size: 13px; }
    .bzm-hero-stats { gap: 12px; font-size: 12px; }

    .bzm-detail-header { flex-direction: column; gap: 16px; }
    .bzm-detail-icon { width: 64px; height: 64px; }
    .bzm-detail-info h1 { font-size: 22px; }
    .bzm-detail-cover { max-height: 220px; border-radius: 10px; }

    .bzm-detail-actions { flex-direction: column; }
    .bzm-btn { justify-content: center; }

    .bzm-detail-table td:first-child { width: 120px; }
}
