/* extra dynamic-marketplace styles */

.auth, .profile, .listing-detail, .admin { padding: 48px 0 80px; }
.auth h2, .profile h2, .listing-detail h2, .admin h2 { margin-bottom: 24px; }

.form-error { color: #c53030; background: #fff5f5; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.flash { background: #e6fffa; color: #234e52; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }

.search-bar { display: flex; gap: 12px; margin-bottom: 16px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 1px solid #d0d7e0; border-radius: 999px; font: inherit; }
.search-bar button { border-radius: 999px; }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .part-card { transform: translateY(-2px); }

.detail-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.10); }
.detail-card .main-photo {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #f4f6f8;
    display: block;
}
.thumb-row {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    background: #f4f6f8;
    border-top: 1px solid #e5e9ef;
}
.thumb-wrap {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}
.thumb-wrap.active {
    border-color: #00a8b5;
}
.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.detail-body { padding: 28px; }
.detail-body h1 { margin: 0 0 12px; color: #001e3c; font-size: 1.8rem; }
.detail-body .price { font-size: 1.8rem; font-weight: 800; color: #008a94; margin-bottom: 12px; }
.detail-body .meta { color: #5a677a; margin-bottom: 18px; }
.detail-body .description { line-height: 1.7; color: #1a202c; }

.profile-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); margin-bottom: 24px; }
.profile-card p { margin: 4px 0; }

.my-listings { display: grid; gap: 16px; }
.my-item { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.my-item img { border-radius: 8px; object-fit: contain; }
.my-item .info { flex: 1; }
.my-item .info a { display: block; font-weight: 700; color: #001e3c; text-decoration: none; }
.my-item .price { display: block; color: #008a94; font-weight: 700; }
.my-item .actions { display: flex; gap: 8px; }
.btn-danger { background: #c53030; color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.stat-card strong { display: block; font-size: 1.6rem; color: #001e3c; }

.admin-list { display: grid; gap: 14px; margin-bottom: 32px; }
.admin-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.admin-item img { border-radius: 6px; object-fit: contain; }
.admin-item .info { flex: 1; }
.admin-item .info a { font-weight: 700; text-decoration: none; color: #001e3c; }
.admin-item .meta { display: block; color: #5a677a; font-size: 0.9rem; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #edf2f7; }
.admin-table th { background: #001e3c; color: #fff; }
