/* =========================
   PROFILE + CARD
========================= */
.wcfmkt-freelancer-box,
.wcfmkt-profile {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 24px;
    border-radius: 10px;
    background: #fff;
}

.wcfmkt-freelancer-header,
.wcfmkt-profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.wcfmkt-freelancer-avatar,
.wcfmkt-profile-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 999px;
}

.wcfmkt-profile-cover img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    border-radius: 10px;
}

/* =========================
   PRODUCT GRID
========================= */
.wcfmkt-profile-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wcfmkt-profile-product-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* =========================
   SEARCH FORM (แก้หลักอยู่ตรงนี้)
========================= */
.wcfmkt-search-form {
    display: grid;
    grid-template-columns: 200px 1fr 120px; /* 👈 3 ช่องแน่นอน */
    gap: 10px;
    align-items: center;
}

/* dropdown */
.wcfmkt-search-form select {
    width: 100%;
}

/* input */
.wcfmkt-search-form input[type="text"] {
    width: 100%;
}

/* button */
.wcfmkt-search-form button {
    width: 100%;
    background: #1e90fe;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* style รวม */
.wcfmkt-search-form select,
.wcfmkt-search-form input,
.wcfmkt-search-form button {

    border-radius: 6px;
    border: 1px solid #ddd;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .wcfmkt-search-form {
        grid-template-columns: 1fr; /* 👈 มือถือเรียงลง */
    }

    .wcfmkt-profile-products {
        grid-template-columns: 1fr;
    }
}